Skip to contentSkip to conversation

drm/amdgpu: Init correct fb region for none XGMI configuration

PATCH In review shaoyunl 2 participants 2 messages Sep 10, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

shaoyunl

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Init correct fb region for none XGMI configuration

Change-Id I2d78024fbe44a37f46a35d34c1e64dbd3937fdf1
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +5 -0
index cf97c1c..ae44671 100644
@@ -121,6 +121,11 @@ void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc,
 	mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
 	if (limit && limit < mc->real_vram_size)
 		mc->real_vram_size = limit;
+
+	if (mc->xgmi.num_physical_nodes == 0) {
+		mc->fb_start = mc->vram_start;
+		mc->fb_end = mc->vram_end;
+	}
 	dev_info(adev->dev, "VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n",
 			mc->mc_vram_size >> 20, mc->vram_start,
 			mc->vram_end, mc->real_vram_size >> 20);
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1536595574-26536-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Here a commit message is missing.

Especially something like Fix: <commit hash of the original patch> so that Alex can squash it into the other patch during upstreaming.

Apart from that the patch looks good to me,
Christian.

Am 10.09.2018 um 18:06 schrieb shaoyunl:

Quoted 12 lines
Change-Id I2d78024fbe44a37f46a35d34c1e64dbd3937fdf1
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 +++++
  1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +0 -0
index cf97c1c..ae44671 100644
@@ -121,6 +121,11 @@ void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc,
  	mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;

drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, · line 131

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +5 -0
  	if (limit && limit < mc->real_vram_size)
  		mc->real_vram_size = limit;
+
+	if (mc->xgmi.num_physical_nodes == 0) {
+		mc->fb_start = mc->vram_start;
+		mc->fb_end = mc->vram_end;
+	}
  	dev_info(adev->dev, "VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n",
  			mc->mc_vram_size >> 20, mc->vram_start,
  			mc->vram_end, mc->real_vram_size >> 20);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx