Current HRX System creates its AQL queues with hsa_amd_queue_create and
always states the queue's CU set with hsa_amd_queue_cu_set_mask; its HSA
symbol table also requires hsa_amd_vmem_get_access. The runtime exported
neither entry point, so libhsa failed to load.
hsa_amd_queue_create takes version-1 descriptors. A compute descriptor is
an hsa_queue_create of queue_size_bytes/64 packets with the descriptor's
queue type, scratch size and error callback, and default group segment
sizing. Device-memory placement, SDMA and AIE engines, cooperative queues
and non-normal priorities are not available on this transport and fail
that descriptor with HSA_STATUS_ERROR_INVALID_QUEUE_CREATION; malformed
descriptors (unknown version, non-power-of-two or non-packet-multiple
size, nonzero reserved fields) are INVALID_ARGUMENT. In a batch, created
queues stay valid, a failed descriptor's queue is NULL, and the first
error is returned.
hsa_amd_queue_cu_set_mask accepts a mask that enables every CU the device
reports, which is the set the queue already runs on. A mask leaving a CU
out still fails with HSA_STATUS_ERROR_INVALID_QUEUE: queues cannot be
narrowed without a synchronized MQD update.
hsa_amd_vmem_get_access reports a mapping's permissions: the CPU has what
hsa_amd_vmem_set_access last granted it, and a GPU agent has none, since
set_access never grants one on this transport.
The vendored HSA headers move to hsa-runtime-headers 4285513, the
revision HRX System pins, which declares the descriptor types; it adds
amd_launch_descriptor.h, which hsa_ext_amd.h now includes.
hsa-queue covers descriptor creation, CU masks, rejected requests and
batches; the new hsa-vmem-access test covers the access query.
Runs the unmodified upstream Linux amdgpu and amdkfd drivers on Apple
Silicon Macs inside a DriverKit system extension, for AMD GPUs attached
over Thunderbolt. The Linux sources come from a pinned submodule and are
compiled against linuxu, a userspace implementation of the Linux kernel
APIs they use. Includes the HSA runtime, the host installer app, the
setup and firmware fetch scripts, and the offline test suite.