<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/include/uapi/drm/amdxdna_accel.h, branch linux-6.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.14.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.14.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2024-12-17T18:10:07Z</updated>
<entry>
<title>accel/amdxdna: Remove DRM_AMDXDNA_HWCTX_CONFIG_NUM</title>
<updated>2024-12-17T18:10:07Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-17T16:54:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6a8d72b80807ad45229c0f5a17e3be843b15a703'/>
<id>urn:sha1:6a8d72b80807ad45229c0f5a17e3be843b15a703</id>
<content type='text'>
Defining a number of enum elements in uapi header is meaningless. It will
not be used as expected and can potentially lead to incompatible issue
between user space application and driver.

Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241217165446.2607585-2-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add zero check for pad in ioctl input structures</title>
<updated>2024-12-17T18:10:05Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-17T16:54:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=03c318a0af96f1292e0e6fd0da92facb4f3a5c31'/>
<id>urn:sha1:03c318a0af96f1292e0e6fd0da92facb4f3a5c31</id>
<content type='text'>
For input ioctl structures, it is better to check if the pad is zero.
Thus, the pad bytes might be usable in the future.

Suggested-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241217165446.2607585-1-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Enhance power management settings</title>
<updated>2024-12-16T21:50:32Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-13T23:29:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/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 query firmware version</title>
<updated>2024-12-13T16:49:20Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-12-06T21:59:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c1e9a0ff94b801e946f30c4aba29df247475d825'/>
<id>urn:sha1:c1e9a0ff94b801e946f30c4aba29df247475d825</id>
<content type='text'>
Enhance GET_INFO ioctl to support retrieving firmware version.

Signed-off-by: Lizhi Hou &lt;lizhi.hou@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Reviewed-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Signed-off-by: Jeffrey Hugo &lt;quic_jhugo@quicinc.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20241206220001.164049-6-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add query functions</title>
<updated>2024-11-22T18:45:07Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=850d71f6bf4c2010efae845f9ff841cce902f22c'/>
<id>urn:sha1:850d71f6bf4c2010efae845f9ff841cce902f22c</id>
<content type='text'>
Add GET_INFO ioctl to retrieve hardware information, including
AIE, clock, hardware context etc.

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-11-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add command execution</title>
<updated>2024-11-22T18:43:27Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:39Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=aac243092b707bb3018e951d470cc1a9bcbaba6c'/>
<id>urn:sha1:aac243092b707bb3018e951d470cc1a9bcbaba6c</id>
<content type='text'>
Add interfaces for user application to submit command and wait for its
completion.

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-8-lizhi.hou@amd.com
</content>
</entry>
<entry>
<title>accel/amdxdna: Add GEM buffer object management</title>
<updated>2024-11-22T18:43:04Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/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:42Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/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 a new driver for AMD AI Engine</title>
<updated>2024-11-22T18:41:26Z</updated>
<author>
<name>Lizhi Hou</name>
<email>lizhi.hou@amd.com</email>
</author>
<published>2024-11-18T17:29:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8c9ff1b181ba3d31d6b4a48606248b52180a7046'/>
<id>urn:sha1:8c9ff1b181ba3d31d6b4a48606248b52180a7046</id>
<content type='text'>
AMD AI Engine forms the core of AMD NPU and can be used for accelerating
machine learning applications.

Add the driver to support AI Engine integrated to AMD CPU.
Only very basic functionalities are added.
  - module and PCI device initialization
  - firmware load
  - power up
  - low level hardware initialization

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;
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-3-lizhi.hou@amd.com
</content>
</entry>
</feed>
