diff options
| author | Jeremy Kerr <[email protected]> | 2017-05-24 06:49:59 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-05-25 13:07:44 +0000 |
| commit | d75e4919cc0b6fbcbc8d6654ef66d87a9dbf1526 (patch) | |
| tree | 4b9247e309d5b48246b0c94532ca9c81da23b2b3 /drivers/tty/serial/sccnxp.c | |
| parent | powerpc: Fix booting P9 hash with CONFIG_PPC_RADIX_MMU=N (diff) | |
| download | kernel-d75e4919cc0b6fbcbc8d6654ef66d87a9dbf1526.tar.gz kernel-d75e4919cc0b6fbcbc8d6654ef66d87a9dbf1526.zip | |
powerpc/spufs: Fix hash faults for kernel regions
Commit ac29c64089b7 ("powerpc/mm: Replace _PAGE_USER with
_PAGE_PRIVILEGED") swapped _PAGE_USER for _PAGE_PRIVILEGED, and
introduced check_pte_access() which denied kernel access to
non-_PAGE_PRIVILEGED pages.
However, it didn't add _PAGE_PRIVILEGED to the hash fault handler
for spufs' kernel accesses, so the DMAs required to establish SPE
memory no longer work.
This change adds _PAGE_PRIVILEGED to the hash fault handler for
kernel accesses.
Fixes: ac29c64089b7 ("powerpc/mm: Replace _PAGE_USER with _PAGE_PRIVILEGED")
Cc: [email protected] # v4.7+
Signed-off-by: Jeremy Kerr <[email protected]>
Reported-by: Sombat Tragolgosol <[email protected]>
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
