diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2014-05-09 04:04:03 +0400 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-05-20 16:42:00 +0400 |
commit | d8ade3526b2aa0505132c404c05a38b73ea15490 (patch) | |
tree | 8e4e6e84af53642d1e5b4e62900d7a6b0cd4ee60 /drivers/gpu/drm/radeon/radeon_bios.c | |
parent | 89d2618dbd114e679b860c3de1df3fe43ee40f6e (diff) | |
download | linux-d8ade3526b2aa0505132c404c05a38b73ea15490.tar.xz |
drm/radeon: handle non-VGA class pci devices with ATRM
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_bios.c')
-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 b3633d9a5317..9ab30976287d 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; |