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: Added GFX 11.0.3 Support

Added missing cases for GFX 11.0.3 code in a few switch statements.

Signed-off-by: David Belanger <david.belanger@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

David Belanger and committed by
Alex Deucher
5ddb5fe9 a3813175

+9
+1
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
··· 1522 1522 case IP_VERSION(11, 0, 0): 1523 1523 case IP_VERSION(11, 0, 1): 1524 1524 case IP_VERSION(11, 0, 2): 1525 + case IP_VERSION(11, 0, 3): 1525 1526 pcache_info = cache_info; 1526 1527 num_of_cache_types = 1527 1528 kfd_fill_gpu_cache_info_from_gfx_config(kdev, pcache_info);
+8
drivers/gpu/drm/amd/amdkfd/kfd_device.c
··· 91 91 case IP_VERSION(6, 0, 0): 92 92 case IP_VERSION(6, 0, 1): 93 93 case IP_VERSION(6, 0, 2): 94 + case IP_VERSION(6, 0, 3): 94 95 kfd->device_info.num_sdma_queues_per_engine = 8; 95 96 break; 96 97 default: ··· 104 103 switch (sdma_version) { 105 104 case IP_VERSION(6, 0, 0): 106 105 case IP_VERSION(6, 0, 2): 106 + case IP_VERSION(6, 0, 3): 107 107 /* Reserve 1 for paging and 1 for gfx */ 108 108 kfd->device_info.num_reserved_sdma_queues_per_engine = 2; 109 109 /* BIT(0)=engine-0 queue-0; BIT(1)=engine-1 queue-0; BIT(2)=engine-0 queue-1; ... */ ··· 152 150 case IP_VERSION(11, 0, 0): 153 151 case IP_VERSION(11, 0, 1): 154 152 case IP_VERSION(11, 0, 2): 153 + case IP_VERSION(11, 0, 3): 155 154 kfd->device_info.event_interrupt_class = &event_interrupt_class_v11; 156 155 break; 157 156 default: ··· 400 397 break; 401 398 case IP_VERSION(11, 0, 2): 402 399 gfx_target_version = 110002; 400 + f2g = &gfx_v11_kfd2kgd; 401 + break; 402 + case IP_VERSION(11, 0, 3): 403 + /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */ 404 + gfx_target_version = 110001; 403 405 f2g = &gfx_v11_kfd2kgd; 404 406 break; 405 407 default: