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

drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files

Vega20 uses vce 4.1 engine, all the registers have the
same absolute offset with vce 4.0. By adjusting vega20
VCE_BASE, vce 4.1 can reuse vce 4.0 header files.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

James Zhu and committed by
Alex Deucher
b2f87c91 5eb26e7a

+2 -1
+2 -1
drivers/gpu/drm/amd/include/vega20_ip_offset.h
··· 144 144 { { 0, 0, 0, 0, 0, 0 } }, 145 145 { { 0, 0, 0, 0, 0, 0 } }, 146 146 { { 0, 0, 0, 0, 0, 0 } } } }; 147 - static const struct IP_BASE VCE_BASE ={ { { { 0x00008800, 0, 0, 0, 0, 0 } }, 147 + /* Adjust VCE_BASE to make vce_4_1 use vce_4_0 offset header files*/ 148 + static const struct IP_BASE VCE_BASE ={ { { { 0x00007E00/* 0x00008800 */, 0, 0, 0, 0, 0 } }, 148 149 { { 0, 0, 0, 0, 0, 0 } }, 149 150 { { 0, 0, 0, 0, 0, 0 } }, 150 151 { { 0, 0, 0, 0, 0, 0 } },