Add function to initialize soc configuration information
for GC 12.1.0 ASICs.
Use it to map IPs and other SOC related information once IP
configuration information is available through discovery.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
case IP_VERSION(9, 5, 0):
aqua_vanjaram_init_soc_config(adev);
break;
+ case IP_VERSION(12, 1, 0):
+ soc_v1_0_init_soc_config(adev);
+ break;
default:
break;
}
#include "soc15.h"
#include "soc15_common.h"
#include "soc_v1_0.h"
+#include "amdgpu_ip.h"
#include "gc/gc_12_1_0_offset.h"
#include "gc/gc_12_1_0_sh_mask.h"
.rev = 0,
.funcs = &soc_v1_0_common_ip_funcs,
};
+
+int soc_v1_0_init_soc_config(struct amdgpu_device *adev)
+{
+ adev->sdma.num_inst_per_xcc = 2;
+
+ amdgpu_ip_map_init(adev);
+
+ return 0;
+}
u32 me, u32 pipe,
u32 queue, u32 vmid,
int xcc_id);
+int soc_v1_0_init_soc_config(struct amdgpu_device *adev);
#endif