]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu/pm: Use inline function for IP version check
authorMa Jun <Jun.Ma2@amd.com>
Wed, 31 Jan 2024 02:19:20 +0000 (10:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 14:59:44 +0000 (09:59 -0500)
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>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

index 462a0e6aa53e3fef9e62ea1241a4f64233a7d98f..2e7518f4ae1a4c4d51b8ba5b1909fb39677c7c27 100644 (file)
@@ -2945,7 +2945,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):