Messages in this thread | | | Date | Wed, 16 Nov 2022 14:41:07 +0000 | From | Catalin Marinas <> | Subject | Re: [PATCH V3 2/2] arm64: errata: Workaround possible Cortex-A715 [ESR|FAR]_ELx corruption |
| |
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 <catalin.marinas@arm.com>
| |