<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/uapi/drm/amdxdna_accel.h, branch linux-7.1.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.1.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-25T18:41:24+00:00</updated>
<entry>
<title>accel/amdxdna: Add per-process BO memory usage query support</title>
<updated>2026-03-25T18:41:24+00:00</updated>
<author>
<name>Max Zhen</name>
<email>max.zhen@amd.com</email>
</author>
<published>2026-03-24T16:31:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1f513a3ec3a945efb30c963681ac32ac7b99928b'/>
<id>urn:sha1:1f513a3ec3a945efb30c963681ac32ac7b99928b</id>
<content type='text'>
Add support for querying per-process buffer object (BO) memory
usage through the amdxdna GET_ARRAY UAPI.

Introduce a new query type, DRM_AMDXDNA_BO_USAGE, along with
struct amdxdna_drm_bo_usage to report BO memory usage statistics,
including heap, total, and internal usage.

Track BO memory usage on a per-client basis by maintaining counters
in GEM open/close and heap allocation/free paths. This ensures the
reported statistics reflect the current memory footprint of each
process.

Wire the new query into the GET_ARRAY implementation to expose
the usage information to userspace.

Link: https://github.com/amd/xdna-driver/commit/0546f2aaadbdacf1c3556410ecd71622044cd916
Signed-off-by: Max Zhen &lt;max.zhen@amd.com&gt;
Reviewed-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20260324163159.2425461-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Refactor GEM BO handling and add helper APIs for address retrieval</title>
<updated>2026-03-21T05:12:49+00:00</updated>
<author>
<name>Max Zhen</name>
<email>max.zhen@amd.com</email>
</author>
<published>2026-03-20T21:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d76856beb4a4a6c42244054cd780c00f2d33de4e'/>
<id>urn:sha1:d76856beb4a4a6c42244054cd780c00f2d33de4e</id>
<content type='text'>
Refactor amdxdna GEM buffer object (BO) handling to simplify address
management and unify BO type semantics.

Introduce helper APIs to retrieve commonly used BO addresses:
- User virtual address (UVA)
- Kernel virtual address (KVA)
- Device address (IOVA/PA)

These helpers centralize address lookup logic and avoid duplicating
BO-specific handling across submission and execution paths. This also
improves readability and reduces the risk of inconsistent address
handling in future changes.

As part of the refactor:
- Rename SHMEM BO type to SHARE to better reflect its usage.
- Merge CMD BO handling into SHARE, removing special-case logic for
  command buffers.
- Consolidate BO type handling paths to reduce code duplication and
  simplify maintenance.

No functional change is intended. The refactor prepares the driver for
future enhancements by providing a cleaner abstraction for BO address
management.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Max Zhen &lt;max.zhen@amd.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20260320210615.1973016-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Support sensors for column utilization</title>
<updated>2026-03-11T18:37:36+00:00</updated>
<author>
<name>Mario Limonciello (AMD)</name>
<email>superm1@kernel.org</email>
</author>
<published>2026-03-11T17:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f66d6cc6891e41be96380261943837b1909107b3'/>
<id>urn:sha1:f66d6cc6891e41be96380261943837b1909107b3</id>
<content type='text'>
The AMD PMF driver provides realtime column utilization (npu_busy)
metrics for the NPU. Extend the DRM_IOCTL_AMDXDNA_GET_INFO sensor
query to expose these metrics to userspace.

Add AMDXDNA_SENSOR_TYPE_COLUMN_UTILIZATION to the sensor type enum
and update aie2_get_sensors() to return both the total power and up
to 8 column utilization sensors if the user buffer permits.

Signed-off-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Reviewed-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
[lizhi: support legacy tool which uses small buffer. checkpatch cleanup]
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20260311171842.473453-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Enable hardware context priority</title>
<updated>2025-12-18T18:36:44+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-12-17T17:17:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=332070795bd96193756cb4446eddc3ec9ff6a0e8'/>
<id>urn:sha1:332070795bd96193756cb4446eddc3ec9ff6a0e8</id>
<content type='text'>
Newer firmware supports hardware context priority. Set the priority based
on application input.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20251217171719.2139025-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Support preemption requests</title>
<updated>2025-11-05T16:56:28+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-11-04T18:53:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3a0ff7b98af4a5de1b995dfb57e65843f9b7b628'/>
<id>urn:sha1:3a0ff7b98af4a5de1b995dfb57e65843f9b7b628</id>
<content type='text'>
The driver checks the firmware version during initialization.If preemption
is supported, the driver configures preemption accordingly and handles
userspace preemption requests. Otherwise, the driver returns an error for
userspace preemption requests.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20251104185340.897560-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add IOCTL parameter for telemetry data</title>
<updated>2025-11-04T17:04:21+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-11-04T06:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e568dc3e625d818f199bd085005213cce3271453'/>
<id>urn:sha1:e568dc3e625d818f199bd085005213cce3271453</id>
<content type='text'>
Extend DRM_IOCTL_AMDXDNA_GET_INFO to include additional parameters
that allow collection of telemetry data.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20251104062546.833771-3-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add IOCTL parameter for resource data</title>
<updated>2025-11-04T17:03:11+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-11-04T06:25:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1556c170d2f78344a9eee567fbfcee4651689813'/>
<id>urn:sha1:1556c170d2f78344a9eee567fbfcee4651689813</id>
<content type='text'>
Extend DRM_IOCTL_AMDXDNA_GET_INFO to include additional parameters
that allow collection of resource data.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://patch.msgid.link/20251104062546.833771-2-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Support getting last hardware error</title>
<updated>2025-10-16T16:32:48+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-10-14T23:41:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b291e4f1a4951204ce858cd01801291d34962a33'/>
<id>urn:sha1:b291e4f1a4951204ce858cd01801291d34962a33</id>
<content type='text'>
Add new parameter DRM_AMDXDNA_HW_LAST_ASYNC_ERR to get array IOCTL. When
hardware reports an error, the driver save the error information and
timestamp. This new get array parameter retrieves the last error.

Reviewed-by: Mario Limonciello (AMD) &lt;superm1@kernel.org&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://lore.kernel.org/r/20251014234119.628453-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add ioctl DRM_IOCTL_AMDXDNA_GET_ARRAY</title>
<updated>2025-09-04T15:26:43+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-09-03T05:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2f509fe6a42cda845890273fe759fb7ba9edad97'/>
<id>urn:sha1:2f509fe6a42cda845890273fe759fb7ba9edad97</id>
<content type='text'>
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) &lt;superm1@kernel.org&gt;
Reviewed-by: Maciej Falkowski &lt;maciej.falkowski@linux.intel.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://lore.kernel.org/r/20250903053402.2103196-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Support user space allocated buffer</title>
<updated>2025-07-22T15:34:29+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-07-16T16:44:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bd72d4acda1069579b35123e3cc0b21ec1193a21'/>
<id>urn:sha1:bd72d4acda1069579b35123e3cc0b21ec1193a21</id>
<content type='text'>
Enhance DRM_IOCTL_AMDXDNA_CREATE_BO to accept user space allocated
buffer pointer. The buffer pages will be pinned in memory. Unless
the CAP_IPC_LOCK is enabled for the application process, the total
pinned memory can not beyond rlimit_memlock.

Reviewed-by: Jacek Lawrynowicz &lt;jacek.lawrynowicz@linux.intel.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://lore.kernel.org/r/20250716164414.112091-1-lizhi.hou@amd.com
</content>
</entry>
</feed>
