drm/amdgpu: fix missing stuff in NBIO v7.11
authorLi Ma <li.ma@amd.com>
Mon, 16 Oct 2023 06:36:26 +0000 (14:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:28 +0000 (15:11 -0400)
commitfa9dd7a285efbcf81dc0fc5a75bd9341e017c80f
tree8fca2d6f2fd4b2e905c26e4c42ab82c1b63420e2
parent66d64e4e03ef5ecf330075a5f1fc449549ce374a
drm/amdgpu: fix missing stuff in NBIO v7.11

add get_clockgating_state, update_medium_grain_light_sleep and
update_medium_grain_clock_gating in nbio_v7_11_funcs
v1:
add missing funcs in nbio_v7_11.c
v2:
modify the if condition and add spport for nbio v7.11 clockgating.

Signed-off-by: Li Ma <li.ma@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v7_11.c
drivers/gpu/drm/amd/amdgpu/soc21.c
drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_11_0_offset.h
drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_11_0_sh_mask.h