diff options
author | Dave Airlie <airlied@redhat.com> | 2020-01-02 10:16:04 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-01-02 10:16:04 +1000 |
commit | 866bd5eeaf13a8e008fa7b818fb445bacd4dbdb0 (patch) | |
tree | 9884aed0fb4a04b342e42858e2d895ef0fae77a5 /drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | |
parent | e7cbcb16fa416c26e02c181945ba62de580fca7a (diff) | |
parent | 969e11529221a6a2a787cb3b63ccf9402f8d2e37 (diff) | |
download | linux-866bd5eeaf13a8e008fa7b818fb445bacd4dbdb0.tar.gz linux-866bd5eeaf13a8e008fa7b818fb445bacd4dbdb0.tar.bz2 linux-866bd5eeaf13a8e008fa7b818fb445bacd4dbdb0.zip |
Merge tag 'amd-drm-fixes-5.5-2020-01-01' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
amd-drm-fixes-5.5-2020-01-01:
amdgpu:
- ATPX regression fix
- SMU metrics table locking fixes
- gfxoff fix for raven
- RLC firmware loading stability fix
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200101151307.5242-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index a97fb759e2f4..3e35a8f2c5e5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -613,7 +613,17 @@ static bool amdgpu_atpx_detect(void) bool d3_supported = false; struct pci_dev *parent_pdev; - while ((pdev = pci_get_class(PCI_BASE_CLASS_DISPLAY << 16, pdev)) != NULL) { + while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) { + vga_count++; + + has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true); + + parent_pdev = pci_upstream_bridge(pdev); + d3_supported |= parent_pdev && parent_pdev->bridge_d3; + amdgpu_atpx_get_quirks(pdev); + } + + while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) { vga_count++; has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true); |