]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/mm/radix: Change pte relax sequence to handle nest MMU hang
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 30 Aug 2018 19:17:00 +0000 (21:17 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
commit0bcbf30b75c27947f87d20a866bf86278bb63324
tree9d647cb78af7db7929ac7042b9a590a2a6da332d
parenta06b55158683d571410e91709a332f950456b9f2
powerpc/mm/radix: Change pte relax sequence to handle nest MMU hang

BugLink: https://bugs.launchpad.net/bugs/1789772
When relaxing access (read -> read_write update), pte needs to be marked invalid
to handle a nest MMU bug. We also need to do a tlb flush after the pte is
marked invalid before updating the pte with new access bits.

We also move tlb flush to platform specific __ptep_set_access_flags. This will
help us to gerid of unnecessary tlb flush on BOOK3S 64 later. We don't do that
in this patch. This also helps in avoiding multiple tlbies with coprocessor
attached.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry-picked from bd5050e38aec3055ff4257ade987d808ac93b582)
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/include/asm/book3s/32/pgtable.h
arch/powerpc/include/asm/nohash/32/pgtable.h
arch/powerpc/include/asm/nohash/64/pgtable.h
arch/powerpc/include/asm/pgtable.h
arch/powerpc/mm/pgtable-book3s64.c
arch/powerpc/mm/pgtable-radix.c
arch/powerpc/mm/pgtable.c