Skip to contentSkip to conversation

drm/amdgpu: add initial value for gfx12 AGP aperture

PATCH In review Min, Frank 3 participants 3 messages May 13, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Min, Frank

author
#1 lore raw

PATCH 1/1 drm/amdgpu: add initial value for gfx12 AGP aperture

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <[email protected]>

add initial value for gfx12 AGP aperture

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -0
index 34264a33dcdf..b876300bb9f6 100644
@@ -622,6 +622,7 @@ static void gmc_v12_0_vram_gtt_location(struct amdgpu_device *adev,
 
        base = adev->mmhub.funcs->get_fb_location(adev);
 
+       amdgpu_gmc_set_agp_default(adev, mc);
        amdgpu_gmc_vram_location(adev, &adev->gmc, base);
        amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_LOW);
        if (!amdgpu_sriov_vf(adev) && (amdgpu_agp == 1))

--
2.34.1

Reviewed-by on v1 1/1
#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

This patch was

Regards,
Likun

-----Original Message-----
From: Min, Frank <[email protected]>
Sent: Monday, May 13, 2024 4:56 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Zhang, Hawking <[email protected]>; Gao, Likun <[email protected]>
Subject: [PATCH] drm/amdgpu: add initial value for gfx12 AGP aperture

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <[email protected]>

add initial value for gfx12 AGP aperture

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -0
index 34264a33dcdf..b876300bb9f6 100644
@@ -622,6 +622,7 @@ static void gmc_v12_0_vram_gtt_location(struct amdgpu_device *adev,
 
        base = adev->mmhub.funcs->get_fb_location(adev);
 
+       amdgpu_gmc_set_agp_default(adev, mc);
        amdgpu_gmc_vram_location(adev, &adev->gmc, base);
        amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_LOW);
        if (!amdgpu_sriov_vf(adev) && (amdgpu_agp == 1))

--
2.34.1

Reviewed-by
#3 lore raw
Quoted 43 lines · Likun

[AMD Official Use Only - AMD Internal Distribution Only]

This patch was

Regards,
Likun

-----Original Message-----
From: Min, Frank <[email protected]>
Sent: Monday, May 13, 2024 4:56 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Zhang, Hawking <[email protected]>; Gao, Likun <[email protected]>
Subject: [PATCH] drm/amdgpu: add initial value for gfx12 AGP aperture

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <[email protected]>

add initial value for gfx12 AGP aperture

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -1
index 34264a33dcdf..b876300bb9f6 100644
@@ -622,6 +622,7 @@ static void gmc_v12_0_vram_gtt_location(struct amdgpu_device *adev,
 
        base = adev->mmhub.funcs->get_fb_location(adev);
 
+       amdgpu_gmc_set_agp_default(adev, mc);
        amdgpu_gmc_vram_location(adev, &adev->gmc, base);
        amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_LOW);
        if (!amdgpu_sriov_vf(adev) && (amdgpu_agp == 1))
--

2.34.1