aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-10-29 19:48:28 -0400
committerDave Airlie <airlied@redhat.com>2015-10-29 19:48:28 -0400
commitf1a04d82585032d906e6a7d5b16d38a369033bd0 (patch)
tree9dfc40edfe73d33f380a78c785a71a49ff77bfa1 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent974e59ba0bc3bcc94d11fce9b34c10af32b5930f (diff)
parented885b210752563b5e90dc0933e262f768ea9fa4 (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.h11
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);
448int amdgpu_fence_wait_empty(struct amdgpu_ring *ring); 447int amdgpu_fence_wait_empty(struct amdgpu_ring *ring);
449unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring); 448unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring);
450 449
451signed long amdgpu_fence_wait_any(struct amdgpu_device *adev, 450signed 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);
1230void amdgpu_ring_unlock_commit(struct amdgpu_ring *ring); 1226void amdgpu_ring_unlock_commit(struct amdgpu_ring *ring);
1231void amdgpu_ring_undo(struct amdgpu_ring *ring); 1227void amdgpu_ring_undo(struct amdgpu_ring *ring);
1232void amdgpu_ring_unlock_undo(struct amdgpu_ring *ring); 1228void amdgpu_ring_unlock_undo(struct amdgpu_ring *ring);
1233void amdgpu_ring_lockup_update(struct amdgpu_ring *ring);
1234bool amdgpu_ring_test_lockup(struct amdgpu_ring *ring);
1235unsigned amdgpu_ring_backup(struct amdgpu_ring *ring, 1229unsigned amdgpu_ring_backup(struct amdgpu_ring *ring,
1236 uint32_t **data); 1230 uint32_t **data);
1237int amdgpu_ring_restore(struct amdgpu_ring *ring, 1231int 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))