diff options
author | Ma Jun <Jun.Ma2@amd.com> | 2024-01-31 03:19:20 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-02-01 15:11:38 +0100 |
commit | 6813cdca4ab94a238f8eb0cef3d3f3fcbdfb0ee0 (patch) | |
tree | f05797e36b84ebd157b0422a9d61dfe1c36d350a /drivers/gpu | |
parent | drm/amdgpu: Reset IH OVERFLOW_CLEAR bit (diff) | |
download | linux-6813cdca4ab94a238f8eb0cef3d3f3fcbdfb0ee0.tar.xz linux-6813cdca4ab94a238f8eb0cef3d3f3fcbdfb0ee0.zip |
drm/amdgpu/pm: Use inline function for IP version check
Use existing inline function for IP version check.
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c index 3230701d0d38..a9954ffc02c5 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c @@ -2944,7 +2944,7 @@ static bool smu_v13_0_0_wbrf_support_check(struct smu_context *smu) { struct amdgpu_device *adev = smu->adev; - switch (adev->ip_versions[MP1_HWIP][0]) { + switch (amdgpu_ip_version(adev, MP1_HWIP, 0)) { case IP_VERSION(13, 0, 0): return smu->smc_fw_version >= 0x004e6300; case IP_VERSION(13, 0, 10): |