[PATCH 1/2] [v2] drm/nouveau: retain device pointer in nvkm_gsp_mem object
Timur Tabi
ttabi at nvidia.com
Mon Jul 29 23:09:02 UTC 2024
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 ---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20240729/ebc3ff37/attachment.htm>
More information about the Nouveau
mailing list