Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp896350pxb; Tue, 19 Oct 2021 15:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpse8UmNKiIfx5F37RIj/JpVwiu5z9vM+j1D6dOf1mlBTBuhdjN4o8hqu3kNW2R2opGFQp X-Received: by 2002:a17:906:919:: with SMTP id i25mr41481216ejd.171.1634683160121; Tue, 19 Oct 2021 15:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634683160; cv=none; d=google.com; s=arc-20160816; b=HEtDgdmeVHwPxZs65IX17D+WjDoW4w33x6aW3sGd+PFgf/f6XV7NfLNFxJ31mzmLaQ B3Azq/JNiUQwdOm3Yw7R1iBgFLlKq/wJBNNxSv2hzgX2R8EKxthBqx6oU3O2/Smg3bDN RdJWFWnPSTjgdateRm2v2FyowlGk1t+PEyZ6lRF0ScuAmaIsgabG4EH4LxxAWG9hic4i /Y67p75dNx8x6PekCGC3Aw9PtV3I88qCIrP8JwZrrB+MAzFmD2rJe+0F75brYfRRDJKZ Q/msHDCUPrNTyJw1C0lo6QtUh+Nv3CPaCgd3DJs8eQ/k3b6JCLMGnSsHEmVe4h7UXAcF ZPYg== 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=VaDhNNXFhhUWTkgSjDPcE9jIHDvc0J7EwPhGj9hqbDg=; b=oIj8DSyg6LPSZb/gUNyB8uSOhIhRCujfsjEbCUw+vBE41cwNLh04v1evgcoflTbF/4 OStu/HZYAFCz+6A/cdQsQFAcfmjynYV6Edb39LO57dKxPw5OweKa6ZQfvLj+knjmU8o8 PaHvPeqHTrVwc65JMpm1545PZ4aRpisSsxKUzOUKaafb3aZIHAvJg6Nph0sMwKXmwcGl mjHOX4QYdT/Q6BKdgt6Sz8bZVm5zTk1uXxFJmNB73sATjF+wKLny6zIr8vKXlYwZu4KR US/Qof3lRbOULKKzxEtI1637fgloKcKIr5jUSYmdj/rDkbrd53yk1sMqb6zUSBQs5c3d mt3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=U4r59HjW; 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 z10si691324edb.277.2021.10.19.15.38.55; Tue, 19 Oct 2021 15:39:20 -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=U4r59HjW; 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 S229835AbhJSWjU (ORCPT + 99 others); Tue, 19 Oct 2021 18:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhJSWjP (ORCPT ); Tue, 19 Oct 2021 18:39:15 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E20A2C061746 for ; Tue, 19 Oct 2021 15:36:54 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id x15-20020a056902102f00b005ba71cd7dbfso27161768ybt.8 for ; Tue, 19 Oct 2021 15:36:54 -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=VaDhNNXFhhUWTkgSjDPcE9jIHDvc0J7EwPhGj9hqbDg=; b=U4r59HjWNUbmVDmiOoXYYqpVZHqKp4+rLZ02pdOyHxb2EHjipt3QcanrHfMBoa3rT5 46DcFKiJRxQZrRbEhBFYXiTFuko4pQ5C5tx7WmOh3ox8ce6rI9/4yFHS+m/HOWpKlIrw 7Z9onRNpOALMCnrVgSQ2ak3GUAPD/Rab/YKMyZJp8Fs+FnjqNiJ0TzTZcGl3K7WUvHUK vt8BxxNp4U19TJKZLBQgLCVUJHQAAn8GY5FXIlcasCpw6bD30t9rhDA5EDyoCjKH/eGL Cc/kBpiOTrJCT8bKggekiJ28PoyiEuvGfzlC3I/YJVcxIRRBp9whVGiMU2mocdYsgib0 h6pA== 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=VaDhNNXFhhUWTkgSjDPcE9jIHDvc0J7EwPhGj9hqbDg=; b=bJeCuJW/x1a2B1OuQP/BvxV2p84/Qk4VpE8jGQjW624M1qxH9PyjWx/Yq6+fGhhNCt zZqh3duIjwTEUxgU3FbZ6GdZ8NxFbYhQyE/qfcp1lH99H7T73++hiDGzkF9rGYcYF5wc 0Ap9xHQ3aue6D7yqbgQTjC825cHDrtdWe2enjWRmUDDLZagwGVZTLYK7z6H8GJ2KoLn3 IX4fCAeyWJCwzzWEH9CGnPGYGvEzrlXab02T0TktXgTNBWhz/u5zA929ELnXgX3wSP3s M2zlN22dMofmtbIHr9U76xlVwjRkdFEGjavGebGOTLmK9fEKGrDUkvrwYugv0nnudABz MLpw== X-Gm-Message-State: AOAM532y/G9+f9Wkf2i/3E2uzj5PAC4M59GtKt7wo+pOuTQkGFVAoazN ZxSKtCJ+N+eYJ92UGQJ5u9eEUmJlrOsPCc8JUyc= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:de0:247b:5157:7c15]) (user=ndesaulniers job=sendgmr) by 2002:a25:b887:: with SMTP id w7mr6602581ybj.52.1634683014157; Tue, 19 Oct 2021 15:36:54 -0700 (PDT) Date: Tue, 19 Oct 2021 15:36:43 -0700 In-Reply-To: <20211019223646.1146945-1-ndesaulniers@google.com> Message-Id: <20211019223646.1146945-2-ndesaulniers@google.com> Mime-Version: 1.0 References: <20211019223646.1146945-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=1634683006; l=2834; s=20211004; h=from:subject; bh=31zZKmnHrPsMeReQcK7MwmH2ZeeaRVf9+ZMpH9/QAhA=; b=g12/8wiwE9txkit7fKe98XPB6Jo5bZ5mba6BV0kO9dbn65pXWfDpCYkXcn2/HlAcmBW//4ogjGTH n0jVXAvFAXMo22BQYw6Wtm/FKDQlrvXziKgG73UymQWiS1njdv50 X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [PATCH v2 1/4] 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 , Nathan Chancellor , 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.24 (just missing the 2.33 release) but was cherry-picked into 2.23 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.23. 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 --- Changes v1 -> v2: * Fix typos (2.33 -> 2.23, 2.34 -> 2.24) as per Christian. 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.1079.g6e70778dc9-goog