diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-10-02 14:39:18 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-10-02 14:39:18 -0400 |
commit | 76c44f2c0d008b60ce3058c51d85fa36d98c3681 (patch) | |
tree | 5e1503ec2b316b78482a0a6db56b376d5cae8603 /drivers/gpu/drm/radeon/sid.h | |
parent | 27810fb2d2edacf2961dbedfe9e9f8d2e5080ea5 (diff) |
drm/radeon: use WRITE_DATA packets for vm flush on SI
This is the preferred packet for writing data to memory
or registers on SI.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/sid.h')
-rw-r--r-- | drivers/gpu/drm/radeon/sid.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h index ef4815c27b1c..7d2a20e56577 100644 --- a/drivers/gpu/drm/radeon/sid.h +++ b/drivers/gpu/drm/radeon/sid.h | |||
@@ -812,6 +812,21 @@ | |||
812 | #define PACKET3_DRAW_INDEX_OFFSET_2 0x35 | 812 | #define PACKET3_DRAW_INDEX_OFFSET_2 0x35 |
813 | #define PACKET3_DRAW_INDEX_MULTI_ELEMENT 0x36 | 813 | #define PACKET3_DRAW_INDEX_MULTI_ELEMENT 0x36 |
814 | #define PACKET3_WRITE_DATA 0x37 | 814 | #define PACKET3_WRITE_DATA 0x37 |
815 | #define WRITE_DATA_DST_SEL(x) ((x) << 8) | ||
816 | /* 0 - register | ||
817 | * 1 - memory (sync - via GRBM) | ||
818 | * 2 - tc/l2 | ||
819 | * 3 - gds | ||
820 | * 4 - reserved | ||
821 | * 5 - memory (async - direct) | ||
822 | */ | ||
823 | #define WR_ONE_ADDR (1 << 16) | ||
824 | #define WR_CONFIRM (1 << 20) | ||
825 | #define WRITE_DATA_ENGINE_SEL(x) ((x) << 30) | ||
826 | /* 0 - me | ||
827 | * 1 - pfp | ||
828 | * 2 - ce | ||
829 | */ | ||
815 | #define PACKET3_DRAW_INDEX_INDIRECT_MULTI 0x38 | 830 | #define PACKET3_DRAW_INDEX_INDIRECT_MULTI 0x38 |
816 | #define PACKET3_MEM_SEMAPHORE 0x39 | 831 | #define PACKET3_MEM_SEMAPHORE 0x39 |
817 | #define PACKET3_MPEG_INDEX 0x3A | 832 | #define PACKET3_MPEG_INDEX 0x3A |