Mediatek MT8173 CMDQ support
Subsystems (3)
v16 cover Mediatek MT8173 CMDQ support
Hi,
This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement.
These patches have a build dependency on top of v4.9-rc1.
Changes since v15:
- separate "suspend and resume" patch from "save energy" patch
- don't stop running tasks in cmdq_suspend()
(i.e. leave no running tasks guarantee to clients)
Best regards,
HS Liao
HS Liao (5):
dt-bindings: soc: Add documentation for the MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: suspend and resume
CMDQ: save energy
.../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 632 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 ++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 +++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++ 10 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h
Signature · 1 line
1.9.1
PATCH v16 1/5 dt-bindings: soc: Add documentation for the MediaTek GCE unit
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs.
--- .../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt
Documentation/devicetree/bindings/mailbox/mtk-gce.txt new file +43 -0
@@ -0,0 +1,43 @@ +MediaTek GCE +=============== + +The Global Command Engine (GCE) is used to help read/write registers with +critical time limitation, such as updating display configuration during the +vblank. The GCE can be used to implement the Command Queue (CMDQ) driver. + +CMDQ driver uses mailbox framework for communication. Please refer to +mailbox.txt for generic information about mailbox device-tree bindings. + +Required properties: +- compatible: Must be "mediatek,mt8173-gce" +- reg: Address range of the GCE unit +- interrupts: The interrupt signal from the GCE block +- clock: Clocks according to the common clock binding +- clock-names: Must be "gce" to stand for GCE clock +- #mbox-cells: Should be 2 + +Required properties for a client device: +- mboxes: client use mailbox to communicate with GCE, it should have this + property and list of phandle, mailbox channel specifiers, and atomic + execution flag. + +Example: + + gce: gce at 10212000 { + compatible = "mediatek,mt8173-gce"; + reg = <0 0x10212000 0 0x1000>; + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>; + clocks = <&infracfg CLK_INFRA_GCE>; + clock-names = "gce"; + + #mbox-cells = <2>; + }; + +Example for a client device: + + mmsys: clock-controller at 14000000 { + compatible = "mediatek,mt8173-mmsys"; + mboxes = <&gce 0 1 /* main display with atomic execution */ + &gce 1 1>; /* sub display with atomic execution */ + ... + };
Signature · 1 line
1.9.1
PATCH v16 2/5 CMDQ: Mediatek CMDQ driver
In reply to HS LiaoThis patch is first version of Mediatek Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Currently, CMDQ only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements.
--- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 552 +++++++++++++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 +++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 ++++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++++++ 8 files changed, 1135 insertions(+) create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h
drivers/mailbox/Kconfig +10 -0
@@ -143,4 +143,14 @@ config BCM_PDC_MBOX Mailbox implementation for the Broadcom PDC ring manager, which provides access to various offload engines on Broadcom SoCs. Say Y here if you want to use the Broadcom PDC. + +config MTK_CMDQ_MBOX + bool "MediaTek CMDQ Mailbox Support" + depends on ARM64 && ( ARCH_MEDIATEK || COMPILE_TEST ) + select MTK_INFRACFG + help + Say yes here to add support for the MediaTek Command Queue (CMDQ) + mailbox driver. The CMDQ is used to help read/write registers with + critical time limitation, such as updating display configuration + during the vblank. endif
drivers/mailbox/Makefile +2 -0
@@ -29,3 +29,5 @@ obj-$(CONFIG_XGENE_SLIMPRO_MBOX) += mailbox-xgene-slimpro.o obj-$(CONFIG_HI6220_MBOX) += hi6220-mailbox.o obj-$(CONFIG_BCM_PDC_MBOX) += bcm-pdc-mailbox.o + +obj-$(CONFIG_MTK_CMDQ_MBOX) += mtk-cmdq-mailbox.o
drivers/mailbox/mtk-cmdq-mailbox.c new file +552 -0
552 lines not on this page · raw message
drivers/soc/mediatek/Kconfig +11 -0
@@ -1,6 +1,17 @@ # # MediaTek SoC drivers # +config MTK_CMDQ + bool "MediaTek CMDQ Support" + depends on ARM64 && ( ARCH_MEDIATEK || COMPILE_TEST ) + select MTK_CMDQ_MBOX + select MTK_INFRACFG + help + Say yes here to add support for the MediaTek Command Queue (CMDQ) + driver. The CMDQ is used to help read/write registers with critical + time limitation, such as updating display configuration during the + vblank. + config MTK_INFRACFG bool "MediaTek INFRACFG Support" depends on ARCH_MEDIATEK || COMPILE_TEST
drivers/soc/mediatek/Makefile +1 -0
@@ -1,3 +1,4 @@ +obj-$(CONFIG_MTK_CMDQ) += mtk-cmdq-helper.o obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o obj-$(CONFIG_MTK_PMIC_WRAP) += mtk-pmic-wrap.o obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o
drivers/soc/mediatek/mtk-cmdq-helper.c new file +310 -0
310 lines not on this page · raw message
include/linux/mailbox/mtk-cmdq-mailbox.h new file +67 -0
67 lines not on this page · raw message
include/linux/soc/mediatek/mtk-cmdq.h new file +182 -0
182 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v16 3/5 arm64: dts: mt8173: Add GCE node
In reply to HS LiaoThis patch adds the device node of the GCE hardware for CMDQ module.
--- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/mediatek/mt8173.dtsi +10 -0
@@ -414,6 +414,16 @@ status = "disabled"; }; + gce: gce at 10212000 { + compatible = "mediatek,mt8173-gce"; + reg = <0 0x10212000 0 0x1000>; + interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>; + clocks = <&infracfg CLK_INFRA_GCE>; + clock-names = "gce"; + + #mbox-cells = <2>; + }; + mipi_tx0: mipi-dphy at 10215000 { compatible = "mediatek,mt8173-mipi-tx"; reg = <0 0x10215000 0 0x1000>;
Signature · 1 line
1.9.1
PATCH v16 4/5 CMDQ: suspend and resume
In reply to HS Liaotake suspend and resume into consideration
--- drivers/mailbox/mtk-cmdq-mailbox.c | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
drivers/mailbox/mtk-cmdq-mailbox.c +44 -0
@@ -81,6 +81,7 @@ struct cmdq {u32 irq;struct cmdq_thread thread[CMDQ_THR_MAX_COUNT ];struct clk *clock; +bool suspended; };static int cmdq_thread_suspend (struct cmdq *cmdq,struct cmdq_thread *thread)
@@ -206,6 +207,9 @@ static void cmdq_task_exec(struct cmdq_pkt *pkt, struct cmdq_thread *thread) cmdq =dev_get_drvdata (thread->chan->mbox->dev); +/* Client should not flush new tasks if suspended. */ +WARN_ON (cmdq->suspended); + task =kzalloc (sizeof (*task),GFP_ATOMIC ); task->cmdq = cmdq;INIT_LIST_HEAD (&task->list_entry);
@@ -409,6 +413,39 @@ static void cmdq_thread_handle_timeout(unsigned long data)spin_unlock_irqrestore (&thread->chan->lock, flags); } +static int cmdq_suspend (struct device *dev) +{ +struct cmdq *cmdq =dev_get_drvdata (dev); +struct cmdq_thread *thread; +int i; +bool task_running = false; + + cmdq->suspended = true; + +for (i =0 ; i <ARRAY_SIZE (cmdq->thread); i++) { + thread = &cmdq->thread[i]; +if (!list_empty (&thread->task_busy_list)) { + task_running = true; +break ; + } + } + +if (task_running) +dev_warn (dev,"exist running task(s) in suspend\n" ); + +clk_unprepare (cmdq->clock); +return 0 ; +} + +static int cmdq_resume (struct device *dev) +{ +struct cmdq *cmdq =dev_get_drvdata (dev); + +WARN_ON (clk_prepare (cmdq->clock) <0 ); + cmdq->suspended = false; +return 0 ; +} +static int cmdq_remove (struct platform_device *pdev) {struct cmdq *cmdq =platform_get_drvdata (pdev);
@@ -532,9 +569,15 @@ static int cmdq_probe(struct platform_device *pdev)platform_set_drvdata (pdev, cmdq);WARN_ON (clk_prepare (cmdq->clock) <0 ); +return 0 ; } +static const struct dev_pm_ops cmdq_pm_ops = { + .suspend = cmdq_suspend, + .resume = cmdq_resume, +}; +static const struct of_device_id cmdq_of_ids[] = { {.compatible ="mediatek,mt8173-gce" ,}, {}
@@ -545,6 +588,7 @@ static int cmdq_probe(struct platform_device *pdev) .remove = cmdq_remove, .driver = { .name = "mtk_cmdq", + .pm = &cmdq_pm_ops, .of_match_table = cmdq_of_ids, } };
Signature · 1 line
1.9.1
PATCH v16 5/5 CMDQ: save energy
In reply to HS Liaouse clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle.
--- drivers/mailbox/mtk-cmdq-mailbox.c | 52 ++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 8 deletions(-)
drivers/mailbox/mtk-cmdq-mailbox.c +44 -8
@@ -22,6 +22,7 @@#include <linux/mailbox_controller.h> #include <linux/mailbox/mtk-cmdq-mailbox.h> #include <linux/timer.h> +#include <linux/workqueue.h> #define CMDQ_THR_MAX_COUNT 3/* main, sub, general(misc) */ #define CMDQ_OP_CODE_MASK (0xff << CMDQ_OP_CODE_SHIFT)
@@ -75,10 +76,16 @@ struct cmdq_task {struct cmdq_pkt *pkt;/* the packet sent from mailbox client */ }; +struct cmdq_clk_release { +struct cmdq *cmdq; +struct work_struct release_work; +}; +struct cmdq {struct mbox_controller mbox;void __iomem *base;u32 irq; +struct workqueue_struct *clk_release_wq;struct cmdq_thread thread[CMDQ_THR_MAX_COUNT ];struct clk *clock;bool suspended;
@@ -203,7 +210,7 @@ static void cmdq_task_exec(struct cmdq_pkt *pkt, struct cmdq_thread *thread) {struct cmdq *cmdq;struct cmdq_task *task; -unsigned long curr_pa, end_pa; +unsigned long curr_pa, end_pa, flags; cmdq =dev_get_drvdata (thread->chan->mbox->dev);
@@ -219,7 +226,14 @@ static void cmdq_task_exec(struct cmdq_pkt *pkt, struct cmdq_thread *thread) task->pkt = pkt;if (list_empty (&thread->task_busy_list)) { -WARN_ON (clk_enable (cmdq->clock) <0 ); +/* +* Unlock for clk prepare (sleeping function). +* This is safe since clk_prepare_enable has internal locks. +*/ +spin_unlock_irqrestore (&thread->chan->lock, flags); +WARN_ON (clk_prepare_enable (cmdq->clock) <0 ); +spin_lock_irqsave (&thread->chan->lock, flags); +WARN_ON (cmdq_thread_reset (cmdq, thread) <0 );writel (task->pa_base, thread->base +CMDQ_THR_CURR_ADDR );
@@ -301,6 +315,26 @@ static void cmdq_task_handle_error(struct cmdq_task *task)cmdq_thread_resume (thread); } +static void cmdq_clk_release_work (struct work_struct *work_item) +{ +struct cmdq_clk_release *clk_release =container_of (work_item, + struct cmdq_clk_release, release_work); +struct cmdq *cmdq = clk_release->cmdq; + +clk_disable_unprepare (cmdq->clock); +kfree (clk_release); +} + +static void cmdq_clk_release_schedule (struct cmdq *cmdq) +{ +struct cmdq_clk_release *clk_release; + + clk_release =kmalloc (sizeof (*clk_release),GFP_ATOMIC ); + clk_release->cmdq = cmdq; +INIT_WORK (&clk_release->release_work, cmdq_clk_release_work); +queue_work (cmdq->clk_release_wq, &clk_release->release_work); +} +static void cmdq_thread_irq_handler (struct cmdq *cmdq,struct cmdq_thread *thread) {
@@ -350,7 +384,7 @@ static void cmdq_thread_irq_handler(struct cmdq *cmdq,if (list_empty (&thread->task_busy_list)) {cmdq_thread_disable (cmdq, thread); -clk_disable (cmdq->clock); +cmdq_clk_release_schedule (cmdq); }else {mod_timer (&thread->timeout, jiffies +msecs_to_jiffies (CMDQ_TIMEOUT_MS ));
@@ -409,7 +443,7 @@ static void cmdq_thread_handle_timeout(unsigned long data)cmdq_thread_resume (thread);cmdq_thread_disable (cmdq, thread); -clk_disable (cmdq->clock); +cmdq_clk_release_schedule (cmdq);spin_unlock_irqrestore (&thread->chan->lock, flags); }
@@ -433,7 +467,7 @@ static int cmdq_suspend(struct device *dev)if (task_running)dev_warn (dev,"exist running task(s) in suspend\n" ); -clk_unprepare (cmdq->clock); +flush_workqueue (cmdq->clk_release_wq);return 0 ; }
@@ -441,7 +475,6 @@ static int cmdq_resume(struct device *dev) {struct cmdq *cmdq =dev_get_drvdata (dev); -WARN_ON (clk_prepare (cmdq->clock) <0 ); cmdq->suspended = false;return 0 ; }
@@ -450,8 +483,8 @@ static int cmdq_remove(struct platform_device *pdev) {struct cmdq *cmdq =platform_get_drvdata (pdev); +destroy_workqueue (cmdq->clk_release_wq);mbox_controller_unregister (&cmdq->mbox); -clk_unprepare (cmdq->clock);return 0 ; }
@@ -567,8 +600,11 @@ static int cmdq_probe(struct platform_device *pdev)return err; } + cmdq->clk_release_wq =alloc_ordered_workqueue ( +"%s" ,WQ_MEM_RECLAIM |WQ_HIGHPRI , +"cmdq_clk_release" ); +platform_set_drvdata (pdev, cmdq); -WARN_ON (clk_prepare (cmdq->clock) <0 );return 0 ; }
Signature · 1 line
1.9.1
Quoted 24 lines · HS Liao
Hi,
This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement.
These patches have a build dependency on top of v4.9-rc1.
Changes since v15:
- separate "suspend and resume" patch from "save energy" patch
- don't stop running tasks incmdq_suspend()
(i.e. leave no running tasks guarantee to clients)Best regards,
HS LiaoHS Liao (5):
dt-bindings: soc: Add documentation for the MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: suspend and resume
CMDQ: save energy
Quoted 17 lines
.../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 632 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 ++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 +++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++ 10 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h
Hi Jassi, Matthias,
Sorry to disturb you.
Do you have any further comment on CMDQ v16?
Thanks.
HS
Jassi Brar
maintainerQuoted 44 lines · Horng-Shyang Liao
Quoted 24 lines · HS Liao
Hi,
This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement.
These patches have a build dependency on top of v4.9-rc1.
Changes since v15:
- separate "suspend and resume" patch from "save energy" patch
- don't stop running tasks incmdq_suspend()
(i.e. leave no running tasks guarantee to clients)Best regards,
HS LiaoHS Liao (5):
dt-bindings: soc: Add documentation for the MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: suspend and resume
CMDQ: save energyQuoted 17 lines
.../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 632 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 ++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 +++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++ 10 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.h
Quoted 4 lines
Hi Jassi, Matthias,
Sorry to disturb you.
No, you don't disturb, but the controller driver and protocol driver,
introduced in the same patch, does :) So does the suspend/resume
support (patch 4&5) added separately as a patch on top. Please reorganise the patchset.
Thanks.
Quoted 47 lines · Jassi Brar
Quoted 46 lines · Horng-Shyang Liao
Quoted 24 lines · HS Liao
Hi,
This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement.
These patches have a build dependency on top of v4.9-rc1.
Changes since v15:
- separate "suspend and resume" patch from "save energy" patch
- don't stop running tasks incmdq_suspend()
(i.e. leave no running tasks guarantee to clients)Best regards,
HS LiaoHS Liao (5):
dt-bindings: soc: Add documentation for the MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: suspend and resume
CMDQ: save energyQuoted 17 lines
.../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 632 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 ++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 +++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++ 10 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.hHi Jassi, Matthias,
Quoted 8 lines
Quoted 2 lines
Sorry to disturb you.
No, you don't disturb, but the controller driver and protocol driver,
introduced in the same patch, does :) So does the suspend/resume
support (patch 4&5) added separately as a patch on top. Please reorganise the patchset.Thanks.
Hi Jassi,
Do you mean
1. split controller driver and protocol driver as two patches,
2. merge patch 4&5 into one patch, and
3. reorganize the patchset as "(1) binding doc (2) controller driver
(3) protocol driver (4) devicetree (5) energy patch" ?
Thanks,
HS
Quoted 57 lines · Horng-Shyang Liao
Quoted 47 lines · Jassi Brar
Quoted 46 lines · Horng-Shyang Liao
Quoted 24 lines · HS Liao
Hi,
This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement.
These patches have a build dependency on top of v4.9-rc1.
Changes since v15:
- separate "suspend and resume" patch from "save energy" patch
- don't stop running tasks incmdq_suspend()
(i.e. leave no running tasks guarantee to clients)Best regards,
HS LiaoHS Liao (5):
dt-bindings: soc: Add documentation for the MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: suspend and resume
CMDQ: save energyQuoted 17 lines
.../devicetree/bindings/mailbox/mtk-gce.txt | 43 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 + drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c | 632 +++++++++++++++++++++ drivers/soc/mediatek/Kconfig | 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 ++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 67 +++ include/linux/soc/mediatek/mtk-cmdq.h | 182 ++++++ 10 files changed, 1268 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mtk-gce.txt create mode 100644 drivers/mailbox/mtk-cmdq-mailbox.c create mode 100644 drivers/soc/mediatek/mtk-cmdq-helper.c create mode 100644 include/linux/mailbox/mtk-cmdq-mailbox.h create mode 100644 include/linux/soc/mediatek/mtk-cmdq.hHi Jassi, Matthias,
Quoted 8 lines
Quoted 2 lines
Sorry to disturb you.
No, you don't disturb, but the controller driver and protocol driver,
introduced in the same patch, does :) So does the suspend/resume
support (patch 4&5) added separately as a patch on top. Please reorganise the patchset.Thanks.
Quoted 8 lines
Hi Jassi,
Do you mean
1. split controller driver and protocol driver as two patches,
2. merge patch 4&5 into one patch, and
3. reorganize the patchset as "(1) binding doc (2) controller driver
(3) protocol driver (4) devicetree (5) energy patch" ?
Merge any patch to controller driver, in the patch that adds the controller driver. Protocol driver patch should be the last in the series.