diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2014-05-08 20:04:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-11 12:03:23 -0700 |
commit | caf3d430ba12e30567f20950b62faa51a264ca38 (patch) | |
tree | 08118efc78e8c1ff69405f4ac16f6ccdf9760a58 /drivers/gpu/drm/radeon | |
parent | 739b79fb90dd187f5377aa9ddaaaa2470007ddf6 (diff) | |
download | linux-3.10-caf3d430ba12e30567f20950b62faa51a264ca38.tar.gz linux-3.10-caf3d430ba12e30567f20950b62faa51a264ca38.tar.bz2 linux-3.10-caf3d430ba12e30567f20950b62faa51a264ca38.zip |
drm/radeon: handle non-VGA class pci devices with ATRM
commit d8ade3526b2aa0505132c404c05a38b73ea15490 upstream.
Newer PX systems have non-VGA pci class dGPUs. Update
the ATRM fetch method to handle those cases.
bug:
https://bugzilla.kernel.org/show_bug.cgi?id=75401
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_bios.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c index 061b227dae0..b131520521e 100644 --- a/drivers/gpu/drm/radeon/radeon_bios.c +++ b/drivers/gpu/drm/radeon/radeon_bios.c @@ -196,6 +196,20 @@ static bool radeon_atrm_get_bios(struct radeon_device *rdev) } } + if (!found) { + while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) { + dhandle = ACPI_HANDLE(&pdev->dev); + if (!dhandle) + continue; + + status = acpi_get_handle(dhandle, "ATRM", &atrm_handle); + if (!ACPI_FAILURE(status)) { + found = true; + break; + } + } + } + if (!found) return false; |