Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sonny Jiang and committed by
Alex Deucher
b42bbbca d1af7ac2

+4 -3
+4 -3
drivers/gpu/drm/amd/amdgpu/sid.h
··· 1646 1646 /* 1647 1647 * PM4 1648 1648 */ 1649 - #define PACKET0(reg, n) ((RADEON_PACKET_TYPE0 << 30) | \ 1650 - (((reg) >> 2) & 0xFFFF) | \ 1651 - ((n) & 0x3FFF) << 16) 1649 + #define PACKET_TYPE0 0 1650 + #define PACKET0(reg, n) ((PACKET_TYPE0 << 30) | \ 1651 + ((reg) & 0xFFFF) | \ 1652 + ((n) & 0x3FFF) << 16) 1652 1653 #define CP_PACKET2 0x80000000 1653 1654 #define PACKET2_PAD_SHIFT 0 1654 1655 #define PACKET2_PAD_MASK (0x3fffffff << 0)