summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/sid.h
diff options
context:
space:
mode:
authorSonny Jiang <sonny.jiang@amd.com>2020-06-10 13:41:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 01:59:24 -0400
commitb42bbbca08d0a8e879a9ffd9231c1e6e6f7b03ef (patch)
tree4d11ae1c9a01b15e5f7bcd12ab5fac6c9dc412ca /drivers/gpu/drm/amd/amdgpu/sid.h
parentd1af7ac24fd70feeeca1c6b71bd1dc01d1c389e8 (diff)
drm amdgpu: SI UVD PACKET_TYPE0
Fix packet_type0 definition in sid. Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sid.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sid.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sid.h b/drivers/gpu/drm/amd/amdgpu/sid.h
index 4d6cfad2bb79..5f660f0c819f 100644
--- a/drivers/gpu/drm/amd/amdgpu/sid.h
+++ b/drivers/gpu/drm/amd/amdgpu/sid.h
@@ -1646,9 +1646,10 @@
/*
* PM4
*/
-#define PACKET0(reg, n) ((RADEON_PACKET_TYPE0 << 30) | \
- (((reg) >> 2) & 0xFFFF) | \
- ((n) & 0x3FFF) << 16)
+#define PACKET_TYPE0 0
+#define PACKET0(reg, n) ((PACKET_TYPE0 << 30) | \
+ ((reg) & 0xFFFF) | \
+ ((n) & 0x3FFF) << 16)
#define CP_PACKET2 0x80000000
#define PACKET2_PAD_SHIFT 0
#define PACKET2_PAD_MASK (0x3fffffff << 0)