diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 15 | 
1 files changed, 13 insertions, 2 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 9c62552bec34..f87d53e183c3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -139,6 +139,14 @@ enum amdgpu_ss {  	AMDGPU_SS_DRV_UNLOAD  }; +struct amdgpu_hwip_reg_entry { +	u32		hwip; +	u32		inst; +	u32		seg; +	u32		reg_offset; +	const char	*reg_name; +}; +  struct amdgpu_watchdog_timer {  	bool timeout_fatal_disable;  	uint32_t period; /* maxCycles = (1 << period), the number of cycles before a timeout */ @@ -210,6 +218,7 @@ extern int amdgpu_async_gfx_ring;  extern int amdgpu_mcbp;  extern int amdgpu_discovery;  extern int amdgpu_mes; +extern int amdgpu_mes_log_enable;  extern int amdgpu_mes_kiq;  extern int amdgpu_noretry;  extern int amdgpu_force_asic_type; @@ -493,6 +502,7 @@ struct amdgpu_wb {  	uint64_t		gpu_addr;  	u32			num_wb;	/* Number of wb slots actually reserved for amdgpu. */  	unsigned long		used[DIV_ROUND_UP(AMDGPU_MAX_WB, BITS_PER_LONG)]; +	spinlock_t		lock;  };  int amdgpu_device_wb_get(struct amdgpu_device *adev, u32 *wb); @@ -605,7 +615,7 @@ struct amdgpu_asic_funcs {  	/* PCIe replay counter */  	uint64_t (*get_pcie_replay_count)(struct amdgpu_device *adev);  	/* device supports BACO */ -	bool (*supports_baco)(struct amdgpu_device *adev); +	int (*supports_baco)(struct amdgpu_device *adev);  	/* pre asic_init quirks */  	void (*pre_asic_init)(struct amdgpu_device *adev);  	/* enter/exit umd stable pstate */ @@ -1407,7 +1417,8 @@ bool amdgpu_device_supports_atpx(struct drm_device *dev);  bool amdgpu_device_supports_px(struct drm_device *dev);  bool amdgpu_device_supports_boco(struct drm_device *dev);  bool amdgpu_device_supports_smart_shift(struct drm_device *dev); -bool amdgpu_device_supports_baco(struct drm_device *dev); +int amdgpu_device_supports_baco(struct drm_device *dev); +void amdgpu_device_detect_runtime_pm_mode(struct amdgpu_device *adev);  bool amdgpu_device_is_peer_accessible(struct amdgpu_device *adev,  				      struct amdgpu_device *peer_adev);  int amdgpu_device_baco_enter(struct drm_device *dev); |