Commit 76a5b367 authored by Alex Deucher's avatar Alex Deucher

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: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarSlava Abramov <slava.abramov@amd.com>
Reviewed-by :Shaoyun liu <Shaoyun.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarShaoyun Liu <Shaoyun.Liu@amd.com>
parent 98456403
...@@ -87,6 +87,18 @@ struct amdgpu_gmc_funcs { ...@@ -87,6 +87,18 @@ struct amdgpu_gmc_funcs {
u64 *dst, u64 *flags); u64 *dst, u64 *flags);
}; };
struct amdgpu_xgmi {
/* from psp */
u64 device_id;
u64 hive_id;
/* fixed per family */
u64 node_segment_size;
/* physical node (0-3) */
unsigned physical_node_id;
/* number of nodes (0-4) */
unsigned num_physical_nodes;
};
struct amdgpu_gmc { struct amdgpu_gmc {
resource_size_t aper_size; resource_size_t aper_size;
resource_size_t aper_base; resource_size_t aper_base;
...@@ -125,6 +137,8 @@ struct amdgpu_gmc { ...@@ -125,6 +137,8 @@ struct amdgpu_gmc {
atomic_t vm_fault_info_updated; atomic_t vm_fault_info_updated;
const struct amdgpu_gmc_funcs *gmc_funcs; const struct amdgpu_gmc_funcs *gmc_funcs;
struct amdgpu_xgmi xgmi;
}; };
#define amdgpu_gmc_flush_gpu_tlb(adev, vmid) (adev)->gmc.gmc_funcs->flush_gpu_tlb((adev), (vmid)) #define amdgpu_gmc_flush_gpu_tlb(adev, vmid) (adev)->gmc.gmc_funcs->flush_gpu_tlb((adev), (vmid))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment