There is no need to partition VMID space on GFX 12.1 when
operating in CPX mode as SDMA is not sharing MMHUB on GFX 12.1.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Michael Chen <michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
}
if (partition_mode == AMDGPU_CPX_PARTITION_MODE &&
- kfd->num_nodes != 1) {
+ kfd->num_nodes != 1 &&
+ (KFD_GC_VERSION(kfd) != IP_VERSION(12, 1, 0))) {
/* For multi-partition capable GPUs and CPX mode, first
* XCD gets VMID range 4-9 and second XCD gets VMID
* range 10-15.
node->compute_vmid_bitmap =
gpu_resources->compute_vmid_bitmap;
}
+
node->max_proc_per_quantum = max_proc_per_quantum;
atomic_set(&node->sram_ecc_flag, 0);