]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/imagination: Add a per-file PVR context list
authorBrendan King <brendan.king@imgtec.com>
Fri, 18 Oct 2024 15:41:36 +0000 (15:41 +0000)
committerMatt Coster <matt.coster@imgtec.com>
Mon, 4 Nov 2024 09:41:32 +0000 (09:41 +0000)
commitb0ef514bc6bbdeb8cc7492c0f473e14cb06b14d4
tree36771ea7b8d8307fd31053db56378414ebd07ad8
parentadd4163aca0d4a86e9fe4aa513865e4237db8aef
drm/imagination: Add a per-file PVR context list

This adds a linked list of VM contexts which is needed for the next patch
to be able to correctly track VM contexts for destruction on file close.

It is only safe for VM contexts to be removed from the list and destroyed
when not in interrupt context.

Signed-off-by: Brendan King <brendan.king@imgtec.com>
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/e57128ea-f0ce-4e93-a9d4-3f033a8b06fa@imgtec.com
drivers/gpu/drm/imagination/pvr_context.c
drivers/gpu/drm/imagination/pvr_context.h
drivers/gpu/drm/imagination/pvr_device.h
drivers/gpu/drm/imagination/pvr_drv.c