[PATCH v20 0/4] Mediatek MT8173 CMDQ support

2017-01-03 Thread HS Liao
dependency on top of v4.10-rc2. Changes since v19: - rebase to v4.10-rc2 Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit mailbox: mediatek: Add Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node soc: mediatek: Add Mediatek CMDQ helper

[PATCH v20 4/4] soc: mediatek: Add Mediatek CMDQ helper

2017-01-03 Thread HS Liao
Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 12 ++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 + include/linux/soc

[PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2017-01-03 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v20 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2017-01-03 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v20 3/4] arm64: dts: mt8173: Add GCE node

2017-01-03 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v19 4/4] soc: mediatek: Add Mediatek CMDQ helper

2017-01-02 Thread HS Liao
Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 12 ++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 + include/linux/soc

[PATCH v19 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2017-01-02 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v19 0/4] Mediatek MT8173 CMDQ support

2017-01-02 Thread HS Liao
dependency on top of v4.10-rc1. Changes since v18: - add "select MAILBOX" into CMDQ helper - remove power saving part to prevent a potential bug Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit mailbox: mediatek: Add Mediatek CMDQ driv

[PATCH v19 3/4] arm64: dts: mt8173: Add GCE node

2017-01-02 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v19 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2017-01-02 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v18 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2016-12-26 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v18 3/4] arm64: dts: mt8173: Add GCE node

2016-12-26 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v18 4/4] soc: mediatek: Add Mediatek CMDQ helper

2016-12-26 Thread HS Liao
Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 11 ++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 + include/linux/soc

[PATCH v18 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-12-26 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v18 0/4] Mediatek MT8173 CMDQ support

2016-12-26 Thread HS Liao
dependency on top of v4.10-rc1. Changes since v17: - rebase to v4.10-rc1 Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit mailbox: mediatek: Add Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node soc: mediatek: Add Mediatek CMDQ helper

[PATCH v17 3/4] arm64: dts: mt8173: Add GCE node

2016-11-23 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v17 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-11-23 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v17 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2016-11-23 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v17 0/4] Mediatek MT8173 CMDQ support

2016-11-23 Thread HS Liao
dependency on top of v4.9-rc1. Changes since v16: - merge suspend/resume patch into cmdq driver patch - merge power saving patch into cmdq driver patch - split cmdq mailbox controller and cmdq helper into two different patches Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add

[PATCH v17 4/4] soc: mediatek: Add Mediatek CMDQ helper

2016-11-23 Thread HS Liao
Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig | 11 ++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq-helper.c | 310 + include/linux/soc

[PATCH v16 2/5] CMDQ: Mediatek CMDQ driver

2016-11-01 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v16 3/5] arm64: dts: mt8173: Add GCE node

2016-11-01 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v16 5/5] CMDQ: save energy

2016-11-01 Thread HS Liao
use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/mailbox/mtk-cmdq-mailbox.c | 52 -- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b

[PATCH v16 4/5] CMDQ: suspend and resume

2016-11-01 Thread HS Liao
take suspend and resume into consideration Signed-off-by: HS Liao --- drivers/mailbox/mtk-cmdq-mailbox.c | 44 ++ 1 file changed, 44 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index d086fd8..747bcd3

[PATCH v16 1/5] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-11-01 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v16 0/5] Mediatek MT8173 CMDQ support

2016-11-01 Thread HS Liao
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:

[PATCH v15 3/4] arm64: dts: mt8173: Add GCE node

2016-10-17 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v15 4/4] CMDQ: save energy

2016-10-17 Thread HS Liao
1. take suspend/resume into consideration 2. use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/mailbox/mtk-cmdq-mailbox.c | 94 +++--- 1 file changed, 88 insertions(+), 6 deletions

[PATCH v15 2/4] CMDQ: Mediatek CMDQ driver

2016-10-17 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq-mailbox.c

[PATCH v15 0/4] Mediatek MT8173 CMDQ support

2016-10-17 Thread HS Liao
platform_get_irq() - remove .owner = THIS_MODULE - rebase to Linux v4.9-rc1 Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node CMDQ: save energy .../devicetree/bindings/mailbox/mtk

[PATCH v15 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-10-17 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v14 4/4] CMDQ: save more energy in idle

2016-09-04 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/mailbox/mtk-cmdq.c | 54 +++--- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/mailbox/mtk-cmdq.c b/drivers

[PATCH v14 3/4] arm64: dts: mt8173: Add GCE node

2016-09-04 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v14 2/4] CMDQ: Mediatek CMDQ driver

2016-09-04 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/mailbox/Kconfig | 10 + drivers/mailbox/Makefile | 2 + drivers/mailbox/mtk-cmdq.c | 927

