]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: Always enable memory sharing within same XGMI hive
authorshaoyunl <shaoyun.liu@amd.com>
Mon, 8 Apr 2019 22:28:22 +0000 (18:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:27 +0000 (13:53 -0500)
XGMI Memory sharing will be disbaled by default for security reason after
boot up, it depends on driver to enable the memory sharing

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c

index 2b3429d9069027d7104d54082dcb7b1ae746dd4b..b91df7bd1d98e56350246f66c11029294bf40978 100644 (file)
@@ -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;
        }