Skip to contentSkip to conversation

drm/amdgpu: Always enable memory sharing within same XGMI hive

PATCH In review Liu, Shaoyun 2 participants 3 messages Apr 8, 2019 – Apr 10, 2019 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Always enable memory sharing within same XGMI hive

XGMI Memory sharing will be disbaled by default for security reason after boot up, it depends on driver to enable the memory sharing

Change-Id Ib516066eecfb877f84f1460a4d659abea44adb02
---
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -1
index 2b3429d..b91df7b 100644
@@ -674,7 +674,7 @@ static int psp_v11_0_xgmi_set_topology_info(struct psp_context *psp,
 	for (i = 0; i < topology_info_input->num_nodes; i++) {
 		topology_info_input->nodes[i].node_id = topology->nodes[i].node_id;
 		topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops;
-		topology_info_input->nodes[i].is_sharing_enabled = topology->nodes[i].is_sharing_enabled;
+		topology_info_input->nodes[i].is_sharing_enabled = 1;
 		topology_info_input->nodes[i].sdma_engine = topology->nodes[i].sdma_engine;
 	}
 
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): 1554762769-15497-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org

#2 lore raw

ping

Quoted 14 lines · Shaoyun

XGMI Memory sharing will be disbaled by default for security reason after boot up, it depends on driver to enable the memory sharing

Change-Id Ib516066eecfb877f84f1460a4d659abea44adb02
---
  drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +0 -0
index 2b3429d..b91df7b 100644

drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_set_topology_info(struct psp_context *psp, · line 680

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -1
@@ -674,7 +674,7 @@ static int psp_v11_0_xgmi_set_topology_info(struct psp_context *psp,
  	for (i = 0; i < topology_info_input->num_nodes; i++) {
  		topology_info_input->nodes[i].node_id = topology->nodes[i].node_id;
  		topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops;
-		topology_info_input->nodes[i].is_sharing_enabled = topology->nodes[i].is_sharing_enabled;
+		topology_info_input->nodes[i].is_sharing_enabled = 1;
  		topology_info_input->nodes[i].sdma_engine = topology->nodes[i].sdma_engine;
  	}
 

_______________________________________________
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): 10a87b48-90a3-c2f6-adf7-3ebb258966c7-5C7GfCeVMHo@public.gmane.org

Acked-by Evan Quan
#4 lore raw
Quoted 34 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Liu, Shaoyun
Sent: Tuesday, April 09, 2019 10:55 PM
To: [email protected]
Subject: Re: [PATCH] drm/amdgpu: Always enable memory sharing within same XGMI hive

ping

drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_set_topology_info(struct

Quoted 15 lines · Shaoyun

XGMI Memory sharing will be disbaled by default for security reason after boot up, it depends on driver to enable the memory sharing

Change-Id Ib516066eecfb877f84f1460a4d659abea44adb02
---
  drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +0 -0
index 2b3429d..b91df7b 100644
@@ -674,7 +674,7 @@ static int psp_v11_0_xgmi_set_topology_info(struct

psp_context *psp,

drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_set_topology_info(struct · line 679

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +0 -1
  	for (i = 0; i < topology_info_input->num_nodes; i++) {
  		topology_info_input->nodes[i].node_id = topology-
 nodes[i].node_id;
  		topology_info_input->nodes[i].num_hops = topology-
 nodes[i].num_hops;
-		topology_info_input->nodes[i].is_sharing_enabled =

topology->nodes[i].is_sharing_enabled;

Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +1 -0
+		topology_info_input->nodes[i].is_sharing_enabled = 1;
  		topology_info_input->nodes[i].sdma_engine = topology-

nodes[i].sdma_engine;
}

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

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