accel/qaic: Add QAIC_DETACH_SLICE_BO IOCTL
authorPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Fri, 1 Sep 2023 17:22:47 +0000 (11:22 -0600)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 22 Sep 2023 15:58:49 +0000 (09:58 -0600)
commit217b812364d360e1933d8485f063400e5dda7d66
treed02c292f695af31e07c2f3306bf675eb220e6188
parentb2576f6cf6da6adde5c698aa281c883f2376b876
accel/qaic: Add QAIC_DETACH_SLICE_BO IOCTL

Once a BO is attached with slicing configuration that BO can only be used
for that particular setting. With this new feature user can detach slicing
configuration off an already sliced BO and attach new slicing configuration
using QAIC_ATTACH_SLICE_BO.

This will support BO recycling.

detach_slice_bo() detaches slicing configuration from a BO. This new
helper function can also be used in release_dbc() as we are doing the
exact same thing.

Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
[jhugo: add documentation for new ioctl]
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901172247.11410-8-quic_jhugo@quicinc.com
Documentation/accel/qaic/qaic.rst
drivers/accel/qaic/qaic.h
drivers/accel/qaic/qaic_data.c
drivers/accel/qaic/qaic_drv.c
include/uapi/drm/qaic_accel.h