From patchwork Thu Dec 6 15:57:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 153040 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10695851ljp; Thu, 6 Dec 2018 07:59:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/V4+0cVbaLqPtA/tnTIAinhLGcWHP9NWWyyJvtZgbIIJD6pJG1c4h6gssD44Y2kC64ly2/5 X-Received: by 2002:a63:c503:: with SMTP id f3mr23834319pgd.431.1544111985249; Thu, 06 Dec 2018 07:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544111985; cv=none; d=google.com; s=arc-20160816; b=MNkBagjqpEoIjxIxg18/nvAlaipkdJP70XYgJMruA21KyZkmnGlsOBDJDknXZbmIoy s5XeT5Oavn5X9f5D144HDIEanS0vUjUch3vvXQqWulykxpZxjDqoXn9BEJtjuJXmfjGr /snUEtJtsiK2YEE0zEI74OReezWlgr4dE+N34OO5YKTFXvI/iZffn5aAFYmlRRNcwbg0 10qfz2RDK+GIVSBe9aWRaStS1yf+cea9U7y7+fer2a9/oAHA8EYhtlWieuh7neDsYKcI RMMLUrNg9Q2/5O69H7kqbFlm3vKbG+TLgkZZU547LJzqedn5G+DQLXNBh9aStxoPv/DE ZgDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HsOLDUWwS8wWEQ+PD9JmGHJK/WLq/vNZaVg+lNHLzj4=; b=te4ejfnEwD1eOLJmMFNBbxBHcRed9dB5r9wvjeMQwTTgMzmsRN7/MRD8Cdr/a9NB25 n9OFFnfEi/c0Ncl2YgSdLonZuYLb14lHcte/iuywF9SCUOeBPYfG5cLoqLwwDwhcVznb ePVKNpH7F9oAk/EJbEN3/jtFqURdBkegDeZWyN7xe75roDzBWY02kHGfPWscxjyuHUBw WgFjNG/VyczR1Ns5GZR7CU//HnrbS2GsGaUq3S0vxWgcb1bBHfBtZpM1IXO3Sl2zdz0q OkeSPNDB43c346wfUvDgoIQWMPR0zDteH62Zpq8YsHyLdX41jOJDHl8NuwdkkqWaNZeT dGLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O4ObU8n1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si534668pfb.191.2018.12.06.07.59.44; Thu, 06 Dec 2018 07:59:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O4ObU8n1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726088AbeLFP7n (ORCPT + 31 others); Thu, 6 Dec 2018 10:59:43 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52395 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbeLFP7n (ORCPT ); Thu, 6 Dec 2018 10:59:43 -0500 Received: by mail-wm1-f68.google.com with SMTP id r11-v6so1490301wmb.2 for ; Thu, 06 Dec 2018 07:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HsOLDUWwS8wWEQ+PD9JmGHJK/WLq/vNZaVg+lNHLzj4=; b=O4ObU8n11TBr2ObnmJrGLcsQN3HvgIP5sU1+BuOrpY7vMygSWU3d6W9+76PAeBS/fY ENBpFShrhNiSOWQ1xsLuuDgFMAB982FPJ+EIWj3+eZvWrkC/CbKKQG3f1JKtreMG4UWH Wn9aP5/upm/BeA++LtzUvDtozSI7nFkzXZPnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HsOLDUWwS8wWEQ+PD9JmGHJK/WLq/vNZaVg+lNHLzj4=; b=pHzGPdLtPfa1MLdfdDTJzM2vDNPnLTdCW5kzPm80aurAhJKrwCzRrSki0nZcvbnnCu cBWMNe/tdYH/K5yB8iEXHMd06/7EReP+8euKpcTFuNB9iR57nrePWjzQHrx4LvZ2xqbY 7KCzdJajerS0x5kLjejQ3pSCQwCxIbb43vo8GC2NhT3AG5bi4gXdXGF18j7I6m5Sebnv ef+wE8znm8HSdsBcZTolR89BQaLF+KU6S9/ymouBcBOtHnGOWS/O+sWJ+5Y/tLlo7NwR QJFXY+gMHe/AtndKV+xxeykBwFLeLogo2+ts24LjbZ0/BbaAgRLW6NYylBOErRkVUY+L bRAg== X-Gm-Message-State: AA+aEWa8GPkXOpzzEvnqna6BV77NnakOc7iAWgP9qJjNa2OqOiYD+T39 Gzu8voMziBCG6+yDWoy8StCXzgBdg3Udog== X-Received: by 2002:a1c:128b:: with SMTP id 133mr21076331wms.22.1544111981435; Thu, 06 Dec 2018 07:59:41 -0800 (PST) Received: from localhost.localdomain (laubervilliers-657-1-83-120.w92-154.abo.wanadoo.fr. [92.154.90.120]) by smtp.gmail.com with ESMTPSA id y34sm1525233wrd.68.2018.12.06.07.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 07:59:40 -0800 (PST) From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Robin Murphy , Will Deacon , Catalin Marinas , Marc Zyngier , Suzuki Poulose , Dave Martin Subject: [PATCH 0/5] arm64: assorted fixes for dcache_by_line_op Date: Thu, 6 Dec 2018 16:57:34 +0100 Message-Id: <20181206155739.20229-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes two issues in dcache_by_line_op: patch #4 fixes the logic that is applied when patching DC CVAP instructions, and patch #5 gets rid of some unintended undefined symbols resulting from incorrect use of conditional GAS directives. Patches #1 to #3 are groundwork for #4. Cc: Robin Murphy Cc: Will Deacon Cc: Catalin Marinas Cc: Marc Zyngier Cc: Suzuki Poulose Cc: Dave Martin Ard Biesheuvel (5): arm64/alternative_cb: move callback reference into replacements section arm64/alternative_cb: add nr_alts parameter to callback handlers arm64/alternative_cb: add support for alternative sequences arm64/assembler: use callback to 3-way alt-patch DC CVAP instructions arm64/mm: use string comparisons in dcache_by_line_op arch/arm64/include/asm/alternative.h | 54 +++++++++++--------- arch/arm64/include/asm/assembler.h | 17 +++--- arch/arm64/include/asm/kvm_mmu.h | 4 +- arch/arm64/kernel/alternative.c | 22 +++++--- arch/arm64/kernel/cpu_errata.c | 24 ++++++--- arch/arm64/kvm/va_layout.c | 8 +-- 6 files changed, 79 insertions(+), 50 deletions(-) -- 2.19.2