accel/ivpu: Extend get_param ioctl to identify capabilities
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Mon, 31 Jul 2023 16:12:56 +0000 (18:12 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Wed, 9 Aug 2023 11:48:56 +0000 (13:48 +0200)
commitaa5f04d2e5a842351449034e619913e1c721a37c
treea4078efe2c8d1416f687b8bf967a78bd3f1ce1d2
parent9ab43e95f922e61f1fd02585caed34cfaf16cef6
accel/ivpu: Extend get_param ioctl to identify capabilities

Add DRM_IVPU_PARAM_CAPABILITIES parameters to get_param ioctl to query
driver capabilities. For now use it for identify metric streamer and
new dma memory range features. Currently upstream version of intel_vpu
does not have those, they will be added it the future.

Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230731161258.2987564-5-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_drv.c
include/uapi/drm/ivpu_accel.h