From: HS Liao <hs.liao@mediatek.com>
To: Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: Daniel Kurtz <djkurtz@chromium.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com,
Sascha Hauer <kernel@pengutronix.de>,
Philipp Zabel <p.zabel@pengutronix.de>,
Nicolas Boichat <drinkcat@chromium.org>,
CK HU <ck.hu@mediatek.com>, cawa cheng <cawa.cheng@mediatek.com>,
Bibby Hsieh <bibby.hsieh@mediatek.com>,
YT Shen <yt.shen@mediatek.com>,
Daoyuan Huang <daoyuan.huang@mediatek.com>,
Damon Chu <damon.chu@mediatek.com>,
Josh-YC Liu <josh-yc.liu@mediatek.com>,
Glory Hung <glory.hung@mediatek.com>,
Jiaguang Zhang <jiaguang.zhang@mediatek.com>,
Dennis-YC Hsieh <dennis-yc.hsieh@mediatek.com>,
Monica Wang <monica.wang@mediatek.com>
Subject: [PATCH v9 0/4] Mediatek MT8173 CMDQ support
Date: Thu, 30 Jun 2016 15:14:39 +0800 [thread overview]
Message-ID: <1467270883-1407-1-git-send-email-hs.liao@mediatek.com> (raw)
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.7-rc1.
Changes since v8:
- use mailbox framework, and merge options for GCE thread into
mailbox channel
- use timer to handle timeout case
- rename cmdq_handle_error_done to cmdq_thread_irq_handler, handle
error by cmdq_task_handle_error, and handle timeout by
cmdq_thread_handle_timeout
- use bitops
- fix bug of treating working task as done task
- move GCE hardware events' mapping from header to driver
- remove code about previous tasks since we should keep tasks' order
for display, and it is impossible to have previous tasks
- centralize 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 MediaTek GCE unit
CMDQ: Mediatek CMDQ driver
arm64: dts: mt8173: Add GCE node
CMDQ: save more energy in idle
.../devicetree/bindings/soc/mediatek/gce.txt | 44 +
arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 +
drivers/soc/mediatek/Kconfig | 11 +
drivers/soc/mediatek/Makefile | 1 +
drivers/soc/mediatek/mtk-cmdq.c | 967 +++++++++++++++++++++
include/soc/mediatek/cmdq.h | 192 ++++
6 files changed, 1225 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/mediatek/gce.txt
create mode 100644 drivers/soc/mediatek/mtk-cmdq.c
create mode 100644 include/soc/mediatek/cmdq.h
--
1.9.1
next reply other threads:[~2016-06-30 7:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 7:14 HS Liao [this message]
2016-06-30 7:14 ` [PATCH v9 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit HS Liao
[not found] ` <1467270883-1407-2-git-send-email-hs.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-07-08 10:17 ` Jan Lübbe
[not found] ` <1467973066.2472.238.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2016-07-11 2:55 ` Horng-Shyang Liao
2016-06-30 7:14 ` [PATCH v9 2/4] CMDQ: Mediatek CMDQ driver HS Liao
2016-06-30 7:14 ` [PATCH v9 3/4] arm64: dts: mt8173: Add GCE node HS Liao
[not found] ` <1467270883-1407-1-git-send-email-hs.liao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2016-06-30 7:14 ` [PATCH v9 4/4] CMDQ: save more energy in idle HS Liao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467270883-1407-1-git-send-email-hs.liao@mediatek.com \
--to=hs.liao@mediatek.com \
--cc=bibby.hsieh@mediatek.com \
--cc=cawa.cheng@mediatek.com \
--cc=ck.hu@mediatek.com \
--cc=damon.chu@mediatek.com \
--cc=daoyuan.huang@mediatek.com \
--cc=dennis-yc.hsieh@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=djkurtz@chromium.org \
--cc=drinkcat@chromium.org \
--cc=glory.hung@mediatek.com \
--cc=jiaguang.zhang@mediatek.com \
--cc=josh-yc.liu@mediatek.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=monica.wang@mediatek.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=srv_heupstream@mediatek.com \
--cc=yt.shen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).