Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10463937rwp; Thu, 20 Jul 2023 22:47:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTleaLQE6xCAITWRijIKR9vDiIsIQyzjF4+i/saBbBvRQLGZrdv1piv9dNtbcD0xFuU7Ba X-Received: by 2002:a17:907:7601:b0:99b:4d3d:c9b7 with SMTP id jx1-20020a170907760100b0099b4d3dc9b7mr947607ejc.31.1689918445042; Thu, 20 Jul 2023 22:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689918445; cv=none; d=google.com; s=arc-20160816; b=F1fOzbghgN5JMTHNL4RzfXlv38SEPtovduG3H0QFEVUTqVSSYet0NEXozwRCHhfEdN wW2o1Y/oE8QruGxUR6FqBeyx+aoWn15nr6mrAVRUcC8wc1E5q8wfruQjLo+ezFO3ZmXv medHjXWTVeSUUiMfJ8X9sNaLBPc6Q8ZB3B7FfiR6TclEZZkXdeIWzKeXoPsOk4Beuj08 LFzUMedB3El2g6JwQKLI6mTg61WRYbUxkOjUk3IUMzwIhX4/jNKOpHN2ENif/nw4xaiu xkHAUOZNfKD5pf/CJ7u60dXnVgcFAfUBEa3aj5e5eQWy7Yvz1ZPAcO7+lLrx8hFPlHre +6gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3R2SQtVGQPNYtZNthsSOrUvKZLMm70d16IvaKWmbl7U=; fh=eokByqwVSE6ekGURKFlmMD5biNn8XE/fuPgZNXQpiWo=; b=J12/KKJmt37kDaEq655LgXTUiMQsOmai6ivggaxb49Fc+dYfLgQoc+x3UNdLdGOLO2 z5t09Logix7Ea0yoNOyLqYyKl7KVkdSej0nToALHYI6inownPiQbJ36RGtoq5zLZD8/j 4QcgstZ3CdRtsodd8o27Gbhhr/1TDYR78EkaqKmaf9Mynl6UaRukA+pOEUwwv7svjUCS FSL4XrNe6UsMex1QX0V1q7rzFMDmESM1ShvzW4AOuoB0kwqg1z+7ncFKWLiuZCQr3osL eSiH2+KZiKiL9vKkUtVdcmB7s/A59dSuoiDPIuGx6mdw9qUTEFtZi82F8io1wME9iCWT C1BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lECO1F7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx1-20020a170906ca4100b0099315476299si1688597ejb.1040.2023.07.20.22.47.00; Thu, 20 Jul 2023 22:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lECO1F7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbjGUF1g (ORCPT + 99 others); Fri, 21 Jul 2023 01:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGUF1f (ORCPT ); Fri, 21 Jul 2023 01:27:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07D98B4; Thu, 20 Jul 2023 22:27:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 95C316106D; Fri, 21 Jul 2023 05:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D285C433C9; Fri, 21 Jul 2023 05:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689917252; bh=1afuGQPjD3KQx3/4ehbMFfIxt3CD7zfKs3ykg3JJelE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lECO1F7bktgAsOfWmqS2j/yGnDirF99NzuIcsBZJOMFEISz0FNvFWz+j88jdaqk4o YgegmaKK9BCb0lgGHbKo7IB4GRDw2v5rhYVTwn31Cr9ruXOoPA1wmBA3psI0nXislB /f7OVGBoznS8wQy2v2jJlOlXV+58hBvjHRYViUuc= Date: Fri, 21 Jul 2023 07:27:29 +0200 From: Greg KH To: Easwar Hariharan Cc: stable@vger.kernel.org, easwar.hariharan@microsoft.com, catalin.marinas@arm.com, will@kernel.org, corbet@lwn.net, robin.murphy@arm.com, joro@8bytes.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH 5.15 2/4] arm64: errata: Add workaround for TSB flush failures Message-ID: <2023072131-supremacy-modify-f9ff@gregkh> References: <1689895414-17425-1-git-send-email-eahariha@linux.microsoft.com> <1689895414-17425-3-git-send-email-eahariha@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1689895414-17425-3-git-send-email-eahariha@linux.microsoft.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 20, 2023 at 04:23:32PM -0700, Easwar Hariharan wrote: > From: Suzuki K Poulose > > commit fa82d0b4b833790ac4572377fb777dcea24a9d69 upstream > > Arm Neoverse-N2 (#2067961) and Cortex-A710 (#2054223) suffers > from errata, where a TSB (trace synchronization barrier) > fails to flush the trace data completely, when executed from > a trace prohibited region. In Linux we always execute it > after we have moved the PE to trace prohibited region. So, > we can apply the workaround every time a TSB is executed. > > The work around is to issue two TSB consecutively. > > NOTE: This errata is defined as LOCAL_CPU_ERRATUM, implying > that a late CPU could be blocked from booting if it is the > first CPU that requires the workaround. This is because we > do not allow setting a cpu_hwcaps after the SMP boot. The > other alternative is to use "this_cpu_has_cap()" instead > of the faster system wide check, which may be a bit of an > overhead, given we may have to do this in nvhe KVM host > before a guest entry. > > Cc: Will Deacon > Cc: Catalin Marinas > Cc: Mathieu Poirier > Cc: Mike Leach > Cc: Mark Rutland > Cc: Anshuman Khandual > Cc: Marc Zyngier > Acked-by: Catalin Marinas > Reviewed-by: Mathieu Poirier > Reviewed-by: Anshuman Khandual > Signed-off-by: Suzuki K Poulose > Link: https://lore.kernel.org/r/20211019163153.3692640-4-suzuki.poulose@arm.com > Signed-off-by: Will Deacon > --- > Documentation/arm64/silicon-errata.rst | 4 ++++ > arch/arm64/Kconfig | 33 ++++++++++++++++++++++++++ > arch/arm64/include/asm/barrier.h | 16 ++++++++++++- > arch/arm64/kernel/cpu_errata.c | 19 +++++++++++++++ > arch/arm64/tools/cpucaps | 1 + > 5 files changed, 72 insertions(+), 1 deletion(-) As you forwarded this patch on to me, you forgot to sign-off on it :( I've taken patch 1/4 of this series, but not the rest. Please redo them, and send the needed backports for 6.1.y and 6.4.y as a separate series (obviously I can't apply patches in a series to trees that already have them.) thanks, greg k-h