[PATCH v1 02/11] mm: convert track_pfn_insert() to pfnmap_sanitize_pgprot()

Peter Xu peterx at redhat.com
Tue Apr 29 16:36:31 UTC 2025


On Tue, Apr 29, 2025 at 06:25:06PM +0200, David Hildenbrand wrote:
> I do wonder why we even have to lookup the memtype again if the caller
> apparently reserved it (which implied checking it). All a bit weird.

Maybe it's because the memtype info isn't always visible to the upper
layers, e.g. default pci_iomap() for MMIOs doesn't need to specify anything
on cache mode.  There's some pci_iomap_wc() variance, but still looks like
only the internal has full control..

-- 
Peter Xu



More information about the dri-devel mailing list