[PATCH v14 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-09-04 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt| 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation

[PATCH v14 0/4] Mediatek MT8173 CMDQ support

2016-09-04 Thread HS Liao
dependency on top of v4.8-rc1. Changes since v13: - move to mailbox folder - simplify cmdq_thread_is_in_wfe Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node CMDQ: save more energy in

[PATCH v13 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-08-23 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation

[PATCH v13 2/4] CMDQ: Mediatek CMDQ driver

2016-08-23 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 945

[PATCH v13 4/4] CMDQ: save more energy in idle

2016-08-23 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 54 +++-- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b

[PATCH v13 3/4] arm64: dts: mt8173: Add GCE node

2016-08-23 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v13 0/4] Mediatek MT8173 CMDQ support

2016-08-23 Thread HS Liao
dependency on top of v4.8-rc1. Changes since v12: - remove mediatek,gce from device tree Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node CMDQ: save more energy in idle

[PATCH v12 3/4] arm64: dts: mt8173: Add GCE node

2016-08-08 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v12 4/4] CMDQ: save more energy in idle

2016-08-08 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 54 +++-- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b

[PATCH v12 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-08-08 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation

[PATCH v12 2/4] CMDQ: Mediatek CMDQ driver

2016-08-08 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 948

[PATCH v12 0/4] Mediatek MT8173 CMDQ support

2016-08-08 Thread HS Liao
dependency on top of v4.8-rc1. Changes since v11: - rebase to v4.8-rc1 - mutex_init before mbox_controller_register - fix one typo error Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE

[PATCH v11 4/4] CMDQ: save more energy in idle

2016-07-27 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 55 +++-- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b

[PATCH v11 3/4] arm64: dts: mt8173: Add GCE node

2016-07-27 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v11 2/4] CMDQ: Mediatek CMDQ driver

2016-07-27 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 947

[PATCH v11 0/4] Mediatek MT8173 CMDQ support

2016-07-27 Thread HS Liao
dependency on top of v4.7-rc1. Changes since v10: - remove module.h Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node CMDQ: save more energy in idle .../devicetree/bindings/soc

[PATCH v11 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-07-27 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation

[PATCH v10 2/4] CMDQ: Mediatek CMDQ driver

2016-07-14 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 948

[PATCH v10 0/4] Mediatek MT8173 CMDQ support

2016-07-14 Thread HS Liao
been modified to the same as cmdq_rec in CMDQ v9 - refine mailbox part in device tree binding document Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node CMDQ: save more energy in

[PATCH v10 3/4] arm64: dts: mt8173: Add GCE node

2016-07-14 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v10 4/4] CMDQ: save more energy in idle

2016-07-14 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 55 +++-- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b

