[PATCH 1/2] [v2] drm/nouveau: retain device pointer in nvkm_gsp_mem object
Danilo Krummrich
dakr at redhat.com
Mon Jul 29 23:10:30 UTC 2024
On 7/30/24 1:09 AM, Timur Tabi wrote:
> On Mon, 2024-07-29 at 18:07 -0500, Timur Tabi wrote:
>> Store the struct device pointer used to allocate the DMA buffer in
>> the nvkm_gsp_mem object. This allows nvkm_gsp_mem_dtor() to release
>> the buffer without needing the nvkm_gsp. This is needed so that
>> we can retain DMA buffers even after the nvkm_gsp object is deleted.
>>
>> Signed-off-by: Timur Tabi <ttabi at nvidia.com <mailto:ttabi at nvidia.com>>
>>
>> v2:
>> added get/put_device calls
>
> Ugh, I forgot to move this to under the ---
No worries. I can remove when I apply the patch.
- Danilo
More information about the Nouveau
mailing list