diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-10-10 08:30:23 +0300 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-10-10 08:30:23 +0300 | 
| commit | 5f8f8574c7f5585b09a9623f0f13462e4eb67b4d (patch) | |
| tree | 8f1d5e88bf9604a9e39fbcce0e37b3d8cee451bb /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | e62563db857f81d75c5726a35bc0180bed6d1540 (diff) | |
| parent | fe5b6aaef72a0f7daa06e7960e0bee45c2984e41 (diff) | |
| download | linux-5f8f8574c7f5585b09a9623f0f13462e4eb67b4d.tar.xz | |
Merge branch 'next' into for-linus
Prepare input updates for 6.1 merge window.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 23 | 
1 files changed, 17 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 30ce6bb6fa77..e146810c700b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -197,6 +197,7 @@ extern uint amdgpu_smu_memory_pool_size;  extern int amdgpu_smu_pptable_id;  extern uint amdgpu_dc_feature_mask;  extern uint amdgpu_dc_debug_mask; +extern uint amdgpu_dc_visual_confirm;  extern uint amdgpu_dm_abm_level;  extern int amdgpu_backlight;  extern struct amdgpu_mgpu_info mgpu_info; @@ -223,6 +224,9 @@ static const int __maybe_unused sched_policy = KFD_SCHED_POLICY_HWS;  static const bool __maybe_unused debug_evictions; /* = false */  static const bool __maybe_unused no_system_mem_limit;  #endif +#ifdef CONFIG_HSA_AMD_P2P +extern bool pcie_p2p; +#endif  extern int amdgpu_tmz;  extern int amdgpu_reset_method; @@ -274,7 +278,7 @@ extern int amdgpu_vcnfw_log;  #define CIK_CURSOR_WIDTH 128  #define CIK_CURSOR_HEIGHT 128 -/* smasrt shift bias level limits */ +/* smart shift bias level limits */  #define AMDGPU_SMARTSHIFT_MAX_BIAS (100)  #define AMDGPU_SMARTSHIFT_MIN_BIAS (-100) @@ -667,6 +671,7 @@ enum amd_hw_ip_block_type {  	RSMU_HWIP,  	XGMI_HWIP,  	DCI_HWIP, +	PCIE_HWIP,  	MAX_HWIP  }; @@ -1007,7 +1012,6 @@ struct amdgpu_device {  	uint64_t	df_perfmon_config_assign_mask[AMDGPU_MAX_DF_PERFMONS];  	/* enable runtime pm on the device */ -	bool                            runpm;  	bool                            in_runpm;  	bool                            has_pr3; @@ -1016,7 +1020,7 @@ struct amdgpu_device {  	bool                            psp_sysfs_en;  	/* Chip product information */ -	char				product_number[16]; +	char				product_number[20];  	char				product_name[AMDGPU_PRODUCT_NAME_LEN];  	char				serial[20]; @@ -1044,10 +1048,18 @@ struct amdgpu_device {  	/* reset dump register */  	uint32_t                        *reset_dump_reg_list; +	uint32_t			*reset_dump_reg_value;  	int                             num_regs; +#ifdef CONFIG_DEV_COREDUMP +	struct amdgpu_task_info         reset_task_info; +	bool                            reset_vram_lost; +	struct timespec64               reset_time; +#endif  	bool                            scpm_enabled;  	uint32_t                        scpm_status; + +	struct work_struct		reset_work;  };  static inline struct amdgpu_device *drm_to_adev(struct drm_device *ddev) @@ -1241,9 +1253,8 @@ int emu_soc_asic_init(struct amdgpu_device *adev);  bool amdgpu_device_has_job_running(struct amdgpu_device *adev);  bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev);  int amdgpu_device_gpu_recover(struct amdgpu_device *adev, -			      struct amdgpu_job* job); -int amdgpu_device_gpu_recover_imp(struct amdgpu_device *adev, -			      struct amdgpu_job *job); +			      struct amdgpu_job *job, +			      struct amdgpu_reset_context *reset_context);  void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);  int amdgpu_device_pci_reset(struct amdgpu_device *adev);  bool amdgpu_device_need_post(struct amdgpu_device *adev);  | 