[PATCH v10 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-07-14 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation

[PATCH v9 4/4] CMDQ: save more energy in idle

2016-06-30 Thread HS Liao
Use clk_disable_unprepare instead of clk_disable to save more energy when CMDQ is idle. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 55 +++-- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b

[PATCH v9 3/4] arm64: dts: mt8173: Add GCE node

2016-06-30 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[PATCH v9 2/4] CMDQ: Mediatek CMDQ driver

2016-06-30 Thread HS Liao
supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 928

[PATCH v9 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-06-30 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation

[PATCH v9 0/4] Mediatek MT8173 CMDQ support

2016-06-30 Thread HS Liao
ze code to handle executed tasks in cmdq_task_exec_done - use u64* instead of u32* for GCE command pointer - drop cmdq_thread_readl/writel - depends on ARM64 - refine some code accroding to comments for v8 Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTe

[PATCH v8 3/3] arm64: dts: mt8173: Add GCE node

2016-05-29 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index eab7efc

[PATCH v8 2/3] CMDQ: Mediatek CMDQ driver

2016-05-29 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 943

[PATCH v8 1/3] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-05-29 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation

[PATCH v8 0/3] Mediatek MT8173 CMDQ support

2016-05-29 Thread HS Liao
comments for v7 Best regards, HS Liao HS Liao (3): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ driver arm64: dts: mt8173: Add GCE node .../devicetree/bindings/soc/mediatek/gce.txt | 34 + arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8

[PATCH v7 2/4] CMDQ: Mediatek CMDQ driver

2016-05-23 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-cmdq.c | 904

[PATCH v7 3/4] arm64: dts: mt8173: Add GCE node

2016-05-23 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index eab7efc

[PATCH v7 4/4] CMDQ: suspend/resume protection

2016-05-23 Thread HS Liao
Add suspend/resume protection mechanism to prevent active task(s) in suspend. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 174 ++-- 1 file changed, 166 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/drivers/soc

[PATCH v7 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-05-23 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation

[PATCH v7 0/4] Mediatek MT8173 CMDQ support

2016-05-23 Thread HS Liao
dependency on top of v4.6-rc1. Changes since v6: - remove task waiting list - remove cmdq_command - use kzalloc/kfree instead of kmem_cache - use u64* instead of u32* if suitable - shrink some code Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE

[PATCH v6 4/4] CMDQ: suspend/resume protection

2016-05-12 Thread HS Liao
Add suspend/resume protection mechanism to prevent active task(s) in suspend. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 266 ++-- 1 file changed, 254 insertions(+), 12 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/drivers/soc

[PATCH v6 3/4] arm64: dts: mt8173: Add GCE node

2016-05-12 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index eab7efc

[PATCH v6 2/4] CMDQ: Mediatek CMDQ driver

2016-05-12 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao Signed-off-by: CK Hu --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq.c | 1204

[PATCH v6 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-05-12 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation

[PATCH v6 0/4] Mediatek MT8173 CMDQ support

2016-05-12 Thread HS Liao
work after suspending or suspended - merge cmdq_task_create() into cmdq_task_acquire() - remove cmdq_task_free_command_buffer() and call dma_free_coherent() directly Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE unit CMDQ: Mediatek CMDQ d

[RFC v5 3/4] arm64: dts: mt8173: Add GCE node

2016-05-04 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index eab7efc

[RFC v5 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-05-04 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation

[RFC v5 4/4] CMDQ: suspend/resume protection

2016-05-04 Thread HS Liao
Add suspend/resume protection mechanism to prevent active task(s) in suspend. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 295 +++- 1 file changed, 289 insertions(+), 6 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/drivers/soc

[RFC v5 2/4] CMDQ: Mediatek CMDQ driver

2016-05-04 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq.c | 1425

[RFC v5 0/4] Mediatek MT8173 CMDQ support

2016-05-04 Thread HS Liao
- merge cmdq_rec_append_write() into cmdq_rec_append_command() - simplify some functions, such as cmdq_task_insert_into_thread(), cmdq_remove(), cmdq_task_acquire(), and cmdq_rec_append_command() - refine in program comments Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add

[RFC v4 4/4] CMDQ: suspend/resume protection

2016-04-18 Thread HS Liao
Add suspend/resume protection mechanism to prevent active task(s) in suspend. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 289 ++- 1 file changed, 282 insertions(+), 7 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/drivers/soc

[RFC v4 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-04-18 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao Acked-by: Rob Herring --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 1 file changed, 34 insertions(+) create mode 100644 Documentation

[RFC v4 2/4] CMDQ: Mediatek CMDQ driver

2016-04-18 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq.c | 1722

[RFC v4 3/4] arm64: dts: mt8173: Add GCE node

2016-04-18 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[RFC v4 0/4] Mediatek MT8173 CMDQ support

2016-04-18 Thread HS Liao
uot; patch - add queue_work() in cmdq_auto_release() to prevent no more flush or interrupt to consume waiting tasks - remove some debug or redundant code - rewrite some code to shrink code size Best regards, HS Liao HS Liao (4): dt-bindings: soc: Add documentation for the MediaTek GCE u

[RFC v3 1/3] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-03-19 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc

[RFC v3 3/3] arm64: dts: mt8173: Add GCE node

2016-03-19 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[RFC v3 2/3] CMDQ: Mediatek CMDQ driver

2016-03-19 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq.c | 1805

[RFC v3 0/3] Mediatek MT8173 CMDQ support

2016-03-19 Thread HS Liao
since client should clear event before wait it - report status to callback function - remove some debug code - remove some protection code, e.g. suspend/resume - rewrite some code to shrink code size Best regards, HS Liao HS Liao (3): dt-bindings: soc: Add documentation for the MediaTek

[RFC v2 2/3] arm64: dts: mt8173: Add GCE node

2016-03-01 Thread HS Liao
This patch adds the device node of the GCE hardware for CMDQ module. Signed-off-by: HS Liao --- arch/arm64/boot/dts/mediatek/mt8173.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index

[RFC v2 1/3] dt-bindings: soc: Add documentation for the MediaTek GCE unit

2016-03-01 Thread HS Liao
This adds documentation for the MediaTek Global Command Engine (GCE) unit found in MT8173 SoCs. Signed-off-by: HS Liao --- .../devicetree/bindings/soc/mediatek/gce.txt | 34 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc

[RFC v2 3/3] CMDQ: Mediatek CMDQ driver

2016-03-01 Thread HS Liao
only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: HS Liao --- drivers/soc/mediatek/Kconfig| 10 + drivers/soc/mediatek/Makefile |1 + drivers/soc/mediatek/mtk-cmdq.c | 2788

[RFC v2 0/3] Mediatek MT8173 CMDQ support

2016-03-01 Thread HS Liao
instead of sched_clock - use struct device instead of struct platform_device if possible - rename recorder to record - correct some typos and remove some useless code Best regards, HS Liao HS Liao (3): dt-bindings: soc: Add documentation for the MediaTek GCE unit arm64: dts: mt8173: Add GCE n