From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EACBC433DF for ; Mon, 6 Jul 2020 16:58:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C57C20702 for ; Mon, 6 Jul 2020 16:58:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UbSN4Cfe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C57C20702 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VfWQ2C7d4xE+ANlLdE41QKw1SGGe9dCNOvsTHq8tR6Q=; b=UbSN4CfeFcG/sB+js0byAzGn5 fftvlvzgUfObf8o9F/ZoYzzsJuphTi2dtGZ6q39tMicIL/lihtTODsvT/kVaniXg8IfLXqO/wwBpT Saq3rcfD6f8So+PlBfFEsI7zet0YrT/ps3LIITCARjtBcrF36gjd9raOYI2iuI8WLVodM/MBNIXsr INUUCpcEu71PZ6cgpBf6HmHQxtH8qyz6NZcQWPLc7wG1TV/3LMDjyIPW1l6UP9WKDRR1Nk/ogP3QO JU+//uZ0XU1XNLrHqZH2AGsi6pYoRxqcQvF9BTWHsPc/oMNUoifYhfePllAWLmbwoFcPVLVRiUQoE xu89lZ0+A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsUQk-0005Uu-2V; Mon, 06 Jul 2020 16:57:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsUQg-0005U2-Uc for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2020 16:57:19 +0000 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 0D43B1FB; Mon, 6 Jul 2020 09:57:18 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.13.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D41DA3F68F; Mon, 6 Jul 2020 09:57:15 -0700 (PDT) Date: Mon, 6 Jul 2020 17:57:12 +0100 From: Mark Rutland To: Marc Zyngier Subject: Re: [PATCH v2 3/4] arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040 Message-ID: <20200706165712.GB61340@C02TD0UTHF1T.local> References: <20200706163802.1836732-1-maz@kernel.org> <20200706163802.1836732-4-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200706163802.1836732-4-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200706_125719_068987_EFB93AF4 X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, Catalin Marinas , Daniel Lezcano , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Thomas Gleixner , Vincenzo Frascino , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 06, 2020 at 05:38:01PM +0100, Marc Zyngier wrote: > ARM64_WORKAROUND_1418040 requires that AArch32 EL0 accesses to > the virtual counter register are trapped and emulated by the kernel. > This makes the vdso pretty pointless, and in some cases livelock > prone. > > Provide a workaround entry that limits the vdso to 64bit tasks. > > Cc: stable@vger.kernel.org > Signed-off-by: Marc Zyngier Acked-by: Mark Rutland Mark. > --- > drivers/clocksource/arm_arch_timer.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c > index a8e4fb429f52..6c3e84180146 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++ b/drivers/clocksource/arm_arch_timer.c > @@ -480,6 +480,14 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = { > .set_next_event_virt = erratum_set_next_event_tval_virt, > }, > #endif > +#ifdef CONFIG_ARM64_ERRATUM_1418040 > + { > + .match_type = ate_match_local_cap_id, > + .id = (void *)ARM64_WORKAROUND_1418040, > + .desc = "ARM erratum 1418040", > + .disable_compat_vdso = true, > + }, > +#endif > }; > > typedef bool (*ate_match_fn_t)(const struct arch_timer_erratum_workaround *, > -- > 2.27.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel