mirror_ubuntu-kernels/drivers/gpu/drm/amd/amdkfd
James Zhu 400a39f1ec drm/amdgpu: skip xcp drm device allocation when out of drm resource
Return 0 when drm device alloc failed with -ENOSPC in
order to  allow amdgpu drive loading. But the xcp without
drm device node assigned won't be visiable in user space.
This helps amdgpu driver loading on system which has more
than 64 nodes, the current limitation.

The proposal to add more drm nodes is discussed in public,
which will support up to 2^20 nodes totally.
kernel drm:
https://lore.kernel.org/lkml/20230724211428.3831636-1-michal.winiarski@intel.com/T/
libdrm:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/305

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-08-16 11:34:11 -04:00
..
cik_event_interrupt.c drm/amdkfd: add send exception operation 2023-06-09 12:36:01 -04:00
cik_int.h
cik_regs.h
cwsr_trap_handler_gfx8.asm
cwsr_trap_handler_gfx9.asm drm/amdkfd: Sign-extend TMA address in trap handler 2023-08-07 17:14:06 -04:00
cwsr_trap_handler_gfx10.asm drm/amdkfd: Sign-extend TMA address in trap handler 2023-08-07 17:14:06 -04:00
cwsr_trap_handler.h drm/amdkfd: Sign-extend TMA address in trap handler 2023-08-07 17:14:06 -04:00
Kconfig drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_chardev.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_crat.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_crat.h drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_debug.c drm/amdkfd: fix and enable ttmp setup for gfx11 2023-07-27 14:59:29 -04:00
kfd_debug.h drm/amdkfd: fix and enable ttmp setup for gfx11 2023-07-27 14:59:29 -04:00
kfd_debugfs.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_device_queue_manager_cik.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_device_queue_manager_v9.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_device_queue_manager_v10.c drm/amdkfd: rename device_queue_manager_init_v10_navi10() 2023-08-11 14:47:39 -04:00
kfd_device_queue_manager_v11.c drm/amdkfd: Add KFD support for soc21 v3 2022-05-04 10:43:54 -04:00
kfd_device_queue_manager_vi.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_device_queue_manager.c drm/amdkfd: fix double assign skip process context clear 2023-08-15 18:07:42 -04:00
kfd_device_queue_manager.h drm/amdkfd: rename device_queue_manager_init_v10_navi10() 2023-08-11 14:47:39 -04:00
kfd_device.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_doorbell.c drm/amdgpu: remove unused functions and variables 2023-08-07 17:14:07 -04:00
kfd_events.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_events.h drm/amdkfd: add event_age tracking when receiving interrupt 2023-06-15 11:37:55 -04:00
kfd_flat_memory.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_int_process_v9.c drm/amdkfd: Update interrupt handling for GFX 9.4.3 2023-06-30 13:11:35 -04:00
kfd_int_process_v10.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_int_process_v11.c drm/amdkfd: update process interrupt handling for debug events 2023-06-09 12:36:17 -04:00
kfd_interrupt.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_kernel_queue.c drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_kernel_queue.h drm/amdkfd: Introduce kfd_node struct (v5) 2023-06-09 09:42:27 -04:00
kfd_migrate.c drm/amdkfd: avoid unmap dma address when svm_ranges are split 2023-08-07 16:36:44 -04:00
kfd_migrate.h drm/amdkfd: Refactor migrate init to support partition switch 2023-06-09 10:36:58 -04:00
kfd_module.c drm/amdkfd: Fixed kfd_process cleanup on module exit. 2023-03-15 18:45:26 -04:00
kfd_mqd_manager_cik.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_mqd_manager_v9.c drm/amdkfd: Use KIQ to unmap HIQ 2023-07-07 13:51:48 -04:00
kfd_mqd_manager_v10.c drm/amdkfd: Use KIQ to unmap HIQ 2023-07-07 13:51:48 -04:00
kfd_mqd_manager_v11.c drm/amdkfd: Use KIQ to unmap HIQ 2023-07-07 13:51:48 -04:00
kfd_mqd_manager_vi.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_mqd_manager.c drm/amdkfd: Remove unnecessary NULL values 2023-08-15 18:08:27 -04:00
kfd_mqd_manager.h drm/amdkfd: Update context save handling for multi XCC setup (v2) 2023-06-09 09:42:50 -04:00
kfd_packet_manager_v9.c drm/amdkfd: Add missing tba_hi programming on aldebaran 2023-08-15 17:40:55 -04:00
kfd_packet_manager_vi.c drm/amdgpu: add configurable grace period for unmap queues 2023-06-09 12:35:31 -04:00
kfd_packet_manager.c drm/amdgpu: add configurable grace period for unmap queues 2023-06-09 12:35:31 -04:00
kfd_pasid.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_headers_ai.h drm/amdkfd: prepare map process for single process debug devices 2023-06-09 12:35:36 -04:00
kfd_pm4_headers_aldebaran.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_headers_vi.h drm/amdkfd: Fix leftover errors and warnings 2022-02-14 15:08:40 -05:00
kfd_pm4_headers.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_pm4_opcodes.h drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_priv.h drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_process_queue_manager.c drm/amdgpu: use doorbell mgr for kfd process doorbells 2023-08-07 17:14:07 -04:00
kfd_process.c drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
kfd_queue.c drm/amdkfd: update SPDX license header 2022-02-14 15:08:40 -05:00
kfd_smi_events.c drm/amdkfd: Update SMI events for GFX9.4.3 2023-06-09 09:46:31 -04:00
kfd_smi_events.h drm/amdkfd: Update SMI events for GFX9.4.3 2023-06-09 09:46:31 -04:00
kfd_svm.c drm/amdkfd: fix build failure without CONFIG_DYNAMIC_DEBUG 2023-08-15 18:07:28 -04:00
kfd_svm.h drm/amdkfd: avoid unmap dma address when svm_ranges are split 2023-08-07 16:36:44 -04:00
kfd_topology.c drm/amdgpu: skip xcp drm device allocation when out of drm resource 2023-08-16 11:34:11 -04:00
kfd_topology.h drm/amdkfd: restore debugger additional info for gfx v9_4_3 2023-07-12 11:10:19 -04:00
Makefile drm/amdkfd: drop IOMMUv2 support 2023-08-11 14:47:25 -04:00
soc15_int.h drm/amdkfd: Update interrupt handling for GFX 9.4.3 2023-06-30 13:11:35 -04:00