Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1245834pxb; Wed, 20 Oct 2021 00:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+IkpxRF2I4f9tT72Y9f/cZ6YOuvy7KHaPHIR+vvIP+0zsRupdq1H8yDaACU/YcYXwRANn X-Received: by 2002:a17:90a:be02:: with SMTP id a2mr5616393pjs.59.1634716395746; Wed, 20 Oct 2021 00:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634716395; cv=none; d=google.com; s=arc-20160816; b=Hbd1VqatwHnxi6tGTyqZTg3oEnyejhg2RdDxNccCKTB/Rwrms5GG+9oOrDliGztQsT zVBi+Hj7J7TAVexR1YafWhSGI3qdRzs88nPSAhXKDhRkckaO5uirm6OalziaFNUljikr EgR39LfLF4qqmN4EueJP2dSkMvJAiS0nTYw+Yn+EgufpnF6LtBwC9c+T5i0//crmambW AjBw0puHt+dZjMmKngrDG9A5FvVPCslC7xi+6yIHf1xEQdPo3govBtB/IILI0ihhqIOt RDCVKd2DAnRBgK77rXVB05G9Djc9Zdie4geLjpCJeDnPieRnYZuOIA5rd4qlCOOQFxnB JhXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=pC8IdnQGVRQGit/sLRnhri08vOgRKqNBG8kbMplP4u4=; b=P3ACO9hOUpsqOsLsKw88s6E2FJ14hH4uccUyXbrARj2WlpjOl5OEm/Lppne+H/kuBe +kr6+3ecFxDWmnyWNc/iciiMQMNcVluqXlNluTUhoGgA3SmkVKXqxCQjOiBes/s+7H/w kLJuER9X6S0T3lyPdni2HnsdKO/w21CSyru096e7hlPC2G3rClB5cieSeNKur1cv5rRR c2JVpI2whoerx4byX9LOA+WoIo1xxUceshfK7uo3vODufrj++4Yio3NbDmmaHosOFZoH C6A92lyp8r+jAKnqGyR+9dyam1RlvWoIrPpHvuRZmpXxHY9xTjGuWXUAPQoO7iIrMUXs f9Vw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 188si1873893pga.6.2021.10.20.00.53.03; Wed, 20 Oct 2021 00:53:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbhJTHyS (ORCPT + 99 others); Wed, 20 Oct 2021 03:54:18 -0400 Received: from foss.arm.com ([217.140.110.172]:57072 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhJTHyQ (ORCPT ); Wed, 20 Oct 2021 03:54:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B9DCD2F; Wed, 20 Oct 2021 00:52:02 -0700 (PDT) Received: from [192.168.1.131] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BFC533F70D; Wed, 20 Oct 2021 00:52:00 -0700 (PDT) Subject: Re: [PATCH v2 2/4] arm64: vdso32: drop test for -march=armv8-a To: Nick Desaulniers , Catalin Marinas , Will Deacon Cc: llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nathan Chancellor , Arnd Bergmann References: <20211019223646.1146945-1-ndesaulniers@google.com> <20211019223646.1146945-3-ndesaulniers@google.com> From: Vincenzo Frascino Message-ID: Date: Wed, 20 Oct 2021 09:52:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211019223646.1146945-3-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/20/21 12:36 AM, Nick Desaulniers wrote: > As Arnd points out: > gcc-4.8 already supported -march=armv8, and we require gcc-5.1 now, so > both this #if/#else construct and the corresponding > "cc32-option,-march=armv8-a" check should be obsolete now. > > Link: https://lore.kernel.org/lkml/CAK8P3a3UBEJ0Py2ycz=rHfgog8g3mCOeQOwO0Gmp-iz6Uxkapg@mail.gmail.com/ > Suggested-by: Arnd Bergmann > Signed-off-by: Nick Desaulniers Reviewed-by: Vincenzo Frascino > --- > arch/arm64/include/asm/vdso/compat_barrier.h | 7 ------- > arch/arm64/kernel/vdso32/Makefile | 8 +------- > 2 files changed, 1 insertion(+), 14 deletions(-) > > diff --git a/arch/arm64/include/asm/vdso/compat_barrier.h b/arch/arm64/include/asm/vdso/compat_barrier.h > index fb60a88b5ed4..3ac35f4a667c 100644 > --- a/arch/arm64/include/asm/vdso/compat_barrier.h > +++ b/arch/arm64/include/asm/vdso/compat_barrier.h > @@ -20,16 +20,9 @@ > > #define dmb(option) __asm__ __volatile__ ("dmb " #option : : : "memory") > > -#if __LINUX_ARM_ARCH__ >= 8 > #define aarch32_smp_mb() dmb(ish) > #define aarch32_smp_rmb() dmb(ishld) > #define aarch32_smp_wmb() dmb(ishst) > -#else > -#define aarch32_smp_mb() dmb(ish) > -#define aarch32_smp_rmb() aarch32_smp_mb() > -#define aarch32_smp_wmb() dmb(ishst) > -#endif > - > > #undef smp_mb > #undef smp_rmb > diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile > index 89299a26638b..1407516e041e 100644 > --- a/arch/arm64/kernel/vdso32/Makefile > +++ b/arch/arm64/kernel/vdso32/Makefile > @@ -65,13 +65,7 @@ endif > # From arm vDSO Makefile > VDSO_CAFLAGS += -fPIC -fno-builtin -fno-stack-protector > VDSO_CAFLAGS += -DDISABLE_BRANCH_PROFILING > - > - > -# Try to compile for ARMv8. If the compiler is too old and doesn't support it, > -# fall back to v7. There is no easy way to check for what architecture the code > -# is being compiled, so define a macro specifying that (see arch/arm/Makefile). > -VDSO_CAFLAGS += $(call cc32-option,-march=armv8-a -D__LINUX_ARM_ARCH__=8,\ > - -march=armv7-a -D__LINUX_ARM_ARCH__=7) > +VDSO_CAFLAGS += -march=armv8-a > > VDSO_CFLAGS := $(VDSO_CAFLAGS) > VDSO_CFLAGS += -DENABLE_COMPAT_VDSO=1 > -- Regards, Vincenzo