[RFC] arm64: mm: use pgprot_device for device in phys_mem_access_prot
Catalin Marinas
catalin.marinas at arm.com
Thu Jul 21 09:03:00 PDT 2016
On Thu, Jul 21, 2016 at 03:13:44PM +0800, Jisheng Zhang wrote:
> Normally, in arm64, kernel driver maps register space as device nGnRE. But
> if we access the register space via. /dev/mem, then the mapping is
> device nGnRnE, is there a mismatch here?
Possibly, but the behaviour is not undefined. The nGnRnE may lose the nE
behaviour (which is a hint anyway, it may not be honoured).
/dev/mem is a pretty bad idea in general.
--
Catalin
More information about the linux-arm-kernel
mailing list