Files
linux/drivers/accel/amdxdna/aie4_host_queue.h
David Zhang 91f4da826c accel/amdxdna: Add command doorbell and wait support
Expose the command doorbell register to userspace on a per-hardware
context basis, enabling applications to notify the firmware of pending
commands via doorbell writes.

Introduce DRM_IOCTL_AMDXDNA_WAIT_CMD to allow userspace to wait for
completion of individual commands.

Co-developed-by: Hayden Laccabue <Hayden.Laccabue@amd.com>
Signed-off-by: Hayden Laccabue <Hayden.Laccabue@amd.com>
Signed-off-by: David Zhang <yidong.zhang@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260505160936.3917732-5-lizhi.hou@amd.com
2026-05-07 14:07:34 -07:00

25 lines
500 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2026, Advanced Micro Devices, Inc.
*/
#ifndef _AIE4_HOST_QUEUE_H_
#define _AIE4_HOST_QUEUE_H_
#include <linux/types.h>
#define CTX_MAX_CMDS 32
struct host_queue_header {
__u64 read_index;
struct {
__u16 major;
__u16 minor;
} version;
__u32 capacity; /* Queue capacity, must be power of two. */
__u64 write_index;
__u64 data_address; /* The xdna dev addr for payload. */
};
#endif /* _AIE4_HOST_QUEUE_H_ */