Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tests/amd-kfd/layout-fields.inc # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tests / amd-kfd / layout-fields.inc` 83 lines · 3907 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* Only header symbol/member names, not implementation. R=request, F=field, A=auxiliary record. */ 3 R(GET_VERSION, kfd_ioctl_get_version_args, 2) 4 F(kfd_ioctl_get_version_args, major_version) 5 F(kfd_ioctl_get_version_args, minor_version) 6 R(ACQUIRE_VM, kfd_ioctl_acquire_vm_args, 2) 7 F(kfd_ioctl_acquire_vm_args, drm_fd) 8 F(kfd_ioctl_acquire_vm_args, gpu_id) 9 R(GET_PROCESS_APERTURES_NEW, kfd_ioctl_get_process_apertures_new_args, 3) 10 F(kfd_ioctl_get_process_apertures_new_args, kfd_process_device_apertures_ptr) 11 F(kfd_ioctl_get_process_apertures_new_args, num_of_nodes) 12 F(kfd_ioctl_get_process_apertures_new_args, pad) 13 R(CREATE_QUEUE, kfd_ioctl_create_queue_args, 15) 14 F(kfd_ioctl_create_queue_args, ring_base_address) 15 F(kfd_ioctl_create_queue_args, write_pointer_address) 16 F(kfd_ioctl_create_queue_args, read_pointer_address) 17 F(kfd_ioctl_create_queue_args, doorbell_offset) 18 F(kfd_ioctl_create_queue_args, ring_size) 19 F(kfd_ioctl_create_queue_args, gpu_id) 20 F(kfd_ioctl_create_queue_args, queue_type) 21 F(kfd_ioctl_create_queue_args, queue_percentage) 22 F(kfd_ioctl_create_queue_args, queue_priority) 23 F(kfd_ioctl_create_queue_args, queue_id) 24 F(kfd_ioctl_create_queue_args, eop_buffer_address) 25 F(kfd_ioctl_create_queue_args, eop_buffer_size) 26 F(kfd_ioctl_create_queue_args, ctx_save_restore_address) 27 F(kfd_ioctl_create_queue_args, ctx_save_restore_size) 28 F(kfd_ioctl_create_queue_args, ctl_stack_size) 29 R(DESTROY_QUEUE, kfd_ioctl_destroy_queue_args, 2) 30 F(kfd_ioctl_destroy_queue_args, queue_id) 31 F(kfd_ioctl_destroy_queue_args, pad) 32 R(ALLOC_MEMORY_OF_GPU, kfd_ioctl_alloc_memory_of_gpu_args, 6) 33 F(kfd_ioctl_alloc_memory_of_gpu_args, va_addr) 34 F(kfd_ioctl_alloc_memory_of_gpu_args, size) 35 F(kfd_ioctl_alloc_memory_of_gpu_args, handle) 36 F(kfd_ioctl_alloc_memory_of_gpu_args, mmap_offset) 37 F(kfd_ioctl_alloc_memory_of_gpu_args, gpu_id) 38 F(kfd_ioctl_alloc_memory_of_gpu_args, flags) 39 R(FREE_MEMORY_OF_GPU, kfd_ioctl_free_memory_of_gpu_args, 1) 40 F(kfd_ioctl_free_memory_of_gpu_args, handle) 41 R(MAP_MEMORY_TO_GPU, kfd_ioctl_map_memory_to_gpu_args, 4) 42 F(kfd_ioctl_map_memory_to_gpu_args, handle) 43 F(kfd_ioctl_map_memory_to_gpu_args, device_ids_array_ptr) 44 F(kfd_ioctl_map_memory_to_gpu_args, n_devices) 45 F(kfd_ioctl_map_memory_to_gpu_args, n_success) 46 R(UNMAP_MEMORY_FROM_GPU, kfd_ioctl_unmap_memory_from_gpu_args, 4) 47 F(kfd_ioctl_unmap_memory_from_gpu_args, handle) 48 F(kfd_ioctl_unmap_memory_from_gpu_args, device_ids_array_ptr) 49 F(kfd_ioctl_unmap_memory_from_gpu_args, n_devices) 50 F(kfd_ioctl_unmap_memory_from_gpu_args, n_success) 51 R(CREATE_EVENT, kfd_ioctl_create_event_args, 7) 52 F(kfd_ioctl_create_event_args, event_page_offset) 53 F(kfd_ioctl_create_event_args, event_trigger_data) 54 F(kfd_ioctl_create_event_args, event_type) 55 F(kfd_ioctl_create_event_args, auto_reset) 56 F(kfd_ioctl_create_event_args, node_id) 57 F(kfd_ioctl_create_event_args, event_id) 58 F(kfd_ioctl_create_event_args, event_slot_index) 59 R(DESTROY_EVENT, kfd_ioctl_destroy_event_args, 2) 60 F(kfd_ioctl_destroy_event_args, event_id) 61 F(kfd_ioctl_destroy_event_args, pad) 62 R(WAIT_EVENTS, kfd_ioctl_wait_events_args, 5) 63 F(kfd_ioctl_wait_events_args, events_ptr) 64 F(kfd_ioctl_wait_events_args, num_events) 65 F(kfd_ioctl_wait_events_args, wait_for_all) 66 F(kfd_ioctl_wait_events_args, timeout) 67 F(kfd_ioctl_wait_events_args, wait_result) 68 A(APERTURE_ENTRY, kfd_process_device_apertures, 8) 69 F(kfd_process_device_apertures, lds_base) 70 F(kfd_process_device_apertures, lds_limit) 71 F(kfd_process_device_apertures, scratch_base) 72 F(kfd_process_device_apertures, scratch_limit) 73 F(kfd_process_device_apertures, gpuvm_base) 74 F(kfd_process_device_apertures, gpuvm_limit) 75 F(kfd_process_device_apertures, gpu_id) 76 F(kfd_process_device_apertures, pad) 77 A(SIGNAL_EVENT_ENTRY, kfd_event_data, 4) 78 F(kfd_event_data, signal_event_data.last_event_age) 79 F(kfd_event_data, kfd_event_data_ext) 80 F(kfd_event_data, event_id) 81 F(kfd_event_data, pad) 82 U(DEVICE_ID) 83 UF(device_id)