From: Lucas Stach <l.stach@pengutronix.de>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>,
djakov@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de
Cc: festevam@gmail.com, linux-imx@nxp.com,
laurent.pinchart@ideasonboard.com, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH 0/5] imx: support noc settings with power domain
Date: Wed, 06 Apr 2022 11:47:54 +0200 [thread overview]
Message-ID: <6a77a71069d771d408f716d05cafc6b3a1e13cda.camel@pengutronix.de> (raw)
In-Reply-To: <20220406082330.2681591-1-peng.fan@oss.nxp.com>
Hi Peng,
Am Mittwoch, dem 06.04.2022 um 16:23 +0800 schrieb Peng Fan (OSS):
> From: Peng Fan <peng.fan@nxp.com>
>
> i.MX8MP has a design that NoC(Not main NoC) is distributed in multiple
> blocks, such as vpumix, hsiomix and etc. The access to NoC requires
> power domain on and blk ctrl settings configured.
>
> So the design here is for mixes that not have blk-ctrl, configure
> the NoC in gpcv2 driver, for mixes that have blk-ctrl, configure
> the NoC in blk-ctrl drivers.
>
> This v1 patchset not apply on Shawn's tree, I picked up Lucas's HSIO
> and Laurent's mediablk patches, then worked out this patchset:
> https://github.com/MrVan/linux/tree/noc-imx8mp
>
> Note: This interconnect related functions not added. This patchset
> is only to replace the function did in NXP downstream:
> https://source.codeaurora.org/external/imx/imx-atf/tree/plat/imx/imx8m/imx8mp/gpc.c?h=lf_v2.4#n157
As a general comment I think this is implemented the wrong way around.
Neither GPC, nor the blk-ctrl should poke into the NoC registers
directly. The NoC driver should attach itself to the power domain via a
notifier (same as the blk-ctrl does with the GPC domains) and should do
the necessary NoC configuration when the power domain is powered up.
Regards,
Lucas
>
> Peng Fan (5):
> dt-bindings: interconnect: imx8m: Add bindings for imx8mp noc
> arm64: dts: imx8mp: add noc node
> soc: imx: gpcv2: support i.MX8MP NoC settings
> soc: imx: imx8m-blk-ctrl: support i.MX8MP media blk ctrl noc settings
> soc: imx: imx8mp-blk-ctrl: introduce HSIO blk ctrl noc settings
>
> .../bindings/interconnect/fsl,imx8m-noc.yaml | 6 +
> arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 ++
> drivers/soc/imx/gpcv2.c | 56 ++++++++-
> drivers/soc/imx/imx8m-blk-ctrl.c | 109 ++++++++++++++++++
> drivers/soc/imx/imx8mp-blk-ctrl.c | 74 ++++++++++++
> 5 files changed, 251 insertions(+), 1 deletion(-)
>
next prev parent reply other threads:[~2022-04-06 14:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 8:23 [PATCH 0/5] imx: support noc settings with power domain Peng Fan (OSS)
2022-04-06 8:23 ` [PATCH 1/5] dt-bindings: interconnect: imx8m: Add bindings for imx8mp noc Peng Fan (OSS)
2022-04-06 8:40 ` Laurent Pinchart
2022-04-06 11:21 ` Peng Fan
2022-04-06 8:23 ` [PATCH 2/5] arm64: dts: imx8mp: add noc node Peng Fan (OSS)
2022-04-06 8:57 ` Laurent Pinchart
2022-04-06 9:33 ` Peng Fan
2022-04-06 8:23 ` [PATCH 3/5] soc: imx: gpcv2: support i.MX8MP NoC settings Peng Fan (OSS)
2022-04-06 8:23 ` [PATCH 4/5] soc: imx: imx8m-blk-ctrl: support i.MX8MP media blk ctrl noc settings Peng Fan (OSS)
2022-04-06 9:42 ` Laurent Pinchart
2022-04-06 8:23 ` [PATCH 5/5] soc: imx: imx8mp-blk-ctrl: introduce HSIO " Peng Fan (OSS)
2022-04-06 9:45 ` Laurent Pinchart
2022-04-06 9:47 ` Lucas Stach [this message]
2022-04-06 10:55 ` [PATCH 0/5] imx: support noc settings with power domain Peng Fan
2022-04-06 11:56 ` Lucas Stach
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=6a77a71069d771d408f716d05cafc6b3a1e13cda.camel@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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).