Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp720849rwb; Wed, 16 Nov 2022 06:54:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf54y5EoZzVedHLDKMwA48ZyP+cxRHXSxHYXYHM3qI/96gW/AyvU4J49vN7oA/s6U2Reo9xX X-Received: by 2002:aa7:c993:0:b0:461:4fd3:377f with SMTP id c19-20020aa7c993000000b004614fd3377fmr19138270edt.234.1668610479694; Wed, 16 Nov 2022 06:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668610479; cv=none; d=google.com; s=arc-20160816; b=yJVaAphEgvWk+EKLYUJB7xSd4vOU/NqPXVvT2iaQiFWphgXAMuwJ5xWzWJgtwuM9jp 2PBKVsgVdA4ORiNM30liiwOzcq/E41at9ymoz1s5EIR5CFQezgzlbO+gz59IxwCBGb1t CUw2p1fdX2sfa2QyFUFbZVhUbeO9EVPZfsrnnxE9p5YSxBr2U1gS6A2D1QJnkkSEtoaG QiuTQ5K6Jom52R1dg1SCYuF0o2/Prly9EeTB/khRofJYVwe8lpIqqEBarssoOXb8gRJt y2GP/3w2gj5t/BA766meQKJlCVPwW9CCMOWbYXeJYGD5WIbX86QKYVI3HXnXtGxO5uWG GNrQ== 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; bh=VfLL38DIPQkyDYR2ZXwrO2zPGambiLMF2FCijInDVNs=; b=f7avA81GEtjIwgvVoPMsRfatClAu2dkQCBiGOTlS2yDMic0eTZ+xcMIpqtYynMmsbR 4MiFzc6MZJ2hbpPWGzY5TR0J/Zxufn/zmiOCKyAsZihoBm52xgd3GVAsiNTXvDOuivf/ +oS8tXChiuwReXGwV3Pfc/csW7DIEhZUjVq1T+dpt6lpmMFS0/35R8Gx1bOVHrM4yoj8 aKEgl9u4ZHHBCrl3TnluWNIh6w5QpxH/UFso/RAJgwBOnz396rOUkLzVjhAD3rss8b7q uhpWQ+10Q8ymPPf47cJ/LFx7HBsDDB3HDri9H/85q/Zzy1hCC6+LSvoRAY6a6EEfdLUr PEGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a05640226c300b0045d9a3adf48si15916233edd.591.2022.11.16.06.54.17; Wed, 16 Nov 2022 06:54:39 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233514AbiKPOlk (ORCPT + 91 others); Wed, 16 Nov 2022 09:41:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233569AbiKPOlR (ORCPT ); Wed, 16 Nov 2022 09:41:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3983E0A0; Wed, 16 Nov 2022 06:41:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A99561D94; Wed, 16 Nov 2022 14:41:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D9EAC433C1; Wed, 16 Nov 2022 14:41:12 +0000 (UTC) Date: Wed, 16 Nov 2022 14:41:07 +0000 From: Catalin Marinas To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will@kernel.org, Suzuki K Poulose , James Morse , Jonathan Corbet , Mark Rutland , linux-doc@vger.kernel.org Subject: Re: [PATCH V3 2/2] arm64: errata: Workaround possible Cortex-A715 [ESR|FAR]_ELx corruption Message-ID: References: <20221116140915.356601-1-anshuman.khandual@arm.com> <20221116140915.356601-3-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116140915.356601-3-anshuman.khandual@arm.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Wed, Nov 16, 2022 at 07:39:15PM +0530, Anshuman Khandual wrote: > diff --git a/arch/arm64/include/asm/hugetlb.h b/arch/arm64/include/asm/hugetlb.h > index d20f5da2d76f..6a4a1ab8eb23 100644 > --- a/arch/arm64/include/asm/hugetlb.h > +++ b/arch/arm64/include/asm/hugetlb.h > @@ -49,6 +49,15 @@ extern pte_t huge_ptep_get(pte_t *ptep); > > void __init arm64_hugetlb_cma_reserve(void); > > +#define huge_ptep_modify_prot_start huge_ptep_modify_prot_start > +extern pte_t huge_ptep_modify_prot_start(struct vm_area_struct *vma, > + unsigned long addr, pte_t *ptep); > + > +#define huge_ptep_modify_prot_commit huge_ptep_modify_prot_commit > +extern void huge_ptep_modify_prot_commit(struct vm_area_struct *vma, > + unsigned long addr, pte_t *ptep, > + pte_t old_pte, pte_t new_pte); I wonder whether we should have kept this as static inline in the header file. But we can move them later if anyone complains of a performance regression. Reviewed-by: Catalin Marinas