Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/gmc: add initial xgmi structure to amdgpu_gmc structure

Initial pass at a structure to store xgmi info. xgmi is a high
speed cross gpu interconnect.

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Slava Abramov <slava.abramov@amd.com>
Reviewed-by :Shaoyun liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>

+14
+14
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
··· 87 87 u64 *dst, u64 *flags); 88 88 }; 89 89 90 + struct amdgpu_xgmi { 91 + /* from psp */ 92 + u64 device_id; 93 + u64 hive_id; 94 + /* fixed per family */ 95 + u64 node_segment_size; 96 + /* physical node (0-3) */ 97 + unsigned physical_node_id; 98 + /* number of nodes (0-4) */ 99 + unsigned num_physical_nodes; 100 + }; 101 + 90 102 struct amdgpu_gmc { 91 103 resource_size_t aper_size; 92 104 resource_size_t aper_base; ··· 137 125 atomic_t vm_fault_info_updated; 138 126 139 127 const struct amdgpu_gmc_funcs *gmc_funcs; 128 + 129 + struct amdgpu_xgmi xgmi; 140 130 }; 141 131 142 132 #define amdgpu_gmc_flush_gpu_tlb(adev, vmid) (adev)->gmc.gmc_funcs->flush_gpu_tlb((adev), (vmid))