mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
drm/amdgpu/swsmu: fix is_support_sw_smu() for VEGA20
VEGA20 is 11.0.2, but it's handled by powerplay, not
swsmu.
Fixes: a8967967f6 ("drm/amdgpu/amdgpu_smu: convert to IP version checking")
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
43fc10c187
commit
29e41c9197
|
|
@ -455,6 +455,10 @@ static int smu_get_power_num_states(void *handle,
|
|||
|
||||
bool is_support_sw_smu(struct amdgpu_device *adev)
|
||||
{
|
||||
/* vega20 is 11.0.2, but it's supported via the powerplay code */
|
||||
if (adev->asic_type == CHIP_VEGA20)
|
||||
return false;
|
||||
|
||||
if (adev->ip_versions[MP1_HWIP][0] >= IP_VERSION(11, 0, 0))
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user