]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/vpe: fix vpe dpm clk ratio setup failed
authorPeyton Lee <peytolee@amd.com>
Tue, 30 Apr 2024 14:09:09 +0000 (22:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 19:43:48 +0000 (15:43 -0400)
commit3f19cffde93585b25a007b108cc4b5bd149226c1
tree86afe24f5127a0a4e561b7f6ba8b48850b744c49
parentc6f79832b8bf6a0ff40d36d3cb22e27419ec8aef
drm/amdgpu/vpe: fix vpe dpm clk ratio setup failed

Some version of BIOS does not enable all clock levels,
resulting in high level clock frequency of 0.
The number of valid CLKs must be confirmed in advance.

Signed-off-by: Peyton Lee <peytolee@amd.com>
Reviewed-by: Lang Yu <lang.yu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c