gem5 v24.0.0.0
|
#include "dev/hsa/kfd_ioctl.h"
Go to the source code of this file.
Namespaces | |
namespace | gem5 |
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved. | |
Macros | |
#define | KFD_GPU_ID_HASH_WIDTH 16 |
#define | PAGE_SHIFT 12 |
#define | KFD_MMAP_TYPE_SHIFT (62 - PAGE_SHIFT) |
#define | KFD_MMAP_TYPE_MASK (0x3ULL << KFD_MMAP_TYPE_SHIFT) |
#define | KFD_MMAP_TYPE_DOORBELL (0x3ULL << KFD_MMAP_TYPE_SHIFT) |
#define | KFD_MMAP_TYPE_EVENTS (0x2ULL << KFD_MMAP_TYPE_SHIFT) |
#define | SLOTS_PER_PAGE KFD_SIGNAL_EVENT_LIMIT |
#define | KFD_MMAP_GPU_ID_SHIFT (46 - PAGE_SHIFT) |
#define | KFD_MMAP_GPU_ID_MASK |
#define | KFD_MMAP_GPU_ID(gpu_id) ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK) |
#define KFD_GPU_ID_HASH_WIDTH 16 |
Definition at line 39 of file kfd_event_defines.h.
#define KFD_MMAP_GPU_ID | ( | gpu_id | ) | ((((uint64_t)gpu_id) << KFD_MMAP_GPU_ID_SHIFT) & KFD_MMAP_GPU_ID_MASK) |
Definition at line 51 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::allocateQueue().
#define KFD_MMAP_GPU_ID_MASK |
Definition at line 49 of file kfd_event_defines.h.
#define KFD_MMAP_GPU_ID_SHIFT (46 - PAGE_SHIFT) |
Definition at line 48 of file kfd_event_defines.h.
#define KFD_MMAP_TYPE_DOORBELL (0x3ULL << KFD_MMAP_TYPE_SHIFT) |
Definition at line 44 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::allocateQueue(), and gem5::GPUComputeDriver::mmap().
#define KFD_MMAP_TYPE_EVENTS (0x2ULL << KFD_MMAP_TYPE_SHIFT) |
Definition at line 45 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::ioctl(), and gem5::GPUComputeDriver::mmap().
#define KFD_MMAP_TYPE_MASK (0x3ULL << KFD_MMAP_TYPE_SHIFT) |
Definition at line 43 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::mmap().
#define KFD_MMAP_TYPE_SHIFT (62 - PAGE_SHIFT) |
Definition at line 42 of file kfd_event_defines.h.
#define PAGE_SHIFT 12 |
Definition at line 41 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::allocateQueue(), gem5::GPUComputeDriver::ioctl(), and gem5::GPUComputeDriver::mmap().
#define SLOTS_PER_PAGE KFD_SIGNAL_EVENT_LIMIT |
Definition at line 46 of file kfd_event_defines.h.
Referenced by gem5::GPUComputeDriver::ioctl().