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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: Don't partition VMID space on GFX 12.1

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>

authored by

Mukul Joshi and committed by
Alex Deucher
376fa6c9 aa0f09f9

+3 -1
+3 -1
drivers/gpu/drm/amd/amdkfd/kfd_device.c
··· 878 878 } 879 879 880 880 if (partition_mode == AMDGPU_CPX_PARTITION_MODE && 881 - kfd->num_nodes != 1) { 881 + kfd->num_nodes != 1 && 882 + (KFD_GC_VERSION(kfd) != IP_VERSION(12, 1, 0))) { 882 883 /* For multi-partition capable GPUs and CPX mode, first 883 884 * XCD gets VMID range 4-9 and second XCD gets VMID 884 885 * range 10-15. ··· 900 899 node->compute_vmid_bitmap = 901 900 gpu_resources->compute_vmid_bitmap; 902 901 } 902 + 903 903 node->max_proc_per_quantum = max_proc_per_quantum; 904 904 atomic_set(&node->sram_ecc_flag, 0); 905 905