aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2023-11-21 05:43:14 +0000
committerVille Syrjälä <[email protected]>2023-11-23 12:33:03 +0000
commitbc53c4d56eb24dbe56cd2c66ef4e9fc9393b1533 (patch)
tree19e9d9d050236b83bbfdf07062292170fd8a5f09 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/i915/display: Do not check psr2 if psr/panel replay is not supported (diff)
downloadkernel-bc53c4d56eb24dbe56cd2c66ef4e9fc9393b1533.tar.gz
kernel-bc53c4d56eb24dbe56cd2c66ef4e9fc9393b1533.zip
drm/i915: Check pipe active state in {planes,vrr}_{enabling,disabling}()
{planes,vrr}_{enabling,disabling}() are supposed to indicate whether the specific hardware feature is supposed to be enabling or disabling. That can only makes sense if the pipe is active overall. So check for that before we go poking at the hardware. I think we're semi-safe currently on due to: - intel_pre_plane_update() doesn't get called when the pipe was not-active prior to the commit, but this is actually a bug. This saves vrr_disabling(), and vrr_enabling() is called from deeper down where we have already checked hw.active. - active_planes mirrors the crtc's hw.active Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions