diff options
author | Dave Airlie <airlied@redhat.com> | 2015-10-29 19:48:28 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-10-29 19:48:28 -0400 |
commit | f1a04d82585032d906e6a7d5b16d38a369033bd0 (patch) | |
tree | 9dfc40edfe73d33f380a78c785a71a49ff77bfa1 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 974e59ba0bc3bcc94d11fce9b34c10af32b5930f (diff) | |
parent | ed885b210752563b5e90dc0933e262f768ea9fa4 (diff) |
Merge branch 'drm-next-4.4' of git://people.freedesktop.org/~agd5f/linux into drm-next
More amdgpu and radeon stuff for drm-next. Stoney support is the big change.
The rest is just bug fixes and code cleanups. The Stoney stuff is pretty
low impact with respect to existing chips.
* 'drm-next-4.4' of git://people.freedesktop.org/~agd5f/linux:
drm/amdgpu: change VM size default to 64GB
drm/amdgpu: add Stoney pci ids
drm/amdgpu: update the core VI support for Stoney
drm/amdgpu: add VCE support for Stoney (v2)
drm/amdgpu: add UVD support for Stoney
drm/amdgpu: add GFX support for Stoney (v2)
drm/amdgpu: add SDMA support for Stoney (v2)
drm/amdgpu: add DCE support for Stoney
drm/amdgpu: Update SMC/DPM for Stoney
drm/amdgpu: add GMC support for Stoney
drm/amdgpu: add Stoney chip family
drm/amdgpu: fix the broken vm->mutex V2
drm/amdgpu: remove the unnecessary parameter adev for amdgpu_fence_wait_any()
drm/amdgpu: remove the exclusive lock
drm/amdgpu: remove old lockup detection infrastructure
drm: fix trivial typos
drm/amdgpu/dce: simplify suspend/resume
drm/amdgpu/gfx8: set TC_WB_ACTION_EN in RELEASE_MEM packet
drm/radeon: Use rdev->gem.mutex to protect hyperz/cmask owners
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3fa1397fd7ae..5c400f4b87fd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -345,7 +345,6 @@ struct amdgpu_ring_funcs { | |||
345 | /* testing functions */ | 345 | /* testing functions */ |
346 | int (*test_ring)(struct amdgpu_ring *ring); | 346 | int (*test_ring)(struct amdgpu_ring *ring); |
347 | int (*test_ib)(struct amdgpu_ring *ring); | 347 | int (*test_ib)(struct amdgpu_ring *ring); |
348 | bool (*is_lockup)(struct amdgpu_ring *ring); | ||
349 | /* insert NOP packets */ | 348 | /* insert NOP packets */ |
350 | void (*insert_nop)(struct amdgpu_ring *ring, uint32_t count); | 349 | void (*insert_nop)(struct amdgpu_ring *ring, uint32_t count); |
351 | }; | 350 | }; |
@@ -448,8 +447,7 @@ int amdgpu_fence_wait_next(struct amdgpu_ring *ring); | |||
448 | int amdgpu_fence_wait_empty(struct amdgpu_ring *ring); | 447 | int amdgpu_fence_wait_empty(struct amdgpu_ring *ring); |
449 | unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring); | 448 | unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring); |
450 | 449 | ||
451 | signed long amdgpu_fence_wait_any(struct amdgpu_device *adev, | 450 | signed long amdgpu_fence_wait_any(struct fence **array, |
452 | struct fence **array, | ||
453 | uint32_t count, | 451 | uint32_t count, |
454 | bool intr, | 452 | bool intr, |
455 | signed long t); | 453 | signed long t); |
@@ -907,8 +905,6 @@ struct amdgpu_ring { | |||
907 | unsigned ring_size; | 905 | unsigned ring_size; |
908 | unsigned ring_free_dw; | 906 | unsigned ring_free_dw; |
909 | int count_dw; | 907 | int count_dw; |
910 | atomic_t last_rptr; | ||
911 | atomic64_t last_activity; | ||
912 | uint64_t gpu_addr; | 908 | uint64_t gpu_addr; |
913 | uint32_t align_mask; | 909 | uint32_t align_mask; |
914 | uint32_t ptr_mask; | 910 | uint32_t ptr_mask; |
@@ -1230,8 +1226,6 @@ void amdgpu_ring_commit(struct amdgpu_ring *ring); | |||
1230 | void amdgpu_ring_unlock_commit(struct amdgpu_ring *ring); | 1226 | void amdgpu_ring_unlock_commit(struct amdgpu_ring *ring); |
1231 | void amdgpu_ring_undo(struct amdgpu_ring *ring); | 1227 | void amdgpu_ring_undo(struct amdgpu_ring *ring); |
1232 | void amdgpu_ring_unlock_undo(struct amdgpu_ring *ring); | 1228 | void amdgpu_ring_unlock_undo(struct amdgpu_ring *ring); |
1233 | void amdgpu_ring_lockup_update(struct amdgpu_ring *ring); | ||
1234 | bool amdgpu_ring_test_lockup(struct amdgpu_ring *ring); | ||
1235 | unsigned amdgpu_ring_backup(struct amdgpu_ring *ring, | 1229 | unsigned amdgpu_ring_backup(struct amdgpu_ring *ring, |
1236 | uint32_t **data); | 1230 | uint32_t **data); |
1237 | int amdgpu_ring_restore(struct amdgpu_ring *ring, | 1231 | int amdgpu_ring_restore(struct amdgpu_ring *ring, |
@@ -1960,7 +1954,6 @@ struct amdgpu_device { | |||
1960 | struct device *dev; | 1954 | struct device *dev; |
1961 | struct drm_device *ddev; | 1955 | struct drm_device *ddev; |
1962 | struct pci_dev *pdev; | 1956 | struct pci_dev *pdev; |
1963 | struct rw_semaphore exclusive_lock; | ||
1964 | 1957 | ||
1965 | /* ASIC */ | 1958 | /* ASIC */ |
1966 | enum amd_asic_type asic_type; | 1959 | enum amd_asic_type asic_type; |
@@ -1974,7 +1967,6 @@ struct amdgpu_device { | |||
1974 | bool suspend; | 1967 | bool suspend; |
1975 | bool need_dma32; | 1968 | bool need_dma32; |
1976 | bool accel_working; | 1969 | bool accel_working; |
1977 | bool needs_reset; | ||
1978 | struct work_struct reset_work; | 1970 | struct work_struct reset_work; |
1979 | struct notifier_block acpi_nb; | 1971 | struct notifier_block acpi_nb; |
1980 | struct amdgpu_i2c_chan *i2c_bus[AMDGPU_MAX_I2C_BUS]; | 1972 | struct amdgpu_i2c_chan *i2c_bus[AMDGPU_MAX_I2C_BUS]; |
@@ -2253,7 +2245,6 @@ amdgpu_get_sdma_instance(struct amdgpu_ring *ring) | |||
2253 | #define amdgpu_ring_parse_cs(r, p, ib) ((r)->funcs->parse_cs((p), (ib))) | 2245 | #define amdgpu_ring_parse_cs(r, p, ib) ((r)->funcs->parse_cs((p), (ib))) |
2254 | #define amdgpu_ring_test_ring(r) (r)->funcs->test_ring((r)) | 2246 | #define amdgpu_ring_test_ring(r) (r)->funcs->test_ring((r)) |
2255 | #define amdgpu_ring_test_ib(r) (r)->funcs->test_ib((r)) | 2247 | #define amdgpu_ring_test_ib(r) (r)->funcs->test_ib((r)) |
2256 | #define amdgpu_ring_is_lockup(r) (r)->funcs->is_lockup((r)) | ||
2257 | #define amdgpu_ring_get_rptr(r) (r)->funcs->get_rptr((r)) | 2248 | #define amdgpu_ring_get_rptr(r) (r)->funcs->get_rptr((r)) |
2258 | #define amdgpu_ring_get_wptr(r) (r)->funcs->get_wptr((r)) | 2249 | #define amdgpu_ring_get_wptr(r) (r)->funcs->get_wptr((r)) |
2259 | #define amdgpu_ring_set_wptr(r) (r)->funcs->set_wptr((r)) | 2250 | #define amdgpu_ring_set_wptr(r) (r)->funcs->set_wptr((r)) |