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

drm/amdgpu: update ATHUB_MISC_CNTL offset for athub v3.3

This patch to update ATHUB_MISC_CNTL offset for athub v3.3

v2: correct a typo (Tim)
v3: correct patch title (Lang)

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yifan Zhang and committed by
Alex Deucher
c9edcc18 8f8cb712

+8
+8
drivers/gpu/drm/amd/amdgpu/athub_v3_0.c
··· 30 30 31 31 #define regATHUB_MISC_CNTL_V3_0_1 0x00d7 32 32 #define regATHUB_MISC_CNTL_V3_0_1_BASE_IDX 0 33 + #define regATHUB_MISC_CNTL_V3_3_0 0x00d8 34 + #define regATHUB_MISC_CNTL_V3_3_0_BASE_IDX 0 33 35 34 36 35 37 static uint32_t athub_v3_0_get_cg_cntl(struct amdgpu_device *adev) ··· 41 39 switch (amdgpu_ip_version(adev, ATHUB_HWIP, 0)) { 42 40 case IP_VERSION(3, 0, 1): 43 41 data = RREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL_V3_0_1); 42 + break; 43 + case IP_VERSION(3, 3, 0): 44 + data = RREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL_V3_3_0); 44 45 break; 45 46 default: 46 47 data = RREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL); ··· 57 52 switch (amdgpu_ip_version(adev, ATHUB_HWIP, 0)) { 58 53 case IP_VERSION(3, 0, 1): 59 54 WREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL_V3_0_1, data); 55 + break; 56 + case IP_VERSION(3, 3, 0): 57 + WREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL_V3_3_0, data); 60 58 break; 61 59 default: 62 60 WREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL, data);