drm/panfrost: question about cache coherency handling

Gregory Greenman Gregory.Greenman at mobileye.com
Thu Apr 24 06:08:38 UTC 2025


Hello,

I'm new to DRM development and ran into something in the Panfrost (but also Panthor) driver I'm curious about.

In drivers/gpu/drm/panfrost/panfrost_gem.c, there's this line: obj->base.map_wc = !pfdev->coherent;
>From what I can tell, this means when the CPU isn't coherent, it uses write-combining mapping.

I'm wondering why this approach instead of something like the dma_sync_single_* functions at the appropriate places?

Thanks,
Gregory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20250424/65a8e4e0/attachment.htm>


More information about the dri-devel mailing list