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: Add GFX 12.1.0 support in KFD

Add support for GFX 12.1.0 in KFD.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mukul Joshi and committed by
Alex Deucher
1fca2832 4da49903

+6 -1
+1
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
··· 1712 1712 fallthrough; 1713 1713 case IP_VERSION(12, 0, 0): 1714 1714 case IP_VERSION(12, 0, 1): 1715 + case IP_VERSION(12, 1, 0): 1715 1716 num_of_cache_types = 1716 1717 kfd_fill_gpu_cache_info_from_gfx_config(kdev->kfd, 1717 1718 cache_line_size_missing,
+5 -1
drivers/gpu/drm/amd/amdkfd/kfd_device.c
··· 445 445 gfx_target_version = 120001; 446 446 f2g = &gfx_v12_kfd2kgd; 447 447 break; 448 + case IP_VERSION(12, 1, 0): 449 + gfx_target_version = 120500; 450 + f2g = &gfx_v12_kfd2kgd; 451 + break; 448 452 default: 449 453 break; 450 454 } ··· 753 749 * If the VMID range changes for multi-partition capable GPUs, then 754 750 * this code MUST be revisited. 755 751 */ 756 - if (kfd->adev->xcp_mgr) { 752 + if (kfd->adev->xcp_mgr && (KFD_GC_VERSION(kfd) != IP_VERSION(12, 1, 0))) { 757 753 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, 758 754 AMDGPU_XCP_FL_LOCKED); 759 755 if (partition_mode == AMDGPU_CPX_PARTITION_MODE &&