[Intel-gfx] [PATCH] drm-buf: Add debug option
chris at chris-wilson.co.uk
Wed Jan 13 15:43:34 UTC 2021
Quoting Daniel Vetter (2021-01-13 14:06:04)
> We have too many people abusing the struct page they can get at but
> really shouldn't in importers. Aside from that the backing page might
> simply not exist (for dynamic p2p mappings) looking at it and using it
> e.g. for mmap can also wreak the page handling of the exporter
> completely. Importers really must go through the proper interface like
> dma_buf_mmap for everything.
If the exporter doesn't want to expose the struct page, why are they
setting it in the exported sg_table?
More information about the Intel-gfx