OSDN Git Service

accel/ivpu: Send VPU_JSM_MSG_CONTEXT_DELETE when deleting context
authorAndrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Thu, 2 Feb 2023 09:21:12 +0000 (10:21 +0100)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Mon, 6 Feb 2023 08:01:56 +0000 (09:01 +0100)
commit38257f514d85cd9d3f7586e768cec4f246635f77
treebdbbe9a32137cca5b30416168f87a544ab3bf661
parent4ea1e504db5b776892e2f5b0c5f05af6a046286b
accel/ivpu: Send VPU_JSM_MSG_CONTEXT_DELETE when deleting context

The VPU_JSM_MSG_CONTEXT_DELETE will remove any resources associated
with the SSID, that included any blobs create by the user space
application.

The command can also remove doorbell registrations, but since this
does not work in HW scheduling case, we do not depend on this
capability and unregister the doorbells explicitly.

Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230202092114.2637452-3-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_drv.c
drivers/accel/ivpu/ivpu_jsm_msg.c
drivers/accel/ivpu/ivpu_jsm_msg.h