|
@@ -732,10 +732,11 @@ struct amdgpu_ctx {
|
|
|
struct amdgpu_device *adev;
|
|
|
struct amdgpu_queue_mgr queue_mgr;
|
|
|
unsigned reset_counter;
|
|
|
+ uint32_t vram_lost_counter;
|
|
|
spinlock_t ring_lock;
|
|
|
struct dma_fence **fences;
|
|
|
struct amdgpu_ctx_ring rings[AMDGPU_MAX_RINGS];
|
|
|
- bool preamble_presented;
|
|
|
+ bool preamble_presented;
|
|
|
enum amd_sched_priority init_priority;
|
|
|
enum amd_sched_priority override_priority;
|
|
|
struct mutex lock;
|
|
@@ -778,7 +779,6 @@ struct amdgpu_fpriv {
|
|
|
struct mutex bo_list_lock;
|
|
|
struct idr bo_list_handles;
|
|
|
struct amdgpu_ctx_mgr ctx_mgr;
|
|
|
- u32 vram_lost_counter;
|
|
|
};
|
|
|
|
|
|
/*
|
|
@@ -1860,8 +1860,6 @@ static inline bool amdgpu_has_atpx(void) { return false; }
|
|
|
extern const struct drm_ioctl_desc amdgpu_ioctls_kms[];
|
|
|
extern const int amdgpu_max_kms_ioctl;
|
|
|
|
|
|
-bool amdgpu_kms_vram_lost(struct amdgpu_device *adev,
|
|
|
- struct amdgpu_fpriv *fpriv);
|
|
|
int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags);
|
|
|
void amdgpu_driver_unload_kms(struct drm_device *dev);
|
|
|
void amdgpu_driver_lastclose_kms(struct drm_device *dev);
|