|
Revision tags: v6.15, v6.15-rc7, v6.15-rc6, v6.15-rc5, v6.15-rc4, v6.15-rc3, v6.15-rc2, v6.15-rc1, v6.14, v6.14-rc7, v6.14-rc6, v6.14-rc5, v6.14-rc4, v6.14-rc3, v6.14-rc2, v6.14-rc1, v6.13, v6.13-rc7, v6.13-rc6, v6.13-rc5, v6.13-rc4, v6.13-rc3 |
|
| #
f4d7b8a6 |
| 13-Dec-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Enhance power management settings
Add SET_STATE ioctl to configure device power mode for aie2 device. Three modes are supported initially.
POWER_MODE_DEFAULT: Enable clock gating and
accel/amdxdna: Enhance power management settings
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 <[email protected]> Signed-off-by: Narendra Gutta <[email protected]> Co-developed-by: George Yang <[email protected]> Signed-off-by: George Yang <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
273b5176 |
| 13-Dec-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add RyzenAI-npu6 support
Add NPU6 registers and other private configurations.
Co-developed-by: Xiaoming Ren <[email protected]> Signed-off-by: Xiaoming Ren <[email protected]>
accel/amdxdna: Add RyzenAI-npu6 support
Add NPU6 registers and other private configurations.
Co-developed-by: Xiaoming Ren <[email protected]> Signed-off-by: Xiaoming Ren <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
|
Revision tags: v6.13-rc2, v6.13-rc1 |
|
| #
4fd4ca98 |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add error handling
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
accel/amdxdna: Add error handling
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 <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
ac49797c |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add GEM buffer object management
There different types of BOs are supported:
- shmem A user application uses shmem BOs as input/output for its workload running on NPU.
- device memo
accel/amdxdna: Add GEM buffer object management
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 <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
be462c97 |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add hardware context
The hardware can be shared among multiple user applications. The hardware resources are allocated/freed based on the request from user application via driver IOCT
accel/amdxdna: Add hardware context
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 <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
c88d3325 |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add hardware resource solver
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-deve
accel/amdxdna: Add hardware resource solver
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 <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
b87f920b |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Support hardware mailbox
The hardware mailboxes are used by the driver to submit requests to firmware and receive the completion notices from hardware.
Initially, a management mailbo
accel/amdxdna: Support hardware mailbox
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 <[email protected]> Signed-off-by: George Yang <[email protected]> Co-developed-by: Min Ma <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|
| #
8c9ff1b1 |
| 18-Nov-2024 |
Lizhi Hou <[email protected]> |
accel/amdxdna: Add a new driver for AMD AI Engine
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 integra
accel/amdxdna: Add a new driver for AMD AI Engine
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 <[email protected]> Signed-off-by: Narendra Gutta <[email protected]> Co-developed-by: George Yang <[email protected]> Signed-off-by: George Yang <[email protected]> Co-developed-by: Min Ma <[email protected]> Signed-off-by: Min Ma <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Signed-off-by: Lizhi Hou <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
show more ...
|