Skip to content

Commit fc88fef

Browse files
committed
Merge tag 'amd-drm-next-5.10-2020-09-18' of git://people.freedesktop.org/~agd5f/linux into drm-next
amd-drm-next-5.10-2020-09-18: amdgpu: - Support for PCIe DPC recovery - Sienna Cichlid updates - Navy Flounder updates - RAS fixes - Refactor DC interrupt handling - Display fixes - Fix issues with OLED panels - Mclk fixes for navi1x - Watermark fixes for renoir and raven2 - Misc code cleanups - Misc bug fixes amdkfd: - Fix a memory leak - Fix a crach in GPU reset - Add process eviction counters radeon: - expose sclk via sysfs hwmon interface - Revert bad PLL fix scheduler: - Kernel doc fixes Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexdeucher@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200918204322.3931-1-alexander.deucher@amd.com
2 parents db29dc7 + 911d5bd commit fc88fef

125 files changed

Lines changed: 2154 additions & 831 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/gpu/drm/amd/amdgpu/amdgpu.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#include <linux/rbtree.h>
5050
#include <linux/hashtable.h>
5151
#include <linux/dma-fence.h>
52+
#include <linux/pci.h>
53+
#include <linux/aer.h>
5254

5355
#include <drm/ttm/ttm_bo_api.h>
5456
#include <drm/ttm/ttm_bo_driver.h>
@@ -987,6 +989,9 @@ struct amdgpu_device {
987989
atomic_t throttling_logging_enabled;
988990
struct ratelimit_state throttling_logging_rs;
989991
uint32_t ras_features;
992+
993+
bool in_pci_err_recovery;
994+
struct pci_saved_state *pci_state;
990995
};
991996

992997
static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev)
@@ -1260,6 +1265,15 @@ static inline int amdgpu_dm_display_resume(struct amdgpu_device *adev) { return
12601265
void amdgpu_register_gpu_instance(struct amdgpu_device *adev);
12611266
void amdgpu_unregister_gpu_instance(struct amdgpu_device *adev);
12621267

1268+
pci_ers_result_t amdgpu_pci_error_detected(struct pci_dev *pdev,
1269+
pci_channel_state_t state);
1270+
pci_ers_result_t amdgpu_pci_mmio_enabled(struct pci_dev *pdev);
1271+
pci_ers_result_t amdgpu_pci_slot_reset(struct pci_dev *pdev);
1272+
void amdgpu_pci_resume(struct pci_dev *pdev);
1273+
1274+
bool amdgpu_device_cache_pci_state(struct pci_dev *pdev);
1275+
bool amdgpu_device_load_pci_state(struct pci_dev *pdev);
1276+
12631277
#include "amdgpu_object.h"
12641278

12651279
/* used by df_v3_6.c and amdgpu_pmu.c */

‎drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static bool amdgpu_atpx_detect(void)
616616
while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) {
617617
vga_count++;
618618

619-
has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true);
619+
has_atpx |= amdgpu_atpx_pci_probe_handle(pdev);
620620

621621
parent_pdev = pci_upstream_bridge(pdev);
622622
d3_supported |= parent_pdev && parent_pdev->bridge_d3;
@@ -626,7 +626,7 @@ static bool amdgpu_atpx_detect(void)
626626
while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) {
627627
vga_count++;
628628

629-
has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true);
629+
has_atpx |= amdgpu_atpx_pci_probe_handle(pdev);
630630

631631
parent_pdev = pci_upstream_bridge(pdev);
632632
d3_supported |= parent_pdev && parent_pdev->bridge_d3;

0 commit comments

Comments
 (0)