mirror_ubuntu-kernels/drivers/accel
Jacek Lawrynowicz c52c35e5b4 accel/ivpu: Return max freq for DRM_IVPU_PARAM_CORE_CLOCK_RATE
DRM_IVPU_PARAM_CORE_CLOCK_RATE returns current NPU frequency which
could be 0 if device was sleeping. This value isn't really useful to
the user space, so return max freq instead which can be used to estimate
NPU performance.

Fixes: c39dc15191 ("accel/ivpu: Read clock rate only if device is up")
Cc: <stable@vger.kernel.org> # v6.7
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240402104929.941186-7-jacek.lawrynowicz@linux.intel.com
2024-04-08 10:54:21 +02:00
..
habanalabs accel/habanalabs: modify pci health check 2024-02-26 09:47:32 +02:00
ivpu accel/ivpu: Return max freq for DRM_IVPU_PARAM_CORE_CLOCK_RATE 2024-04-08 10:54:21 +02:00
qaic accel/qaic: Constify aic100_channels 2024-02-23 09:06:50 -07:00
drm_accel.c accel: constify the struct device_type usage 2024-02-26 09:59:18 +02:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00