]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: use proper defines, shifts and masks in DCE6 code
authorAlexandre Demers <alexandre.f.demers@gmail.com>
Sat, 22 Mar 2025 01:46:45 +0000 (21:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:32 +0000 (15:18 -0400)
commit193e08801525a4100373c8a432ead3193904d2d5
tree1bd170ee1c7c587527657b982b7c984cf1dfbdab
parentde81b86e965e778533d9e7db6f4fe6451fb37974
drm/amdgpu: use proper defines, shifts and masks in DCE6 code

By replacing VGA_VSTATUS_CNTL by VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK,
we also need to fix its usage in GMC6.

Note: VGA_VSTATUS_CNTL's binary value was inverted in dce_6_0_sh_mask.h,
so we need to invert its value where it was used.

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/si_enums.h
drivers/gpu/drm/amd/amdgpu/sid.h
drivers/gpu/drm/amd/include/asic_reg/dce/dce_6_0_sh_mask.h