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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 BE15EC6369E for ; Wed, 18 Nov 2020 15:26:39 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 1C0FB207D3 for ; Wed, 18 Nov 2020 15:26:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xen.org header.i=@xen.org header.b="GO4mFFHm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C0FB207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.30044.59760 (Exim 4.92) (envelope-from ) id 1kfPLY-00036k-Gi; Wed, 18 Nov 2020 15:26:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 30044.59760; Wed, 18 Nov 2020 15:26:12 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfPLY-00036d-Cr; Wed, 18 Nov 2020 15:26:12 +0000 Received: by outflank-mailman (input) for mailman id 30044; Wed, 18 Nov 2020 15:26:10 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfPLW-00036Y-Dk for xen-devel@lists.xenproject.org; Wed, 18 Nov 2020 15:26:10 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfPLV-0003lK-2l; Wed, 18 Nov 2020 15:26:09 +0000 Received: from [54.239.6.190] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfPLU-00074o-SS; Wed, 18 Nov 2020 15:26:09 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfPLW-00036Y-Dk for xen-devel@lists.xenproject.org; Wed, 18 Nov 2020 15:26:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=O7LyMIkIfQbqsa+O5wB6y8CzGAuhic2WtHR2zN0NROI=; b=GO4mFFHmkY2ldj1mS1hD7TM+8o TIh7p0VfEM4TAaTLAoU+NaNXchFMtUHRV8rDhwdoN0Pxj+d2AJVz3jZBuweESxq/zE9cQuFrksE8U nISw8VNETyjL2aCPrMFpHgMFiUfGlNZw05oJNFbpZiYEUsg9lx8PJphfGjilK21ds/nM=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfPLV-0003lK-2l; Wed, 18 Nov 2020 15:26:09 +0000 Received: from [54.239.6.190] (helo=a483e7b01a66.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfPLU-00074o-SS; Wed, 18 Nov 2020 15:26:09 +0000 Subject: Re: [PATCH v2] xen/arm: Add workaround for Cortex-A76/Neoverse-N1 erratum #1286807 To: Michal Orzel , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Volodymyr Babchuk , bertrand.marquis@arm.com References: <20201116121140.26763-1-michal.orzel@arm.com> From: Julien Grall Message-ID: <1fe61e2f-a6fc-c1c8-2f29-0c62cc73cb3c@xen.org> Date: Wed, 18 Nov 2020 15:26:07 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit On 18/11/2020 07:12, Michal Orzel wrote: > Hi Julien, Hi Michal, > On 17.11.2020 18:30, Julien Grall wrote: >> Hi Michal, >> >> On 16/11/2020 12:11, Michal Orzel wrote: >>> On the affected Cortex-A76/Neoverse-N1 cores (r0p0 to r3p0), >>> if a virtual address for a cacheable mapping of a location is being >>> accessed by a core while another core is remapping the virtual >>> address to a new physical page using the recommended break-before-make >>> sequence, then under very rare circumstances TLBI+DSB completes before >>> a read using the translation being invalidated has been observed by >>> other observers. The workaround repeats the TLBI+DSB operation >>> for all the TLB flush operations on purpose. >> >> Sorry for nitpicking, the commit message should contain enough information for future reader to understand why this was done "on purpose". >> >> So how about: >> >> "The workaround repeats the TLBI+DSB operation for all the TLB flush operations. While this is stricly not necessary, we don't want to take any risk.". >> >> I can fix it on commit. >> > Ok I agree to add this extra clarification. > Please go on and fix it on commit/etc. Thanks. I have committed now with an extra small change (I hope that's fine). I decided to not add the extra-clarification in the Kconfig for two reasons: 1) The description is already pretty long and I wanted to keep it short. A more user interested with the workaround would likely go and read the code. 2) There are a risk the description will get desynchronized in the future. So better to keep the justification close to the implementation. Cheers, -- Julien Grall