]> Gentwo Git Trees - linux/.git/commit
accel/amdxdna: Add ioctl DRM_IOCTL_AMDXDNA_GET_ARRAY
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 3 Sep 2025 05:34:02 +0000 (22:34 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Thu, 4 Sep 2025 15:26:43 +0000 (08:26 -0700)
commit2f509fe6a42cda845890273fe759fb7ba9edad97
tree6add92da222921b63f8c7b86e7503062a081125d
parent03e7ae93c6e32206797c13118659a966ae84a3bb
accel/amdxdna: Add ioctl DRM_IOCTL_AMDXDNA_GET_ARRAY

Add interface for applications to get information array. The application
provides a buffer pointer along with information type, maximum number of
entries and maximum size of each entry. The buffer may also contain match
conditions based on the information type. After the ioctl completes, the
actual number of entries and entry size are returned. (see [1], used by
driver runtime library)

[1] https://github.com/amd/xdna-driver/blob/main/src/shim/host/platform_host.cpp#L337

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/20250903053402.2103196-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/amdxdna_pci_drv.c
drivers/accel/amdxdna/amdxdna_pci_drv.h
include/uapi/drm/amdxdna_accel.h