[PATCH 6/8] accel/ivpu: Return max freq for DRM_IVPU_PARAM_CORE_CLOCK_RATE

Jeffrey Hugo quic_jhugo at quicinc.com
Fri Apr 5 15:26:25 UTC 2024


On 4/2/2024 4:49 AM, Jacek Lawrynowicz wrote:
> DRM_IVPU_PARAM_CORE_CLOCK_RATE returned current NPU frequency which

Commit text should be present tense, so returned->returns

> could be 0 if device was sleeping. This value wasn't really useful to

also wasn't->isn't

> the user space, so return max freq instead which can be used to estimate
> NPU performance.
> 
> Fixes: c39dc15191c4 ("accel/ivpu: Read clock rate only if device is up")
> Cc: <stable at vger.kernel.org> # v6.7
> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz at linux.intel.com>

With the above,
Reviewed-by: Jeffrey Hugo <quic_jhugo at quicinc.com>


More information about the dri-devel mailing list