]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: access register without KIQ
authorYintian Tao <yttao@amd.com>
Wed, 15 Aug 2018 08:20:55 +0000 (16:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Aug 2018 19:17:36 +0000 (14:17 -0500)
there is no need to access register such as mmSMC_IND_INDEX_11
and mmSMC_IND_DATA_11 through KIQ because they are VF-copy.

Signed-off-by: Yintian Tao <yttao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vi.c

index 42c8ad105b0503f1471f06215aa7e46b074aaa88..88b57a5e94892ddb4d41916aa9f38b08536090b5 100644 (file)
@@ -112,8 +112,8 @@ static u32 vi_smc_rreg(struct amdgpu_device *adev, u32 reg)
        u32 r;
 
        spin_lock_irqsave(&adev->smc_idx_lock, flags);
-       WREG32(mmSMC_IND_INDEX_11, (reg));
-       r = RREG32(mmSMC_IND_DATA_11);
+       WREG32_NO_KIQ(mmSMC_IND_INDEX_11, (reg));
+       r = RREG32_NO_KIQ(mmSMC_IND_DATA_11);
        spin_unlock_irqrestore(&adev->smc_idx_lock, flags);
        return r;
 }