]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/pm: call smu_cmn_get_smc_version in is_mode1_reset_supported.
authorYifan Zhang <yifan1.zhang@amd.com>
Tue, 24 Oct 2023 13:16:26 +0000 (21:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 23:02:58 +0000 (19:02 -0400)
commit5bd8e05fe203aa33721cf301a6883b28493f73ab
tree5e23547fa24311e38f66f245faa64e8142f402e4
parent2cea7bb9110d3c52e55977824f79875777b574b4
drm/amd/pm: call smu_cmn_get_smc_version in is_mode1_reset_supported.

is_mode1_reset_supported may be called before smu init, when smu_context
is unitialized in driver load/unload test. Call smu_cmn_get_smc_version
explicitly in is_mode1_reset_supported.

v2: apply to aldebaran in case is_mode1_reset_supported will be
uncommented (Candice Li)

Fixes: 710d9caec70c ("drm/amd/pm: drop most smu_cmn_get_smc_version in smu")
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Candice Li <candice.li@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c