Re: [PATCH v3 14/16] resource: Move devmem revoke code to resource framework

2020-10-21 Thread Daniel Vetter
On Wed, Oct 21, 2020 at 8:59 PM Dan Williams wrote: > > On Wed, Oct 21, 2020 at 1:57 AM Daniel Vetter wrote: > > > > We want all iomem mmaps to consistently revoke ptes when the kernel > > takes over and CONFIG_IO_STRICT_DEVMEM is enabled. This includes the > > pci bar mmaps available through

Re: [PATCH v3 14/16] resource: Move devmem revoke code to resource framework

2020-10-21 Thread Dan Williams
On Wed, Oct 21, 2020 at 1:57 AM Daniel Vetter wrote: > > We want all iomem mmaps to consistently revoke ptes when the kernel > takes over and CONFIG_IO_STRICT_DEVMEM is enabled. This includes the > pci bar mmaps available through procfs and sysfs, which currently do > not revoke mappings. > > To

[PATCH v3 14/16] resource: Move devmem revoke code to resource framework

2020-10-21 Thread Daniel Vetter
We want all iomem mmaps to consistently revoke ptes when the kernel takes over and CONFIG_IO_STRICT_DEVMEM is enabled. This includes the pci bar mmaps available through procfs and sysfs, which currently do not revoke mappings. To prepare for this, move the code from the /dev/kmem driver to