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

2023-10-04 Thread Chen-Yu Tsai
On Tue, Oct 3, 2023 at 11:14 PM Fei Shao wrote: > > Hi, > > On Mon, Oct 2, 2023 at 5:21 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

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

2023-10-03 Thread Fei Shao
Hi, On Mon, Oct 2, 2023 at 5:21 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

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

2023-10-02 Thread AngeloGioacchino Del Regno
Il 02/10/23 11:20, Chen-Yu Tsai ha scritto: 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

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

2023-10-02 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,