diff options
author | Dave Airlie <airlied@redhat.com> | 2017-02-23 17:35:23 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-02-23 17:35:23 -0500 |
commit | 1e8ad3d8da4763b238d09244d4d1177aa640c0d3 (patch) | |
tree | 726ad9e44d1ae8bd550c983b58b7697ef1c67c66 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 894ebc414d4688da732a185954ca23c5d11900d0 (diff) | |
parent | 187368a5c7ad6c41159b85025a87d6d136eb8d4b (diff) |
Merge branch 'drm-next-4.11' of git://people.freedesktop.org/~agd5f/linux into drm-next
Some ttm/amd fixes.
* 'drm-next-4.11' of git://people.freedesktop.org/~agd5f/linux:
drm/amd/powerplay: fix PSI feature on Polars12.
drm/amdgpu: refuse to reserve io mem for split VRAM buffers
drm/ttm: fix use-after-free races in vm fault handling
drm/amd/amdgpu: post card if there is real hw resetting performed
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index e9af03113fc3..c1b913541739 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1482,6 +1482,9 @@ struct amdgpu_device { | |||
1482 | spinlock_t gtt_list_lock; | 1482 | spinlock_t gtt_list_lock; |
1483 | struct list_head gtt_list; | 1483 | struct list_head gtt_list; |
1484 | 1484 | ||
1485 | /* record hw reset is performed */ | ||
1486 | bool has_hw_reset; | ||
1487 | |||
1485 | }; | 1488 | }; |
1486 | 1489 | ||
1487 | static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_bo_device *bdev) | 1490 | static inline struct amdgpu_device *amdgpu_ttm_adev(struct ttm_bo_device *bdev) |
@@ -1700,7 +1703,7 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring) | |||
1700 | int amdgpu_gpu_reset(struct amdgpu_device *adev); | 1703 | int amdgpu_gpu_reset(struct amdgpu_device *adev); |
1701 | bool amdgpu_need_backup(struct amdgpu_device *adev); | 1704 | bool amdgpu_need_backup(struct amdgpu_device *adev); |
1702 | void amdgpu_pci_config_reset(struct amdgpu_device *adev); | 1705 | void amdgpu_pci_config_reset(struct amdgpu_device *adev); |
1703 | bool amdgpu_card_posted(struct amdgpu_device *adev); | 1706 | bool amdgpu_need_post(struct amdgpu_device *adev); |
1704 | void amdgpu_update_display_priority(struct amdgpu_device *adev); | 1707 | void amdgpu_update_display_priority(struct amdgpu_device *adev); |
1705 | 1708 | ||
1706 | int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data); | 1709 | int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data); |