]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu: remove sriov vf checking from getting fb location
authorZhigang Luo <zhigang.luo@amd.com>
Wed, 2 Jun 2021 13:30:52 +0000 (09:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:14:36 +0000 (12:14 -0400)
host driver programmed fb location registers for vf, no need to
check anymore.

Signed-off-by: Zhigang Luo <zhigang.luo@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-By : Shaoyun.liu <shaoyunl@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 68e6b6b8989a2e218f4af6490c11f763d8033b23..7eb70d69f76056680d9cc82b46ed54d0ff33b800 100644 (file)
@@ -1288,10 +1288,7 @@ static int gmc_v9_0_late_init(void *handle)
 static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
                                        struct amdgpu_gmc *mc)
 {
-       u64 base = 0;
-
-       if (!amdgpu_sriov_vf(adev))
-               base = adev->mmhub.funcs->get_fb_location(adev);
+       u64 base = adev->mmhub.funcs->get_fb_location(adev);
 
        /* add the xgmi offset of the physical node */
        base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size;