Re: [PATCH] powerpc/spufs: Fix hash faults for kernel regions

2017-05-24 Thread Aneesh Kumar K.V
Jeremy Kerr writes: > Change ac29c64089b7 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 requir

[PATCH] powerpc/spufs: Fix hash faults for kernel regions

2017-05-23 Thread Jeremy Kerr
Change ac29c64089b7 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 lon