]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/amd/display: don't call dm_pp_ function from an fpu block
authorHarry Wentland <harry.wentland@amd.com>
Wed, 30 Jan 2019 20:45:18 +0000 (15:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Mar 2019 20:31:20 +0000 (15:31 -0500)
commit59d3191f14dc18881fec1172c7096b7863622803
tree7a2bcd619ed03ab60ed6a9cca2a255ee06de77e3
parent1e2930374f565312e726f86150d9d1484f81c4d9
drm/amd/display: don't call dm_pp_ function from an fpu block

Powerplay functions called from dm_pp_* functions tend to do a
mutex_lock which isn't safe to do inside a kernel_fpu_begin/end block as
those will disable/enable preemption.

Rearrange the dm_pp_get_clock_levels_by_type_with_voltage calls to make
sure they happen outside of kernel_fpu_begin/end.

Cc: stable@vger.kernel.org
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c