<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/accel/amdxdna/Makefile, branch linux-7.0.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2025-12-18T18:36:22+00:00</updated>
<entry>
<title>accel/amdxdna: Remove NPU2 support</title>
<updated>2025-12-18T18:36:22+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-12-17T19:08:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3ef93841033edc6359146dccd88d2f7ac8d706d1'/>
<id>urn:sha1:3ef93841033edc6359146dccd88d2f7ac8d706d1</id>
<content type='text'>
NPU2 hardware was never publicly released and is now obsolete.
Remove all remaining NPU2 support from the driver.

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/20251217190818.2145781-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Enhance runtime power management</title>
<updated>2025-09-24T20:47:59+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2025-09-23T15:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=063db451832b8849faf1b0b8404b3a6a39995b29'/>
<id>urn:sha1:063db451832b8849faf1b0b8404b3a6a39995b29</id>
<content type='text'>
Currently, pm_runtime_resume_and_get() is invoked in the driver's open
callback, and pm_runtime_put_autosuspend() is called in the close
callback. As a result, the device remains active whenever an application
opens it, even if no I/O is performed, leading to unnecessary power
consumption.

Move the runtime PM calls to the AIE2 callbacks that actually interact
with the hardware. The device will automatically suspend after 5 seconds
of inactivity (no hardware accesses and no pending commands), and it will
be resumed on the next hardware access.

Reviewed-by: Karol Wachowski &lt;karol.wachowski@linux.intel.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Link: https://lore.kernel.org/r/20250923152229.1303625-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>
<entry>
<title>accel/amdxdna: Enhance power management settings</title>
<updated>2024-12-16T21:50:32+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-13T23:29:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f4d7b8a6bc8c92963876e8e1dbf73b4728445aa2'/>
<id>urn:sha1:f4d7b8a6bc8c92963876e8e1dbf73b4728445aa2</id>
<content type='text'>
Add SET_STATE ioctl to configure device power mode for aie2 device.
Three modes are supported initially.

POWER_MODE_DEFAULT: Enable clock gating and set DPM (Dynamic Power
Management) level to value which has been set by resource solver or
maximum DPM level the device supports.

POWER_MODE_HIGH: Enable clock gating and set DPM level to maximum DPM
level the device supports.

POWER_MODE_TURBO: Disable clock gating and set DPM level to maximum DPM
level the device supports.

Disabling clock gating means all clocks always run on full speed. And
the different clock frequency are used based on DPM level been set.
Initially, the driver set the power mode to default mode.

Co-developed-by: Narendra Gutta &lt;VenkataNarendraKumar.Gutta@amd.com&gt;
Signed-off-by: Narendra Gutta &lt;VenkataNarendraKumar.Gutta@amd.com&gt;
Co-developed-by: George Yang &lt;George.Yang@amd.com&gt;
Signed-off-by: George Yang &lt;George.Yang@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241213232933.1545388-4-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add RyzenAI-npu6 support</title>
<updated>2024-12-16T21:49:47+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-13T23:29:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=273b5176ac178d0d890cc1785d3688dc6f8adf37'/>
<id>urn:sha1:273b5176ac178d0d890cc1785d3688dc6f8adf37</id>
<content type='text'>
Add NPU6 registers and other private configurations.

Co-developed-by: Xiaoming Ren &lt;xiaoming.ren@amd.com&gt;
Signed-off-by: Xiaoming Ren &lt;xiaoming.ren@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241213232933.1545388-2-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add error handling</title>
<updated>2024-11-22T18:44:47+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4fd4ca984b833a41f36bf7b2eaa9025377e310d0'/>
<id>urn:sha1:4fd4ca984b833a41f36bf7b2eaa9025377e310d0</id>
<content type='text'>
When there is a hardware error, the NPU firmware notifies the host through
a mailbox message. The message includes details of the error, such as the
tile and column indexes where the error occurred.

The driver starts a thread to handle the NPU error message. The thread
stops the clients which are using the column where error occurred. Then
the driver resets that column.

Co-developed-by: Min Ma &lt;min.ma@amd.com&gt;
Signed-off-by: Min Ma &lt;min.ma@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241118172942.2014541-10-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add GEM buffer object management</title>
<updated>2024-11-22T18:43:04+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ac49797c1815d4f8f04b7053b2998c546283c89e'/>
<id>urn:sha1:ac49797c1815d4f8f04b7053b2998c546283c89e</id>
<content type='text'>
There different types of BOs are supported:

- shmem
A user application uses shmem BOs as input/output for its workload running
on NPU.

- device memory heap
The fixed size buffer dedicated to the device.

- device buffer
The buffer object allocated from device memory heap.

- command buffer
The buffer object created for delivering commands. The command buffer
object is small and pinned on creation.

New IOCTLs are added: CREATE_BO, GET_BO_INFO, SYNC_BO. SYNC_BO is used
to explicitly flush CPU cache for BO memory.

Co-developed-by: Min Ma &lt;min.ma@amd.com&gt;
Signed-off-by: Min Ma &lt;min.ma@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241118172942.2014541-7-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add hardware context</title>
<updated>2024-11-22T18:42:42+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=be462c97b7dfd24999babe39cce3de224ebe1f80'/>
<id>urn:sha1:be462c97b7dfd24999babe39cce3de224ebe1f80</id>
<content type='text'>
The hardware can be shared among multiple user applications. The
hardware resources are allocated/freed based on the request from
user application via driver IOCTLs.

DRM_IOCTL_AMDXDNA_CREATE_HWCTX
Allocate tile columns and create a hardware context structure to track the
usage and status of the resources. A hardware context ID is returned for
XDNA command execution.

DRM_IOCTL_AMDXDNA_DESTROY_HWCTX
Release hardware context based on its ID. The tile columns belong to
this hardware context will be reclaimed.

DRM_IOCTL_AMDXDNA_CONFIG_HWCTX
Config hardware context. Bind the hardware context to the required
resources.

Co-developed-by: Min Ma &lt;min.ma@amd.com&gt;
Signed-off-by: Min Ma &lt;min.ma@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241118172942.2014541-6-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add hardware resource solver</title>
<updated>2024-11-22T18:42:17+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c88d3325ae69b30be7bb80080d211dbfced8003f'/>
<id>urn:sha1:c88d3325ae69b30be7bb80080d211dbfced8003f</id>
<content type='text'>
The AI Engine consists of 2D array of tiles arranged as columns. Provides
the basic column allocation and release functions for the tile columns.

Co-developed-by: Min Ma &lt;min.ma@amd.com&gt;
Signed-off-by: Min Ma &lt;min.ma@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241118172942.2014541-5-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Support hardware mailbox</title>
<updated>2024-11-22T18:41:54+00:00</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b87f920b934426a24d54613f12ed67c03ae05024'/>
<id>urn:sha1:b87f920b934426a24d54613f12ed67c03ae05024</id>
<content type='text'>
The hardware mailboxes are used by the driver to submit requests to
firmware and receive the completion notices from hardware.

Initially, a management mailbox channel is up and running. The driver may
request firmware to create/destroy more channels dynamically through
management channel.

Add driver internal mailbox interfaces.
  - create/destroy a mailbox channel instance
  - send a message to the firmware through a specific channel
  - wait for a notification from the specific channel

Co-developed-by: George Yang &lt;George.Yang@amd.com&gt;
Signed-off-by: George Yang &lt;George.Yang@amd.com&gt;
Co-developed-by: Min Ma &lt;min.ma@amd.com&gt;
Signed-off-by: Min Ma &lt;min.ma@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241118172942.2014541-4-lizhi.hou@amd.com
</content>
</entry>
</feed>
