Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2926558pxb; Tue, 12 Oct 2021 16:49:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdYkWZoV2Fp+mA4hCU+vJAhE6x3r1jTM+0b8Ti4P+c04CQ44fO6yolKDvJUc4+EWTA5N/R X-Received: by 2002:a17:90a:e552:: with SMTP id ei18mr9471615pjb.239.1634082550190; Tue, 12 Oct 2021 16:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634082550; cv=none; d=google.com; s=arc-20160816; b=J0Au+r5/VLSgS3jvVwoYbz6nxdnlph41BEEByRB6A9M13uYZuotEj1EMjg0yv+4bUn c+z8NnqdPZ4+2ZsCxP6+TzKZli8sgrIMLVzfGbUt55UFAicNHgK7sP7xuBTdmNt6pZtS TWv4ZziYGBG/R0CXIslAUyM1iRpM3f2QAuA46A+aawQitLHOq9r7n48JrnDPHQDHIVcf vhSaSM4Ht4YL1Qm4VbQHEGJ/TJvGpmjAqLQWLQlMNxo0kwVtMWbgzTq4hkEmUVibiR5L Nt4SLTvB0S+dHCPTJ3MWgbFx1RVHJ0hgYq0axZJcNmsRiQdGpa5Vc+z0ZuhpacsfDDoQ SRMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=453jnyDh5+St7IVUodDCbgLxZ13MiKlNZ2J3hqUdcvM=; b=NvjPfgP5vrcxF8hGFxpzz/YfJC6JAB/pgH5AtBNqOdicwo8KtY1TARxKg/eLSfXjxP jhTCNQHkmzbW26qxjN8IcgQ5Pt/mBeLnVbI9jFfP2jxJ31V+mzPpCFN9pUf6j5vH5rL+ vnAOeYdrLEnZEbzOE40SwB4KY5ahAkKdVZZFDPjlXbZFbhM8NR+sJVeYzpiyRL1LhPIZ uj7kZym5mMUFBty0AfEdgZFemdsNgkgneyKaZRU7YhxPtiZMdM1SwGiAUIWKDQLSy7n7 Bmpr1FDVVZOJL8LCuIPatC8++I6S+Q8w7SCKOLiHjurI742giMmn+xtDstxS4gnVlNxA kn9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GiQnyCyC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si1219864pgm.58.2021.10.12.16.48.56; Tue, 12 Oct 2021 16:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GiQnyCyC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236378AbhJLXsi (ORCPT + 99 others); Tue, 12 Oct 2021 19:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236388AbhJLXsf (ORCPT ); Tue, 12 Oct 2021 19:48:35 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91C73C061570 for ; Tue, 12 Oct 2021 16:46:33 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id b197-20020a2534ce000000b005b71a4e189eso1255212yba.5 for ; Tue, 12 Oct 2021 16:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=453jnyDh5+St7IVUodDCbgLxZ13MiKlNZ2J3hqUdcvM=; b=GiQnyCyCbpwY9yiy0ekI90qBi524flhldE7LmLeUFKKWm8lctHKu1bsmytldY+TUxY WMA98mLcf0kJRjamikFx99dWxHiXdDQLUsWaBbPirwJP5+eAXKVU6FDo57sKENYlyzdO 31bd6OFulXpLt3bpfK93NK4yL0spwCACKTB+vrKQ7GCPXzLILOSFqFt9AeYBJ3ciZwlv YXwZM2deyztIXu8I1fxaflF94jcNJufrpRf4U9azIBZ2hfFutsdTt1NAvQ48d9Dg3wcF sT+Wl1DFt+Wlq7oF10x8A5XCORu2v+sT0dd7XEmbKggavRr1+GKEW5K5OKOGZYlPpuhb 7kNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=453jnyDh5+St7IVUodDCbgLxZ13MiKlNZ2J3hqUdcvM=; b=715YSagb/0H8T/r/Ep0ZtPlK538IKuHj28E2YZjQ2xEtKuiO9TC92Ws8kqOQFQDB2P f0Kt9T97nUrJZzYYe9jpCfGRv+L/PyZzO8P8SuSOFidDko0FjVrM9l+AYbIkZOHQZNoF p7WoWQOynjwxNUonwSqyCSGkYOkCC3qtCn2vNoi1z7gRDhrydJ71C8r8ESBfVcEFpDTR +8zweWnUw82ZvqhhhiGUuAnIlH57MJuByEpGWJhkzcww9c6xEdRUm1crZXWtjD/i4PQD RVYC4pw9nFe2+X8pbn3q37JjnVuBYGLGu3JLZbGiGF9TvZ8ZHbfsMhjrEtMiWNfzROyy d0XA== X-Gm-Message-State: AOAM531BNCydta32RwghKkunlY+hfZBuNo9ByqDZpCPGoDno38mk0FrR t9B90kvuRj6uJenEhgeTaM1bR75t7NGAtt9c2Vs= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:9b44:962:5897:17c0]) (user=ndesaulniers job=sendgmr) by 2002:a25:5ed6:: with SMTP id s205mr34338891ybb.31.1634082392753; Tue, 12 Oct 2021 16:46:32 -0700 (PDT) Date: Tue, 12 Oct 2021 16:46:04 -0700 In-Reply-To: <20211012234606.91717-1-ndesaulniers@google.com> Message-Id: <20211012234606.91717-2-ndesaulniers@google.com> Mime-Version: 1.0 References: <20211012234606.91717-1-ndesaulniers@google.com> X-Developer-Key: i=ndesaulniers@google.com; a=ed25519; pk=lvO/pmg+aaCb6dPhyGC1GyOCvPueDrrc8Zeso5CaGKE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1634082366; l=2752; s=20211004; h=from:subject; bh=F9HRxccJOmwhcZZiuHrzsbCihhzYYcSweRituqKRuSc=; b=eZ+y9VuclQWGHxZZCUU0M238NP4YS16hxLmrZFuG4syjxneIbvLJ1p9XCrFVIvsJox33KLDaEcmw cJtLdaZODfd7SymUzuS2rZgM0tbdGiSw/dZCb+obsqKfSgQzt0Es X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [PATCH 1/3] arm64: vdso32: drop the test for dmb ishld From: Nick Desaulniers To: Catalin Marinas , Will Deacon Cc: llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincenzo Frascino , Nick Desaulniers , Christian Biesinger , Simon Marchi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Binutils added support for this instruction in commit e797f7e0b2bedc9328d4a9a0ebc63ca7a2dbbebc which shipped in 2.34 (just missing the 2.33 release) but was cherry-picked into 2.33 in commit 27a50d6755bae906bc73b4ec1a8b448467f0bea1. Thanks to Christian and Simon for helping me with the patch archaeology. According to Documentation/process/changes.rst, the minimum supported version of binutils is 2.33. Since all supported versions of GAS support this instruction, drop the assembler invocation, preprocessor flags/guards, and the cross assembler macro that's now unused. This also avoids a recursive self reference in a follow up cleanup patch. Cc: Christian Biesinger Cc: Simon Marchi Signed-off-by: Nick Desaulniers --- arch/arm64/include/asm/vdso/compat_barrier.h | 2 +- arch/arm64/kernel/vdso32/Makefile | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm64/include/asm/vdso/compat_barrier.h b/arch/arm64/include/asm/vdso/compat_barrier.h index 3fd8fd6d8fc2..fb60a88b5ed4 100644 --- a/arch/arm64/include/asm/vdso/compat_barrier.h +++ b/arch/arm64/include/asm/vdso/compat_barrier.h @@ -20,7 +20,7 @@ #define dmb(option) __asm__ __volatile__ ("dmb " #option : : : "memory") -#if __LINUX_ARM_ARCH__ >= 8 && defined(CONFIG_AS_DMB_ISHLD) +#if __LINUX_ARM_ARCH__ >= 8 #define aarch32_smp_mb() dmb(ish) #define aarch32_smp_rmb() dmb(ishld) #define aarch32_smp_wmb() dmb(ishst) diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index 3dba0c4f8f42..89299a26638b 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -29,8 +29,6 @@ cc32-option = $(call try-run,\ $(CC_COMPAT) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2)) cc32-disable-warning = $(call try-run,\ $(CC_COMPAT) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) -cc32-as-instr = $(call try-run,\ - printf "%b\n" "$(1)" | $(CC_COMPAT) $(VDSO_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3)) # We cannot use the global flags to compile the vDSO files, the main reason # being that the 32-bit compiler may be older than the main (64-bit) compiler @@ -113,12 +111,6 @@ endif VDSO_AFLAGS := $(VDSO_CAFLAGS) VDSO_AFLAGS += -D__ASSEMBLY__ -# Check for binutils support for dmb ishld -dmbinstr := $(call cc32-as-instr,dmb ishld,-DCONFIG_AS_DMB_ISHLD=1) - -VDSO_CFLAGS += $(dmbinstr) -VDSO_AFLAGS += $(dmbinstr) - # From arm vDSO Makefile VDSO_LDFLAGS += -Bsymbolic --no-undefined -soname=linux-vdso.so.1 VDSO_LDFLAGS += -z max-page-size=4096 -z common-page-size=4096 -- 2.33.0.882.g93a45727a2-goog