@@ -1272,6 +1272,7 @@ void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);
12721272int amdgpu_device_pci_reset (struct amdgpu_device * adev );
12731273bool amdgpu_device_need_post (struct amdgpu_device * adev );
12741274bool amdgpu_device_should_use_aspm (struct amdgpu_device * adev );
1275+ bool amdgpu_device_aspm_support_quirk (void );
12751276
12761277void amdgpu_cs_report_moved_bytes (struct amdgpu_device * adev , u64 num_bytes ,
12771278 u64 num_vis_bytes );
@@ -1391,10 +1392,12 @@ int amdgpu_acpi_smart_shift_update(struct drm_device *dev, enum amdgpu_ss ss_sta
13911392int amdgpu_acpi_pcie_notify_device_ready (struct amdgpu_device * adev );
13921393
13931394void amdgpu_acpi_get_backlight_caps (struct amdgpu_dm_backlight_caps * caps );
1395+ bool amdgpu_acpi_should_gpu_reset (struct amdgpu_device * adev );
13941396void amdgpu_acpi_detect (void );
13951397#else
13961398static inline int amdgpu_acpi_init (struct amdgpu_device * adev ) { return 0 ; }
13971399static inline void amdgpu_acpi_fini (struct amdgpu_device * adev ) { }
1400+ static inline bool amdgpu_acpi_should_gpu_reset (struct amdgpu_device * adev ) { return false; }
13981401static inline void amdgpu_acpi_detect (void ) { }
13991402static inline bool amdgpu_acpi_is_power_shift_control_supported (void ) { return false; }
14001403static inline int amdgpu_acpi_power_shift_control (struct amdgpu_device * adev ,
@@ -1405,11 +1408,9 @@ static inline int amdgpu_acpi_smart_shift_update(struct drm_device *dev,
14051408
14061409#if defined(CONFIG_ACPI ) && defined(CONFIG_SUSPEND )
14071410bool amdgpu_acpi_is_s3_active (struct amdgpu_device * adev );
1408- bool amdgpu_acpi_should_gpu_reset (struct amdgpu_device * adev );
14091411bool amdgpu_acpi_is_s0ix_active (struct amdgpu_device * adev );
14101412#else
14111413static inline bool amdgpu_acpi_is_s0ix_active (struct amdgpu_device * adev ) { return false; }
1412- static inline bool amdgpu_acpi_should_gpu_reset (struct amdgpu_device * adev ) { return false; }
14131414static inline bool amdgpu_acpi_is_s3_active (struct amdgpu_device * adev ) { return false; }
14141415#endif
14151416
0 commit comments