[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241024092608.431581-1-karl.li@mediatek.com>
Date: Thu, 24 Oct 2024 17:25:42 +0800
From: Karl.Li <karl.li@...iatek.com>
To: Jassi Brar <jassisinghbrar@...il.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, Karl Li <Karl.Li@...iatek.com>
CC: <linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mediatek@...ts.infradead.org>,
Chungying Lu <chungying.lu@...iatek.com>,
<Project_Global_Chrome_Upstream_Group@...iatek.com>, Karl Li
<karl.li@...iatek.com>
Subject: [PATCH 0/3] Add MediaTek APU Mailbox Support For MT8196
From: Karl Li <karl.li@...iatek.com>
Based on tag: next-20241021, linux-next/master
Hello,
This patch series introduces support for the MediaTek APU (AI Processing Unit) mailbox, a crucial component for facilitating communication between the APU and other system processors within MediaTek platforms. The APU subsystem relies on a message-passing mechanism built atop the mailbox infrastructure, necessitating enhancements to the existing mailbox framework to accommodate the APU's communication requirements.
The series begins by adding the necessary device tree bindings for the APU mailbox, followed by an enhancement to the mailbox framework allowing for bottom-half processing of received data. This is particularly important for the APU's operation, as it relies on a combination of mailbox messages and shared memory for data exchange. Finally, we introduce the MediaTek APU mailbox driver itself, which implements the communication protocol and exposes additional hardware features for broader system integration.
Patch Summary:
1. dt-bindings: mailbox: mediatek: Add apu-mailbox document
- Introduces the device tree bindings necessary for describing the APU mailbox in device tree sources, enabling the kernel to correctly configure and utilize this component.
2. mailbox: add support for bottom half received data
- Enhances the mailbox framework to support sleepable contexts in the processing of received messages. This is critical for APU communication, where message handling may require operations that cannot be performed in atomic contexts.
3. mailbox: mediatek: Add mtk-apu-mailbox driver
- Adds the driver for the MediaTek APU mailbox, facilitating communication with the APU microprocessor and providing interfaces for other system components to interact with the APU through spare registers.
This work is a step towards fully integrating MediaTek's APU capabilities with the Linux kernel, enhancing support for AI features on MediaTek platforms.
Please review and provide feedback.
Best regards
Karl Li (3):
dt-bindings: mailbox: mediatek: Add apu-mailbox document
mailbox: add support for bottom half received data
mailbox: mediatek: Add mtk-apu-mailbox driver
.../mailbox/mediatek,apu-mailbox.yaml | 55 +++++
drivers/mailbox/Kconfig | 9 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/mailbox.c | 16 ++
drivers/mailbox/mtk-apu-mailbox.c | 222 ++++++++++++++++++
include/linux/mailbox/mtk-apu-mailbox.h | 20 ++
include/linux/mailbox_client.h | 2 +
include/linux/mailbox_controller.h | 1 +
8 files changed, 327 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/mediatek,apu-mailbox.yaml
create mode 100644 drivers/mailbox/mtk-apu-mailbox.c
create mode 100644 include/linux/mailbox/mtk-apu-mailbox.h
--
2.18.0
Powered by blists - more mailing lists