Re: [PATCH v2] drm/mediatek: Correctly free sg_table in gem prime vmap

2023-10-06 Thread 胡俊光

Re: [PATCH v2] drm/mediatek: Correctly free sg_table in gem prime vmap

2023-10-04 Thread Chen-Yu Tsai
On Wed, Oct 4, 2023 at 4:32 PM Chen-Yu Tsai wrote: > > The MediaTek DRM driver implements GEM PRIME vmap by fetching the > sg_table for the object, iterating through the pages, and then > vmapping them. In essence, unlike the GEM DMA helpers which vmap > when the object is first created or importe

[PATCH v2] drm/mediatek: Correctly free sg_table in gem prime vmap

2023-10-04 Thread Chen-Yu Tsai
The MediaTek DRM driver implements GEM PRIME vmap by fetching the sg_table for the object, iterating through the pages, and then vmapping them. In essence, unlike the GEM DMA helpers which vmap when the object is first created or imported, the MediaTek version does it on request. Unfortunately, th