[PATCH 1/2] accel/ivpu: Fix the NPU's DPU frequency calculation
Jeff Hugo
jeff.hugo at oss.qualcomm.com
Fri Apr 4 15:09:01 UTC 2025
On 4/1/2025 9:59 AM, Maciej Falkowski wrote:
> From: Andrzej Kacprowski <Andrzej.Kacprowski at intel.com>
>
> Fix the frequency returned to the user space by
> the DRM_IVPU_PARAM_CORE_CLOCK_RATE GET_PARAM IOCTL.
> The kernel driver returned CPU frequency for MTL and bare
> PLL frequency for LNL - this was inconsistent and incorrect
> for both platforms. With this fix the driver returns maximum
> frequency of the NPU data processing unit (DPU) for all HW
> generations. This is what user space always expected.
>
> Also do not set CPU frequency in boot params - the firmware
> does not use frequency passed from the driver, it was only
> used by the early pre-production firmware.
> With that we can remove CPU frequency calculation code.
>
> Show NPU frequency in FREQ_CHANGE interrupt when frequency
> tracking is enabled.
>
> Fixes: 8a27ad81f7d3 ("accel/ivpu: Split IP and buttress code")
> Cc: <stable at vger.kernel.org> # v6.11+
> Signed-off-by: Andrzej Kacprowski <Andrzej.Kacprowski at intel.com>
> Signed-off-by: Maciej Falkowski <maciej.falkowski at linux.intel.com>
Reviewed-by: Jeff Hugo <jeff.hugo at oss.qualcomm.com>
More information about the dri-devel
mailing list