drm/radeon: Unbreak HPD handling for r600+
authorLyude <lyude@redhat.com>
Thu, 11 May 2017 23:31:12 +0000 (19:31 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 8 Jun 2017 10:41:59 +0000 (06:41 -0400)
commitb96e5f18eb815c20a31811760f5b4330c25a59f9
tree197139277a35176478f8c59cde1bbe8c6256199a
parent81402e4033a7d10c6f841bff364ae0bf0f2fa505
drm/radeon: Unbreak HPD handling for r600+

[ Upstream commit 3d18e33735a02b1a90aecf14410bf3edbfd4d3dc ]

We end up reading the interrupt register for HPD5, and then writing it
to HPD6 which on systems without anything using HPD5 results in
permanently disabling hotplug on one of the display outputs after the
first time we acknowledge a hotplug interrupt from the GPU.

This code is really bad. But for now, let's just fix this. I will
hopefully have a large patch series to refactor all of this soon.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lyude <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/si.c