* =?y?q?=5BPATCH=C2=A0V3=201/2=5D=20mmc=3A=20sdhci-msm=3A=20Add=20interconnect=20bandwidth=20scaling=20support?=
From: Pradeep P V K @ 2020-06-05 9:30 UTC (permalink / raw)
To: bjorn.andersson, adrian.hunter, robh+dt, ulf.hansson, vbadigan,
sboyd, georgi.djakov, mka
Cc: linux-mmc, linux-kernel, linux-arm-msm, devicetree,
linux-mmc-owner, rnayak, sibis, matthias, Pradeep P V K
In-Reply-To: <1591349427-27004-1-git-send-email-ppvk@codeaurora.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1376 bytes --]
Interconnect bandwidth scaling support is now added as a
part of OPP [1]. So, make sure interconnect driver is ready
before handling interconnect scaling.
This change is based on
[1] [Patch v8] Introduce OPP bandwidth bindings
(https://lkml.org/lkml/2020/5/12/493)
[2] [Patch v3] mmc: sdhci-msm: Fix error handling
for dev_pm_opp_of_add_table()
(https://lkml.org/lkml/2020/5/5/491)
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
---
drivers/mmc/host/sdhci-msm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index b277dd7..a945e84 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/iopoll.h>
#include <linux/regulator/consumer.h>
+#include <linux/interconnect.h>
#include "sdhci-pltfm.h"
#include "cqhci.h"
@@ -2070,6 +2071,13 @@ static int sdhci_msm_probe(struct platform_device *pdev)
}
msm_host->bulk_clks[0].clk = clk;
+ /* Make sure that ICC driver is ready for interconnect bandwdith
+ * scaling before registering the device for OPP.
+ */
+ ret = dev_pm_opp_of_find_icc_paths(&pdev->dev, NULL);
+ if (ret)
+ goto bus_clk_disable;
+
msm_host->opp_table = dev_pm_opp_set_clkname(&pdev->dev, "core");
if (IS_ERR(msm_host->opp_table)) {
ret = PTR_ERR(msm_host->opp_table);
--
1.9.1
^ permalink raw reply related
* =?y?q?=5BPATCH=C2=A0V3=202/2=5D=20dt-bindings=3A=20mmc=3A=20sdhci-msm=3A=20Add=20interconnect=20BW=20scaling=20strings?=
From: Pradeep P V K @ 2020-06-05 9:30 UTC (permalink / raw)
To: bjorn.andersson, adrian.hunter, robh+dt, ulf.hansson, vbadigan,
sboyd, georgi.djakov, mka
Cc: linux-mmc, linux-kernel, linux-arm-msm, devicetree,
linux-mmc-owner, rnayak, sibis, matthias, Pradeep P V K
In-Reply-To: <1591349427-27004-1-git-send-email-ppvk@codeaurora.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1800 bytes --]
Add interconnect bandwidth scaling supported strings for qcom-sdhci
controller.
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
index b8e1d2b..3b602fd 100644
--- a/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
+++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.txt
@@ -54,6 +54,21 @@ Required properties:
- qcom,dll-config: Chipset and Platform specific value. Use this field to
specify the DLL_CONFIG register value as per Hardware Programming Guide.
+Optional Properties:
+* Following bus parameters are required for interconnect bandwidth scaling:
+- interconnects: Pairs of phandles and interconnect provider specifier
+ to denote the edge source and destination ports of
+ the interconnect path.
+
+- interconnect-names: For sdhc, we have two main paths.
+ 1. Data path : sdhc to ddr
+ 2. Config path : cpu to sdhc
+ For Data interconnect path the name supposed to be
+ is "sdhc-ddr" and for config interconnect path it is
+ "cpu-sdhc".
+ Please refer to Documentation/devicetree/bindings/
+ interconnect/ for more details.
+
Example:
sdhc_1: sdhci@f9824900 {
@@ -71,6 +86,9 @@ Example:
clocks = <&gcc GCC_SDCC1_APPS_CLK>, <&gcc GCC_SDCC1_AHB_CLK>;
clock-names = "core", "iface";
+ interconnects = <&qnoc MASTER_SDCC_ID &qnoc SLAVE_DDR_ID>,
+ <&qnoc MASTER_CPU_ID &qnoc SLAVE_SDCC_ID>;
+ interconnect-names = "sdhc-ddr","cpu-sdhc";
qcom,dll-config = <0x000f642c>;
qcom,ddr-config = <0x80040868>;
--
1.9.1
^ permalink raw reply related
* Re: Security Random Number Generator support
From: Russell King - ARM Linux admin @ 2020-06-05 9:27 UTC (permalink / raw)
To: Neal Liu
Cc: Marc Zyngier,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Julius Werner, Herbert Xu, Arnd Bergmann, Greg Kroah-Hartman,
Sean Wang, linux-mediatek@lists.infradead.org, lkml, wsd_upstream,
Rob Herring, Linux Crypto Mailing List, Matt Mackall,
Matthias Brugger, Crystal Guo (郭晶), Ard Biesheuvel,
Linux ARM
In-Reply-To: <1591347582.21704.9.camel@mtkswgap22>
On Fri, Jun 05, 2020 at 04:59:42PM +0800, Neal Liu wrote:
> On Fri, 2020-06-05 at 09:09 +0100, Russell King - ARM Linux admin wrote:
> > On Fri, Jun 05, 2020 at 03:19:03PM +0800, Neal Liu wrote:
> > > On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote:
> > > > This kind of thing is something that ARM have seems to shy away from
> > > > doing - it's a point I brought up many years ago when the whole
> > > > trustzone thing first appeared with its SMC call. Those around the
> > > > conference table were not interested - ARM seemed to prefer every
> > > > vendor to do off and do their own thing with the SMC interface.
> > >
> > > Does that mean it make sense to model a sec-rng driver, and get each
> > > vendor's SMC function id by DT node?
> >
> > _If_ vendors have already gone off and decided to use different SMC
> > function IDs for this, while keeping the rest of the SMC interface
> > the same, then the choice has already been made.
> >
> > I know on 32-bit that some of the secure world implementations can't
> > be changed; they're burnt into the ROM. I believe on 64-bit that isn't
> > the case, which makes it easier to standardise.
> >
> > Do you have visibility of how this SMC is implemented in the secure
> > side? Is it in ATF, and is it done as a vendor hack or is there an
> > element of generic implementation to it? Has it been submitted
> > upstream to the main ATF repository?
> >
>
> Take MediaTek as an example, some SoCs are implemented in ATF, some of
> them are implemented in TEE. We have no plan to make generic
> implementation in "secure world".
I think you have your answer right there - by _not_ making the API
generic and giving no motivation to use it, different vendors are
going to do different things (maybe even with a different API as well)
so there's no point the kernel driver pretending to be a generic
driver. If the driver isn't going to be generic, I see little point in
the SMC function number being in DT.
I think that as a _whole_ is a big mistake - there should be a generic
kernel driver for this, and there should be a standardised interface to
it through firmware. So, I would encourage you to try to get it
accepted one way or another amongst vendors as a standardised
interface.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up
^ permalink raw reply
* Re: [PATCH v3 4/7] mfd: arizona: Move binding over to dtschema
From: Charles Keepax @ 2020-06-05 9:05 UTC (permalink / raw)
To: Rob Herring
Cc: cw00.choi, lee.jones, linus.walleij, broonie, myungjoo.ham,
lgirdwood, linux-kernel, devicetree, patches
In-Reply-To: <20200527194329.GA2608641@bogus>
On Wed, May 27, 2020 at 01:43:29PM -0600, Rob Herring wrote:
> On Wed, May 13, 2020 at 10:57:17AM +0100, Charles Keepax wrote:
> > Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
> > ---
> > + LDOVDD-supply:
> > + description:
> > + Digital power supply, used internally to generate DCVDD when
> > + internally supplied.
> > + $ref: /schemas/types.yaml#/definitions/phandle
>
> Don't need a type. *-supply has one already.
>
> I'll fix up when applying.
Just noticing as my kernel updated with the patches that for some
reason the type on -supply doesn't seem to get applied. I can set
the supplies to strings or integers and it still passes the
schema, without those extra $ref's I had in.
Thanks,
Charles
^ permalink raw reply
* Re: Security Random Number Generator support
From: Neal Liu @ 2020-06-05 8:59 UTC (permalink / raw)
To: Russell King - ARM Linux admin
Cc: Marc Zyngier,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Julius Werner, Herbert Xu, Arnd Bergmann, Greg Kroah-Hartman,
Sean Wang, linux-mediatek@lists.infradead.org, lkml, wsd_upstream,
Rob Herring, Linux Crypto Mailing List, Matt Mackall,
Matthias Brugger, Crystal Guo (郭晶), Ard Biesheuvel,
Linux ARM
In-Reply-To: <20200605080905.GF1551@shell.armlinux.org.uk>
On Fri, 2020-06-05 at 09:09 +0100, Russell King - ARM Linux admin wrote:
> On Fri, Jun 05, 2020 at 03:19:03PM +0800, Neal Liu wrote:
> > On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote:
> > > This kind of thing is something that ARM have seems to shy away from
> > > doing - it's a point I brought up many years ago when the whole
> > > trustzone thing first appeared with its SMC call. Those around the
> > > conference table were not interested - ARM seemed to prefer every
> > > vendor to do off and do their own thing with the SMC interface.
> >
> > Does that mean it make sense to model a sec-rng driver, and get each
> > vendor's SMC function id by DT node?
>
> _If_ vendors have already gone off and decided to use different SMC
> function IDs for this, while keeping the rest of the SMC interface
> the same, then the choice has already been made.
>
> I know on 32-bit that some of the secure world implementations can't
> be changed; they're burnt into the ROM. I believe on 64-bit that isn't
> the case, which makes it easier to standardise.
>
> Do you have visibility of how this SMC is implemented in the secure
> side? Is it in ATF, and is it done as a vendor hack or is there an
> element of generic implementation to it? Has it been submitted
> upstream to the main ATF repository?
>
Take MediaTek as an example, some SoCs are implemented in ATF, some of
them are implemented in TEE. We have no plan to make generic
implementation in "secure world".
Due to there must have different implementation in secure world for
vendors, we plan to provide a generic SMC interface in secure rng kernel
driver for more flexibility.
Vendors can decide which "secure world" they want (HYP/ATF/TEE) by
different smc/hvc and different SMC function IDs in DT node.
^ permalink raw reply
* Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU
From: Sudeep Holla @ 2020-06-05 8:58 UTC (permalink / raw)
To: Jassi Brar
Cc: Viresh Kumar, Rob Herring, Arnd Bergmann, Frank Rowand,
Bjorn Andersson, Vincent Guittot, Sudeep Holla, linux-arm-kernel,
Devicetree List, Linux Kernel Mailing List
In-Reply-To: <CABb+yY2YZ99NjHYNi0=KLGFDsVUeJmqiJD3E25Chwk-THJV4iw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2568 bytes --]
On Fri, Jun 05, 2020 at 01:30:54AM -0500, Jassi Brar wrote:
> On Thu, Jun 4, 2020 at 11:56 PM Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> >
> > > >> bash-1526 [000] 1149.472553: scmi_xfer_begin: transfer_id=1538 msg_id=6 protocol_id=21 seq=0 poll=0
> > > >> <idle>-0 [001] 1149.472733: scmi_xfer_begin: transfer_id=1539 msg_id=7 protocol_id=19 seq=1 poll=1
> > > >
> > > Here another request is started before the first is finished.
> >
> > Ah, the prints are when the client requested. It is not when the mailbox
> > started it. So this just indicates the beginning of the transfer from the
> > client.
> >
> There maybe condition on a sensor read to finish within 1ms, but there
> is no condition for the read to _start_ at this very moment (usually
> there are sleeps in the path to sensor requests).
>
Again I wasn't clear. The trace logs are at the point just before calling
mbox_send_messages. So any delay in sensor drivers won't get include. It
is after the point sensor driver request to read the value and before we
send the request via mailbox.
> > > If you want this to work you have to serialise access to the single
> > > physical channel and/or run the remote firmware in asynchronous mode -
> > > that is, the firmware ack the bit as soon as it sees and starts
> > > working in the background, so that we return in ~3usec always, while
> > > the data returns whenever it is ready.
> >
> > Yes it does that for few requests like DVFS while it uses synchronous
> > mode for few others. While ideally I agree everything in asynchronous
> > most is better, I don't know there may be reasons for such design.
> >
> The reason is that, if the firmware works asynchronously, every call
> would return in ~3usec and you won't think you need virtual channels.
>
I really wish that was the case. Life would have been much simpler. I
did remember one reason after my earlier email. For DVFS, OSPM need
not rely on response. It operates in fire and forget mode. While sensors
we need the value back. And one main reason for not making the call
async in the specification is that it needs to support platforms without
Rx interrupts or even transport like SMC which may not have reverse path
without as real mailbox.
> You have shared only 'bad' log without serialising access. Please
> share log after serialising access to the channel and the 'good' log
> with virtual channels. That should put the topic to rest.
>
I didn't realise that, sorry for missing that earlier. Attached both
now, thanks for asking.
--
Regards,
Sudeep
[-- Attachment #2: good_trace.txt --]
[-- Type: text/plain, Size: 72000 bytes --]
bash-1062 [000] 103.333397: scmi_xfer_begin: transfer_id=1191 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1062 [000] 103.333464: scmi_xfer_end: transfer_id=1191 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 103.353821: scmi_xfer_begin: transfer_id=1192 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [000] 103.354003: scmi_xfer_begin: transfer_id=1193 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 103.354062: scmi_xfer_end: transfer_id=1193 msg_id=7 protocol_id=19 seq=1 status=0
migration/0-11 [000] 103.354119: scmi_xfer_begin: transfer_id=1194 msg_id=7 protocol_id=19 seq=1 poll=1
migration/0-11 [000] 103.354224: scmi_xfer_end: transfer_id=1194 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 103.354504: scmi_xfer_end: transfer_id=1192 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.354707: scmi_xfer_begin: transfer_id=1195 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.355037: scmi_xfer_end: transfer_id=1195 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.355215: scmi_xfer_begin: transfer_id=1196 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.355878: scmi_xfer_end: transfer_id=1196 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.356031: scmi_xfer_begin: transfer_id=1197 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.356408: scmi_xfer_end: transfer_id=1197 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.356581: scmi_xfer_begin: transfer_id=1198 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.357642: scmi_xfer_end: transfer_id=1198 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.357797: scmi_xfer_begin: transfer_id=1199 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.358476: scmi_xfer_end: transfer_id=1199 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.358626: scmi_xfer_begin: transfer_id=1200 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.359283: scmi_xfer_end: transfer_id=1200 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.359434: scmi_xfer_begin: transfer_id=1201 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.360073: scmi_xfer_end: transfer_id=1201 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.360246: scmi_xfer_begin: transfer_id=1202 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.360477: scmi_xfer_end: transfer_id=1202 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.360631: scmi_xfer_begin: transfer_id=1203 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.360694: scmi_xfer_end: transfer_id=1203 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.360846: scmi_xfer_begin: transfer_id=1204 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.360907: scmi_xfer_end: transfer_id=1204 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.361058: scmi_xfer_begin: transfer_id=1205 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.361119: scmi_xfer_end: transfer_id=1205 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.361294: scmi_xfer_begin: transfer_id=1206 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.361357: scmi_xfer_end: transfer_id=1206 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.361528: scmi_xfer_begin: transfer_id=1207 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.361885: scmi_xfer_end: transfer_id=1207 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.362040: scmi_xfer_begin: transfer_id=1208 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.362104: scmi_xfer_end: transfer_id=1208 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.362256: scmi_xfer_begin: transfer_id=1209 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.362319: scmi_xfer_end: transfer_id=1209 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.362492: scmi_xfer_begin: transfer_id=1210 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.362897: scmi_xfer_end: transfer_id=1210 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.363047: scmi_xfer_begin: transfer_id=1211 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.363450: scmi_xfer_end: transfer_id=1211 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.363598: scmi_xfer_begin: transfer_id=1212 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 103.364076: scmi_xfer_begin: transfer_id=1213 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 103.364129: scmi_xfer_end: transfer_id=1213 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 103.364140: scmi_xfer_end: transfer_id=1212 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.364410: scmi_xfer_begin: transfer_id=1214 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 103.364550: scmi_xfer_begin: transfer_id=1215 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 103.364558: scmi_xfer_end: transfer_id=1214 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 103.364601: scmi_xfer_end: transfer_id=1215 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 103.364736: scmi_xfer_begin: transfer_id=1216 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.364803: scmi_xfer_end: transfer_id=1216 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.365008: scmi_xfer_begin: transfer_id=1217 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.365070: scmi_xfer_end: transfer_id=1217 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 103.365245: scmi_xfer_begin: transfer_id=1218 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 103.365306: scmi_xfer_end: transfer_id=1218 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [004] 103.397691: scmi_xfer_begin: transfer_id=1219 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 103.397778: scmi_xfer_end: transfer_id=1219 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 104.386362: scmi_xfer_begin: transfer_id=1220 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 104.386429: scmi_xfer_end: transfer_id=1220 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 104.389005: scmi_xfer_begin: transfer_id=1221 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 104.389180: scmi_xfer_begin: transfer_id=1222 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 104.389239: scmi_xfer_end: transfer_id=1222 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 104.389295: scmi_xfer_end: transfer_id=1221 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.389548: scmi_xfer_begin: transfer_id=1223 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.390181: scmi_xfer_end: transfer_id=1223 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.390377: scmi_xfer_begin: transfer_id=1224 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.390895: scmi_xfer_end: transfer_id=1224 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.391085: scmi_xfer_begin: transfer_id=1225 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.391298: scmi_xfer_end: transfer_id=1225 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.391512: scmi_xfer_begin: transfer_id=1226 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.392115: scmi_xfer_end: transfer_id=1226 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.392288: scmi_xfer_begin: transfer_id=1227 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.392953: scmi_xfer_end: transfer_id=1227 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.393129: scmi_xfer_begin: transfer_id=1228 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.393790: scmi_xfer_end: transfer_id=1228 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.393968: scmi_xfer_begin: transfer_id=1229 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.394584: scmi_xfer_end: transfer_id=1229 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.394797: scmi_xfer_begin: transfer_id=1230 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.394995: scmi_xfer_end: transfer_id=1230 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.395173: scmi_xfer_begin: transfer_id=1231 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.395400: scmi_xfer_end: transfer_id=1231 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.395581: scmi_xfer_begin: transfer_id=1232 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.395806: scmi_xfer_end: transfer_id=1232 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.395979: scmi_xfer_begin: transfer_id=1233 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.396045: scmi_xfer_end: transfer_id=1233 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.396260: scmi_xfer_begin: transfer_id=1234 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.396325: scmi_xfer_end: transfer_id=1234 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.396509: scmi_xfer_begin: transfer_id=1235 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.396574: scmi_xfer_end: transfer_id=1235 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.396751: scmi_xfer_begin: transfer_id=1236 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.396815: scmi_xfer_end: transfer_id=1236 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.396992: scmi_xfer_begin: transfer_id=1237 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 104.397052: scmi_xfer_begin: transfer_id=1238 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 104.397106: scmi_xfer_end: transfer_id=1238 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 104.397119: scmi_xfer_end: transfer_id=1237 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.397525: scmi_xfer_begin: transfer_id=1239 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.398021: scmi_xfer_end: transfer_id=1239 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.398337: scmi_xfer_begin: transfer_id=1240 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.398757: scmi_xfer_end: transfer_id=1240 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.399056: scmi_xfer_begin: transfer_id=1241 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 104.399585: scmi_xfer_begin: transfer_id=1242 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 104.399602: scmi_xfer_end: transfer_id=1241 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 104.399638: scmi_xfer_end: transfer_id=1242 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 104.399909: scmi_xfer_begin: transfer_id=1243 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.400298: scmi_xfer_end: transfer_id=1243 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.400609: scmi_xfer_begin: transfer_id=1244 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.400884: scmi_xfer_end: transfer_id=1244 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.401212: scmi_xfer_begin: transfer_id=1245 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.401297: scmi_xfer_end: transfer_id=1245 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 104.401644: scmi_xfer_begin: transfer_id=1246 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 104.402066: scmi_xfer_end: transfer_id=1246 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [004] 104.409524: scmi_xfer_begin: transfer_id=1247 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 104.409588: scmi_xfer_end: transfer_id=1247 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 104.425570: scmi_xfer_begin: transfer_id=1248 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 104.425629: scmi_xfer_end: transfer_id=1248 msg_id=7 protocol_id=19 seq=0 status=0
kworker/u12:1-51 [005] 104.964849: scmi_xfer_begin: transfer_id=1249 msg_id=7 protocol_id=19 seq=0 poll=1
kworker/u12:1-51 [005] 104.964918: scmi_xfer_end: transfer_id=1249 msg_id=7 protocol_id=19 seq=0 status=0
modprobe-1396 [000] 104.980292: scmi_xfer_begin: transfer_id=1250 msg_id=7 protocol_id=19 seq=0 poll=1
modprobe-1396 [000] 104.980355: scmi_xfer_end: transfer_id=1250 msg_id=7 protocol_id=19 seq=0 status=0
kworker/u12:7-210 [005] 104.990761: scmi_xfer_begin: transfer_id=1251 msg_id=7 protocol_id=19 seq=0 poll=1
kworker/u12:7-210 [005] 104.990826: scmi_xfer_end: transfer_id=1251 msg_id=7 protocol_id=19 seq=0 status=0
modprobe-1399 [000] 105.002118: scmi_xfer_begin: transfer_id=1252 msg_id=7 protocol_id=19 seq=0 poll=1
modprobe-1399 [000] 105.002178: scmi_xfer_end: transfer_id=1252 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 105.408103: scmi_xfer_begin: transfer_id=1253 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 105.408171: scmi_xfer_end: transfer_id=1253 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 105.409919: scmi_xfer_begin: transfer_id=1254 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 105.410093: scmi_xfer_begin: transfer_id=1255 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 105.410152: scmi_xfer_end: transfer_id=1255 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 105.410210: scmi_xfer_end: transfer_id=1254 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.410407: scmi_xfer_begin: transfer_id=1256 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.410743: scmi_xfer_end: transfer_id=1256 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.410923: scmi_xfer_begin: transfer_id=1257 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.411275: scmi_xfer_end: transfer_id=1257 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.411467: scmi_xfer_begin: transfer_id=1258 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.411796: scmi_xfer_end: transfer_id=1258 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.412013: scmi_xfer_begin: transfer_id=1259 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.412608: scmi_xfer_end: transfer_id=1259 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.412786: scmi_xfer_begin: transfer_id=1260 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.413463: scmi_xfer_end: transfer_id=1260 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.413638: scmi_xfer_begin: transfer_id=1261 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.414301: scmi_xfer_end: transfer_id=1261 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.414484: scmi_xfer_begin: transfer_id=1262 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.415092: scmi_xfer_end: transfer_id=1262 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.415302: scmi_xfer_begin: transfer_id=1263 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.415498: scmi_xfer_end: transfer_id=1263 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.415677: scmi_xfer_begin: transfer_id=1264 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.415903: scmi_xfer_end: transfer_id=1264 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.416077: scmi_xfer_begin: transfer_id=1265 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.416309: scmi_xfer_end: transfer_id=1265 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.416486: scmi_xfer_begin: transfer_id=1266 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.416714: scmi_xfer_end: transfer_id=1266 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.416931: scmi_xfer_begin: transfer_id=1267 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.417123: scmi_xfer_end: transfer_id=1267 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.417297: scmi_xfer_begin: transfer_id=1268 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.417363: scmi_xfer_end: transfer_id=1268 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.417564: scmi_xfer_begin: transfer_id=1269 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.417650: scmi_xfer_end: transfer_id=1269 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.417828: scmi_xfer_begin: transfer_id=1270 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.417893: scmi_xfer_end: transfer_id=1270 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.418103: scmi_xfer_begin: transfer_id=1271 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 105.418505: scmi_xfer_begin: transfer_id=1272 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 105.418559: scmi_xfer_end: transfer_id=1272 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 105.418571: scmi_xfer_end: transfer_id=1271 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.418885: scmi_xfer_begin: transfer_id=1273 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.419341: scmi_xfer_end: transfer_id=1273 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.419639: scmi_xfer_begin: transfer_id=1274 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 105.420167: scmi_xfer_begin: transfer_id=1275 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 105.420181: scmi_xfer_end: transfer_id=1274 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 105.420220: scmi_xfer_end: transfer_id=1275 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 105.420480: scmi_xfer_begin: transfer_id=1276 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.420883: scmi_xfer_end: transfer_id=1276 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.421193: scmi_xfer_begin: transfer_id=1277 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.421278: scmi_xfer_end: transfer_id=1277 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.421653: scmi_xfer_begin: transfer_id=1278 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.422093: scmi_xfer_end: transfer_id=1278 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 105.422402: scmi_xfer_begin: transfer_id=1279 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 105.422678: scmi_xfer_end: transfer_id=1279 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [004] 105.429488: scmi_xfer_begin: transfer_id=1280 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 105.429552: scmi_xfer_end: transfer_id=1280 msg_id=7 protocol_id=19 seq=0 status=0
kworker/0:3-1180 [000] 105.909768: scmi_xfer_begin: transfer_id=1281 msg_id=7 protocol_id=19 seq=0 poll=1
kworker/0:3-1180 [000] 105.909831: scmi_xfer_end: transfer_id=1281 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 106.428692: scmi_xfer_begin: transfer_id=1282 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 106.428759: scmi_xfer_end: transfer_id=1282 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 106.430480: scmi_xfer_begin: transfer_id=1283 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 106.430654: scmi_xfer_begin: transfer_id=1284 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 106.430712: scmi_xfer_end: transfer_id=1284 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 106.430771: scmi_xfer_end: transfer_id=1283 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.430969: scmi_xfer_begin: transfer_id=1285 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.431304: scmi_xfer_end: transfer_id=1285 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.431491: scmi_xfer_begin: transfer_id=1286 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.431836: scmi_xfer_end: transfer_id=1286 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.432013: scmi_xfer_begin: transfer_id=1287 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.432356: scmi_xfer_end: transfer_id=1287 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.432562: scmi_xfer_begin: transfer_id=1288 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.433169: scmi_xfer_end: transfer_id=1288 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.433392: scmi_xfer_begin: transfer_id=1289 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.434162: scmi_xfer_end: transfer_id=1289 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.434339: scmi_xfer_begin: transfer_id=1290 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.434971: scmi_xfer_end: transfer_id=1290 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.435146: scmi_xfer_begin: transfer_id=1291 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.435764: scmi_xfer_end: transfer_id=1291 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.435967: scmi_xfer_begin: transfer_id=1292 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.436169: scmi_xfer_end: transfer_id=1292 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.436345: scmi_xfer_begin: transfer_id=1293 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.436576: scmi_xfer_end: transfer_id=1293 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.436751: scmi_xfer_begin: transfer_id=1294 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.436980: scmi_xfer_end: transfer_id=1294 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.437156: scmi_xfer_begin: transfer_id=1295 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.437398: scmi_xfer_end: transfer_id=1295 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.437618: scmi_xfer_begin: transfer_id=1296 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.437845: scmi_xfer_end: transfer_id=1296 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.438025: scmi_xfer_begin: transfer_id=1297 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.438262: scmi_xfer_end: transfer_id=1297 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.438440: scmi_xfer_begin: transfer_id=1298 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.438507: scmi_xfer_end: transfer_id=1298 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.438689: scmi_xfer_begin: transfer_id=1299 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 106.438751: scmi_xfer_begin: transfer_id=1300 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 106.438805: scmi_xfer_end: transfer_id=1300 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 106.438817: scmi_xfer_end: transfer_id=1299 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.439192: scmi_xfer_begin: transfer_id=1301 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.439609: scmi_xfer_end: transfer_id=1301 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.439915: scmi_xfer_begin: transfer_id=1302 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.440334: scmi_xfer_end: transfer_id=1302 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.440631: scmi_xfer_begin: transfer_id=1303 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 106.441031: scmi_xfer_begin: transfer_id=1304 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 106.441050: scmi_xfer_end: transfer_id=1303 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 106.441084: scmi_xfer_end: transfer_id=1304 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 106.441380: scmi_xfer_begin: transfer_id=1305 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.441781: scmi_xfer_end: transfer_id=1305 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.442092: scmi_xfer_begin: transfer_id=1306 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.442366: scmi_xfer_end: transfer_id=1306 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.442676: scmi_xfer_begin: transfer_id=1307 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.442947: scmi_xfer_end: transfer_id=1307 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 106.443253: scmi_xfer_begin: transfer_id=1308 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 106.443536: scmi_xfer_end: transfer_id=1308 msg_id=6 protocol_id=21 seq=0 status=0
sleep-1401 [004] 106.449303: scmi_xfer_begin: transfer_id=1309 msg_id=7 protocol_id=19 seq=0 poll=1
sleep-1401 [004] 106.449366: scmi_xfer_end: transfer_id=1309 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 106.465340: scmi_xfer_begin: transfer_id=1310 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 106.465446: scmi_xfer_end: transfer_id=1310 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 107.449657: scmi_xfer_begin: transfer_id=1311 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 107.449725: scmi_xfer_end: transfer_id=1311 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 107.451392: scmi_xfer_begin: transfer_id=1312 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 107.451565: scmi_xfer_begin: transfer_id=1313 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 107.451624: scmi_xfer_end: transfer_id=1313 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 107.451682: scmi_xfer_end: transfer_id=1312 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.451878: scmi_xfer_begin: transfer_id=1314 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.452216: scmi_xfer_end: transfer_id=1314 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.452408: scmi_xfer_begin: transfer_id=1315 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.452749: scmi_xfer_end: transfer_id=1315 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.452925: scmi_xfer_begin: transfer_id=1316 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.453278: scmi_xfer_end: transfer_id=1316 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.453497: scmi_xfer_begin: transfer_id=1317 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.454089: scmi_xfer_end: transfer_id=1317 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.454271: scmi_xfer_begin: transfer_id=1318 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.454930: scmi_xfer_end: transfer_id=1318 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.455103: scmi_xfer_begin: transfer_id=1319 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.455739: scmi_xfer_end: transfer_id=1319 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.455915: scmi_xfer_begin: transfer_id=1320 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.456531: scmi_xfer_end: transfer_id=1320 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.456745: scmi_xfer_begin: transfer_id=1321 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.456936: scmi_xfer_end: transfer_id=1321 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.457134: scmi_xfer_begin: transfer_id=1322 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.457375: scmi_xfer_end: transfer_id=1322 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.457556: scmi_xfer_begin: transfer_id=1323 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.457782: scmi_xfer_end: transfer_id=1323 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.457960: scmi_xfer_begin: transfer_id=1324 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.458186: scmi_xfer_end: transfer_id=1324 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.458397: scmi_xfer_begin: transfer_id=1325 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.458593: scmi_xfer_end: transfer_id=1325 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.458768: scmi_xfer_begin: transfer_id=1326 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.458998: scmi_xfer_end: transfer_id=1326 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.459179: scmi_xfer_begin: transfer_id=1327 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.459245: scmi_xfer_end: transfer_id=1327 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.459422: scmi_xfer_begin: transfer_id=1328 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.459488: scmi_xfer_end: transfer_id=1328 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.459701: scmi_xfer_begin: transfer_id=1329 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 107.460103: scmi_xfer_begin: transfer_id=1330 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 107.460156: scmi_xfer_end: transfer_id=1330 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 107.460169: scmi_xfer_end: transfer_id=1329 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.460483: scmi_xfer_begin: transfer_id=1331 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.460939: scmi_xfer_end: transfer_id=1331 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.461281: scmi_xfer_begin: transfer_id=1332 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 107.461983: scmi_xfer_begin: transfer_id=1333 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 107.462000: scmi_xfer_end: transfer_id=1332 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 107.462036: scmi_xfer_end: transfer_id=1333 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 107.462300: scmi_xfer_begin: transfer_id=1334 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.462695: scmi_xfer_end: transfer_id=1334 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.463001: scmi_xfer_begin: transfer_id=1335 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.463280: scmi_xfer_end: transfer_id=1335 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.463590: scmi_xfer_begin: transfer_id=1336 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.463859: scmi_xfer_end: transfer_id=1336 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 107.464158: scmi_xfer_begin: transfer_id=1337 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 107.464445: scmi_xfer_end: transfer_id=1337 msg_id=6 protocol_id=21 seq=0 status=0
sleep-1402 [004] 107.470202: scmi_xfer_begin: transfer_id=1338 msg_id=7 protocol_id=19 seq=0 poll=1
sleep-1402 [004] 107.470266: scmi_xfer_end: transfer_id=1338 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 107.489219: scmi_xfer_begin: transfer_id=1339 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 107.489319: scmi_xfer_end: transfer_id=1339 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 108.470298: scmi_xfer_begin: transfer_id=1340 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 108.470366: scmi_xfer_end: transfer_id=1340 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 108.472032: scmi_xfer_begin: transfer_id=1341 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 108.472213: scmi_xfer_begin: transfer_id=1342 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 108.472271: scmi_xfer_end: transfer_id=1342 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 108.472331: scmi_xfer_end: transfer_id=1341 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.472529: scmi_xfer_begin: transfer_id=1343 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.472865: scmi_xfer_end: transfer_id=1343 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.473119: scmi_xfer_begin: transfer_id=1344 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.473607: scmi_xfer_end: transfer_id=1344 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.473801: scmi_xfer_begin: transfer_id=1345 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.474013: scmi_xfer_end: transfer_id=1345 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.474229: scmi_xfer_begin: transfer_id=1346 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.474825: scmi_xfer_end: transfer_id=1346 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.475013: scmi_xfer_begin: transfer_id=1347 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.475662: scmi_xfer_end: transfer_id=1347 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.475834: scmi_xfer_begin: transfer_id=1348 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.476472: scmi_xfer_end: transfer_id=1348 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.476647: scmi_xfer_begin: transfer_id=1349 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.477263: scmi_xfer_end: transfer_id=1349 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.477472: scmi_xfer_begin: transfer_id=1350 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.477668: scmi_xfer_end: transfer_id=1350 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.477848: scmi_xfer_begin: transfer_id=1351 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.478073: scmi_xfer_end: transfer_id=1351 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.478248: scmi_xfer_begin: transfer_id=1352 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.478479: scmi_xfer_end: transfer_id=1352 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.478656: scmi_xfer_begin: transfer_id=1353 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.478883: scmi_xfer_end: transfer_id=1353 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.479095: scmi_xfer_begin: transfer_id=1354 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.479291: scmi_xfer_end: transfer_id=1354 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.479466: scmi_xfer_begin: transfer_id=1355 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.479697: scmi_xfer_end: transfer_id=1355 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.479873: scmi_xfer_begin: transfer_id=1356 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.479939: scmi_xfer_end: transfer_id=1356 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.480119: scmi_xfer_begin: transfer_id=1357 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.480184: scmi_xfer_end: transfer_id=1357 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.480397: scmi_xfer_begin: transfer_id=1358 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 108.480798: scmi_xfer_begin: transfer_id=1359 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 108.480851: scmi_xfer_end: transfer_id=1359 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 108.480864: scmi_xfer_end: transfer_id=1358 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.481192: scmi_xfer_begin: transfer_id=1360 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.481826: scmi_xfer_end: transfer_id=1360 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.482133: scmi_xfer_begin: transfer_id=1361 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 108.482661: scmi_xfer_begin: transfer_id=1362 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 108.482678: scmi_xfer_end: transfer_id=1361 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 108.482715: scmi_xfer_end: transfer_id=1362 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 108.482979: scmi_xfer_begin: transfer_id=1363 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.483372: scmi_xfer_end: transfer_id=1363 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.483688: scmi_xfer_begin: transfer_id=1364 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.483957: scmi_xfer_end: transfer_id=1364 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.484267: scmi_xfer_begin: transfer_id=1365 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.484538: scmi_xfer_end: transfer_id=1365 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 108.484835: scmi_xfer_begin: transfer_id=1366 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 108.485153: scmi_xfer_end: transfer_id=1366 msg_id=6 protocol_id=21 seq=0 status=0
sleep-1403 [004] 108.491061: scmi_xfer_begin: transfer_id=1367 msg_id=7 protocol_id=19 seq=0 poll=1
sleep-1403 [004] 108.491124: scmi_xfer_end: transfer_id=1367 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 108.509030: scmi_xfer_begin: transfer_id=1368 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 108.509136: scmi_xfer_end: transfer_id=1368 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 109.491168: scmi_xfer_begin: transfer_id=1369 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 109.491236: scmi_xfer_end: transfer_id=1369 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 109.493024: scmi_xfer_begin: transfer_id=1370 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 109.493198: scmi_xfer_begin: transfer_id=1371 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 109.493256: scmi_xfer_end: transfer_id=1371 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 109.493317: scmi_xfer_end: transfer_id=1370 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.493516: scmi_xfer_begin: transfer_id=1372 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.493850: scmi_xfer_end: transfer_id=1372 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.494045: scmi_xfer_begin: transfer_id=1373 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.494381: scmi_xfer_end: transfer_id=1373 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.494558: scmi_xfer_begin: transfer_id=1374 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.494899: scmi_xfer_end: transfer_id=1374 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.495119: scmi_xfer_begin: transfer_id=1375 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.495710: scmi_xfer_end: transfer_id=1375 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.495895: scmi_xfer_begin: transfer_id=1376 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.496557: scmi_xfer_end: transfer_id=1376 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.496748: scmi_xfer_begin: transfer_id=1377 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.497535: scmi_xfer_end: transfer_id=1377 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.497714: scmi_xfer_begin: transfer_id=1378 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.498326: scmi_xfer_end: transfer_id=1378 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.498538: scmi_xfer_begin: transfer_id=1379 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.498731: scmi_xfer_end: transfer_id=1379 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.498909: scmi_xfer_begin: transfer_id=1380 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.499139: scmi_xfer_end: transfer_id=1380 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.499317: scmi_xfer_begin: transfer_id=1381 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.499546: scmi_xfer_end: transfer_id=1381 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.499723: scmi_xfer_begin: transfer_id=1382 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.499951: scmi_xfer_end: transfer_id=1382 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.500164: scmi_xfer_begin: transfer_id=1383 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.500358: scmi_xfer_end: transfer_id=1383 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.500533: scmi_xfer_begin: transfer_id=1384 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.500769: scmi_xfer_end: transfer_id=1384 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.500952: scmi_xfer_begin: transfer_id=1385 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.501082: scmi_xfer_end: transfer_id=1385 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.501262: scmi_xfer_begin: transfer_id=1386 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.501327: scmi_xfer_end: transfer_id=1386 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.501538: scmi_xfer_begin: transfer_id=1387 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.501943: scmi_xfer_end: transfer_id=1387 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.502118: scmi_xfer_begin: transfer_id=1388 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 109.502519: scmi_xfer_begin: transfer_id=1389 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 109.502573: scmi_xfer_end: transfer_id=1389 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 109.502585: scmi_xfer_end: transfer_id=1388 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.502889: scmi_xfer_begin: transfer_id=1390 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 109.503528: scmi_xfer_begin: transfer_id=1391 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 109.503545: scmi_xfer_end: transfer_id=1390 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 109.503580: scmi_xfer_end: transfer_id=1391 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 109.503852: scmi_xfer_begin: transfer_id=1392 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.504073: scmi_xfer_end: transfer_id=1392 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.504380: scmi_xfer_begin: transfer_id=1393 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.504740: scmi_xfer_end: transfer_id=1393 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.505055: scmi_xfer_begin: transfer_id=1394 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.505310: scmi_xfer_end: transfer_id=1394 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 109.505616: scmi_xfer_begin: transfer_id=1395 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 109.505895: scmi_xfer_end: transfer_id=1395 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [004] 109.512728: scmi_xfer_begin: transfer_id=1396 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 109.512792: scmi_xfer_end: transfer_id=1396 msg_id=7 protocol_id=19 seq=0 status=0
kworker/0:3-1180 [000] 109.908949: scmi_xfer_begin: transfer_id=1397 msg_id=7 protocol_id=19 seq=0 poll=1
kworker/0:3-1180 [000] 109.909011: scmi_xfer_end: transfer_id=1397 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 110.512012: scmi_xfer_begin: transfer_id=1398 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 110.512079: scmi_xfer_end: transfer_id=1398 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 110.513805: scmi_xfer_begin: transfer_id=1399 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 110.513985: scmi_xfer_begin: transfer_id=1400 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 110.514043: scmi_xfer_end: transfer_id=1400 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 110.514106: scmi_xfer_end: transfer_id=1399 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.514304: scmi_xfer_begin: transfer_id=1401 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.514636: scmi_xfer_end: transfer_id=1401 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.514830: scmi_xfer_begin: transfer_id=1402 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.515170: scmi_xfer_end: transfer_id=1402 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.515347: scmi_xfer_begin: transfer_id=1403 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.515684: scmi_xfer_end: transfer_id=1403 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.515895: scmi_xfer_begin: transfer_id=1404 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.516523: scmi_xfer_end: transfer_id=1404 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.516710: scmi_xfer_begin: transfer_id=1405 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.517436: scmi_xfer_end: transfer_id=1405 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.517608: scmi_xfer_begin: transfer_id=1406 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.518244: scmi_xfer_end: transfer_id=1406 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.518422: scmi_xfer_begin: transfer_id=1407 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.519036: scmi_xfer_end: transfer_id=1407 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.519254: scmi_xfer_begin: transfer_id=1408 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.519444: scmi_xfer_end: transfer_id=1408 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.519621: scmi_xfer_begin: transfer_id=1409 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.519848: scmi_xfer_end: transfer_id=1409 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.520025: scmi_xfer_begin: transfer_id=1410 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.520252: scmi_xfer_end: transfer_id=1410 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.520424: scmi_xfer_begin: transfer_id=1411 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.520690: scmi_xfer_end: transfer_id=1411 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.520900: scmi_xfer_begin: transfer_id=1412 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.521097: scmi_xfer_end: transfer_id=1412 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.521270: scmi_xfer_begin: transfer_id=1413 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.521505: scmi_xfer_end: transfer_id=1413 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.521682: scmi_xfer_begin: transfer_id=1414 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.521748: scmi_xfer_end: transfer_id=1414 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.521927: scmi_xfer_begin: transfer_id=1415 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.521992: scmi_xfer_end: transfer_id=1415 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.522206: scmi_xfer_begin: transfer_id=1416 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 110.522607: scmi_xfer_begin: transfer_id=1417 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 110.522661: scmi_xfer_end: transfer_id=1417 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 110.522673: scmi_xfer_end: transfer_id=1416 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.522987: scmi_xfer_begin: transfer_id=1418 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.523440: scmi_xfer_end: transfer_id=1418 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.523746: scmi_xfer_begin: transfer_id=1419 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 110.524146: scmi_xfer_begin: transfer_id=1420 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 110.524165: scmi_xfer_end: transfer_id=1419 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 110.524198: scmi_xfer_end: transfer_id=1420 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 110.524464: scmi_xfer_begin: transfer_id=1421 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.524914: scmi_xfer_end: transfer_id=1421 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.525220: scmi_xfer_begin: transfer_id=1422 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.525495: scmi_xfer_end: transfer_id=1422 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.525810: scmi_xfer_begin: transfer_id=1423 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.526080: scmi_xfer_end: transfer_id=1423 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 110.526389: scmi_xfer_begin: transfer_id=1424 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 110.526660: scmi_xfer_end: transfer_id=1424 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [003] 110.536525: scmi_xfer_begin: transfer_id=1425 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [003] 110.536588: scmi_xfer_end: transfer_id=1425 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 110.548655: scmi_xfer_begin: transfer_id=1426 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 110.548761: scmi_xfer_end: transfer_id=1426 msg_id=7 protocol_id=19 seq=0 status=0
irqbalance-540 [003] 111.115371: scmi_xfer_begin: transfer_id=1427 msg_id=7 protocol_id=19 seq=0 poll=1
irqbalance-540 [003] 111.115438: scmi_xfer_end: transfer_id=1427 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [005] 111.128404: scmi_xfer_begin: transfer_id=1428 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [005] 111.128493: scmi_xfer_end: transfer_id=1428 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 111.532936: scmi_xfer_begin: transfer_id=1429 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 111.533004: scmi_xfer_end: transfer_id=1429 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 111.534670: scmi_xfer_begin: transfer_id=1430 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 111.534844: scmi_xfer_begin: transfer_id=1431 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 111.534902: scmi_xfer_end: transfer_id=1431 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [004] 111.534969: scmi_xfer_end: transfer_id=1430 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [004] 111.535185: scmi_xfer_begin: transfer_id=1432 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [004] 111.535497: scmi_xfer_end: transfer_id=1432 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [004] 111.535694: scmi_xfer_begin: transfer_id=1433 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [004] 111.536030: scmi_xfer_end: transfer_id=1433 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [004] 111.536211: scmi_xfer_begin: transfer_id=1434 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.536639: scmi_xfer_end: transfer_id=1434 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.536866: scmi_xfer_begin: transfer_id=1435 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.537461: scmi_xfer_end: transfer_id=1435 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.537651: scmi_xfer_begin: transfer_id=1436 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.538299: scmi_xfer_end: transfer_id=1436 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.538471: scmi_xfer_begin: transfer_id=1437 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.539108: scmi_xfer_end: transfer_id=1437 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.539279: scmi_xfer_begin: transfer_id=1438 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.539900: scmi_xfer_end: transfer_id=1438 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.540113: scmi_xfer_begin: transfer_id=1439 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.540333: scmi_xfer_end: transfer_id=1439 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.540514: scmi_xfer_begin: transfer_id=1440 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.540711: scmi_xfer_end: transfer_id=1440 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.540890: scmi_xfer_begin: transfer_id=1441 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.541118: scmi_xfer_end: transfer_id=1441 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.541293: scmi_xfer_begin: transfer_id=1442 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.541515: scmi_xfer_end: transfer_id=1442 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.541732: scmi_xfer_begin: transfer_id=1443 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.541917: scmi_xfer_end: transfer_id=1443 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.542092: scmi_xfer_begin: transfer_id=1444 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.542237: scmi_xfer_end: transfer_id=1444 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.542414: scmi_xfer_begin: transfer_id=1445 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.542480: scmi_xfer_end: transfer_id=1445 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.542657: scmi_xfer_begin: transfer_id=1446 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.542722: scmi_xfer_end: transfer_id=1446 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.542933: scmi_xfer_begin: transfer_id=1447 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [003] 111.543334: scmi_xfer_begin: transfer_id=1448 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [003] 111.543388: scmi_xfer_end: transfer_id=1448 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 111.543400: scmi_xfer_end: transfer_id=1447 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.543713: scmi_xfer_begin: transfer_id=1449 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.544167: scmi_xfer_end: transfer_id=1449 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.544498: scmi_xfer_begin: transfer_id=1450 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 111.545148: scmi_xfer_begin: transfer_id=1451 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 111.545163: scmi_xfer_end: transfer_id=1450 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 111.545201: scmi_xfer_end: transfer_id=1451 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 111.545470: scmi_xfer_begin: transfer_id=1452 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.545862: scmi_xfer_end: transfer_id=1452 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.546178: scmi_xfer_begin: transfer_id=1453 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.546445: scmi_xfer_end: transfer_id=1453 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.546756: scmi_xfer_begin: transfer_id=1454 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.547025: scmi_xfer_end: transfer_id=1454 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 111.547331: scmi_xfer_begin: transfer_id=1455 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 111.547419: scmi_xfer_end: transfer_id=1455 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [004] 111.556350: scmi_xfer_begin: transfer_id=1456 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 111.556414: scmi_xfer_end: transfer_id=1456 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 111.572465: scmi_xfer_begin: transfer_id=1457 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 111.572570: scmi_xfer_end: transfer_id=1457 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 112.553812: scmi_xfer_begin: transfer_id=1458 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 112.553879: scmi_xfer_end: transfer_id=1458 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 112.555578: scmi_xfer_begin: transfer_id=1459 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 112.555751: scmi_xfer_begin: transfer_id=1460 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 112.555810: scmi_xfer_end: transfer_id=1460 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 112.555872: scmi_xfer_end: transfer_id=1459 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.556068: scmi_xfer_begin: transfer_id=1461 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.556499: scmi_xfer_end: transfer_id=1461 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.556706: scmi_xfer_begin: transfer_id=1462 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.556996: scmi_xfer_end: transfer_id=1462 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.557176: scmi_xfer_begin: transfer_id=1463 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.557491: scmi_xfer_end: transfer_id=1463 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.557698: scmi_xfer_begin: transfer_id=1464 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.558307: scmi_xfer_end: transfer_id=1464 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.558494: scmi_xfer_begin: transfer_id=1465 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.559143: scmi_xfer_end: transfer_id=1465 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.559319: scmi_xfer_begin: transfer_id=1466 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.559954: scmi_xfer_end: transfer_id=1466 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.560157: scmi_xfer_begin: transfer_id=1467 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.560794: scmi_xfer_end: transfer_id=1467 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.561008: scmi_xfer_begin: transfer_id=1468 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.561202: scmi_xfer_end: transfer_id=1468 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.561381: scmi_xfer_begin: transfer_id=1469 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.561607: scmi_xfer_end: transfer_id=1469 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.561783: scmi_xfer_begin: transfer_id=1470 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.562015: scmi_xfer_end: transfer_id=1470 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.562188: scmi_xfer_begin: transfer_id=1471 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.562419: scmi_xfer_end: transfer_id=1471 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.562636: scmi_xfer_begin: transfer_id=1472 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.562827: scmi_xfer_end: transfer_id=1472 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.563005: scmi_xfer_begin: transfer_id=1473 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.563236: scmi_xfer_end: transfer_id=1473 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.563412: scmi_xfer_begin: transfer_id=1474 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.563479: scmi_xfer_end: transfer_id=1474 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.563659: scmi_xfer_begin: transfer_id=1475 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.563724: scmi_xfer_end: transfer_id=1475 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.563936: scmi_xfer_begin: transfer_id=1476 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [004] 112.564215: scmi_xfer_begin: transfer_id=1477 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [004] 112.564270: scmi_xfer_end: transfer_id=1477 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 112.564753: scmi_xfer_end: transfer_id=1476 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.565064: scmi_xfer_begin: transfer_id=1478 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.565483: scmi_xfer_end: transfer_id=1478 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.565782: scmi_xfer_begin: transfer_id=1479 msg_id=6 protocol_id=21 seq=0 poll=0
irq/14-mhu_link-190 [001] 112.566310: scmi_xfer_begin: transfer_id=1480 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1391 [003] 112.566327: scmi_xfer_end: transfer_id=1479 msg_id=6 protocol_id=21 seq=0 status=0
irq/14-mhu_link-190 [001] 112.566364: scmi_xfer_end: transfer_id=1480 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 112.566627: scmi_xfer_begin: transfer_id=1481 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.567023: scmi_xfer_end: transfer_id=1481 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.567330: scmi_xfer_begin: transfer_id=1482 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.567609: scmi_xfer_end: transfer_id=1482 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.567926: scmi_xfer_begin: transfer_id=1483 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.568213: scmi_xfer_end: transfer_id=1483 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 112.568526: scmi_xfer_begin: transfer_id=1484 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 112.568802: scmi_xfer_end: transfer_id=1484 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [003] 112.576154: scmi_xfer_begin: transfer_id=1485 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [003] 112.576217: scmi_xfer_end: transfer_id=1485 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 112.592211: scmi_xfer_begin: transfer_id=1486 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 112.592305: scmi_xfer_end: transfer_id=1486 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [004] 113.574961: scmi_xfer_begin: transfer_id=1487 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [004] 113.575029: scmi_xfer_end: transfer_id=1487 msg_id=7 protocol_id=19 seq=0 status=0
bash-1391 [003] 113.576843: scmi_xfer_begin: transfer_id=1488 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 113.577017: scmi_xfer_begin: transfer_id=1489 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 113.577076: scmi_xfer_end: transfer_id=1489 msg_id=7 protocol_id=19 seq=1 status=0
bash-1391 [003] 113.577136: scmi_xfer_end: transfer_id=1488 msg_id=6 protocol_id=21 seq=0 status=0
bash-1391 [003] 113.577333: scmi_xfer_begin: transfer_id=1490 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1391 [003] 113.577670: scmi_xfer_end: transfer_id=1490 msg_id=6 protocol_id=21 seq=0 status=0
[-- Attachment #3: bad_trace.txt --]
[-- Type: text/plain, Size: 72012 bytes --]
bash-1019 [005] 1149.452340: scmi_xfer_begin: transfer_id=1537 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1019 [005] 1149.452407: scmi_xfer_end: transfer_id=1537 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [000] 1149.472553: scmi_xfer_begin: transfer_id=1538 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.472733: scmi_xfer_begin: transfer_id=1539 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.472842: scmi_xfer_end: transfer_id=1539 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1149.483040: scmi_xfer_begin: transfer_id=1540 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.483043: scmi_xfer_end: transfer_id=1540 msg_id=7 protocol_id=19 seq=1 status=0
rs:main-543 [003] 1149.493031: scmi_xfer_begin: transfer_id=1541 msg_id=7 protocol_id=19 seq=1 poll=1
rs:main-543 [003] 1149.493047: scmi_xfer_end: transfer_id=1541 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [000] 1149.507033: scmi_xfer_begin: transfer_id=1542 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.507044: scmi_xfer_end: transfer_id=1542 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [000] 1149.516068: scmi_xfer_end: transfer_id=1538 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [000] 1149.516559: scmi_xfer_begin: transfer_id=1543 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.516729: scmi_xfer_begin: transfer_id=1544 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.516837: scmi_xfer_end: transfer_id=1544 msg_id=7 protocol_id=19 seq=1 status=-110
ksoftirqd/0-9 [000] 1149.519065: scmi_xfer_begin: transfer_id=1545 msg_id=7 protocol_id=19 seq=1 poll=1
ksoftirqd/0-9 [000] 1149.519072: scmi_xfer_end: transfer_id=1545 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [001] 1149.526878: scmi_xfer_begin: transfer_id=1546 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.526882: scmi_xfer_end: transfer_id=1546 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [000] 1149.551119: scmi_xfer_begin: transfer_id=1547 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.551138: scmi_xfer_end: transfer_id=1547 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [000] 1149.560191: scmi_xfer_end: transfer_id=1543 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [000] 1149.560690: scmi_xfer_begin: transfer_id=1548 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.560859: scmi_xfer_begin: transfer_id=1549 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.560968: scmi_xfer_end: transfer_id=1549 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1149.562882: scmi_xfer_begin: transfer_id=1550 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.562887: scmi_xfer_end: transfer_id=1550 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [001] 1149.570877: scmi_xfer_begin: transfer_id=1551 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.570881: scmi_xfer_end: transfer_id=1551 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [000] 1149.595116: scmi_xfer_begin: transfer_id=1552 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.595135: scmi_xfer_end: transfer_id=1552 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [000] 1149.604204: scmi_xfer_end: transfer_id=1548 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [000] 1149.604698: scmi_xfer_begin: transfer_id=1553 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.604867: scmi_xfer_begin: transfer_id=1554 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.604976: scmi_xfer_end: transfer_id=1554 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1149.606880: scmi_xfer_begin: transfer_id=1555 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.606886: scmi_xfer_end: transfer_id=1555 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [001] 1149.614877: scmi_xfer_begin: transfer_id=1556 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.614880: scmi_xfer_end: transfer_id=1556 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [000] 1149.639031: scmi_xfer_begin: transfer_id=1557 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.639050: scmi_xfer_end: transfer_id=1557 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [000] 1149.648098: scmi_xfer_end: transfer_id=1553 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [000] 1149.648620: scmi_xfer_begin: transfer_id=1558 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.649207: scmi_xfer_begin: transfer_id=1559 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.649315: scmi_xfer_end: transfer_id=1559 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1149.650878: scmi_xfer_begin: transfer_id=1560 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1149.650884: scmi_xfer_end: transfer_id=1560 msg_id=7 protocol_id=19 seq=1 status=0
rcu_preempt-10 [003] 1149.679208: scmi_xfer_begin: transfer_id=1561 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [003] 1149.679228: scmi_xfer_end: transfer_id=1561 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.692154: scmi_xfer_end: transfer_id=1558 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.692812: scmi_xfer_begin: transfer_id=1562 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.693420: scmi_xfer_begin: transfer_id=1563 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.693529: scmi_xfer_end: transfer_id=1563 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [003] 1149.711204: scmi_xfer_begin: transfer_id=1564 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [003] 1149.711223: scmi_xfer_end: transfer_id=1564 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.736236: scmi_xfer_end: transfer_id=1562 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.736909: scmi_xfer_begin: transfer_id=1565 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.737492: scmi_xfer_begin: transfer_id=1566 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.737602: scmi_xfer_end: transfer_id=1566 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [003] 1149.779073: scmi_xfer_begin: transfer_id=1567 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [003] 1149.779092: scmi_xfer_end: transfer_id=1567 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.780198: scmi_xfer_end: transfer_id=1565 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.780864: scmi_xfer_begin: transfer_id=1568 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.781495: scmi_xfer_end: transfer_id=1568 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.781883: scmi_xfer_begin: transfer_id=1569 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.782160: scmi_xfer_end: transfer_id=1569 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.782483: scmi_xfer_begin: transfer_id=1570 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.782749: scmi_xfer_end: transfer_id=1570 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.783211: scmi_xfer_begin: transfer_id=1571 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.783595: scmi_xfer_end: transfer_id=1571 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.783948: scmi_xfer_begin: transfer_id=1572 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.784193: scmi_xfer_end: transfer_id=1572 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.784574: scmi_xfer_begin: transfer_id=1573 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.784828: scmi_xfer_end: transfer_id=1573 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.785154: scmi_xfer_begin: transfer_id=1574 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.785419: scmi_xfer_end: transfer_id=1574 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.785740: scmi_xfer_begin: transfer_id=1575 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.785830: scmi_xfer_end: transfer_id=1575 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.786147: scmi_xfer_begin: transfer_id=1576 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.786240: scmi_xfer_end: transfer_id=1576 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.786610: scmi_xfer_begin: transfer_id=1577 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.787116: scmi_xfer_end: transfer_id=1577 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.787436: scmi_xfer_begin: transfer_id=1578 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.788026: scmi_xfer_end: transfer_id=1578 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.788365: scmi_xfer_begin: transfer_id=1579 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.788957: scmi_xfer_end: transfer_id=1579 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.789271: scmi_xfer_begin: transfer_id=1580 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.789473: scmi_xfer_begin: transfer_id=1581 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.789582: scmi_xfer_end: transfer_id=1581 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [003] 1149.815053: scmi_xfer_begin: transfer_id=1582 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [003] 1149.815065: scmi_xfer_end: transfer_id=1582 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.832118: scmi_xfer_end: transfer_id=1580 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.832542: scmi_xfer_begin: transfer_id=1583 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.832717: scmi_xfer_begin: transfer_id=1584 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.832825: scmi_xfer_end: transfer_id=1584 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1149.842867: scmi_xfer_begin: transfer_id=1585 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.842870: scmi_xfer_end: transfer_id=1585 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.876220: scmi_xfer_end: transfer_id=1583 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.876896: scmi_xfer_begin: transfer_id=1586 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1149.877073: scmi_xfer_begin: transfer_id=1587 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1149.877182: scmi_xfer_end: transfer_id=1587 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [003] 1149.915093: scmi_xfer_begin: transfer_id=1588 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [003] 1149.915112: scmi_xfer_end: transfer_id=1588 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1149.920198: scmi_xfer_end: transfer_id=1586 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1149.920867: scmi_xfer_begin: transfer_id=1589 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1149.921111: scmi_xfer_end: transfer_id=1589 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1149.922531: scmi_xfer_begin: transfer_id=1590 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [005] 1149.922589: scmi_xfer_end: transfer_id=1590 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1149.934887: scmi_xfer_begin: transfer_id=1591 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1149.934969: scmi_xfer_end: transfer_id=1591 msg_id=7 protocol_id=19 seq=0 status=0
kworker/u13:0-1497 [003] 1149.944998: scmi_xfer_begin: transfer_id=1592 msg_id=7 protocol_id=19 seq=0 poll=1
kworker/u13:0-1497 [003] 1149.945062: scmi_xfer_end: transfer_id=1592 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1149.962941: scmi_xfer_begin: transfer_id=1593 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1149.963050: scmi_xfer_end: transfer_id=1593 msg_id=7 protocol_id=19 seq=0 status=-110
<idle>-0 [000] 1150.947518: scmi_xfer_begin: transfer_id=1594 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1150.947586: scmi_xfer_end: transfer_id=1594 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1150.950155: scmi_xfer_begin: transfer_id=1595 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1150.950327: scmi_xfer_begin: transfer_id=1596 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1150.950436: scmi_xfer_end: transfer_id=1596 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1150.958904: scmi_xfer_begin: transfer_id=1597 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1150.958911: scmi_xfer_end: transfer_id=1597 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1150.992119: scmi_xfer_end: transfer_id=1595 msg_id=6 protocol_id=21 seq=0 status=-110
<idle>-0 [001] 1150.992161: scmi_xfer_begin: transfer_id=1598 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [001] 1150.992216: scmi_xfer_end: transfer_id=1598 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1150.992603: scmi_xfer_begin: transfer_id=1599 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.992908: scmi_xfer_end: transfer_id=1599 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.993241: scmi_xfer_begin: transfer_id=1600 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.993328: scmi_xfer_end: transfer_id=1600 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.993657: scmi_xfer_begin: transfer_id=1601 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.993742: scmi_xfer_end: transfer_id=1601 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.994129: scmi_xfer_begin: transfer_id=1602 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.994627: scmi_xfer_end: transfer_id=1602 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.995058: scmi_xfer_begin: transfer_id=1603 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.995792: scmi_xfer_end: transfer_id=1603 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.996110: scmi_xfer_begin: transfer_id=1604 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.996827: scmi_xfer_end: transfer_id=1604 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.997160: scmi_xfer_begin: transfer_id=1605 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.997803: scmi_xfer_end: transfer_id=1605 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.998198: scmi_xfer_begin: transfer_id=1606 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.998287: scmi_xfer_end: transfer_id=1606 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.998611: scmi_xfer_begin: transfer_id=1607 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.998698: scmi_xfer_end: transfer_id=1607 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.999089: scmi_xfer_begin: transfer_id=1608 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.999404: scmi_xfer_end: transfer_id=1608 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1150.999715: scmi_xfer_begin: transfer_id=1609 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1150.999979: scmi_xfer_end: transfer_id=1609 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.000368: scmi_xfer_begin: transfer_id=1610 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.000607: scmi_xfer_end: transfer_id=1610 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.000927: scmi_xfer_begin: transfer_id=1611 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.001114: scmi_xfer_end: transfer_id=1611 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.001432: scmi_xfer_begin: transfer_id=1612 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.001521: scmi_xfer_end: transfer_id=1612 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.001837: scmi_xfer_begin: transfer_id=1613 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.001930: scmi_xfer_end: transfer_id=1613 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.002302: scmi_xfer_begin: transfer_id=1614 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1151.002696: scmi_xfer_begin: transfer_id=1615 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1151.002803: scmi_xfer_end: transfer_id=1615 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [005] 1151.043973: scmi_xfer_end: transfer_id=1614 msg_id=6 protocol_id=21 seq=0 status=-110
rcu_preempt-10 [004] 1151.044107: scmi_xfer_begin: transfer_id=1616 msg_id=7 protocol_id=19 seq=0 poll=1
rcu_preempt-10 [004] 1151.044166: scmi_xfer_end: transfer_id=1616 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1151.044384: scmi_xfer_begin: transfer_id=1617 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.045191: scmi_xfer_end: transfer_id=1617 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.045525: scmi_xfer_begin: transfer_id=1618 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.046144: scmi_xfer_end: transfer_id=1618 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.046456: scmi_xfer_begin: transfer_id=1619 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.046723: scmi_xfer_end: transfer_id=1619 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.047177: scmi_xfer_begin: transfer_id=1620 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.047472: scmi_xfer_end: transfer_id=1620 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.047810: scmi_xfer_begin: transfer_id=1621 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.048051: scmi_xfer_end: transfer_id=1621 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.048360: scmi_xfer_begin: transfer_id=1622 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1151.048715: scmi_xfer_end: transfer_id=1622 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1151.049880: scmi_xfer_begin: transfer_id=1623 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [005] 1151.049938: scmi_xfer_end: transfer_id=1623 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1151.074998: scmi_xfer_begin: transfer_id=1624 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1151.075060: scmi_xfer_end: transfer_id=1624 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1152.053922: scmi_xfer_begin: transfer_id=1625 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1152.053989: scmi_xfer_end: transfer_id=1625 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1152.055670: scmi_xfer_begin: transfer_id=1626 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1152.055842: scmi_xfer_begin: transfer_id=1627 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.055951: scmi_xfer_end: transfer_id=1627 msg_id=7 protocol_id=19 seq=1 status=-110
in:imklog-541 [000] 1152.064028: scmi_xfer_begin: transfer_id=1628 msg_id=7 protocol_id=19 seq=1 poll=1
in:imklog-541 [000] 1152.064035: scmi_xfer_end: transfer_id=1628 msg_id=7 protocol_id=19 seq=1 status=0
kworker/0:0-1376 [000] 1152.075118: scmi_xfer_begin: transfer_id=1629 msg_id=7 protocol_id=19 seq=1 poll=1
kworker/0:0-1376 [000] 1152.075128: scmi_xfer_end: transfer_id=1629 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1152.100040: scmi_xfer_end: transfer_id=1626 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1152.100511: scmi_xfer_begin: transfer_id=1630 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1152.100687: scmi_xfer_begin: transfer_id=1631 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.100796: scmi_xfer_end: transfer_id=1631 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1152.110785: scmi_xfer_begin: transfer_id=1632 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.110788: scmi_xfer_end: transfer_id=1632 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1152.143925: scmi_xfer_end: transfer_id=1630 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1152.144397: scmi_xfer_begin: transfer_id=1633 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1152.144571: scmi_xfer_begin: transfer_id=1634 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.144680: scmi_xfer_end: transfer_id=1634 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1152.154784: scmi_xfer_begin: transfer_id=1635 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.154787: scmi_xfer_end: transfer_id=1635 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1152.188124: scmi_xfer_end: transfer_id=1633 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1152.188780: scmi_xfer_begin: transfer_id=1636 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1152.188956: scmi_xfer_begin: transfer_id=1637 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.189065: scmi_xfer_end: transfer_id=1637 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [005] 1152.232101: scmi_xfer_end: transfer_id=1636 msg_id=6 protocol_id=21 seq=0 status=-110
<idle>-0 [000] 1152.232193: scmi_xfer_begin: transfer_id=1638 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1152.232254: scmi_xfer_end: transfer_id=1638 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1152.232799: scmi_xfer_begin: transfer_id=1639 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.233510: scmi_xfer_end: transfer_id=1639 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.233854: scmi_xfer_begin: transfer_id=1640 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.234574: scmi_xfer_end: transfer_id=1640 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.235024: scmi_xfer_begin: transfer_id=1641 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.235764: scmi_xfer_end: transfer_id=1641 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.236128: scmi_xfer_begin: transfer_id=1642 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.236757: scmi_xfer_end: transfer_id=1642 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.237155: scmi_xfer_begin: transfer_id=1643 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.237396: scmi_xfer_end: transfer_id=1643 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.237705: scmi_xfer_begin: transfer_id=1644 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.237976: scmi_xfer_end: transfer_id=1644 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.238288: scmi_xfer_begin: transfer_id=1645 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.238559: scmi_xfer_end: transfer_id=1645 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.238928: scmi_xfer_begin: transfer_id=1646 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.239226: scmi_xfer_end: transfer_id=1646 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.239622: scmi_xfer_begin: transfer_id=1647 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.239860: scmi_xfer_end: transfer_id=1647 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.240175: scmi_xfer_begin: transfer_id=1648 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.240448: scmi_xfer_end: transfer_id=1648 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.240762: scmi_xfer_begin: transfer_id=1649 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.240852: scmi_xfer_end: transfer_id=1649 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.241164: scmi_xfer_begin: transfer_id=1650 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.241256: scmi_xfer_end: transfer_id=1650 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.241634: scmi_xfer_begin: transfer_id=1651 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.242060: scmi_xfer_end: transfer_id=1651 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.242372: scmi_xfer_begin: transfer_id=1652 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1152.242767: scmi_xfer_begin: transfer_id=1653 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1152.242874: scmi_xfer_end: transfer_id=1653 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [004] 1152.282994: scmi_xfer_begin: transfer_id=1654 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [004] 1152.283014: scmi_xfer_end: transfer_id=1654 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1152.284310: scmi_xfer_end: transfer_id=1652 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1152.284867: scmi_xfer_begin: transfer_id=1655 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.285452: scmi_xfer_end: transfer_id=1655 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.285773: scmi_xfer_begin: transfer_id=1656 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.286058: scmi_xfer_end: transfer_id=1656 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.286361: scmi_xfer_begin: transfer_id=1657 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.286632: scmi_xfer_end: transfer_id=1657 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.287086: scmi_xfer_begin: transfer_id=1658 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.287477: scmi_xfer_end: transfer_id=1658 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.287800: scmi_xfer_begin: transfer_id=1659 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1152.288071: scmi_xfer_end: transfer_id=1659 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1152.289294: scmi_xfer_begin: transfer_id=1660 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [005] 1152.289352: scmi_xfer_end: transfer_id=1660 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1152.314930: scmi_xfer_begin: transfer_id=1661 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1152.315036: scmi_xfer_end: transfer_id=1661 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [000] 1153.293994: scmi_xfer_begin: transfer_id=1662 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1153.294062: scmi_xfer_end: transfer_id=1662 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1153.295825: scmi_xfer_begin: transfer_id=1663 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1153.295999: scmi_xfer_begin: transfer_id=1664 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1153.296108: scmi_xfer_end: transfer_id=1664 msg_id=7 protocol_id=19 seq=1 status=-110
systemd-journal-262 [000] 1153.304319: scmi_xfer_begin: transfer_id=1665 msg_id=7 protocol_id=19 seq=1 poll=1
systemd-journal-262 [000] 1153.304334: scmi_xfer_end: transfer_id=1665 msg_id=7 protocol_id=19 seq=1 status=0
rcu_preempt-10 [004] 1153.334921: scmi_xfer_begin: transfer_id=1666 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [004] 1153.334932: scmi_xfer_end: transfer_id=1666 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1153.339954: scmi_xfer_end: transfer_id=1663 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1153.340511: scmi_xfer_begin: transfer_id=1667 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.340754: scmi_xfer_end: transfer_id=1667 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.341098: scmi_xfer_begin: transfer_id=1668 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.341338: scmi_xfer_end: transfer_id=1668 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.341649: scmi_xfer_begin: transfer_id=1669 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.341912: scmi_xfer_end: transfer_id=1669 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.342273: scmi_xfer_begin: transfer_id=1670 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.342949: scmi_xfer_end: transfer_id=1670 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.343292: scmi_xfer_begin: transfer_id=1671 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.344044: scmi_xfer_end: transfer_id=1671 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.344359: scmi_xfer_begin: transfer_id=1672 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1153.344965: scmi_xfer_begin: transfer_id=1673 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1153.345074: scmi_xfer_end: transfer_id=1673 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [004] 1153.386931: scmi_xfer_begin: transfer_id=1674 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [004] 1153.386951: scmi_xfer_end: transfer_id=1674 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1153.388087: scmi_xfer_end: transfer_id=1672 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1153.388729: scmi_xfer_begin: transfer_id=1675 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.389361: scmi_xfer_end: transfer_id=1675 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.389766: scmi_xfer_begin: transfer_id=1676 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.390008: scmi_xfer_end: transfer_id=1676 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.390324: scmi_xfer_begin: transfer_id=1677 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.390588: scmi_xfer_end: transfer_id=1677 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.391015: scmi_xfer_begin: transfer_id=1678 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.391253: scmi_xfer_end: transfer_id=1678 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.391570: scmi_xfer_begin: transfer_id=1679 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.391844: scmi_xfer_end: transfer_id=1679 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.392241: scmi_xfer_begin: transfer_id=1680 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.392478: scmi_xfer_end: transfer_id=1680 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.392803: scmi_xfer_begin: transfer_id=1681 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.393068: scmi_xfer_end: transfer_id=1681 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.393388: scmi_xfer_begin: transfer_id=1682 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.393478: scmi_xfer_end: transfer_id=1682 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.393793: scmi_xfer_begin: transfer_id=1683 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.393885: scmi_xfer_end: transfer_id=1683 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.394306: scmi_xfer_begin: transfer_id=1684 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.394765: scmi_xfer_end: transfer_id=1684 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.395077: scmi_xfer_begin: transfer_id=1685 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.395513: scmi_xfer_end: transfer_id=1685 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.395814: scmi_xfer_begin: transfer_id=1686 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.396427: scmi_xfer_end: transfer_id=1686 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.396737: scmi_xfer_begin: transfer_id=1687 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1153.396942: scmi_xfer_begin: transfer_id=1688 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1153.397051: scmi_xfer_end: transfer_id=1688 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [004] 1153.438939: scmi_xfer_begin: transfer_id=1689 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [004] 1153.438957: scmi_xfer_end: transfer_id=1689 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1153.440057: scmi_xfer_end: transfer_id=1687 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1153.440699: scmi_xfer_begin: transfer_id=1690 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.440941: scmi_xfer_end: transfer_id=1690 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.441271: scmi_xfer_begin: transfer_id=1691 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.441358: scmi_xfer_end: transfer_id=1691 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1153.441668: scmi_xfer_begin: transfer_id=1692 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1153.441777: scmi_xfer_end: transfer_id=1692 msg_id=6 protocol_id=21 seq=0 status=0
<idle>-0 [001] 1153.450939: scmi_xfer_begin: transfer_id=1693 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [001] 1153.451048: scmi_xfer_end: transfer_id=1693 msg_id=7 protocol_id=19 seq=0 status=-110
<idle>-0 [001] 1153.462865: scmi_xfer_begin: transfer_id=1694 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [001] 1153.462921: scmi_xfer_end: transfer_id=1694 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [001] 1154.447474: scmi_xfer_begin: transfer_id=1695 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [001] 1154.447534: scmi_xfer_end: transfer_id=1695 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1154.449108: scmi_xfer_begin: transfer_id=1696 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.449211: scmi_xfer_end: transfer_id=1696 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.449591: scmi_xfer_begin: transfer_id=1697 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.449668: scmi_xfer_end: transfer_id=1697 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.449977: scmi_xfer_begin: transfer_id=1698 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.450059: scmi_xfer_end: transfer_id=1698 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.450373: scmi_xfer_begin: transfer_id=1699 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.450448: scmi_xfer_end: transfer_id=1699 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.450900: scmi_xfer_begin: transfer_id=1700 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.451492: scmi_xfer_end: transfer_id=1700 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.451807: scmi_xfer_begin: transfer_id=1701 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.452323: scmi_xfer_end: transfer_id=1701 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.452634: scmi_xfer_begin: transfer_id=1702 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.453116: scmi_xfer_end: transfer_id=1702 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.453433: scmi_xfer_begin: transfer_id=1703 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.453902: scmi_xfer_end: transfer_id=1703 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.454278: scmi_xfer_begin: transfer_id=1704 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.454360: scmi_xfer_end: transfer_id=1704 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.454673: scmi_xfer_begin: transfer_id=1705 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.454753: scmi_xfer_end: transfer_id=1705 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.455067: scmi_xfer_begin: transfer_id=1706 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.455144: scmi_xfer_end: transfer_id=1706 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.455455: scmi_xfer_begin: transfer_id=1707 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.455538: scmi_xfer_end: transfer_id=1707 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.455919: scmi_xfer_begin: transfer_id=1708 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.455997: scmi_xfer_end: transfer_id=1708 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.456312: scmi_xfer_begin: transfer_id=1709 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.456390: scmi_xfer_end: transfer_id=1709 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.456704: scmi_xfer_begin: transfer_id=1710 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.456782: scmi_xfer_end: transfer_id=1710 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.457095: scmi_xfer_begin: transfer_id=1711 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.457173: scmi_xfer_end: transfer_id=1711 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.457549: scmi_xfer_begin: transfer_id=1712 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1154.457937: scmi_xfer_begin: transfer_id=1713 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1154.458041: scmi_xfer_end: transfer_id=1713 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1154.470688: scmi_xfer_begin: transfer_id=1714 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1154.470691: scmi_xfer_end: transfer_id=1714 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1154.499934: scmi_xfer_end: transfer_id=1712 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1154.500367: scmi_xfer_begin: transfer_id=1715 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1154.500853: scmi_xfer_begin: transfer_id=1716 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1154.500960: scmi_xfer_end: transfer_id=1716 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [005] 1154.543907: scmi_xfer_end: transfer_id=1715 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1154.544319: scmi_xfer_begin: transfer_id=1717 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.544368: scmi_xfer_begin: transfer_id=1718 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1526 [005] 1154.544704: scmi_xfer_end: transfer_id=1718 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [005] 1154.588006: scmi_xfer_end: transfer_id=1717 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1154.588654: scmi_xfer_begin: transfer_id=1719 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1154.588832: scmi_xfer_begin: transfer_id=1720 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1154.588941: scmi_xfer_end: transfer_id=1720 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [005] 1154.632058: scmi_xfer_end: transfer_id=1719 msg_id=6 protocol_id=21 seq=0 status=-110
<idle>-0 [000] 1154.632144: scmi_xfer_begin: transfer_id=1721 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1154.632205: scmi_xfer_end: transfer_id=1721 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1154.632700: scmi_xfer_begin: transfer_id=1722 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.632942: scmi_xfer_end: transfer_id=1722 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.633275: scmi_xfer_begin: transfer_id=1723 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.633526: scmi_xfer_end: transfer_id=1723 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.633838: scmi_xfer_begin: transfer_id=1724 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1154.634105: scmi_xfer_end: transfer_id=1724 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1154.635444: scmi_xfer_begin: transfer_id=1725 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [005] 1154.635505: scmi_xfer_end: transfer_id=1725 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [003] 1154.662873: scmi_xfer_begin: transfer_id=1726 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [003] 1154.662937: scmi_xfer_end: transfer_id=1726 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [003] 1155.639503: scmi_xfer_begin: transfer_id=1727 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [003] 1155.639570: scmi_xfer_end: transfer_id=1727 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [005] 1155.641223: scmi_xfer_begin: transfer_id=1728 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1155.641395: scmi_xfer_begin: transfer_id=1729 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1155.641503: scmi_xfer_end: transfer_id=1729 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1155.650787: scmi_xfer_begin: transfer_id=1730 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1155.650802: scmi_xfer_end: transfer_id=1730 msg_id=7 protocol_id=19 seq=1 status=0
rcu_preempt-10 [000] 1155.682908: scmi_xfer_begin: transfer_id=1731 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [000] 1155.682927: scmi_xfer_end: transfer_id=1731 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [005] 1155.683842: scmi_xfer_end: transfer_id=1728 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [005] 1155.684505: scmi_xfer_begin: transfer_id=1732 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1155.684749: scmi_xfer_end: transfer_id=1732 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1155.685089: scmi_xfer_begin: transfer_id=1733 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1155.685331: scmi_xfer_end: transfer_id=1733 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1155.685644: scmi_xfer_begin: transfer_id=1734 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1155.685909: scmi_xfer_end: transfer_id=1734 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1155.686273: scmi_xfer_begin: transfer_id=1735 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1155.687059: scmi_xfer_end: transfer_id=1735 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1155.687418: scmi_xfer_begin: transfer_id=1736 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [005] 1155.688093: scmi_xfer_end: transfer_id=1736 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [005] 1155.688413: scmi_xfer_begin: transfer_id=1737 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [005] 1155.689077: scmi_xfer_begin: transfer_id=1738 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [005] 1155.689185: scmi_xfer_end: transfer_id=1738 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [002] 1155.689518: scmi_xfer_end: transfer_id=1737 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [002] 1155.689813: scmi_xfer_begin: transfer_id=1739 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.690540: scmi_xfer_end: transfer_id=1739 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.690901: scmi_xfer_begin: transfer_id=1740 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.691236: scmi_xfer_end: transfer_id=1740 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.691426: scmi_xfer_begin: transfer_id=1741 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.691875: scmi_xfer_end: transfer_id=1741 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.692068: scmi_xfer_begin: transfer_id=1742 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.692368: scmi_xfer_end: transfer_id=1742 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.692546: scmi_xfer_begin: transfer_id=1743 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.692895: scmi_xfer_end: transfer_id=1743 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.693118: scmi_xfer_begin: transfer_id=1744 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1155.693380: scmi_xfer_begin: transfer_id=1745 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1155.693488: scmi_xfer_end: transfer_id=1745 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1155.702882: scmi_xfer_begin: transfer_id=1746 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1155.702890: scmi_xfer_end: transfer_id=1746 msg_id=7 protocol_id=19 seq=1 status=0
rcu_preempt-10 [000] 1155.734837: scmi_xfer_begin: transfer_id=1747 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [000] 1155.734856: scmi_xfer_end: transfer_id=1747 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1155.735861: scmi_xfer_end: transfer_id=1744 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1155.736506: scmi_xfer_begin: transfer_id=1748 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.736751: scmi_xfer_end: transfer_id=1748 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.737091: scmi_xfer_begin: transfer_id=1749 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.737330: scmi_xfer_end: transfer_id=1749 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.737640: scmi_xfer_begin: transfer_id=1750 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.737735: scmi_xfer_end: transfer_id=1750 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.738109: scmi_xfer_begin: transfer_id=1751 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.738778: scmi_xfer_end: transfer_id=1751 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.739094: scmi_xfer_begin: transfer_id=1752 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.739673: scmi_xfer_end: transfer_id=1752 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.739991: scmi_xfer_begin: transfer_id=1753 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.740603: scmi_xfer_end: transfer_id=1753 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.740917: scmi_xfer_begin: transfer_id=1754 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.741185: scmi_xfer_end: transfer_id=1754 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.741494: scmi_xfer_begin: transfer_id=1755 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.741761: scmi_xfer_end: transfer_id=1755 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.742078: scmi_xfer_begin: transfer_id=1756 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.742350: scmi_xfer_end: transfer_id=1756 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.742711: scmi_xfer_begin: transfer_id=1757 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1155.742965: scmi_xfer_end: transfer_id=1757 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1155.744099: scmi_xfer_begin: transfer_id=1758 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [004] 1155.744156: scmi_xfer_end: transfer_id=1758 msg_id=7 protocol_id=19 seq=0 status=0
ksoftirqd/0-9 [000] 1155.766839: scmi_xfer_begin: transfer_id=1759 msg_id=7 protocol_id=19 seq=0 poll=1
ksoftirqd/0-9 [000] 1155.766902: scmi_xfer_end: transfer_id=1759 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [005] 1156.747828: scmi_xfer_begin: transfer_id=1760 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [005] 1156.747895: scmi_xfer_end: transfer_id=1760 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [004] 1156.749593: scmi_xfer_begin: transfer_id=1761 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1156.749772: scmi_xfer_begin: transfer_id=1762 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.749880: scmi_xfer_end: transfer_id=1762 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [000] 1156.758687: scmi_xfer_begin: transfer_id=1763 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [000] 1156.758694: scmi_xfer_end: transfer_id=1763 msg_id=7 protocol_id=19 seq=1 status=0
systemd-journal-262 [000] 1156.761548: scmi_xfer_begin: transfer_id=1764 msg_id=7 protocol_id=19 seq=1 poll=1
systemd-journal-262 [000] 1156.761558: scmi_xfer_end: transfer_id=1764 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1156.791787: scmi_xfer_end: transfer_id=1761 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1156.792273: scmi_xfer_begin: transfer_id=1765 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1156.792448: scmi_xfer_begin: transfer_id=1766 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.792557: scmi_xfer_end: transfer_id=1766 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1156.802616: scmi_xfer_begin: transfer_id=1767 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.802619: scmi_xfer_end: transfer_id=1767 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1156.835929: scmi_xfer_end: transfer_id=1765 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1156.836613: scmi_xfer_begin: transfer_id=1768 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1156.836789: scmi_xfer_begin: transfer_id=1769 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.836898: scmi_xfer_end: transfer_id=1769 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [000] 1156.878805: scmi_xfer_begin: transfer_id=1770 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [000] 1156.878824: scmi_xfer_end: transfer_id=1770 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1156.879938: scmi_xfer_end: transfer_id=1768 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1156.880585: scmi_xfer_begin: transfer_id=1771 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.880829: scmi_xfer_end: transfer_id=1771 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.881217: scmi_xfer_begin: transfer_id=1772 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.881864: scmi_xfer_end: transfer_id=1772 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.882193: scmi_xfer_begin: transfer_id=1773 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.882968: scmi_xfer_end: transfer_id=1773 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.883305: scmi_xfer_begin: transfer_id=1774 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.883998: scmi_xfer_end: transfer_id=1774 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.884319: scmi_xfer_begin: transfer_id=1775 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.884965: scmi_xfer_end: transfer_id=1775 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.885353: scmi_xfer_begin: transfer_id=1776 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.885595: scmi_xfer_end: transfer_id=1776 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.885911: scmi_xfer_begin: transfer_id=1777 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.886172: scmi_xfer_end: transfer_id=1777 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.886485: scmi_xfer_begin: transfer_id=1778 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.886764: scmi_xfer_end: transfer_id=1778 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.887070: scmi_xfer_begin: transfer_id=1779 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.887340: scmi_xfer_end: transfer_id=1779 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.887730: scmi_xfer_begin: transfer_id=1780 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.887973: scmi_xfer_end: transfer_id=1780 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.888289: scmi_xfer_begin: transfer_id=1781 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.888552: scmi_xfer_end: transfer_id=1781 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.888864: scmi_xfer_begin: transfer_id=1782 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1156.888918: scmi_xfer_begin: transfer_id=1783 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.889025: scmi_xfer_end: transfer_id=1783 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1156.902596: scmi_xfer_begin: transfer_id=1784 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.902599: scmi_xfer_end: transfer_id=1784 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1156.931852: scmi_xfer_end: transfer_id=1782 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1156.932504: scmi_xfer_begin: transfer_id=1785 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1156.932686: scmi_xfer_begin: transfer_id=1786 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1156.932795: scmi_xfer_end: transfer_id=1786 msg_id=7 protocol_id=19 seq=1 status=-110
rcu_preempt-10 [000] 1156.974803: scmi_xfer_begin: transfer_id=1787 msg_id=7 protocol_id=19 seq=1 poll=1
rcu_preempt-10 [000] 1156.974822: scmi_xfer_end: transfer_id=1787 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1156.975934: scmi_xfer_end: transfer_id=1785 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1156.976657: scmi_xfer_begin: transfer_id=1788 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.977245: scmi_xfer_end: transfer_id=1788 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.977563: scmi_xfer_begin: transfer_id=1789 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.978168: scmi_xfer_end: transfer_id=1789 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.978471: scmi_xfer_begin: transfer_id=1790 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.979200: scmi_xfer_end: transfer_id=1790 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.979541: scmi_xfer_begin: transfer_id=1791 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.979774: scmi_xfer_end: transfer_id=1791 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.980091: scmi_xfer_begin: transfer_id=1792 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.980359: scmi_xfer_end: transfer_id=1792 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.980676: scmi_xfer_begin: transfer_id=1793 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.980935: scmi_xfer_end: transfer_id=1793 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.981248: scmi_xfer_begin: transfer_id=1794 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1156.981519: scmi_xfer_end: transfer_id=1794 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1156.982681: scmi_xfer_begin: transfer_id=1795 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [004] 1156.982755: scmi_xfer_end: transfer_id=1795 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [005] 1157.006787: scmi_xfer_begin: transfer_id=1796 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [005] 1157.006850: scmi_xfer_end: transfer_id=1796 msg_id=7 protocol_id=19 seq=0 status=0
<idle>-0 [005] 1157.986340: scmi_xfer_begin: transfer_id=1797 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [005] 1157.986407: scmi_xfer_end: transfer_id=1797 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [004] 1157.988153: scmi_xfer_begin: transfer_id=1798 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1157.988334: scmi_xfer_begin: transfer_id=1799 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1157.988443: scmi_xfer_end: transfer_id=1799 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [004] 1157.998657: scmi_xfer_begin: transfer_id=1800 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [004] 1157.998672: scmi_xfer_end: transfer_id=1800 msg_id=7 protocol_id=19 seq=1 status=0
<idle>-0 [001] 1157.998761: scmi_xfer_begin: transfer_id=1801 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1157.998887: scmi_xfer_end: transfer_id=1801 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.031749: scmi_xfer_end: transfer_id=1798 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.032301: scmi_xfer_begin: transfer_id=1802 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.032478: scmi_xfer_begin: transfer_id=1803 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.032587: scmi_xfer_end: transfer_id=1803 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1158.042571: scmi_xfer_begin: transfer_id=1804 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.042574: scmi_xfer_end: transfer_id=1804 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1158.075723: scmi_xfer_end: transfer_id=1802 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.076168: scmi_xfer_begin: transfer_id=1805 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.076343: scmi_xfer_begin: transfer_id=1806 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.076452: scmi_xfer_end: transfer_id=1806 msg_id=7 protocol_id=19 seq=1 status=-110
<idle>-0 [001] 1158.086569: scmi_xfer_begin: transfer_id=1807 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.086572: scmi_xfer_end: transfer_id=1807 msg_id=7 protocol_id=19 seq=1 status=0
bash-1526 [004] 1158.119894: scmi_xfer_end: transfer_id=1805 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.120541: scmi_xfer_begin: transfer_id=1808 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.120718: scmi_xfer_begin: transfer_id=1809 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.120828: scmi_xfer_end: transfer_id=1809 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.163900: scmi_xfer_end: transfer_id=1808 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.164606: scmi_xfer_begin: transfer_id=1810 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.164668: scmi_xfer_begin: transfer_id=1811 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1526 [004] 1158.165059: scmi_xfer_end: transfer_id=1811 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.207881: scmi_xfer_end: transfer_id=1810 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.208551: scmi_xfer_begin: transfer_id=1812 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.209160: scmi_xfer_begin: transfer_id=1813 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.209269: scmi_xfer_end: transfer_id=1813 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.251885: scmi_xfer_end: transfer_id=1812 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.252538: scmi_xfer_begin: transfer_id=1814 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.252599: scmi_xfer_begin: transfer_id=1815 msg_id=7 protocol_id=19 seq=1 poll=1
bash-1526 [004] 1158.252987: scmi_xfer_end: transfer_id=1815 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.295885: scmi_xfer_end: transfer_id=1814 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.296535: scmi_xfer_begin: transfer_id=1816 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.297100: scmi_xfer_begin: transfer_id=1817 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.297209: scmi_xfer_end: transfer_id=1817 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.339884: scmi_xfer_end: transfer_id=1816 msg_id=6 protocol_id=21 seq=0 status=-110
<idle>-0 [000] 1158.339974: scmi_xfer_begin: transfer_id=1818 msg_id=7 protocol_id=19 seq=0 poll=1
<idle>-0 [000] 1158.340035: scmi_xfer_end: transfer_id=1818 msg_id=7 protocol_id=19 seq=0 status=0
bash-1526 [004] 1158.340607: scmi_xfer_begin: transfer_id=1819 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.340852: scmi_xfer_end: transfer_id=1819 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.341180: scmi_xfer_begin: transfer_id=1820 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.341433: scmi_xfer_end: transfer_id=1820 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.341750: scmi_xfer_begin: transfer_id=1821 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.342012: scmi_xfer_end: transfer_id=1821 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.342325: scmi_xfer_begin: transfer_id=1822 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.342684: scmi_xfer_end: transfer_id=1822 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.343316: scmi_xfer_begin: transfer_id=1823 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.343561: scmi_xfer_end: transfer_id=1823 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.343897: scmi_xfer_begin: transfer_id=1824 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.344137: scmi_xfer_end: transfer_id=1824 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.344456: scmi_xfer_begin: transfer_id=1825 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.344725: scmi_xfer_end: transfer_id=1825 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.345037: scmi_xfer_begin: transfer_id=1826 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.345304: scmi_xfer_end: transfer_id=1826 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.345681: scmi_xfer_begin: transfer_id=1827 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.346116: scmi_xfer_end: transfer_id=1827 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.346426: scmi_xfer_begin: transfer_id=1828 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.347116: scmi_xfer_end: transfer_id=1828 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.347424: scmi_xfer_begin: transfer_id=1829 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.348039: scmi_xfer_end: transfer_id=1829 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.348350: scmi_xfer_begin: transfer_id=1830 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.348614: scmi_xfer_end: transfer_id=1830 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.348918: scmi_xfer_begin: transfer_id=1831 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.349200: scmi_xfer_end: transfer_id=1831 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.349514: scmi_xfer_begin: transfer_id=1832 msg_id=6 protocol_id=21 seq=0 poll=0
bash-1526 [004] 1158.349774: scmi_xfer_end: transfer_id=1832 msg_id=6 protocol_id=21 seq=0 status=0
bash-1526 [004] 1158.350087: scmi_xfer_begin: transfer_id=1833 msg_id=6 protocol_id=21 seq=0 poll=0
<idle>-0 [001] 1158.350297: scmi_xfer_begin: transfer_id=1834 msg_id=7 protocol_id=19 seq=1 poll=1
<idle>-0 [001] 1158.350406: scmi_xfer_end: transfer_id=1834 msg_id=7 protocol_id=19 seq=1 status=-110
bash-1526 [004] 1158.391883: scmi_xfer_end: transfer_id=1833 msg_id=6 protocol_id=21 seq=0 status=-110
bash-1526 [004] 1158.393960: scmi_xfer_begin: transfer_id=1835 msg_id=7 protocol_id=19 seq=0 poll=1
bash-1526 [004] 1158.394020: scmi_xfer_end: transfer_id=1835 msg_id=7 protocol_id=19 seq=0 status=0
^ permalink raw reply
* Re: [PATCH v4 05/11] pwm: add support for sl28cpld PWM controller
From: Lee Jones @ 2020-06-05 8:49 UTC (permalink / raw)
To: Michael Walle
Cc: linux-gpio, devicetree, linux-kernel, linux-hwmon, linux-pwm,
linux-watchdog, linux-arm-kernel, Linus Walleij,
Bartosz Golaszewski, Rob Herring, Jean Delvare, Guenter Roeck,
Thierry Reding, Uwe Kleine-König, Wim Van Sebroeck,
Shawn Guo, Li Yang, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Mark Brown, Greg Kroah-Hartman, Andy Shevchenko
In-Reply-To: <20200604211039.12689-6-michael@walle.cc>
On Thu, 04 Jun 2020, Michael Walle wrote:
> Add support for the PWM controller of the sl28cpld board management
> controller. This is part of a multi-function device driver.
>
> The controller has one PWM channel and can just generate four distinct
> frequencies.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
> drivers/pwm/Kconfig | 10 ++
> drivers/pwm/Makefile | 1 +
> drivers/pwm/pwm-sl28cpld.c | 201 +++++++++++++++++++++++++++++++++++++
> 3 files changed, 212 insertions(+)
> create mode 100644 drivers/pwm/pwm-sl28cpld.c
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index cb8d739067d2..a39371c11ff6 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -437,6 +437,16 @@ config PWM_SIFIVE
> To compile this driver as a module, choose M here: the module
> will be called pwm-sifive.
>
> +config PWM_SL28CPLD
> + tristate "Kontron sl28 PWM support"
> + depends on MFD_SL28CPLD
> + help
> + Generic PWM framework driver for board management controller
> + found on the Kontron sl28 CPLD.
> +
> + To compile this driver as a module, choose M here: the module
> + will be called pwm-sl28cpld.
> +
> config PWM_SPEAR
> tristate "STMicroelectronics SPEAr PWM support"
> depends on PLAT_SPEAR || COMPILE_TEST
> diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile
> index a59c710e98c7..c479623724e8 100644
> --- a/drivers/pwm/Makefile
> +++ b/drivers/pwm/Makefile
> @@ -41,6 +41,7 @@ obj-$(CONFIG_PWM_RENESAS_TPU) += pwm-renesas-tpu.o
> obj-$(CONFIG_PWM_ROCKCHIP) += pwm-rockchip.o
> obj-$(CONFIG_PWM_SAMSUNG) += pwm-samsung.o
> obj-$(CONFIG_PWM_SIFIVE) += pwm-sifive.o
> +obj-$(CONFIG_PWM_SL28CPLD) += pwm-sl28cpld.o
> obj-$(CONFIG_PWM_SPEAR) += pwm-spear.o
> obj-$(CONFIG_PWM_SPRD) += pwm-sprd.o
> obj-$(CONFIG_PWM_STI) += pwm-sti.o
> diff --git a/drivers/pwm/pwm-sl28cpld.c b/drivers/pwm/pwm-sl28cpld.c
> new file mode 100644
> index 000000000000..d82303f509f5
> --- /dev/null
> +++ b/drivers/pwm/pwm-sl28cpld.c
> @@ -0,0 +1,201 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * sl28cpld PWM driver.
> + *
> + * Copyright 2019 Kontron Europe GmbH
This is out of date.
> + */
> +
> +#include <linux/bitfield.h>
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/of_device.h>
> +#include <linux/platform_device.h>
> +#include <linux/pwm.h>
> +#include <linux/regmap.h>
> +
> +/*
> + * PWM timer block registers.
> + */
> +#define PWM_CTRL 0x00
> +#define PWM_ENABLE BIT(7)
> +#define PWM_MODE_250HZ 0
> +#define PWM_MODE_500HZ 1
> +#define PWM_MODE_1KHZ 2
> +#define PWM_MODE_2KHZ 3
> +#define PWM_MODE_MASK GENMASK(1, 0)
> +#define PWM_CYCLE 0x01
> +#define PWM_CYCLE_MAX 0x7f
> +
> +struct sl28cpld_pwm {
> + struct pwm_chip pwm_chip;
> + struct regmap *regmap;
> + u32 offset;
> +};
> +
> +struct sl28cpld_pwm_periods {
> + u8 ctrl;
> + unsigned long duty_cycle;
> +};
> +
> +struct sl28cpld_pwm_config {
> + unsigned long period_ns;
> + u8 max_duty_cycle;
> +};
Also, instead of hand rolling your own structure here, I think it
would be prudent to re-use something that already exists. Seeing as
this will be used to describe possible state, perhaps 'struct
pwm_state' would be suitable - leaving polarity and enabled
unpopulated of course.
Ah wait (sorry, thinking allowed and on-the-fly here), what is
max_duty_cycle here? I assume this does not have the same
meaning/value-type as the one in 'struct pwm_state'. What does
max_duty_cycle represent in your use-case?
> +static struct sl28cpld_pwm_config sl28cpld_pwm_config[] = {
> + [PWM_MODE_250HZ] = { .period_ns = 4000000, .max_duty_cycle = 0x80 },
> + [PWM_MODE_500HZ] = { .period_ns = 2000000, .max_duty_cycle = 0x40 },
> + [PWM_MODE_1KHZ] = { .period_ns = 1000000, .max_duty_cycle = 0x20 },
> + [PWM_MODE_2KHZ] = { .period_ns = 500000, .max_duty_cycle = 0x10 },
> +};
Tiny nit: If you lined these up from the '{'s it would be easier to
see/compare the period_ns values at first glance, rather than having
to count the ' 's and '0's.
> +static inline struct sl28cpld_pwm *to_sl28cpld_pwm(struct pwm_chip *chip)
> +{
> + return container_of(chip, struct sl28cpld_pwm, pwm_chip);
> +}
Why not save yourself the trouble and just:
struct sl28cpld_pwm *pwm = dev_get_drvdata(chip->dev);
> +static void sl28cpld_pwm_get_state(struct pwm_chip *chip,
> + struct pwm_device *pwm,
> + struct pwm_state *state)
> +{
> + struct sl28cpld_pwm *spc = to_sl28cpld_pwm(chip);
> + static struct sl28cpld_pwm_config *config;
> + unsigned int reg;
> + unsigned long cycle;
Why is this 'long' here and 'long long' in *_apply()?
> + unsigned int mode;
> +
> + regmap_read(spc->regmap, spc->offset + PWM_CTRL, ®);
> +
> + state->enabled = reg & PWM_ENABLE;
> +
> + mode = FIELD_GET(PWM_MODE_MASK, reg);
> + config = &sl28cpld_pwm_config[mode];
> + state->period = config->period_ns;
> +
> + regmap_read(spc->regmap, spc->offset + PWM_CYCLE, ®);
> + cycle = reg * config->period_ns;
> + state->duty_cycle = DIV_ROUND_CLOSEST_ULL(cycle,
> + config->max_duty_cycle);
> +}
> +
> +static int sl28cpld_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
> + const struct pwm_state *state)
> +{
> + struct sl28cpld_pwm *spc = to_sl28cpld_pwm(chip);
> + struct sl28cpld_pwm_config *config;
> + unsigned long long cycle;
> + int ret;
> + int mode;
> + u8 ctrl;
> +
> + /* update config, first search best matching period */
Please use correct grammar (less full stops) in comments.
> + for (mode = 0; mode < ARRAY_SIZE(sl28cpld_pwm_config); mode++) {
> + config = &sl28cpld_pwm_config[mode];
> + if (state->period == config->period_ns)
> + break;
> + }
> +
> + if (mode == ARRAY_SIZE(sl28cpld_pwm_config))
> + return -EINVAL;
> +
> + ctrl = FIELD_PREP(PWM_MODE_MASK, mode);
> + if (state->enabled)
> + ctrl |= PWM_ENABLE;
> +
> + cycle = state->duty_cycle * config->max_duty_cycle;
> + do_div(cycle, state->period);
Forgive my ignorance (I'm new here!), but what are these 2 lines
doing? Here we are multiplying the current duty_cycle with the
maximum value, then dividing by the period.
So in the case of PWM_MODE_1KHZ with a 50% duty cycle, you'd have:
(500000 * 0x20[16]) / 1000000 = [0x10]16
Thus, the above gives as a proportional representation of the maximum
valid value for placement into the cycle control register(s), right?
Either way (whether I'm correct or not), I think it would be nice to
mention this in a comment. Maybe even clarify with a simple example.
> + /*
> + * The hardware doesn't allow to set max_duty_cycle if the
> + * 250Hz mode is enabled. But since this is "all-high" output
> + * just use the 500Hz mode with the duty cycle to max value.
> + */
> + if (cycle == config->max_duty_cycle) {
> + ctrl &= ~PWM_MODE_MASK;
> + ctrl |= FIELD_PREP(PWM_MODE_MASK, PWM_MODE_500HZ);
> + cycle = PWM_CYCLE_MAX;
> + }
This is being executed even when 250Hz mode is not enabled.
Is that by design? If so, it doesn't match the comment.
> + ret = regmap_write(spc->regmap, spc->offset + PWM_CTRL, ctrl);
> + if (ret)
> + return ret;
> +
> + return regmap_write(spc->regmap, spc->offset + PWM_CYCLE, (u8)cycle);
> +}
> +
> +static const struct pwm_ops sl28cpld_pwm_ops = {
> + .apply = sl28cpld_pwm_apply,
> + .get_state = sl28cpld_pwm_get_state,
> + .owner = THIS_MODULE,
> +};
> +
> +static int sl28cpld_pwm_probe(struct platform_device *pdev)
> +{
> + struct sl28cpld_pwm *pwm;
This is super confusing. Here you call it 'pwm', but when you bring
the data to the fore for consumption, you call it something different
('spc') for some reason.
Is there logic behind this?
> + struct pwm_chip *chip;
> + int ret;
> +
> + if (!pdev->dev.parent)
> + return -ENODEV;
> +
> + pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
> + if (!pwm)
> + return -ENOMEM;
> +
> + pwm->regmap = dev_get_regmap(pdev->dev.parent, NULL);
> + if (!pwm->regmap)
> + return -ENODEV;
> +
> + ret = device_property_read_u32(&pdev->dev, "reg", &pwm->offset);
Really? Can you use the 'reg' property in this way?
Side question:
Do any of your child address spaces actually overlap/intersect?
> + if (ret)
> + return -EINVAL;
> +
> + /* initialize struct pwm_chip */
Proper grammar please.
> + chip = &pwm->pwm_chip;
> + chip->dev = &pdev->dev;
> + chip->ops = &sl28cpld_pwm_ops;
> + chip->base = -1;
> + chip->npwm = 1;
> +
> + ret = pwmchip_add(&pwm->pwm_chip);
> + if (ret < 0)
Is '> 0' even valid?
Suggest "!ret" here, as you have done above.
> + return ret;
> +
> + platform_set_drvdata(pdev, pwm);
> +
> + return 0;
> +}
> +
> +static int sl28cpld_pwm_remove(struct platform_device *pdev)
> +{
> + struct sl28cpld_pwm *pwm = platform_get_drvdata(pdev);
> +
> + return pwmchip_remove(&pwm->pwm_chip);
> +}
> +
> +static const struct of_device_id sl28cpld_pwm_of_match[] = {
> + { .compatible = "kontron,sl28cpld-pwm" },
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, sl28cpld_pwm_of_match);
> +
> +static const struct platform_device_id sl28cpld_pwm_id_table[] = {
> + {"sl28cpld-pwm"},
Spaces either side of the "'s please.
> + {},
> +};
> +MODULE_DEVICE_TABLE(platform, sl28cpld_pwm_id_table);
What are you using this for?
> +static struct platform_driver sl28cpld_pwm_driver = {
> + .probe = sl28cpld_pwm_probe,
> + .remove = sl28cpld_pwm_remove,
> + .id_table = sl28cpld_pwm_id_table,
> + .driver = {
> + .name = KBUILD_MODNAME,
Please just use the quoted name in full.
> + .of_match_table = sl28cpld_pwm_of_match,
> + },
> +};
> +module_platform_driver(sl28cpld_pwm_driver);
> +
> +MODULE_DESCRIPTION("sl28cpld PWM Driver");
"SL28CPLD" ?
> +MODULE_AUTHOR("Michael Walle <michael@walle.cc>");
> +MODULE_LICENSE("GPL");
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply
* Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support
From: Nicolas Saenz Julienne @ 2020-06-05 8:46 UTC (permalink / raw)
To: Florian Fainelli, linux-kernel
Cc: moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Scott Branden, lukas, Ray Jui, Rob Herring,
open list:SPI SUBSYSTEM, Mark Brown,
maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
Martin Sperl
In-Reply-To: <20200604212819.715-1-f.fainelli@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5683 bytes --]
Hi Florian,
Thanks for taking over this!
On Thu, 2020-06-04 at 14:28 -0700, Florian Fainelli wrote:
> The 4 SPI controller instances added in BCM2711 and BCM7211 SoCs (SPI3,
> SPI4, SPI5 and SPI6) share the same interrupt line with SPI0.
I think this isn't 100% correct. SPI0 has its own interrupt, but SPI[3-6] share
the same interrupt.
> For the BCM2835 case which is deemed performance critical, we would like
> to continue using an interrupt handler which does not have the extra
> comparison on BCM2835_SPI_CS_INTR.
>
> To support that requirement the common interrupt handling code between
> the shared and non-shared interrupt paths is split into a
> bcm2835_spi_interrupt_common() and both bcm2835_spi_interrupt() as well
> as bcm2835_spi_shared_interrupt() make use of it.
>
> During probe, we determine if there is at least another instance of this
> SPI controller, and if there is, then we install a shared interrupt
> handler.
As there was pushback to use a different compatible string for an otherwise
identical IP, I think it's a good compromise.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Changes in v2:
>
> - identify other available SPI nodes to determine if we need to set-up
> interrupt sharing. This needs to happen for the very first instance
> since we cannot know for the first instance whether interrupt sharing
> is needed or not.
>
> drivers/spi/spi-bcm2835.c | 61 ++++++++++++++++++++++++++++++++-------
> 1 file changed, 50 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c
> index 237bd306c268..0288b5b3de1e 100644
> --- a/drivers/spi/spi-bcm2835.c
> +++ b/drivers/spi/spi-bcm2835.c
> @@ -361,11 +361,10 @@ static void bcm2835_spi_reset_hw(struct spi_controller
> *ctlr)
> bcm2835_wr(bs, BCM2835_SPI_DLEN, 0);
> }
>
> -static irqreturn_t bcm2835_spi_interrupt(int irq, void *dev_id)
> +static inline irqreturn_t bcm2835_spi_interrupt_common(struct spi_controller
> *ctlr,
> + u32 cs)
Keep in mind the new 100 character limit.
> {
> - struct spi_controller *ctlr = dev_id;
> struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
> - u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);
>
> /*
> * An interrupt is signaled either if DONE is set (TX FIFO empty)
> @@ -394,6 +393,27 @@ static irqreturn_t bcm2835_spi_interrupt(int irq, void
> *dev_id)
> return IRQ_HANDLED;
> }
>
> +static irqreturn_t bcm2835_spi_interrupt(int irq, void *dev_id)
> +{
> + struct spi_controller *ctlr = dev_id;
> + struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
> + u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);
> +
> + return bcm2835_spi_interrupt_common(ctlr, cs);
> +}
> +
> +static irqreturn_t bcm2835_spi_shared_interrupt(int irq, void *dev_id)
> +{
> + struct spi_controller *ctlr = dev_id;
> + struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
> + u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);
> +
> + if (!(cs & BCM2835_SPI_CS_INTR))
> + return IRQ_NONE;
> +
> + return bcm2835_spi_interrupt_common(ctlr, cs);
> +}
> +
> static int bcm2835_spi_transfer_one_irq(struct spi_controller *ctlr,
> struct spi_device *spi,
> struct spi_transfer *tfr,
> @@ -1287,12 +1307,37 @@ static int bcm2835_spi_setup(struct spi_device *spi)
> return 0;
> }
>
> +static const struct of_device_id bcm2835_spi_match[] = {
> + { .compatible = "brcm,bcm2835-spi", },
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, bcm2835_spi_match);
> +
> static int bcm2835_spi_probe(struct platform_device *pdev)
> {
> + irq_handler_t bcm2835_spi_isr_func = bcm2835_spi_interrupt;
> struct spi_controller *ctlr;
> + unsigned long flags = 0;
> + struct device_node *dn;
> struct bcm2835_spi *bs;
> int err;
>
> + /* On BCM2711 there can be multiple SPI controllers enabled sharing the
> + * same interrupt line, but we also want to minimize the overhead if
> + * there is no need to support interrupt sharing. If we find at least
> + * another available instane (not counting the one we are probed from),
"instance"
> + * then we assume that interrupt sharing is necessary.
> + */
> + for_each_compatible_node(dn, NULL, bcm2835_spi_match[0].compatible) {
> + err = of_device_is_available(dn) && dn != pdev->dev.of_node;
nit: maybe err is not the ideal variable name here.
> + of_node_put(dn);
> + if (err) {
> + flags = IRQF_SHARED;
> + bcm2835_spi_isr_func = bcm2835_spi_shared_interrupt;
> + break;
> + }
> + }
> +
> ctlr = spi_alloc_master(&pdev->dev, ALIGN(sizeof(*bs),
> dma_get_cache_alignment()));
> if (!ctlr)
> @@ -1344,8 +1389,8 @@ static int bcm2835_spi_probe(struct platform_device
> *pdev)
> bcm2835_wr(bs, BCM2835_SPI_CS,
> BCM2835_SPI_CS_CLEAR_RX | BCM2835_SPI_CS_CLEAR_TX);
>
> - err = devm_request_irq(&pdev->dev, bs->irq, bcm2835_spi_interrupt, 0,
> - dev_name(&pdev->dev), ctlr);
> + err = devm_request_irq(&pdev->dev, bs->irq, bcm2835_spi_isr_func,
> + flags, dev_name(&pdev->dev), ctlr);
> if (err) {
> dev_err(&pdev->dev, "could not request IRQ: %d\n", err);
> goto out_dma_release;
> @@ -1400,12 +1445,6 @@ static void bcm2835_spi_shutdown(struct platform_device
> *pdev)
> dev_err(&pdev->dev, "failed to shutdown\n");
> }
>
> -static const struct of_device_id bcm2835_spi_match[] = {
> - { .compatible = "brcm,bcm2835-spi", },
> - {}
> -};
> -MODULE_DEVICE_TABLE(of, bcm2835_spi_match);
> -
> static struct platform_driver bcm2835_spi_driver = {
> .driver = {
> .name = DRV_NAME,
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply
* Re: [PATCH v2 00/91] drm/vc4: Support BCM2711 Display Pipelin
From: Jian-Hong Pan @ 2020-06-05 8:44 UTC (permalink / raw)
To: Maxime Ripard
Cc: Daniel Drake, Nicolas Saenz Julienne, Eric Anholt, dri-devel,
linux-rpi-kernel, bcm-kernel-feedback-list, linux-arm-kernel,
Linux Kernel, devicetree, linux-clk, linux-i2c,
Linux Upstreaming Team
In-Reply-To: <20200602110442.2ceuymhwuomvjj6i@gilmour>
Maxime Ripard <maxime@cerno.tech> 於 2020年6月2日 週二 下午7:04寫道:
>
> Hi,
>
> On Mon, Jun 01, 2020 at 03:58:26PM +0800, Jian-Hong Pan wrote:
> > Maxime Ripard <maxime@cerno.tech> 於 2020年5月28日 週四 下午3:30寫道:
> > >
> > > Hi Daniel,
> > >
> > > On Wed, May 27, 2020 at 05:15:12PM +0800, Daniel Drake wrote:
> > > > On Wed, May 27, 2020 at 5:13 PM Maxime Ripard <maxime@cerno.tech> wrote:
> > > > > I'm about to send a v3 today or tomorrow, I can Cc you (and Jian-Hong) if you
> > > > > want.
> > > >
> > > > That would be great, although given the potentially inconsistent
> > > > results we've been seeing so far it would be great if you could
> > > > additionally push a git branch somewhere.
> > > > That way we can have higher confidence that we are applying exactly
> > > > the same patches to the same base etc.
> > >
> > > So I sent a new iteration yesterday, and of course forgot to cc you... Sorry for
> > > that.
> > >
> > > I've pushed my current branch here:
> > > https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git/log/?h=rpi4-kms
> >
> > Thanks to Maxime!
> >
> > I have tried your repository on branch rpi4-kms. The DRM VC4 is used!
> > But got some issues:
> > 1. Some weird error message in dmesg. Not sure it is related, or not
> > [ 5.219321] [drm:vc5_hdmi_init_resources] *ERROR* Failed to get
> > HDMI state machine clock
> > https://gist.github.com/starnight/3f317dca121065a361cf08e91225e389
>
> That's a deferred probing. The first time the HDMI driver is being
> probed, the firmware clock driver has not been probed yet. It's making
> another attempt later on, which succeeds.
>
> > 2. The screen flashes suddenly sometimes.
I append drm.debug=0x3 to boot command. Whenever, the screen flashes,
I notice the logs like this:
Jun 01 15:22:40 endless kernel: [drm:drm_calc_timestamping_constants]
crtc 64: hwmode: htotal 2200, vtotal 1125, vdisplay 1080
Jun 01 15:22:40 endless kernel: [drm:drm_calc_timestamping_constants]
crtc 64: clock 148500 kHz framedur 16666666 linedur 14814
Jun 01 15:22:40 endless kernel: [drm:drm_vblank_enable] enabling
vblank on crtc 3, ret: 0
Jun 01 15:22:40 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: 159 (2)
Jun 01 15:22:40 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: 154 (1)
Jun 01 15:22:40 endless kernel: [drm:vblank_disable_fn] disabling
vblank on crtc 3
Jun 01 15:22:42 endless kernel: [drm:drm_ioctl] pid=584, dev=0xe200,
auth=1, DRM_IOCTL_MODE_CURSOR
Jun 01 15:22:42 endless kernel: [drm:drm_ioctl] pid=584, dev=0xe200,
auth=1, DRM_IOCTL_MODE_CURSOR2
Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_get] OBJ ID: 159 (1)
Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_get] OBJ ID: 154 (1)
Jun 01 15:22:42 endless kernel: [drm:drm_calc_timestamping_constants]
crtc 64: hwmode: htotal 2200, vtotal 1125, vdisplay 1080
Jun 01 15:22:42 endless kernel: [drm:drm_calc_timestamping_constants]
crtc 64: clock 148500 kHz framedur 16666666 linedur 14814
Jun 01 15:22:42 endless kernel: [drm:drm_vblank_enable] enabling
vblank on crtc 3, ret: 0
Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: 159 (2)
Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: 154 (2)
Here is the full log
https://gist.github.com/starnight/85d641819839eddc7a55ca7173990a56
> > 3. The higher resolutions, like 1920x1080 ... are lost after hot
> > re-plug HDMI cable (HDMI0)
I should explain this in more detail. Here are the steps to reproduce
this issue:
1. Before unplug the HDMI cable from HDMI0 port.
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 2048 x 2048
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x
axis y axis) 521mm x 293mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
HDMI-2 disconnected (normal left inverted right x axis y axis)
2. Unplug the HDMI cable from HDMI0 port.
3. Plug the HDMI cable to **HDMI1** port.
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 2048 x 2048
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected primary 1920x1080+0+0 (normal left inverted right x
axis y axis) 521mm x 293mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1440x576 50.00
1024x768 75.03 70.07 60.00
1440x480 60.00 59.94
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
4. Unplug the HDMI cable from **HDMI1** port.
5. Plug the HDMI cable back to HDMI0 port.
$ xrandr
Screen 0: minimum 320 x 200, current 1368 x 768, maximum 2048 x 2048
HDMI-1 connected primary 1368x768+0+0 (normal left inverted right x
axis y axis) 0mm x 0mm
1368x768 59.88*
1360x768 59.80
1280x800 59.81
1152x864 60.00
1280x720 59.86
1024x768 60.00
1024x576 59.90
960x540 59.63
800x600 60.32
800x450 59.82
700x450 59.88
640x480 59.94
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32
320x240 60.05
HDMI-2 disconnected (normal left inverted right x axis y axis)
Jian-Hong Pan
> I'm not sure on how to exactly reproduce those issues (or what they are)
> though, can you expand on this?
>
> Maxime
^ permalink raw reply
* Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump
From: Nicolas Saenz Julienne @ 2020-06-05 8:21 UTC (permalink / raw)
To: John Donnelly, Bhupesh Sharma
Cc: chenzhou, Simon Horman, Devicetree List, Arnd Bergmann,
Baoquan He, Linux Doc Mailing List, Catalin Marinas, guohanjun,
kexec mailing list, Linux Kernel Mailing List, Will Deacon,
Rob Herring, James Morse, Prabhakar Kushwaha, Thomas Gleixner,
Prabhakar Kushwaha, RuiRui Yang, Ingo Molnar, linux-arm-kernel
In-Reply-To: <de6c7c59-89d2-5b2e-d7ba-50403c4bcaf2@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 19044 bytes --]
On Thu, 2020-06-04 at 21:26 -0500, John Donnelly wrote:
> On 6/4/20 12:01 PM, Nicolas Saenz Julienne wrote:
> > On Thu, 2020-06-04 at 01:17 +0530, Bhupesh Sharma wrote:
> > > Hi All,
> > >
> > > On Wed, Jun 3, 2020 at 9:03 PM John Donnelly <john.p.donnelly@oracle.com>
> > > wrote:
> > > > > On Jun 3, 2020, at 8:20 AM, chenzhou <chenzhou10@huawei.com> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > > On 2020/6/3 19:47, Prabhakar Kushwaha wrote:
> > > > > > Hi Chen,
> > > > > >
> > > > > > On Tue, Jun 2, 2020 at 8:12 PM John Donnelly <
> > > > > > john.p.donnelly@oracle.com
> > > > > > > wrote:
> > > > > > >
> > > > > > > > On Jun 2, 2020, at 12:38 AM, Prabhakar Kushwaha <
> > > > > > > > prabhakar.pkin@gmail.com> wrote:
> > > > > > > >
> > > > > > > > On Tue, Jun 2, 2020 at 3:29 AM John Donnelly <
> > > > > > > > john.p.donnelly@oracle.com> wrote:
> > > > > > > > > Hi . See below !
> > > > > > > > >
> > > > > > > > > > On Jun 1, 2020, at 4:02 PM, Bhupesh Sharma <
> > > > > > > > > > bhsharma@redhat.com>
> > > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > Hi John,
> > > > > > > > > >
> > > > > > > > > > On Tue, Jun 2, 2020 at 1:01 AM John Donnelly <
> > > > > > > > > > John.P.donnelly@oracle.com> wrote:
> > > > > > > > > > > Hi,
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On 6/1/20 7:02 AM, Prabhakar Kushwaha wrote:
> > > > > > > > > > > > Hi Chen,
> > > > > > > > > > > >
> > > > > > > > > > > > On Thu, May 21, 2020 at 3:05 PM Chen Zhou <
> > > > > > > > > > > > chenzhou10@huawei.com> wrote:
> > > > > > > > > > > > > This patch series enable reserving crashkernel above
> > > > > > > > > > > > > 4G in
> > > > > > > > > > > > > arm64.
> > > > > > > > > > > > >
> > > > > > > > > > > > > There are following issues in arm64 kdump:
> > > > > > > > > > > > > 1. We use crashkernel=X to reserve crashkernel below
> > > > > > > > > > > > > 4G,
> > > > > > > > > > > > > which will fail
> > > > > > > > > > > > > when there is no enough low memory.
> > > > > > > > > > > > > 2. Currently, crashkernel=Y@X can be used to reserve
> > > > > > > > > > > > > crashkernel above 4G,
> > > > > > > > > > > > > in this case, if swiotlb or DMA buffers are required,
> > > > > > > > > > > > > crash dump kernel
> > > > > > > > > > > > > will boot failure because there is no low memory
> > > > > > > > > > > > > available
> > > > > > > > > > > > > for allocation.
> > > > > > > > > > > > >
> > > > > > > > > > > > We are getting "warn_alloc" [1] warning during boot of
> > > > > > > > > > > > kdump
> > > > > > > > > > > > kernel
> > > > > > > > > > > > with bootargs as [2] of primary kernel.
> > > > > > > > > > > > This error observed on ThunderX2 ARM64 platform.
> > > > > > > > > > > >
> > > > > > > > > > > > It is observed with latest upstream tag (v5.7-rc3) with
> > > > > > > > > > > > this
> > > > > > > > > > > > patch set
> > > > > > > > > > > > and
> > > > > > > > > > > >
> >
https://urldefense.com/v3/__https://lists.infradead.org/pipermail/kexec/2020-May/025128.html__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbiIAAlzu$
> > > > > > > > > > > > Also **without** this patch-set
> > > > > > > > > > > > "
> > > > > > > > > > > >
> >
https://urldefense.com/v3/__https://www.spinics.net/lists/arm-kernel/msg806882.html__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbjC6ujMA$
> > > > > > > > > > > > "
> > > > > > > > > > > >
> > > > > > > > > > > > This issue comes whenever crashkernel memory is reserved
> > > > > > > > > > > > after 0xc000_0000.
> > > > > > > > > > > > More details discussed earlier in
> > > > > > > > > > > >
> >
https://urldefense.com/v3/__https://www.spinics.net/lists/arm-kernel/msg806882.html__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbjC6ujMA$
> > without
> > > > > > > > > > > > any
> > > > > > > > > > > > solution
> > > > > > > > > > > >
> > > > > > > > > > > > This patch-set is expected to solve similar kind of
> > > > > > > > > > > > issue.
> > > > > > > > > > > > i.e. low memory is only targeted for DMA, swiotlb; So
> > > > > > > > > > > > above
> > > > > > > > > > > > mentioned
> > > > > > > > > > > > observation should be considered/fixed. .
> > > > > > > > > > > >
> > > > > > > > > > > > --pk
> > > > > > > > > > > >
> > > > > > > > > > > > [1]
> > > > > > > > > > > > [ 30.366695] DMI: Cavium Inc. Saber/Saber, BIOS
> > > > > > > > > > > > TX2-FW-Release-3.1-build_01-2803-g74253a541a mm/dd/yyyy
> > > > > > > > > > > > [ 30.367696] NET: Registered protocol family 16
> > > > > > > > > > > > [ 30.369973] swapper/0: page allocation failure:
> > > > > > > > > > > > order:6,
> > > > > > > > > > > > mode:0x1(GFP_DMA),
> > > > > > > > > > > > nodemask=(null),cpuset=/,mems_allowed=0
> > > > > > > > > > > > [ 30.369980] CPU: 0 PID: 1 Comm: swapper/0 Not tainted
> > > > > > > > > > > > 5.7.0-rc3+ #121
> > > > > > > > > > > > [ 30.369981] Hardware name: Cavium Inc. Saber/Saber,
> > > > > > > > > > > > BIOS
> > > > > > > > > > > > TX2-FW-Release-3.1-build_01-2803-g74253a541a mm/dd/yyyy
> > > > > > > > > > > > [ 30.369984] Call trace:
> > > > > > > > > > > > [ 30.369989] dump_backtrace+0x0/0x1f8
> > > > > > > > > > > > [ 30.369991] show_stack+0x20/0x30
> > > > > > > > > > > > [ 30.369997] dump_stack+0xc0/0x10c
> > > > > > > > > > > > [ 30.370001] warn_alloc+0x10c/0x178
> > > > > > > > > > > > [ 30.370004] __alloc_pages_slowpath.constprop.111+0xb
> > > > > > > > > > > > 10/0
> > > > > > > > > > > > xb50
> > > > > > > > > > > > [ 30.370006] __alloc_pages_nodemask+0x2b4/0x300
> > > > > > > > > > > > [ 30.370008] alloc_page_interleave+0x24/0x98
> > > > > > > > > > > > [ 30.370011] alloc_pages_current+0xe4/0x108
> > > > > > > > > > > > [ 30.370017] dma_atomic_pool_init+0x44/0x1a4
> > > > > > > > > > > > [ 30.370020] do_one_initcall+0x54/0x228
> > > > > > > > > > > > [ 30.370027] kernel_init_freeable+0x228/0x2cc
> > > > > > > > > > > > [ 30.370031] kernel_init+0x1c/0x110
> > > > > > > > > > > > [ 30.370034] ret_from_fork+0x10/0x18
> > > > > > > > > > > > [ 30.370036] Mem-Info:
> > > > > > > > > > > > [ 30.370064] active_anon:0 inactive_anon:0
> > > > > > > > > > > > isolated_anon:0
> > > > > > > > > > > > [ 30.370064] active_file:0 inactive_file:0
> > > > > > > > > > > > isolated_file:0
> > > > > > > > > > > > [ 30.370064] unevictable:0 dirty:0 writeback:0
> > > > > > > > > > > > unstable:0
> > > > > > > > > > > > [ 30.370064] slab_reclaimable:34
> > > > > > > > > > > > slab_unreclaimable:4438
> > > > > > > > > > > > [ 30.370064] mapped:0 shmem:0 pagetables:14 bounce:0
> > > > > > > > > > > > [ 30.370064] free:1537719 free_pcp:219 free_cma:0
> > > > > > > > > > > > [ 30.370070] Node 0 active_anon:0kB inactive_anon:0kB
> > > > > > > > > > > > active_file:0kB inactive_file:0kB unevictable:0kB
> > > > > > > > > > > > isolated(anon):0kB
> > > > > > > > > > > > isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB
> > > > > > > > > > > > shmem:0kB
> > > > > > > > > > > > shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB
> > > > > > > > > > > > writeback_tmp:0kB
> > > > > > > > > > > > unstable:0kB all_unreclaimable? no
> > > > > > > > > > > > [ 30.370073] Node 1 active_anon:0kB inactive_anon:0kB
> > > > > > > > > > > > active_file:0kB inactive_file:0kB unevictable:0kB
> > > > > > > > > > > > isolated(anon):0kB
> > > > > > > > > > > > isolated(file):0kB mapped:0kB dirty:0kB writeback:0kB
> > > > > > > > > > > > shmem:0kB
> > > > > > > > > > > > shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB
> > > > > > > > > > > > writeback_tmp:0kB
> > > > > > > > > > > > unstable:0kB all_unreclaimable? no
> > > > > > > > > > > > [ 30.370079] Node 0 DMA free:0kB min:0kB low:0kB
> > > > > > > > > > > > high:0kB
> > > > > > > > > > > > reserved_highatomic:0KB active_anon:0kB
> > > > > > > > > > > > inactive_anon:0kB
> > > > > > > > > > > > active_file:0kB inactive_file:0kB unevictable:0kB
> > > > > > > > > > > > writepending:0kB
> > > > > > > > > > > > present:128kB managed:0kB mlocked:0kB kernel_stack:0kB
> > > > > > > > > > > > pagetables:0kB
> > > > > > > > > > > > bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
> > > > > > > > > > > > [ 30.370084] lowmem_reserve[]: 0 250 6063 6063
> > > > > > > > > > > > [ 30.370090] Node 0 DMA32 free:256000kB min:408kB
> > > > > > > > > > > > low:664kB
> > > > > > > > > > > > high:920kB reserved_highatomic:0KB active_anon:0kB
> > > > > > > > > > > > inactive_anon:0kB
> > > > > > > > > > > > active_file:0kB inactive_file:0kB unevictable:0kB
> > > > > > > > > > > > writepending:0kB
> > > > > > > > > > > > present:269700kB managed:256000kB mlocked:0kB
> > > > > > > > > > > > kernel_stack:0kB
> > > > > > > > > > > > pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB
> > > > > > > > > > > > free_cma:0kB
> > > > > > > > > > > > [ 30.370094] lowmem_reserve[]: 0 0 5813 5813
> > > > > > > > > > > > [ 30.370100] Node 0 Normal free:5894876kB min:9552kB
> > > > > > > > > > > > low:15504kB
> > > > > > > > > > > > high:21456kB reserved_highatomic:0KB active_anon:0kB
> > > > > > > > > > > > inactive_anon:0kB
> > > > > > > > > > > > active_file:0kB inactive_file:0kB unevictable:0kB
> > > > > > > > > > > > writepending:0kB
> > > > > > > > > > > > present:8388608kB managed:5953112kB mlocked:0kB
> > > > > > > > > > > > kernel_stack:21672kB
> > > > > > > > > > > > pagetables:56kB bounce:0kB free_pcp:876kB
> > > > > > > > > > > > local_pcp:176kB
> > > > > > > > > > > > free_cma:0kB
> > > > > > > > > > > > [ 30.370104] lowmem_reserve[]: 0 0 0 0
> > > > > > > > > > > > [ 30.370107] Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB
> > > > > > > > > > > > 0*64kB
> > > > > > > > > > > > 0*128kB
> > > > > > > > > > > > 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
> > > > > > > > > > > > [ 30.370113] Node 0 DMA32: 0*4kB 0*8kB 0*16kB 0*32kB
> > > > > > > > > > > > 0*64kB 0*128kB
> > > > > > > > > > > > 0*256kB 0*512kB 0*1024kB 1*2048kB (M) 62*4096kB (M) =
> > > > > > > > > > > > 256000kB
> > > > > > > > > > > > [ 30.370119] Node 0 Normal: 2*4kB (M) 3*8kB (ME)
> > > > > > > > > > > > 2*16kB
> > > > > > > > > > > > (UE) 3*32kB
> > > > > > > > > > > > (UM) 1*64kB (U) 2*128kB (M) 2*256kB (ME) 3*512kB (ME)
> > > > > > > > > > > > 3*1024kB (ME)
> > > > > > > > > > > > 3*2048kB (UME) 1436*4096kB (M) = 5893600kB
> > > > > > > > > > > > [ 30.370129] Node 0 hugepages_total=0 hugepages_free=0
> > > > > > > > > > > > hugepages_surp=0 hugepages_size=1048576kB
> > > > > > > > > > > > [ 30.370130] 0 total pagecache pages
> > > > > > > > > > > > [ 30.370132] 0 pages in swap cache
> > > > > > > > > > > > [ 30.370134] Swap cache stats: add 0, delete 0, find
> > > > > > > > > > > > 0/0
> > > > > > > > > > > > [ 30.370135] Free swap = 0kB
> > > > > > > > > > > > [ 30.370136] Total swap = 0kB
> > > > > > > > > > > > [ 30.370137] 2164609 pages RAM
> > > > > > > > > > > > [ 30.370139] 0 pages HighMem/MovableOnly
> > > > > > > > > > > > [ 30.370140] 612331 pages reserved
> > > > > > > > > > > > [ 30.370141] 0 pages hwpoisoned
> > > > > > > > > > > > [ 30.370143] DMA: failed to allocate 256 KiB pool for
> > > > > > > > > > > > atomic
> > > > > > > > > > > > coherent allocation
> > > > > > > > > > > During my testing I saw the same error and
> > > > > > > > > > > Chen's solution
> > > > > > > > > > > corrected it .
> > > > > > > > > > Which combination you are using on your side? I am using
> > > > > > > > > > Prabhakar's
> > > > > > > > > > suggested environment and can reproduce the issue
> > > > > > > > > > with or without Chen's crashkernel support above 4G
> > > > > > > > > > patchset.
> > > > > > > > > >
> > > > > > > > > > I am also using a ThunderX2 platform with latest
> > > > > > > > > > makedumpfile
> > > > > > > > > > code and
> > > > > > > > > > kexec-tools (with the suggested patch
> > > > > > > > > > <
> > > > > > > > > >
> >
https://urldefense.com/v3/__https://lists.infradead.org/pipermail/kexec/2020-May/025128.html__;!!GqivPVa7Brio!J6lUig58-Gw6TKZnEEYzEeSU36T-1SqlB1kImU00xtX_lss5Tx-JbUmLE9TJC3foXBLg$
> > > > > > > > > > > ).
> > > > > > > > > > Thanks,
> > > > > > > > > > Bhupesh
> > > > > > > > > I did this activity 5 months ago and I have moved on to other
> > > > > > > > > activities. My DMA failures were related to PCI devices that
> > > > > > > > > could
> > > > > > > > > not be enumerated because low-DMA space was not available
> > > > > > > > > when
> > > > > > > > > crashkernel was moved above 4G; I don’t recall the exact
> > > > > > > > > platform.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > For this failure ,
> > > > > > > > >
> > > > > > > > > > > > DMA: failed to allocate 256 KiB pool for atomic
> > > > > > > > > > > > coherent allocation
> > > > > > > > > Is due to :
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 3618082c
> > > > > > > > > ("arm64 use both ZONE_DMA and ZONE_DMA32")
> > > > > > > > >
> > > > > > > > > With the introduction of ZONE_DMA to support the Raspberry DMA
> > > > > > > > > region below 1G, the crashkernel is placed in the upper 4G
> > > > > > > > > ZONE_DMA_32 region. Since the crashkernel does not have access
> > > > > > > > > to the ZONE_DMA region, it prints out call trace during
> > > > > > > > > bootup.
> > > > > > > > >
> > > > > > > > > It is due to having this CONFIG item ON :
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > CONFIG_ZONE_DMA=y
> > > > > > > > >
> > > > > > > > > Turning off ZONE_DMA fixes a issue and Raspberry PI 4 will
> > > > > > > > > use the device tree to specify memory below 1G.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > Disabling ZONE_DMA is temporary solution. We may need proper
> > > > > > > > solution
> > > > > > > Perhaps the Raspberry platform configuration dependencies need
> > > > > > > separated from “server class” Arm equipment ? Or auto-
> > > > > > > configured on
> > > > > > > boot ? Consult an expert ;-)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > > > I would like to see Chen’s feature added , perhaps as
> > > > > > > > > EXPERIMENTAL, so we can get some configuration testing done
> > > > > > > > > on
> > > > > > > > > it. It corrects having a DMA zone in low memory while crash-
> > > > > > > > > kernel is above 4GB. This has been going on for a year now.
> > > > > > > > I will also like this patch to be added in Linux as early as
> > > > > > > > possible.
> > > > > > > >
> > > > > > > > Issue mentioned by me happens with or without this patch.
> > > > > > > >
> > > > > > > > This patch-set can consider fixing because it uses low memory
> > > > > > > > for
> > > > > > > > DMA
> > > > > > > > & swiotlb only.
> > > > > > > > We can consider restricting crashkernel within the required
> > > > > > > > range
> > > > > > > > like below
> > > > > > > >
> > > > > > > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c
> > > > > > > > index 7f9e5a6dc48c..bd67b90d35bd 100644
> > > > > > > > --- a/kernel/crash_core.c
> > > > > > > > +++ b/kernel/crash_core.c
> > > > > > > > @@ -354,7 +354,7 @@ int __init reserve_crashkernel_low(void)
> > > > > > > > return 0;
> > > > > > > > }
> > > > > > > >
> > > > > > > > - low_base = memblock_find_in_range(0, 1ULL << 32,
> > > > > > > > low_size,
> > > > > > > > CRASH_ALIGN);
> > > > > > > > + low_base = memblock_find_in_range(0,0xc0000000,
> > > > > > > > low_size,
> > > > > > > > CRASH_ALIGN);
> > > > > > > > if (!low_base) {
> > > > > > > > pr_err("Cannot reserve %ldMB crashkernel low
> > > > > > > > memory,
> > > > > > > > please try smaller size.\n",
> > > > > > > > (unsigned long)(low_size >> 20));
> > > > > > > >
> > > > > > > >
> > > > > > > I suspect 0xc0000000 would need to be a CONFIG item and not
> > > > > > > hard-coded.
> > > > > > >
> > > > > > if you consider this as valid change, can you please incorporate as
> > > > > > part of your patch-set.
> > > > > After commit 1a8e1cef7 ("arm64: use both ZONE_DMA and ZONE_DMA32"),the
> > > > > 0-
> > > > > 4G memory is splited
> > > > > to DMA [mem 0x0000000000000000-0x000000003fffffff] and DMA32 [mem
> > > > > 0x0000000040000000-0x00000000ffffffff] on arm64.
> > > > >
> > > > > From the above discussion, on your platform, the low crashkernel fall
> > > > > in
> > > > > DMA32 region, but your environment needs to access DMA
> > > > > region, so there is the call trace.
> > > > >
> > > > > I have a question, why do you choose 0xc0000000 here?
> > > > >
> > > > > Besides, this is common code, we also need to consider about x86.
> > > > >
> > > > + nsaenzjulienne@suse.de
> > Thanks for adding me to the conversation, and sorry for the headaches.
> >
> > > > Exactly . This is why it needs to be a CONFIG option for Raspberry
> > > > .., or device tree option.
> > > >
> > > >
> > > > We could revert 1a8e1cef7 since it broke Arm kdump too.
> > > Well, unfortunately the patch for commit 1a8e1cef7603 ("arm64: use
> > > both ZONE_DMA and ZONE_DMA32") was not Cc'ed to the kexec mailing
> > > list, thus we couldn't get many eyes on it for a thorough review from
> > > kexec/kdump p-o-v.
> > >
> > > Also we historically never had distinction in common arch code on the
> > > basis of the intended end use-case: embedded, server or automotive, so
> > > I am not sure introducing a Raspberry specific CONFIG option would be
> > > a good idea.
> > +1
> >
> > From the distros perspective it's very important to keep a single kernel
> > image.
> >
> > > So, rather than reverting the patch, we can look at addressing the
> > > same properly this time - especially from a kdump p-o-v.
> > > This issue has been reported by some Red Hat arm64 partners with
> > > upstream kernel also and as we have noticed in the past as well,
> > > hardcoding the placement of the crashkernel base address (unless the
> > > base address is specified by a crashkernel=X@Y like bootargs) is also
> > > not a portable suggestion.
> > >
> > > I am working on a possible fix and will have more updates on the same
> > > in a day-or-two.
> > Please keep me in the loop, we've also had issues pointing to this reported
> > by
> > SUSE partners. I can do some testing both on the RPi4 and on big servers
> > that
> > need huge crashkernel sizes.
> >
> > Regards,
> > Nicolas
> >
> Hi Nicolas,
>
>
> You want want to review this topic with the various email threads . It
> has been a long journey.
Will do, thanks!
Regards,
Nicolas
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply
* Re: [PATCH v4 05/11] pwm: add support for sl28cpld PWM controller
From: Andy Shevchenko @ 2020-06-05 8:15 UTC (permalink / raw)
To: Michael Walle
Cc: open list:GPIO SUBSYSTEM, devicetree, Linux Kernel Mailing List,
linux-hwmon, linux-pwm, linux-watchdog, linux-arm Mailing List,
Linus Walleij, Bartosz Golaszewski, Rob Herring, Jean Delvare,
Guenter Roeck, Lee Jones, Thierry Reding, Uwe Kleine-König,
Wim Van Sebroeck, Shawn Guo, Li Yang, Thomas Gleixner,
Jason Cooper, Marc Zyngier, Mark Brown, Greg Kroah-Hartman,
Andy Shevchenko
In-Reply-To: <20200604211039.12689-6-michael@walle.cc>
On Fri, Jun 5, 2020 at 12:16 AM Michael Walle <michael@walle.cc> wrote:
>
> Add support for the PWM controller of the sl28cpld board management
> controller. This is part of a multi-function device driver.
>
> The controller has one PWM channel and can just generate four distinct
> frequencies.
So same comments (extra comma, cargo cult headers, etc) are applied
here and perhaps to all other patches in the series.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v4 04/11] watchdog: add support for sl28cpld watchdog
From: Andy Shevchenko @ 2020-06-05 8:14 UTC (permalink / raw)
To: Michael Walle
Cc: open list:GPIO SUBSYSTEM, devicetree, Linux Kernel Mailing List,
linux-hwmon, linux-pwm, linux-watchdog, linux-arm Mailing List,
Linus Walleij, Bartosz Golaszewski, Rob Herring, Jean Delvare,
Guenter Roeck, Lee Jones, Thierry Reding, Uwe Kleine-König,
Wim Van Sebroeck, Shawn Guo, Li Yang, Thomas Gleixner,
Jason Cooper, Marc Zyngier, Mark Brown, Greg Kroah-Hartman,
Andy Shevchenko
In-Reply-To: <20200604211039.12689-5-michael@walle.cc>
On Fri, Jun 5, 2020 at 12:14 AM Michael Walle <michael@walle.cc> wrote:
>
> Add support for the watchdog of the sl28cpld board management
> controller. This is part of a multi-function device driver.
...
> +#include <linux/of_device.h>
Didn't find a user of this.
...
> +static bool nowayout = WATCHDOG_NOWAYOUT;
> +module_param(nowayout, bool, 0);
> +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
> + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
> +
> +static int timeout;
> +module_param(timeout, int, 0);
> +MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds");
Guenter ACKed this, but I'm wondering why we still need module parameters...
...
> + int ret;
> +
> + ret = regmap_read(wdt->regmap, wdt->offset + WDT_COUNT, &val);
> +
> + return (ret < 0) ? 0 : val;
Besides extra parentheses and questionable ' < 0' part, the following
would look better I think
ret = ...
if (ret)
return 0;
return val;
...
> + int ret;
> +
> + ret = regmap_write(wdt->regmap, wdt->offset + WDT_TIMEOUT, timeout);
> + if (!ret)
> + wdd->timeout = timeout;
> +
> + return ret;
Similar story here:
ret = ...
if (ret)
return ret;
wdd->... = ...
return 0;
...
> + ret = regmap_read(wdt->regmap, wdt->offset + WDT_CTRL, &status);
> + if (ret < 0)
What ' < 0' means? Do we have some positive return values?
Ditto for all your code.
> + return ret;
...
> + if (status & WDT_CTRL_EN) {
> + sl28cpld_wdt_start(wdd);
> + set_bit(WDOG_HW_RUNNING, &wdd->status);
Do you need atomic op here? Why?
> + }
...
> +static const struct of_device_id sl28cpld_wdt_of_match[] = {
> + { .compatible = "kontron,sl28cpld-wdt" },
> + {},
No comma.
> +};
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v8 14/14] media: platform: Add jpeg dec/enc feature
From: Xia Jiang @ 2020-06-05 8:07 UTC (permalink / raw)
To: Hans Verkuil
Cc: Mauro Carvalho Chehab, Rob Herring, Matthias Brugger, Rick Chang,
linux-media, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Marek Szyprowski, Tomasz Figa, srv_heupstream,
senozhatsky, mojahsu, drinkcat, maoguang.meng, sj.huang
In-Reply-To: <b62b303c-10cd-fdf6-52fa-90d63124487a@xs4all.nl>
On Mon, 2020-05-11 at 11:04 +0200, Hans Verkuil wrote:
> On 03/04/2020 11:40, Xia Jiang wrote:
> > Add mtk jpeg encode v4l2 driver based on jpeg decode, because that jpeg
> > decode and encode have great similarities with function operation.
> >
> > Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
> > ---
> > v8:jpeg encoder and decoder use separate callbacks instead of repeating
> > the if/else in every callback.
> > improve vidioc_try_fmt() implementation that can be shared by jpeg
> > encoder and decoder.
> > fix the bug of jpeg encoder s_selection implementation.
> > cancel the state of the jpeg encoder.
> > improve jpeg encoder and decoder set default params flow.
> > put the clock names and other datas in a match_data struct.
> > fix the bug of geting correctly quality value.
> > do the all the bits' settings of one register in one function.
> > move the code of mtk_jpeg_enc_reg.h to mtk_jpeg_enc_hw.h and delete
> > mtk_jpeg_enc_reg.h.
> >
> > v7: reverse spin lock and unlock operation in device run function for
> > multi-instance.
> >
> > v6: add space to arounding '+'.
> > alignment 'struct mtk_jpeg_fmt *fmt' match open parenthesis.
> > change 'mtk_jpeg_enc_set_encFormat' to 'mtk_jpeg_enc_set_enc_format'.
> > make 'mtk_jpeg_ctrls_setup' to static prototype.
> > delete unused variables 'jpeg'/'align_h'/'align_w'/'flags'.
> > initialize 'yuv_format'/'enc_quality' variables.
> >
> > v5: support crop for encoder and compose for decoder in s_selection and
> > g_selection function.
> > use clamp() to replace mtk_jpeg_bound_align_image() and round_up()
> > to replace mtk_jpeg_align().
> > delete jpeg_enc_param/mtk_jpeg_enc_param structure and
> > mtk_jpeg_set_param(), program the registers directly based on
> > the original V4L2 values.
> > move macro definition about hw to mtk_jpeg_enc_reg.h.
> > delete unnecessary V4L2 logs in driver.
> > cancel spin lock and unlock operation in deviec run function.
> > change jpeg enc register offset hex numberals from upercase to lowercase.
> >
> > v4: split mtk_jpeg_try_fmt_mplane() to two functions, one for encoder,
> > one for decoder.
> > split mtk_jpeg_set_default_params() to two functions, one for
> > encoder, one for decoder.
> > add cropping support for encoder in g/s_selection ioctls.
> > change exif mode support by using V4L2_JPEG_ACTIVE_MARKER_APP1.
> > change MTK_JPEG_MAX_WIDTH/MTK_JPEG_MAX_HEIGH from 8192 to 65535 by
> > specification.
> > move width shifting operation behind aligning operation in
> > mtk_jpeg_try_enc_fmt_mplane() for bug fix.
> > fix user abuseing data_offset issue for DMABUF in
> > mtk_jpeg_set_enc_src().
> > fix kbuild warings: change MTK_JPEG_MIN_HEIGHT/MTK_JPEG_MAX_HEIGHT
> > and MTK_JPEG_MIN_WIDTH/MTK_JPEG_MAX_WIDTH from
> > 'int' type to 'unsigned int' type.
> > fix msleadingly indented of 'else'.
> > v3: delete Change-Id.
> > only test once handler->error after the last v4l2_ctrl_new_std().
> > seperate changes of v4l2-ctrls.c and v4l2-controls.h to new patch.
> > v2: fix compliance test fail, check created buffer size in driver.
> > ---
> > drivers/media/platform/mtk-jpeg/Makefile | 5 +-
> > .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 1038 +++++++++++++----
> > .../media/platform/mtk-jpeg/mtk_jpeg_core.h | 51 +-
> > .../media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h | 7 +-
> > .../media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c | 193 +++
> > .../media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h | 123 ++
> > 6 files changed, 1188 insertions(+), 229 deletions(-)
> > create mode 100644 drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c
> > create mode 100644 drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h
> >
> > diff --git a/drivers/media/platform/mtk-jpeg/Makefile b/drivers/media/platform/mtk-jpeg/Makefile
> > index 48516dcf96e6..76c33aad0f3f 100644
> > --- a/drivers/media/platform/mtk-jpeg/Makefile
> > +++ b/drivers/media/platform/mtk-jpeg/Makefile
> > @@ -1,3 +1,6 @@
> > # SPDX-License-Identifier: GPL-2.0-only
> > -mtk_jpeg-objs := mtk_jpeg_core.o mtk_jpeg_dec_hw.o mtk_jpeg_dec_parse.o
> > +mtk_jpeg-objs := mtk_jpeg_core.o \
> > + mtk_jpeg_dec_hw.o \
> > + mtk_jpeg_dec_parse.o \
> > + mtk_jpeg_enc_hw.o
> > obj-$(CONFIG_VIDEO_MEDIATEK_JPEG) += mtk_jpeg.o
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
> > index 77a95185584c..18a759ce2c46 100644
> > --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
> > @@ -3,6 +3,7 @@
> > * Copyright (c) 2016 MediaTek Inc.
> > * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
> > * Rick Chang <rick.chang@mediatek.com>
> > + * Xia Jiang <xia.jiang@mediatek.com>
> > */
> >
> > #include <linux/clk.h>
> > @@ -23,11 +24,60 @@
> > #include <media/videobuf2-dma-contig.h>
> > #include <soc/mediatek/smi.h>
> >
> > +#include "mtk_jpeg_enc_hw.h"
> > #include "mtk_jpeg_dec_hw.h"
> > #include "mtk_jpeg_core.h"
> > #include "mtk_jpeg_dec_parse.h"
> >
> > -static struct mtk_jpeg_fmt mtk_jpeg_formats[] = {
> > +static struct mtk_jpeg_fmt mtk_jpeg_enc_formats[] = {
> > + {
> > + .fourcc = V4L2_PIX_FMT_JPEG,
> > + .colplanes = 1,
> > + .flags = MTK_JPEG_FMT_FLAG_ENC_CAPTURE,
> > + },
> > + {
> > + .fourcc = V4L2_PIX_FMT_NV12M,
> > + .hw_format = JPEG_ENC_YUV_FORMAT_NV12,
> > + .h_sample = {4, 4},
> > + .v_sample = {4, 2},
> > + .colplanes = 2,
> > + .h_align = 4,
> > + .v_align = 4,
> > + .flags = MTK_JPEG_FMT_FLAG_ENC_OUTPUT,
> > + },
> > + {
> > + .fourcc = V4L2_PIX_FMT_NV21M,
> > + .hw_format = JEPG_ENC_YUV_FORMAT_NV21,
> > + .h_sample = {4, 4},
> > + .v_sample = {4, 2},
> > + .colplanes = 2,
> > + .h_align = 4,
> > + .v_align = 4,
> > + .flags = MTK_JPEG_FMT_FLAG_ENC_OUTPUT,
> > + },
> > + {
> > + .fourcc = V4L2_PIX_FMT_YUYV,
> > + .hw_format = JPEG_ENC_YUV_FORMAT_YUYV,
> > + .h_sample = {8},
> > + .v_sample = {4},
> > + .colplanes = 1,
> > + .h_align = 5,
> > + .v_align = 3,
> > + .flags = MTK_JPEG_FMT_FLAG_ENC_OUTPUT,
> > + },
> > + {
> > + .fourcc = V4L2_PIX_FMT_YVYU,
> > + .hw_format = JPEG_ENC_YUV_FORMAT_YVYU,
> > + .h_sample = {8},
> > + .v_sample = {4},
> > + .colplanes = 1,
> > + .h_align = 5,
> > + .v_align = 3,
> > + .flags = MTK_JPEG_FMT_FLAG_ENC_OUTPUT,
> > + },
> > +};
> > +
> > +static struct mtk_jpeg_fmt mtk_jpeg_dec_formats[] = {
> > {
> > .fourcc = V4L2_PIX_FMT_JPEG,
> > .colplanes = 1,
> > @@ -53,7 +103,8 @@ static struct mtk_jpeg_fmt mtk_jpeg_formats[] = {
> > },
> > };
> >
> > -#define MTK_JPEG_NUM_FORMATS ARRAY_SIZE(mtk_jpeg_formats)
> > +#define MTK_JPEG_ENC_NUM_FORMATS ARRAY_SIZE(mtk_jpeg_enc_formats)
> > +#define MTK_JPEG_DEC_NUM_FORMATS ARRAY_SIZE(mtk_jpeg_dec_formats)
> >
> > enum {
> > MTK_JPEG_BUF_FLAGS_INIT = 0,
> > @@ -70,6 +121,11 @@ struct mtk_jpeg_src_buf {
> > static int debug;
> > module_param(debug, int, 0644);
> >
> > +static inline struct mtk_jpeg_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl)
> > +{
> > + return container_of(ctrl->handler, struct mtk_jpeg_ctx, ctrl_hdl);
> > +}
> > +
> > static inline struct mtk_jpeg_ctx *mtk_jpeg_fh_to_ctx(struct v4l2_fh *fh)
> > {
> > return container_of(fh, struct mtk_jpeg_ctx, fh);
> > @@ -81,12 +137,25 @@ static inline struct mtk_jpeg_src_buf *mtk_jpeg_vb2_to_srcbuf(
> > return container_of(to_vb2_v4l2_buffer(vb), struct mtk_jpeg_src_buf, b);
> > }
> >
> > -static int mtk_jpeg_querycap(struct file *file, void *priv,
> > - struct v4l2_capability *cap)
> > +static int mtk_jpeg_enc_querycap(struct file *file, void *priv,
> > + struct v4l2_capability *cap)
> > +{
> > + struct mtk_jpeg_dev *jpeg = video_drvdata(file);
> > +
> > + strscpy(cap->driver, MTK_JPEG_NAME, sizeof(cap->driver));
> > + strscpy(cap->card, MTK_JPEG_NAME " encoder", sizeof(cap->card));
> > + snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s",
> > + dev_name(jpeg->dev));
> > +
> > + return 0;
> > +}
> > +
> > +static int mtk_jpeg_dec_querycap(struct file *file, void *priv,
> > + struct v4l2_capability *cap)
> > {
> > struct mtk_jpeg_dev *jpeg = video_drvdata(file);
> >
> > - strscpy(cap->driver, MTK_JPEG_NAME " decoder", sizeof(cap->driver));
> > + strscpy(cap->driver, MTK_JPEG_NAME, sizeof(cap->driver));
> > strscpy(cap->card, MTK_JPEG_NAME " decoder", sizeof(cap->card));
> > snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s",
> > dev_name(jpeg->dev));
> > @@ -94,6 +163,54 @@ static int mtk_jpeg_querycap(struct file *file, void *priv,
> > return 0;
> > }
> >
> > +static int vidioc_jpeg_enc_s_ctrl(struct v4l2_ctrl *ctrl)
> > +{
> > + struct mtk_jpeg_ctx *ctx = ctrl_to_ctx(ctrl);
> > +
> > + switch (ctrl->id) {
> > + case V4L2_CID_JPEG_RESTART_INTERVAL:
> > + ctx->restart_interval = ctrl->val;
> > + break;
> > + case V4L2_CID_JPEG_COMPRESSION_QUALITY:
> > + ctx->enc_quality = ctrl->val;
> > + break;
> > + case V4L2_CID_JPEG_ACTIVE_MARKER:
> > + ctx->enable_exif = ctrl->val & V4L2_JPEG_ACTIVE_MARKER_APP1 ?
> > + true : false;
> > + break;
> > + }
> > +
> > + return 0;
> > +}
> > +
> > +static const struct v4l2_ctrl_ops mtk_jpeg_enc_ctrl_ops = {
> > + .s_ctrl = vidioc_jpeg_enc_s_ctrl,
> > +};
> > +
> > +static int mtk_jpeg_enc_ctrls_setup(struct mtk_jpeg_ctx *ctx)
> > +{
> > + const struct v4l2_ctrl_ops *ops = &mtk_jpeg_enc_ctrl_ops;
> > + struct v4l2_ctrl_handler *handler = &ctx->ctrl_hdl;
> > +
> > + v4l2_ctrl_handler_init(handler, 3);
> > +
> > + v4l2_ctrl_new_std(handler, ops, V4L2_CID_JPEG_RESTART_INTERVAL, 0, 100,
> > + 1, 0);
> > + v4l2_ctrl_new_std(handler, ops, V4L2_CID_JPEG_COMPRESSION_QUALITY, 48,
> > + 100, 1, 90);
> > + v4l2_ctrl_new_std(handler, ops, V4L2_CID_JPEG_ACTIVE_MARKER, 0,
> > + V4L2_JPEG_ACTIVE_MARKER_APP1, 0, 0);
> > +
> > + if (handler->error) {
> > + v4l2_ctrl_handler_free(&ctx->ctrl_hdl);
> > + return handler->error;
> > + }
> > +
> > + v4l2_ctrl_handler_setup(&ctx->ctrl_hdl);
> > +
> > + return 0;
> > +}
> > +
> > static int mtk_jpeg_enum_fmt(struct mtk_jpeg_fmt *mtk_jpeg_formats, int n,
> > struct v4l2_fmtdesc *f, u32 type)
> > {
> > @@ -115,117 +232,105 @@ static int mtk_jpeg_enum_fmt(struct mtk_jpeg_fmt *mtk_jpeg_formats, int n,
> > return 0;
> > }
> >
> > -static int mtk_jpeg_enum_fmt_vid_cap(struct file *file, void *priv,
> > - struct v4l2_fmtdesc *f)
> > +static int mtk_jpeg_enc_enum_fmt_vid_cap(struct file *file, void *priv,
> > + struct v4l2_fmtdesc *f)
> > {
> > - return mtk_jpeg_enum_fmt(mtk_jpeg_formats, MTK_JPEG_NUM_FORMATS, f,
> > + return mtk_jpeg_enum_fmt(mtk_jpeg_enc_formats,
> > + MTK_JPEG_ENC_NUM_FORMATS, f,
> > + MTK_JPEG_FMT_FLAG_ENC_CAPTURE);
> > +}
> > +
> > +static int mtk_jpeg_dec_enum_fmt_vid_cap(struct file *file, void *priv,
> > + struct v4l2_fmtdesc *f)
> > +{
> > + return mtk_jpeg_enum_fmt(mtk_jpeg_dec_formats,
> > + MTK_JPEG_DEC_NUM_FORMATS, f,
> > MTK_JPEG_FMT_FLAG_DEC_CAPTURE);
> > }
> >
> > -static int mtk_jpeg_enum_fmt_vid_out(struct file *file, void *priv,
> > - struct v4l2_fmtdesc *f)
> > +static int mtk_jpeg_enc_enum_fmt_vid_out(struct file *file, void *priv,
> > + struct v4l2_fmtdesc *f)
> > +{
> > + return mtk_jpeg_enum_fmt(mtk_jpeg_enc_formats,
> > + MTK_JPEG_ENC_NUM_FORMATS, f,
> > + MTK_JPEG_FMT_FLAG_ENC_OUTPUT);
> > +}
> > +
> > +static int mtk_jpeg_dec_enum_fmt_vid_out(struct file *file, void *priv,
> > + struct v4l2_fmtdesc *f)
> > {
> > - return mtk_jpeg_enum_fmt(mtk_jpeg_formats, MTK_JPEG_NUM_FORMATS, f,
> > - MTK_JPEG_FMT_FLAG_DEC_OUTPUT);
> > + return mtk_jpeg_enum_fmt(mtk_jpeg_dec_formats, MTK_JPEG_DEC_NUM_FORMATS,
> > + f, MTK_JPEG_FMT_FLAG_DEC_OUTPUT);
> > }
>
> OK, so this patch is very hard to read because there are two independent changes
> taking place:
>
> 1) rename existing functions/defines/variables with a _dec prefix to prepare
> for the addition of the encoder feature.
>
> 2) add the encoder feature.
>
> Please split up this patch into two parts: one that does the rename and as much of
> the preparation to support both decoder and encoder without changing the
> functionality, and a second one that actually adds the new encoder feature.
>
> In fact, once that's done it is likely that most of this patch series can be
> merged, even if there are still things that need to be changed for the last
> patch adding the encoder support. I see nothing objectionable in patches 1-10
> and 13. So merging those together with a new rename patch wouldn't be an issue,
> I think.
>
> In any case, the diffs should be a lot cleaner and easier to review by splitting
> it up like that.
Dear Hans,
Thanks for your good advice. I have splited up this patch into two
patches in v9.
Best Regards,
Xia Jiang
>
> Regards,
>
> Hans
>
> >
> > -static struct mtk_jpeg_q_data *mtk_jpeg_get_q_data(struct mtk_jpeg_ctx *ctx,
> > - enum v4l2_buf_type type)
> > +static struct mtk_jpeg_q_data *
> > +mtk_jpeg_get_q_data(struct mtk_jpeg_ctx *ctx, enum v4l2_buf_type type)
> > {
> > if (V4L2_TYPE_IS_OUTPUT(type))
> > return &ctx->out_q;
> > return &ctx->cap_q;
> > }
> >
> > -static struct mtk_jpeg_fmt *mtk_jpeg_find_format(struct mtk_jpeg_ctx *ctx,
> > - u32 pixelformat,
> > +static struct mtk_jpeg_fmt *mtk_jpeg_find_format(u32 pixelformat,
> > unsigned int fmt_type)
> > {
> > - unsigned int k, fmt_flag;
> > -
> > - fmt_flag = (fmt_type == MTK_JPEG_FMT_TYPE_OUTPUT) ?
> > - MTK_JPEG_FMT_FLAG_DEC_OUTPUT :
> > - MTK_JPEG_FMT_FLAG_DEC_CAPTURE;
> > + unsigned int k;
> > + struct mtk_jpeg_fmt *fmt;
> >
> > - for (k = 0; k < MTK_JPEG_NUM_FORMATS; k++) {
> > - struct mtk_jpeg_fmt *fmt = &mtk_jpeg_formats[k];
> > + for (k = 0; k < MTK_JPEG_ENC_NUM_FORMATS; k++) {
> > + fmt = &mtk_jpeg_enc_formats[k];
> >
> > - if (fmt->fourcc == pixelformat && fmt->flags & fmt_flag)
> > + if (fmt->fourcc == pixelformat && fmt->flags & fmt_type)
> > return fmt;
> > }
> >
> > - return NULL;
> > -}
> > + for (k = 0; k < MTK_JPEG_DEC_NUM_FORMATS; k++) {
> > + fmt = &mtk_jpeg_dec_formats[k];
> >
> > -static void mtk_jpeg_adjust_fmt_mplane(struct mtk_jpeg_ctx *ctx,
> > - struct v4l2_format *f)
> > -{
> > - struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
> > - struct mtk_jpeg_q_data *q_data;
> > - int i;
> > -
> > - q_data = mtk_jpeg_get_q_data(ctx, f->type);
> > -
> > - pix_mp->width = q_data->w;
> > - pix_mp->height = q_data->h;
> > - pix_mp->pixelformat = q_data->fmt->fourcc;
> > - pix_mp->num_planes = q_data->fmt->colplanes;
> > -
> > - for (i = 0; i < pix_mp->num_planes; i++) {
> > - pix_mp->plane_fmt[i].bytesperline = q_data->bytesperline[i];
> > - pix_mp->plane_fmt[i].sizeimage = q_data->sizeimage[i];
> > + if (fmt->fourcc == pixelformat && fmt->flags & fmt_type)
> > + return fmt;
> > }
> > +
> > + return NULL;
> > }
> >
> > -static int mtk_jpeg_try_fmt_mplane(struct v4l2_format *f,
> > - struct mtk_jpeg_fmt *fmt,
> > - struct mtk_jpeg_ctx *ctx, int q_type)
> > +static int vidioc_try_fmt(struct v4l2_format *f, struct mtk_jpeg_fmt *fmt)
> > {
> > struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
> > int i;
> >
> > - memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved));
> > pix_mp->field = V4L2_FIELD_NONE;
> > -
> > - if (ctx->state != MTK_JPEG_INIT) {
> > - mtk_jpeg_adjust_fmt_mplane(ctx, f);
> > - return 0;
> > - }
> > -
> > pix_mp->num_planes = fmt->colplanes;
> > pix_mp->pixelformat = fmt->fourcc;
> >
> > - if (q_type == MTK_JPEG_FMT_TYPE_OUTPUT) {
> > - struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0];
> > -
> > + if (fmt->fourcc == V4L2_PIX_FMT_JPEG) {
> > pix_mp->height = clamp(pix_mp->height, MTK_JPEG_MIN_HEIGHT,
> > MTK_JPEG_MAX_HEIGHT);
> > pix_mp->width = clamp(pix_mp->width, MTK_JPEG_MIN_WIDTH,
> > MTK_JPEG_MAX_WIDTH);
> > -
> > - memset(pfmt->reserved, 0, sizeof(pfmt->reserved));
> > - pfmt->bytesperline = 0;
> > - /* Source size must be aligned to 128 */
> > - pfmt->sizeimage = round_up(pfmt->sizeimage, 128);
> > - if (pfmt->sizeimage == 0)
> > - pfmt->sizeimage = MTK_JPEG_DEFAULT_SIZEIMAGE;
> > - return 0;
> > + pix_mp->plane_fmt[0].bytesperline = 0;
> > + pix_mp->plane_fmt[0].sizeimage =
> > + round_up(pix_mp->plane_fmt[0].sizeimage, 128);
> > + if (pix_mp->plane_fmt[0].sizeimage == 0)
> > + pix_mp->plane_fmt[0].sizeimage =
> > + MTK_JPEG_DEFAULT_SIZEIMAGE;
> > + } else {
> > + pix_mp->height = clamp(round_up(pix_mp->height, fmt->v_align),
> > + MTK_JPEG_MIN_HEIGHT,
> > + MTK_JPEG_MAX_HEIGHT);
> > + pix_mp->width = clamp(round_up(pix_mp->width, fmt->h_align),
> > + MTK_JPEG_MIN_WIDTH, MTK_JPEG_MAX_WIDTH);
> > + for (i = 0; i < pix_mp->num_planes; i++) {
> > + struct v4l2_plane_pix_format *pfmt =
> > + &pix_mp->plane_fmt[i];
> > + u32 stride = pix_mp->width * fmt->h_sample[i] / 4;
> > + u32 h = pix_mp->height * fmt->v_sample[i] / 4;
> > +
> > + pfmt->bytesperline = stride;
> > + pfmt->sizeimage = stride * h;
> > + }
> > }
> >
> > - /* type is MTK_JPEG_FMT_TYPE_CAPTURE */
> > - pix_mp->height = clamp(round_up(pix_mp->height, fmt->v_align),
> > - MTK_JPEG_MIN_HEIGHT, MTK_JPEG_MAX_HEIGHT);
> > - pix_mp->width = clamp(round_up(pix_mp->width, fmt->h_align),
> > - MTK_JPEG_MIN_WIDTH, MTK_JPEG_MAX_WIDTH);
> > -
> > - for (i = 0; i < fmt->colplanes; i++) {
> > - struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[i];
> > - u32 stride = pix_mp->width * fmt->h_sample[i] / 4;
> > - u32 h = pix_mp->height * fmt->v_sample[i] / 4;
> > -
> > - pfmt->bytesperline = stride;
> > - pfmt->sizeimage = stride * h;
> > - }
> > return 0;
> > }
> >
> > @@ -280,14 +385,35 @@ static int mtk_jpeg_g_fmt_vid_mplane(struct file *file, void *priv,
> > return 0;
> > }
> >
> > -static int mtk_jpeg_try_fmt_vid_cap_mplane(struct file *file, void *priv,
> > - struct v4l2_format *f)
> > +static int mtk_jpeg_enc_try_fmt_vid_cap_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > +{
> > + struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > + struct mtk_jpeg_fmt *fmt;
> > +
> > + fmt = mtk_jpeg_find_format(f->fmt.pix_mp.pixelformat,
> > + MTK_JPEG_FMT_FLAG_ENC_CAPTURE);
> > + if (!fmt)
> > + fmt = ctx->cap_q.fmt;
> > +
> > + v4l2_dbg(2, debug, &ctx->jpeg->v4l2_dev, "(%d) try_fmt:%c%c%c%c\n",
> > + f->type,
> > + (fmt->fourcc & 0xff),
> > + (fmt->fourcc >> 8 & 0xff),
> > + (fmt->fourcc >> 16 & 0xff),
> > + (fmt->fourcc >> 24 & 0xff));
> > +
> > + return vidioc_try_fmt(f, fmt);
> > +}
> > +
> > +static int mtk_jpeg_dec_try_fmt_vid_cap_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > {
> > struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > struct mtk_jpeg_fmt *fmt;
> >
> > - fmt = mtk_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat,
> > - MTK_JPEG_FMT_TYPE_CAPTURE);
> > + fmt = mtk_jpeg_find_format(f->fmt.pix_mp.pixelformat,
> > + MTK_JPEG_FMT_FLAG_DEC_CAPTURE);
> > if (!fmt)
> > fmt = ctx->cap_q.fmt;
> >
> > @@ -298,17 +424,43 @@ static int mtk_jpeg_try_fmt_vid_cap_mplane(struct file *file, void *priv,
> > (fmt->fourcc >> 16 & 0xff),
> > (fmt->fourcc >> 24 & 0xff));
> >
> > - return mtk_jpeg_try_fmt_mplane(f, fmt, ctx, MTK_JPEG_FMT_TYPE_CAPTURE);
> > + if (ctx->state != MTK_JPEG_INIT) {
> > + mtk_jpeg_g_fmt_vid_mplane(file, priv, f);
> > + return 0;
> > + }
> > +
> > + return vidioc_try_fmt(f, fmt);
> > +}
> > +
> > +static int mtk_jpeg_enc_try_fmt_vid_out_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > +{
> > + struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > + struct mtk_jpeg_fmt *fmt;
> > +
> > + fmt = mtk_jpeg_find_format(f->fmt.pix_mp.pixelformat,
> > + MTK_JPEG_FMT_FLAG_ENC_OUTPUT);
> > + if (!fmt)
> > + fmt = ctx->out_q.fmt;
> > +
> > + v4l2_dbg(2, debug, &ctx->jpeg->v4l2_dev, "(%d) try_fmt:%c%c%c%c\n",
> > + f->type,
> > + (fmt->fourcc & 0xff),
> > + (fmt->fourcc >> 8 & 0xff),
> > + (fmt->fourcc >> 16 & 0xff),
> > + (fmt->fourcc >> 24 & 0xff));
> > +
> > + return vidioc_try_fmt(f, fmt);
> > }
> >
> > -static int mtk_jpeg_try_fmt_vid_out_mplane(struct file *file, void *priv,
> > - struct v4l2_format *f)
> > +static int mtk_jpeg_dec_try_fmt_vid_out_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > {
> > struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > struct mtk_jpeg_fmt *fmt;
> >
> > - fmt = mtk_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat,
> > - MTK_JPEG_FMT_TYPE_OUTPUT);
> > + fmt = mtk_jpeg_find_format(f->fmt.pix_mp.pixelformat,
> > + MTK_JPEG_FMT_FLAG_DEC_OUTPUT);
> > if (!fmt)
> > fmt = ctx->out_q.fmt;
> >
> > @@ -319,17 +471,21 @@ static int mtk_jpeg_try_fmt_vid_out_mplane(struct file *file, void *priv,
> > (fmt->fourcc >> 16 & 0xff),
> > (fmt->fourcc >> 24 & 0xff));
> >
> > - return mtk_jpeg_try_fmt_mplane(f, fmt, ctx, MTK_JPEG_FMT_TYPE_OUTPUT);
> > + if (ctx->state != MTK_JPEG_INIT) {
> > + mtk_jpeg_g_fmt_vid_mplane(file, priv, f);
> > + return 0;
> > + }
> > +
> > + return vidioc_try_fmt(f, fmt);
> > }
> >
> > static int mtk_jpeg_s_fmt_mplane(struct mtk_jpeg_ctx *ctx,
> > - struct v4l2_format *f)
> > + struct v4l2_format *f, unsigned int fmt_type)
> > {
> > struct vb2_queue *vq;
> > struct mtk_jpeg_q_data *q_data = NULL;
> > struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
> > struct mtk_jpeg_dev *jpeg = ctx->jpeg;
> > - unsigned int f_type;
> > int i;
> >
> > vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type);
> > @@ -343,10 +499,7 @@ static int mtk_jpeg_s_fmt_mplane(struct mtk_jpeg_ctx *ctx,
> > return -EBUSY;
> > }
> >
> > - f_type = V4L2_TYPE_IS_OUTPUT(f->type) ?
> > - MTK_JPEG_FMT_TYPE_OUTPUT : MTK_JPEG_FMT_TYPE_CAPTURE;
> > -
> > - q_data->fmt = mtk_jpeg_find_format(ctx, pix_mp->pixelformat, f_type);
> > + q_data->fmt = mtk_jpeg_find_format(pix_mp->pixelformat, fmt_type);
> > q_data->w = pix_mp->width;
> > q_data->h = pix_mp->height;
> > ctx->colorspace = pix_mp->colorspace;
> > @@ -374,28 +527,56 @@ static int mtk_jpeg_s_fmt_mplane(struct mtk_jpeg_ctx *ctx,
> > return 0;
> > }
> >
> > -static int mtk_jpeg_s_fmt_vid_out_mplane(struct file *file, void *priv,
> > - struct v4l2_format *f)
> > +static int mtk_jpeg_enc_s_fmt_vid_out_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > +{
> > + int ret;
> > +
> > + ret = mtk_jpeg_enc_try_fmt_vid_out_mplane(file, priv, f);
> > + if (ret)
> > + return ret;
> > +
> > + return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f,
> > + MTK_JPEG_FMT_FLAG_ENC_OUTPUT);
> > +}
> > +
> > +static int mtk_jpeg_dec_s_fmt_vid_out_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > {
> > int ret;
> >
> > - ret = mtk_jpeg_try_fmt_vid_out_mplane(file, priv, f);
> > + ret = mtk_jpeg_dec_try_fmt_vid_out_mplane(file, priv, f);
> > if (ret)
> > return ret;
> >
> > - return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f);
> > + return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f,
> > + MTK_JPEG_FMT_FLAG_DEC_OUTPUT);
> > }
> >
> > -static int mtk_jpeg_s_fmt_vid_cap_mplane(struct file *file, void *priv,
> > - struct v4l2_format *f)
> > +static int mtk_jpeg_enc_s_fmt_vid_cap_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > {
> > int ret;
> >
> > - ret = mtk_jpeg_try_fmt_vid_cap_mplane(file, priv, f);
> > + ret = mtk_jpeg_enc_try_fmt_vid_cap_mplane(file, priv, f);
> > if (ret)
> > return ret;
> >
> > - return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f);
> > + return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f,
> > + MTK_JPEG_FMT_FLAG_ENC_CAPTURE);
> > +}
> > +
> > +static int mtk_jpeg_dec_s_fmt_vid_cap_mplane(struct file *file, void *priv,
> > + struct v4l2_format *f)
> > +{
> > + int ret;
> > +
> > + ret = mtk_jpeg_dec_try_fmt_vid_cap_mplane(file, priv, f);
> > + if (ret)
> > + return ret;
> > +
> > + return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f,
> > + MTK_JPEG_FMT_FLAG_DEC_CAPTURE);
> > }
> >
> > static void mtk_jpeg_queue_src_chg_event(struct mtk_jpeg_ctx *ctx)
> > @@ -420,8 +601,31 @@ static int mtk_jpeg_subscribe_event(struct v4l2_fh *fh,
> > return v4l2_ctrl_subscribe_event(fh, sub);
> > }
> >
> > -static int mtk_jpeg_g_selection(struct file *file, void *priv,
> > - struct v4l2_selection *s)
> > +static int mtk_jpeg_enc_g_selection(struct file *file, void *priv,
> > + struct v4l2_selection *s)
> > +{
> > + struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > +
> > + if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
> > + return -EINVAL;
> > +
> > + switch (s->target) {
> > + case V4L2_SEL_TGT_CROP:
> > + case V4L2_SEL_TGT_CROP_BOUNDS:
> > + case V4L2_SEL_TGT_CROP_DEFAULT:
> > + s->r.width = ctx->out_q.w;
> > + s->r.height = ctx->out_q.h;
> > + s->r.left = 0;
> > + s->r.top = 0;
> > + break;
> > + default:
> > + return -EINVAL;
> > + }
> > + return 0;
> > +}
> > +
> > +static int mtk_jpeg_dec_g_selection(struct file *file, void *priv,
> > + struct v4l2_selection *s)
> > {
> > struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> >
> > @@ -446,11 +650,34 @@ static int mtk_jpeg_g_selection(struct file *file, void *priv,
> > default:
> > return -EINVAL;
> > }
> > +
> > return 0;
> > }
> >
> > -static int mtk_jpeg_s_selection(struct file *file, void *priv,
> > - struct v4l2_selection *s)
> > +static int mtk_jpeg_enc_s_selection(struct file *file, void *priv,
> > + struct v4l2_selection *s)
> > +{
> > + struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> > +
> > + if (s->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
> > + return -EINVAL;
> > +
> > + switch (s->target) {
> > + case V4L2_SEL_TGT_CROP:
> > + s->r.left = 0;
> > + s->r.top = 0;
> > + ctx->out_q.w = min(s->r.width, ctx->out_q.w);
> > + ctx->out_q.h = min(s->r.height, ctx->out_q.h);
> > + break;
> > + default:
> > + return -EINVAL;
> > + }
> > +
> > + return 0;
> > +}
> > +
> > +static int mtk_jpeg_dec_s_selection(struct file *file, void *priv,
> > + struct v4l2_selection *s)
> > {
> > struct mtk_jpeg_ctx *ctx = mtk_jpeg_fh_to_ctx(priv);
> >
> > @@ -467,6 +694,7 @@ static int mtk_jpeg_s_selection(struct file *file, void *priv,
> > default:
> > return -EINVAL;
> > }
> > +
> > return 0;
> > }
> >
> > @@ -495,20 +723,47 @@ static int mtk_jpeg_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
> > return v4l2_m2m_qbuf(file, fh->m2m_ctx, buf);
> > }
> >
> > -static const struct v4l2_ioctl_ops mtk_jpeg_ioctl_ops = {
> > - .vidioc_querycap = mtk_jpeg_querycap,
> > - .vidioc_enum_fmt_vid_cap = mtk_jpeg_enum_fmt_vid_cap,
> > - .vidioc_enum_fmt_vid_out = mtk_jpeg_enum_fmt_vid_out,
> > - .vidioc_try_fmt_vid_cap_mplane = mtk_jpeg_try_fmt_vid_cap_mplane,
> > - .vidioc_try_fmt_vid_out_mplane = mtk_jpeg_try_fmt_vid_out_mplane,
> > +static const struct v4l2_ioctl_ops mtk_jpeg_enc_ioctl_ops = {
> > + .vidioc_querycap = mtk_jpeg_enc_querycap,
> > + .vidioc_enum_fmt_vid_cap = mtk_jpeg_enc_enum_fmt_vid_cap,
> > + .vidioc_enum_fmt_vid_out = mtk_jpeg_enc_enum_fmt_vid_out,
> > + .vidioc_try_fmt_vid_cap_mplane = mtk_jpeg_enc_try_fmt_vid_cap_mplane,
> > + .vidioc_try_fmt_vid_out_mplane = mtk_jpeg_enc_try_fmt_vid_out_mplane,
> > + .vidioc_g_fmt_vid_cap_mplane = mtk_jpeg_g_fmt_vid_mplane,
> > + .vidioc_g_fmt_vid_out_mplane = mtk_jpeg_g_fmt_vid_mplane,
> > + .vidioc_s_fmt_vid_cap_mplane = mtk_jpeg_enc_s_fmt_vid_cap_mplane,
> > + .vidioc_s_fmt_vid_out_mplane = mtk_jpeg_enc_s_fmt_vid_out_mplane,
> > + .vidioc_qbuf = mtk_jpeg_qbuf,
> > + .vidioc_subscribe_event = mtk_jpeg_subscribe_event,
> > + .vidioc_g_selection = mtk_jpeg_enc_g_selection,
> > + .vidioc_s_selection = mtk_jpeg_enc_s_selection,
> > +
> > + .vidioc_create_bufs = v4l2_m2m_ioctl_create_bufs,
> > + .vidioc_prepare_buf = v4l2_m2m_ioctl_prepare_buf,
> > + .vidioc_reqbufs = v4l2_m2m_ioctl_reqbufs,
> > + .vidioc_querybuf = v4l2_m2m_ioctl_querybuf,
> > + .vidioc_dqbuf = v4l2_m2m_ioctl_dqbuf,
> > + .vidioc_expbuf = v4l2_m2m_ioctl_expbuf,
> > + .vidioc_streamon = v4l2_m2m_ioctl_streamon,
> > + .vidioc_streamoff = v4l2_m2m_ioctl_streamoff,
> > +
> > + .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
> > +};
> > +
> > +static const struct v4l2_ioctl_ops mtk_jpeg_dec_ioctl_ops = {
> > + .vidioc_querycap = mtk_jpeg_dec_querycap,
> > + .vidioc_enum_fmt_vid_cap = mtk_jpeg_dec_enum_fmt_vid_cap,
> > + .vidioc_enum_fmt_vid_out = mtk_jpeg_dec_enum_fmt_vid_out,
> > + .vidioc_try_fmt_vid_cap_mplane = mtk_jpeg_dec_try_fmt_vid_cap_mplane,
> > + .vidioc_try_fmt_vid_out_mplane = mtk_jpeg_dec_try_fmt_vid_out_mplane,
> > .vidioc_g_fmt_vid_cap_mplane = mtk_jpeg_g_fmt_vid_mplane,
> > .vidioc_g_fmt_vid_out_mplane = mtk_jpeg_g_fmt_vid_mplane,
> > - .vidioc_s_fmt_vid_cap_mplane = mtk_jpeg_s_fmt_vid_cap_mplane,
> > - .vidioc_s_fmt_vid_out_mplane = mtk_jpeg_s_fmt_vid_out_mplane,
> > + .vidioc_s_fmt_vid_cap_mplane = mtk_jpeg_dec_s_fmt_vid_cap_mplane,
> > + .vidioc_s_fmt_vid_out_mplane = mtk_jpeg_dec_s_fmt_vid_out_mplane,
> > .vidioc_qbuf = mtk_jpeg_qbuf,
> > .vidioc_subscribe_event = mtk_jpeg_subscribe_event,
> > - .vidioc_g_selection = mtk_jpeg_g_selection,
> > - .vidioc_s_selection = mtk_jpeg_s_selection,
> > + .vidioc_g_selection = mtk_jpeg_dec_g_selection,
> > + .vidioc_s_selection = mtk_jpeg_dec_s_selection,
> >
> > .vidioc_create_bufs = v4l2_m2m_ioctl_create_bufs,
> > .vidioc_prepare_buf = v4l2_m2m_ioctl_prepare_buf,
> > @@ -586,8 +841,9 @@ static bool mtk_jpeg_check_resolution_change(struct mtk_jpeg_ctx *ctx,
> > }
> >
> > q_data = &ctx->cap_q;
> > - if (q_data->fmt != mtk_jpeg_find_format(ctx, param->dst_fourcc,
> > - MTK_JPEG_FMT_TYPE_CAPTURE)) {
> > + if (q_data->fmt !=
> > + mtk_jpeg_find_format(param->dst_fourcc,
> > + MTK_JPEG_FMT_FLAG_DEC_CAPTURE)) {
> > v4l2_dbg(1, debug, &jpeg->v4l2_dev, "format change\n");
> > return true;
> > }
> > @@ -608,9 +864,8 @@ static void mtk_jpeg_set_queue_data(struct mtk_jpeg_ctx *ctx,
> > q_data = &ctx->cap_q;
> > q_data->w = param->dec_w;
> > q_data->h = param->dec_h;
> > - q_data->fmt = mtk_jpeg_find_format(ctx,
> > - param->dst_fourcc,
> > - MTK_JPEG_FMT_TYPE_CAPTURE);
> > + q_data->fmt = mtk_jpeg_find_format(param->dst_fourcc,
> > + MTK_JPEG_FMT_FLAG_DEC_CAPTURE);
> >
> > for (i = 0; i < q_data->fmt->colplanes; i++) {
> > q_data->bytesperline[i] = param->mem_stride[i];
> > @@ -627,7 +882,18 @@ static void mtk_jpeg_set_queue_data(struct mtk_jpeg_ctx *ctx,
> > param->dec_w, param->dec_h);
> > }
> >
> > -static void mtk_jpeg_buf_queue(struct vb2_buffer *vb)
> > +static void mtk_jpeg_enc_buf_queue(struct vb2_buffer *vb)
> > +{
> > + struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
> > + struct mtk_jpeg_dev *jpeg = ctx->jpeg;
> > +
> > + v4l2_dbg(2, debug, &jpeg->v4l2_dev, "(%d) buf_q id=%d, vb=%p\n",
> > + vb->vb2_queue->type, vb->index, vb);
> > +
> > + v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb));
> > +}
> > +
> > +static void mtk_jpeg_dec_buf_queue(struct vb2_buffer *vb)
> > {
> > struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
> > struct mtk_jpeg_dec_param *param;
> > @@ -679,7 +945,16 @@ static struct vb2_v4l2_buffer *mtk_jpeg_buf_remove(struct mtk_jpeg_ctx *ctx,
> > return v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
> > }
> >
> > -static void mtk_jpeg_stop_streaming(struct vb2_queue *q)
> > +static void mtk_jpeg_enc_stop_streaming(struct vb2_queue *q)
> > +{
> > + struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(q);
> > + struct vb2_v4l2_buffer *vb;
> > +
> > + while ((vb = mtk_jpeg_buf_remove(ctx, q->type)))
> > + v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR);
> > +}
> > +
> > +static void mtk_jpeg_dec_stop_streaming(struct vb2_queue *q)
> > {
> > struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(q);
> > struct vb2_v4l2_buffer *vb;
> > @@ -705,13 +980,22 @@ static void mtk_jpeg_stop_streaming(struct vb2_queue *q)
> > v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR);
> > }
> >
> > -static const struct vb2_ops mtk_jpeg_qops = {
> > +static const struct vb2_ops mtk_jpeg_dec_qops = {
> > .queue_setup = mtk_jpeg_queue_setup,
> > .buf_prepare = mtk_jpeg_buf_prepare,
> > - .buf_queue = mtk_jpeg_buf_queue,
> > + .buf_queue = mtk_jpeg_dec_buf_queue,
> > .wait_prepare = vb2_ops_wait_prepare,
> > .wait_finish = vb2_ops_wait_finish,
> > - .stop_streaming = mtk_jpeg_stop_streaming,
> > + .stop_streaming = mtk_jpeg_dec_stop_streaming,
> > +};
> > +
> > +static const struct vb2_ops mtk_jpeg_enc_qops = {
> > + .queue_setup = mtk_jpeg_queue_setup,
> > + .buf_prepare = mtk_jpeg_buf_prepare,
> > + .buf_queue = mtk_jpeg_enc_buf_queue,
> > + .wait_prepare = vb2_ops_wait_prepare,
> > + .wait_finish = vb2_ops_wait_finish,
> > + .stop_streaming = mtk_jpeg_enc_stop_streaming,
> > };
> >
> > static void mtk_jpeg_set_dec_src(struct mtk_jpeg_ctx *ctx,
> > @@ -751,7 +1035,86 @@ static int mtk_jpeg_set_dec_dst(struct mtk_jpeg_ctx *ctx,
> > return 0;
> > }
> >
> > -static void mtk_jpeg_device_run(void *priv)
> > +static void mtk_jpeg_set_enc_dst(struct mtk_jpeg_ctx *ctx, void __iomem *base,
> > + struct vb2_buffer *dst_buf,
> > + struct mtk_jpeg_enc_bs *bs)
> > +{
> > + bs->dma_addr = vb2_dma_contig_plane_dma_addr(dst_buf, 0);
> > + bs->dma_addr_offset = ctx->enable_exif ? MTK_JPEG_DEFAULT_EXIF_SIZE : 0;
> > + bs->dma_addr_offsetmask = bs->dma_addr & JPEG_ENC_DST_ADDR_OFFSET_MASK;
> > + bs->size = vb2_plane_size(dst_buf, 0);
> > +
> > + mtk_jpeg_enc_set_dst_addr(base, bs->dma_addr, bs->size,
> > + bs->dma_addr_offset,
> > + bs->dma_addr_offsetmask);
> > +}
> > +
> > +static void mtk_jpeg_set_enc_src(struct mtk_jpeg_ctx *ctx, void __iomem *base,
> > + struct vb2_buffer *src_buf)
> > +{
> > + int i;
> > + dma_addr_t dma_addr;
> > +
> > + mtk_jpeg_enc_set_img_size(base, ctx->out_q.w, ctx->out_q.h);
> > + mtk_jpeg_enc_set_blk_num(base, ctx->out_q.fmt->fourcc, ctx->out_q.w,
> > + ctx->out_q.h);
> > + mtk_jpeg_enc_set_stride(base, ctx->out_q.fmt->fourcc, ctx->out_q.w,
> > + ctx->out_q.h, ctx->out_q.bytesperline[0]);
> > +
> > + for (i = 0; i < src_buf->num_planes; i++) {
> > + dma_addr = vb2_dma_contig_plane_dma_addr(src_buf, i) +
> > + src_buf->planes[i].data_offset;
> > + mtk_jpeg_enc_set_src_addr(base, dma_addr, i);
> > + }
> > +}
> > +
> > +static void mtk_jpeg_enc_device_run(void *priv)
> > +{
> > + struct mtk_jpeg_ctx *ctx = priv;
> > + struct mtk_jpeg_dev *jpeg = ctx->jpeg;
> > + struct vb2_v4l2_buffer *src_buf, *dst_buf;
> > + enum vb2_buffer_state buf_state = VB2_BUF_STATE_ERROR;
> > + unsigned long flags;
> > + struct mtk_jpeg_src_buf *jpeg_src_buf;
> > + struct mtk_jpeg_enc_bs enc_bs;
> > + int i, ret;
> > +
> > + src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
> > + dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
> > + jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(&src_buf->vb2_buf);
> > +
> > + if (jpeg_src_buf->flags & MTK_JPEG_BUF_FLAGS_LAST_FRAME) {
> > + for (i = 0; i < dst_buf->vb2_buf.num_planes; i++)
> > + vb2_set_plane_payload(&dst_buf->vb2_buf, i, 0);
> > + buf_state = VB2_BUF_STATE_DONE;
> > + goto enc_end;
> > + }
> > +
> > + ret = pm_runtime_get_sync(jpeg->dev);
> > + if (ret < 0)
> > + goto enc_end;
> > +
> > + spin_lock_irqsave(&jpeg->hw_lock, flags);
> > + mtk_jpeg_enc_reset(jpeg->reg_base);
> > +
> > + mtk_jpeg_set_enc_dst(ctx, jpeg->reg_base, &dst_buf->vb2_buf, &enc_bs);
> > + mtk_jpeg_set_enc_src(ctx, jpeg->reg_base, &src_buf->vb2_buf);
> > + mtk_jpeg_enc_set_config(jpeg->reg_base, ctx->out_q.fmt->hw_format,
> > + ctx->enable_exif, ctx->enc_quality,
> > + ctx->restart_interval);
> > + mtk_jpeg_enc_start(jpeg->reg_base);
> > + spin_unlock_irqrestore(&jpeg->hw_lock, flags);
> > + return;
> > +
> > +enc_end:
> > + v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
> > + v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
> > + v4l2_m2m_buf_done(src_buf, buf_state);
> > + v4l2_m2m_buf_done(dst_buf, buf_state);
> > + v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx);
> > +}
> > +
> > +static void mtk_jpeg_dec_device_run(void *priv)
> > {
> > struct mtk_jpeg_ctx *ctx = priv;
> > struct mtk_jpeg_dev *jpeg = ctx->jpeg;
> > @@ -786,15 +1149,16 @@ static void mtk_jpeg_device_run(void *priv)
> > goto dec_end;
> >
> > mtk_jpeg_set_dec_src(ctx, &src_buf->vb2_buf, &bs);
> > - if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, &dst_buf->vb2_buf, &fb))
> > + if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param,
> > + &dst_buf->vb2_buf, &fb))
> > goto dec_end;
> >
> > spin_lock_irqsave(&jpeg->hw_lock, flags);
> > - mtk_jpeg_dec_reset(jpeg->dec_reg_base);
> > - mtk_jpeg_dec_set_config(jpeg->dec_reg_base,
> > + mtk_jpeg_dec_reset(jpeg->reg_base);
> > + mtk_jpeg_dec_set_config(jpeg->reg_base,
> > &jpeg_src_buf->dec_param, &bs, &fb);
> >
> > - mtk_jpeg_dec_start(jpeg->dec_reg_base);
> > + mtk_jpeg_dec_start(jpeg->reg_base);
> > spin_unlock_irqrestore(&jpeg->hw_lock, flags);
> > return;
> >
> > @@ -806,20 +1170,30 @@ static void mtk_jpeg_device_run(void *priv)
> > v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx);
> > }
> >
> > -static int mtk_jpeg_job_ready(void *priv)
> > +static int mtk_jpeg_enc_job_ready(void *priv)
> > +{
> > + return 1;
> > +}
> > +
> > +static int mtk_jpeg_dec_job_ready(void *priv)
> > {
> > struct mtk_jpeg_ctx *ctx = priv;
> >
> > return (ctx->state == MTK_JPEG_RUNNING) ? 1 : 0;
> > }
> >
> > -static const struct v4l2_m2m_ops mtk_jpeg_m2m_ops = {
> > - .device_run = mtk_jpeg_device_run,
> > - .job_ready = mtk_jpeg_job_ready,
> > +static const struct v4l2_m2m_ops mtk_jpeg_enc_m2m_ops = {
> > + .device_run = mtk_jpeg_enc_device_run,
> > + .job_ready = mtk_jpeg_enc_job_ready,
> > };
> >
> > -static int mtk_jpeg_queue_init(void *priv, struct vb2_queue *src_vq,
> > - struct vb2_queue *dst_vq)
> > +static const struct v4l2_m2m_ops mtk_jpeg_dec_m2m_ops = {
> > + .device_run = mtk_jpeg_dec_device_run,
> > + .job_ready = mtk_jpeg_dec_job_ready,
> > +};
> > +
> > +static int mtk_jpeg_dec_queue_init(void *priv, struct vb2_queue *src_vq,
> > + struct vb2_queue *dst_vq)
> > {
> > struct mtk_jpeg_ctx *ctx = priv;
> > int ret;
> > @@ -828,7 +1202,7 @@ static int mtk_jpeg_queue_init(void *priv, struct vb2_queue *src_vq,
> > src_vq->io_modes = VB2_DMABUF | VB2_MMAP;
> > src_vq->drv_priv = ctx;
> > src_vq->buf_struct_size = sizeof(struct mtk_jpeg_src_buf);
> > - src_vq->ops = &mtk_jpeg_qops;
> > + src_vq->ops = &mtk_jpeg_dec_qops;
> > src_vq->mem_ops = &vb2_dma_contig_memops;
> > src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
> > src_vq->lock = &ctx->jpeg->lock;
> > @@ -841,7 +1215,7 @@ static int mtk_jpeg_queue_init(void *priv, struct vb2_queue *src_vq,
> > dst_vq->io_modes = VB2_DMABUF | VB2_MMAP;
> > dst_vq->drv_priv = ctx;
> > dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
> > - dst_vq->ops = &mtk_jpeg_qops;
> > + dst_vq->ops = &mtk_jpeg_dec_qops;
> > dst_vq->mem_ops = &vb2_dma_contig_memops;
> > dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
> > dst_vq->lock = &ctx->jpeg->lock;
> > @@ -851,24 +1225,112 @@ static int mtk_jpeg_queue_init(void *priv, struct vb2_queue *src_vq,
> > return ret;
> > }
> >
> > -static void mtk_jpeg_clk_on(struct mtk_jpeg_dev *jpeg)
> > +static int mtk_jpeg_enc_queue_init(void *priv, struct vb2_queue *src_vq,
> > + struct vb2_queue *dst_vq)
> > {
> > + struct mtk_jpeg_ctx *ctx = priv;
> > int ret;
> >
> > + src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
> > + src_vq->io_modes = VB2_DMABUF | VB2_MMAP;
> > + src_vq->drv_priv = ctx;
> > + src_vq->buf_struct_size = sizeof(struct mtk_jpeg_src_buf);
> > + src_vq->ops = &mtk_jpeg_enc_qops;
> > + src_vq->mem_ops = &vb2_dma_contig_memops;
> > + src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
> > + src_vq->lock = &ctx->jpeg->lock;
> > + src_vq->dev = ctx->jpeg->dev;
> > + ret = vb2_queue_init(src_vq);
> > + if (ret)
> > + return ret;
> > +
> > + dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
> > + dst_vq->io_modes = VB2_DMABUF | VB2_MMAP;
> > + dst_vq->drv_priv = ctx;
> > + dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
> > + dst_vq->ops = &mtk_jpeg_enc_qops;
> > + dst_vq->mem_ops = &vb2_dma_contig_memops;
> > + dst_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
> > + dst_vq->lock = &ctx->jpeg->lock;
> > + dst_vq->dev = ctx->jpeg->dev;
> > + ret = vb2_queue_init(dst_vq);
> > +
> > + return ret;
> > +}
> > +
> > +static void mtk_jpeg_clk_on(struct mtk_jpeg_dev *jpeg)
> > +{
> > + int ret, i;
> > +
> > ret = mtk_smi_larb_get(jpeg->larb);
> > if (ret)
> > dev_err(jpeg->dev, "mtk_smi_larb_get larbvdec fail %d\n", ret);
> > - clk_prepare_enable(jpeg->clk_jdec_smi);
> > - clk_prepare_enable(jpeg->clk_jdec);
> > +
> > + for (i = 0; i < jpeg->variant->num_clocks; i++) {
> > + ret = clk_prepare_enable(jpeg->clocks[i]);
> > + if (ret) {
> > + while (--i >= 0)
> > + clk_disable_unprepare(jpeg->clocks[i]);
> > + }
> > + }
> > }
> >
> > static void mtk_jpeg_clk_off(struct mtk_jpeg_dev *jpeg)
> > {
> > - clk_disable_unprepare(jpeg->clk_jdec);
> > - clk_disable_unprepare(jpeg->clk_jdec_smi);
> > + int i;
> > +
> > + for (i = jpeg->variant->num_clocks - 1; i >= 0; i--)
> > + clk_disable_unprepare(jpeg->clocks[i]);
> > mtk_smi_larb_put(jpeg->larb);
> > }
> >
> > +static irqreturn_t mtk_jpeg_enc_irq(int irq, void *priv)
> > +{
> > + struct mtk_jpeg_dev *jpeg = priv;
> > + struct mtk_jpeg_ctx *ctx;
> > + struct vb2_v4l2_buffer *src_buf, *dst_buf;
> > + struct mtk_jpeg_src_buf *jpeg_src_buf;
> > + enum vb2_buffer_state buf_state = VB2_BUF_STATE_ERROR;
> > + u32 enc_irq_ret;
> > + u32 enc_ret, result_size;
> > +
> > + spin_lock(&jpeg->hw_lock);
> > +
> > + ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev);
> > + if (!ctx) {
> > + v4l2_err(&jpeg->v4l2_dev, "Context is NULL\n");
> > + return IRQ_HANDLED;
> > + }
> > +
> > + src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
> > + dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
> > + jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(&src_buf->vb2_buf);
> > +
> > + enc_ret = mtk_jpeg_enc_get_and_clear_int_status(jpeg->reg_base);
> > + enc_irq_ret = mtk_jpeg_enc_enum_result(jpeg->reg_base, enc_ret);
> > +
> > + if (enc_irq_ret >= MTK_JPEG_ENC_RESULT_STALL)
> > + mtk_jpeg_enc_reset(jpeg->reg_base);
> > +
> > + if (enc_irq_ret != MTK_JPEG_ENC_RESULT_DONE) {
> > + dev_err(jpeg->dev, "encode failed\n");
> > + goto enc_end;
> > + }
> > +
> > + result_size = mtk_jpeg_enc_get_file_size(jpeg->reg_base);
> > + vb2_set_plane_payload(&dst_buf->vb2_buf, 0, result_size);
> > +
> > + buf_state = VB2_BUF_STATE_DONE;
> > +
> > +enc_end:
> > + v4l2_m2m_buf_done(src_buf, buf_state);
> > + v4l2_m2m_buf_done(dst_buf, buf_state);
> > + v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx);
> > + spin_unlock(&jpeg->hw_lock);
> > + pm_runtime_put_sync(ctx->jpeg->dev);
> > + return IRQ_HANDLED;
> > +}
> > +
> > static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
> > {
> > struct mtk_jpeg_dev *jpeg = priv;
> > @@ -876,13 +1338,13 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
> > struct vb2_v4l2_buffer *src_buf, *dst_buf;
> > struct mtk_jpeg_src_buf *jpeg_src_buf;
> > enum vb2_buffer_state buf_state = VB2_BUF_STATE_ERROR;
> > - u32 dec_irq_ret;
> > + u32 dec_irq_ret;
> > u32 dec_ret;
> > int i;
> >
> > spin_lock(&jpeg->hw_lock);
> >
> > - dec_ret = mtk_jpeg_dec_get_int_status(jpeg->dec_reg_base);
> > + dec_ret = mtk_jpeg_dec_get_int_status(jpeg->reg_base);
> > dec_irq_ret = mtk_jpeg_dec_enum_result(dec_ret);
> > ctx = v4l2_m2m_get_curr_priv(jpeg->m2m_dev);
> > if (!ctx) {
> > @@ -895,7 +1357,7 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
> > jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(&src_buf->vb2_buf);
> >
> > if (dec_irq_ret >= MTK_JPEG_DEC_RESULT_UNDERFLOW)
> > - mtk_jpeg_dec_reset(jpeg->dec_reg_base);
> > + mtk_jpeg_dec_reset(jpeg->reg_base);
> >
> > if (dec_irq_ret != MTK_JPEG_DEC_RESULT_EOF_DONE) {
> > dev_err(jpeg->dev, "decode failed\n");
> > @@ -917,39 +1379,131 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
> > return IRQ_HANDLED;
> > }
> >
> > -static void mtk_jpeg_set_default_params(struct mtk_jpeg_ctx *ctx)
> > +static void mtk_jpeg_set_enc_default_params(struct mtk_jpeg_ctx *ctx)
> > {
> > struct mtk_jpeg_q_data *q = &ctx->out_q;
> > - int i;
> > + struct v4l2_pix_format_mplane *pix_mp;
> > +
> > + pix_mp = kmalloc(sizeof(*pix_mp), GFP_KERNEL);
> >
> > + ctx->fh.ctrl_handler = &ctx->ctrl_hdl;
> > ctx->colorspace = V4L2_COLORSPACE_JPEG,
> > ctx->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
> > ctx->quantization = V4L2_QUANTIZATION_DEFAULT;
> > ctx->xfer_func = V4L2_XFER_FUNC_DEFAULT;
> > -
> > - q->fmt = mtk_jpeg_find_format(ctx, V4L2_PIX_FMT_JPEG,
> > - MTK_JPEG_FMT_TYPE_OUTPUT);
> > - q->w = MTK_JPEG_MIN_WIDTH;
> > - q->h = MTK_JPEG_MIN_HEIGHT;
> > - q->bytesperline[0] = 0;
> > - q->sizeimage[0] = MTK_JPEG_DEFAULT_SIZEIMAGE;
> > + pix_mp->width = MTK_JPEG_MIN_WIDTH;
> > + pix_mp->height = MTK_JPEG_MIN_HEIGHT;
> > +
> > + q->fmt = mtk_jpeg_find_format(V4L2_PIX_FMT_YUYV,
> > + MTK_JPEG_FMT_FLAG_ENC_OUTPUT);
> > + vidioc_try_fmt(container_of(pix_mp, struct v4l2_format,
> > + fmt.pix_mp), q->fmt);
> > + q->w = pix_mp->width;
> > + q->h = pix_mp->height;
> > + q->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage;
> > + q->bytesperline[0] = pix_mp->plane_fmt[0].bytesperline;
> >
> > q = &ctx->cap_q;
> > - q->fmt = mtk_jpeg_find_format(ctx, V4L2_PIX_FMT_YUV420M,
> > - MTK_JPEG_FMT_TYPE_CAPTURE);
> > - q->w = MTK_JPEG_MIN_WIDTH;
> > - q->h = MTK_JPEG_MIN_HEIGHT;
> > + q->fmt = mtk_jpeg_find_format(V4L2_PIX_FMT_JPEG,
> > + MTK_JPEG_FMT_FLAG_ENC_CAPTURE);
> > + pix_mp->width = MTK_JPEG_MIN_WIDTH;
> > + pix_mp->height = MTK_JPEG_MIN_HEIGHT;
> > + vidioc_try_fmt(container_of(pix_mp, struct v4l2_format,
> > + fmt.pix_mp), q->fmt);
> > + q->w = pix_mp->width;
> > + q->h = pix_mp->height;
> > + q->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage;
> > + q->bytesperline[0] = pix_mp->plane_fmt[0].bytesperline;
> > +}
> > +
> > +static void mtk_jpeg_set_dec_default_params(struct mtk_jpeg_ctx *ctx)
> > +{
> > + struct mtk_jpeg_q_data *q = &ctx->out_q;
> > + struct v4l2_pix_format_mplane *pix_mp;
> > + int i;
> > +
> > + pix_mp = kmalloc(sizeof(*pix_mp), GFP_KERNEL);
> >
> > + ctx->fh.ctrl_handler = &ctx->ctrl_hdl;
> > + ctx->colorspace = V4L2_COLORSPACE_JPEG,
> > + ctx->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
> > + ctx->quantization = V4L2_QUANTIZATION_DEFAULT;
> > + ctx->xfer_func = V4L2_XFER_FUNC_DEFAULT;
> > + pix_mp->width = MTK_JPEG_MIN_WIDTH;
> > + pix_mp->height = MTK_JPEG_MIN_HEIGHT;
> > +
> > + q->fmt = mtk_jpeg_find_format(V4L2_PIX_FMT_JPEG,
> > + MTK_JPEG_FMT_FLAG_DEC_OUTPUT);
> > + vidioc_try_fmt(container_of(pix_mp, struct v4l2_format,
> > + fmt.pix_mp), q->fmt);
> > + q->w = pix_mp->width;
> > + q->h = pix_mp->height;
> > + q->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage;
> > + q->bytesperline[0] = pix_mp->plane_fmt[0].bytesperline;
> > +
> > + q = &ctx->cap_q;
> > + q->fmt = mtk_jpeg_find_format(V4L2_PIX_FMT_YUV420M,
> > + MTK_JPEG_FMT_FLAG_DEC_CAPTURE);
> > + pix_mp->width = MTK_JPEG_MIN_WIDTH;
> > + pix_mp->height = MTK_JPEG_MIN_HEIGHT;
> > + vidioc_try_fmt(container_of(pix_mp, struct v4l2_format,
> > + fmt.pix_mp), q->fmt);
> > + q->w = pix_mp->width;
> > + q->h = pix_mp->height;
> > for (i = 0; i < q->fmt->colplanes; i++) {
> > - u32 stride = q->w * q->fmt->h_sample[i] / 4;
> > - u32 h = q->h * q->fmt->v_sample[i] / 4;
> > + q->sizeimage[i] = pix_mp->plane_fmt[i].sizeimage;
> > + q->bytesperline[i] = pix_mp->plane_fmt[i].bytesperline;
> > + }
> > +}
> > +
> > +static int mtk_jpeg_enc_open(struct file *file)
> > +{
> > + struct mtk_jpeg_dev *jpeg = video_drvdata(file);
> > + struct video_device *vfd = video_devdata(file);
> > + struct mtk_jpeg_ctx *ctx;
> > + int ret = 0;
> >
> > - q->bytesperline[i] = stride;
> > - q->sizeimage[i] = stride * h;
> > + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
> > + if (!ctx)
> > + return -ENOMEM;
> > +
> > + if (mutex_lock_interruptible(&jpeg->lock)) {
> > + ret = -ERESTARTSYS;
> > + goto free;
> > + }
> > +
> > + v4l2_fh_init(&ctx->fh, vfd);
> > + file->private_data = &ctx->fh;
> > + v4l2_fh_add(&ctx->fh);
> > +
> > + ctx->jpeg = jpeg;
> > + ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx,
> > + mtk_jpeg_enc_queue_init);
> > + if (IS_ERR(ctx->fh.m2m_ctx)) {
> > + ret = PTR_ERR(ctx->fh.m2m_ctx);
> > + goto error;
> > }
> > +
> > + ret = mtk_jpeg_enc_ctrls_setup(ctx);
> > + if (ret) {
> > + v4l2_err(&jpeg->v4l2_dev, "Failed to setup jpeg enc controls\n");
> > + goto error;
> > + }
> > + mtk_jpeg_set_enc_default_params(ctx);
> > +
> > + mutex_unlock(&jpeg->lock);
> > + return 0;
> > +
> > +error:
> > + v4l2_fh_del(&ctx->fh);
> > + v4l2_fh_exit(&ctx->fh);
> > + mutex_unlock(&jpeg->lock);
> > +free:
> > + kfree(ctx);
> > + return ret;
> > }
> >
> > -static int mtk_jpeg_open(struct file *file)
> > +static int mtk_jpeg_dec_open(struct file *file)
> > {
> > struct mtk_jpeg_dev *jpeg = video_drvdata(file);
> > struct video_device *vfd = video_devdata(file);
> > @@ -971,13 +1525,20 @@ static int mtk_jpeg_open(struct file *file)
> >
> > ctx->jpeg = jpeg;
> > ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpeg->m2m_dev, ctx,
> > - mtk_jpeg_queue_init);
> > + mtk_jpeg_dec_queue_init);
> > if (IS_ERR(ctx->fh.m2m_ctx)) {
> > ret = PTR_ERR(ctx->fh.m2m_ctx);
> > goto error;
> > }
> >
> > - mtk_jpeg_set_default_params(ctx);
> > + v4l2_ctrl_handler_init(&ctx->ctrl_hdl, 0);
> > + ret = v4l2_ctrl_handler_setup(&ctx->ctrl_hdl);
> > + if (ret) {
> > + v4l2_err(&jpeg->v4l2_dev, "Failed to setup jpeg dec controls\n");
> > + goto error;
> > + }
> > + mtk_jpeg_set_dec_default_params(ctx);
> > +
> > mutex_unlock(&jpeg->lock);
> > return 0;
> >
> > @@ -997,6 +1558,7 @@ static int mtk_jpeg_release(struct file *file)
> >
> > mutex_lock(&jpeg->lock);
> > v4l2_m2m_ctx_release(ctx->fh.m2m_ctx);
> > + v4l2_ctrl_handler_free(&ctx->ctrl_hdl);
> > v4l2_fh_del(&ctx->fh);
> > v4l2_fh_exit(&ctx->fh);
> > kfree(ctx);
> > @@ -1004,9 +1566,18 @@ static int mtk_jpeg_release(struct file *file)
> > return 0;
> > }
> >
> > -static const struct v4l2_file_operations mtk_jpeg_fops = {
> > +static const struct v4l2_file_operations mtk_jpeg_enc_fops = {
> > .owner = THIS_MODULE,
> > - .open = mtk_jpeg_open,
> > + .open = mtk_jpeg_enc_open,
> > + .release = mtk_jpeg_release,
> > + .poll = v4l2_m2m_fop_poll,
> > + .unlocked_ioctl = video_ioctl2,
> > + .mmap = v4l2_m2m_fop_mmap,
> > +};
> > +
> > +static const struct v4l2_file_operations mtk_jpeg_dec_fops = {
> > + .owner = THIS_MODULE,
> > + .open = mtk_jpeg_dec_open,
> > .release = mtk_jpeg_release,
> > .poll = v4l2_m2m_fop_poll,
> > .unlocked_ioctl = video_ioctl2,
> > @@ -1017,6 +1588,7 @@ static int mtk_jpeg_clk_init(struct mtk_jpeg_dev *jpeg)
> > {
> > struct device_node *node;
> > struct platform_device *pdev;
> > + int i;
> >
> > node = of_parse_phandle(jpeg->dev->of_node, "mediatek,larb", 0);
> > if (!node)
> > @@ -1030,19 +1602,24 @@ static int mtk_jpeg_clk_init(struct mtk_jpeg_dev *jpeg)
> >
> > jpeg->larb = &pdev->dev;
> >
> > - jpeg->clk_jdec = devm_clk_get(jpeg->dev, "jpgdec");
> > - if (IS_ERR(jpeg->clk_jdec))
> > - return PTR_ERR(jpeg->clk_jdec);
> > + for (i = 0; i < jpeg->variant->num_clocks; i++) {
> > + jpeg->clocks[i] = devm_clk_get(jpeg->dev,
> > + jpeg->variant->clk_names[i]);
> > + if (IS_ERR(jpeg->clocks[i])) {
> > + dev_err(&pdev->dev, "failed to get clock: %s\n",
> > + jpeg->variant->clk_names[i]);
> > + return PTR_ERR(jpeg->clocks[i]);
> > + }
> > + }
> >
> > - jpeg->clk_jdec_smi = devm_clk_get(jpeg->dev, "jpgdec-smi");
> > - return PTR_ERR_OR_ZERO(jpeg->clk_jdec_smi);
> > + return 0;
> > }
> >
> > static int mtk_jpeg_probe(struct platform_device *pdev)
> > {
> > struct mtk_jpeg_dev *jpeg;
> > struct resource *res;
> > - int dec_irq;
> > + int jpeg_irq;
> > int ret;
> >
> > jpeg = devm_kzalloc(&pdev->dev, sizeof(*jpeg), GFP_KERNEL);
> > @@ -1052,25 +1629,30 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
> > mutex_init(&jpeg->lock);
> > spin_lock_init(&jpeg->hw_lock);
> > jpeg->dev = &pdev->dev;
> > + jpeg->variant = of_device_get_match_data(jpeg->dev);
> >
> > res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > - jpeg->dec_reg_base = devm_ioremap_resource(&pdev->dev, res);
> > - if (IS_ERR(jpeg->dec_reg_base)) {
> > - ret = PTR_ERR(jpeg->dec_reg_base);
> > + jpeg->reg_base = devm_ioremap_resource(&pdev->dev, res);
> > + if (IS_ERR(jpeg->reg_base)) {
> > + ret = PTR_ERR(jpeg->reg_base);
> > return ret;
> > }
> >
> > - dec_irq = platform_get_irq(pdev, 0);
> > - if (dec_irq < 0) {
> > - dev_err(&pdev->dev, "Failed to get dec_irq %d.\n", dec_irq);
> > - return dec_irq;
> > + jpeg_irq = platform_get_irq(pdev, 0);
> > + if (jpeg_irq < 0) {
> > + dev_err(&pdev->dev, "Failed to get jpeg_irq %d.\n", jpeg_irq);
> > + return jpeg_irq;
> > }
> >
> > - ret = devm_request_irq(&pdev->dev, dec_irq, mtk_jpeg_dec_irq, 0,
> > - pdev->name, jpeg);
> > + if (jpeg->variant->is_encoder)
> > + ret = devm_request_irq(&pdev->dev, jpeg_irq, mtk_jpeg_enc_irq,
> > + 0, pdev->name, jpeg);
> > + else
> > + ret = devm_request_irq(&pdev->dev, jpeg_irq, mtk_jpeg_dec_irq,
> > + 0, pdev->name, jpeg);
> > if (ret) {
> > - dev_err(&pdev->dev, "Failed to request dec_irq %d (%d)\n",
> > - dec_irq, ret);
> > + dev_err(&pdev->dev, "Failed to request jpeg_irq %d (%d)\n",
> > + jpeg_irq, ret);
> > goto err_req_irq;
> > }
> >
> > @@ -1087,40 +1669,50 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
> > goto err_dev_register;
> > }
> >
> > - jpeg->m2m_dev = v4l2_m2m_init(&mtk_jpeg_m2m_ops);
> > + if (jpeg->variant->is_encoder)
> > + jpeg->m2m_dev = v4l2_m2m_init(&mtk_jpeg_enc_m2m_ops);
> > + else
> > + jpeg->m2m_dev = v4l2_m2m_init(&mtk_jpeg_dec_m2m_ops);
> > if (IS_ERR(jpeg->m2m_dev)) {
> > v4l2_err(&jpeg->v4l2_dev, "Failed to init mem2mem device\n");
> > ret = PTR_ERR(jpeg->m2m_dev);
> > goto err_m2m_init;
> > }
> >
> > - jpeg->dec_vdev = video_device_alloc();
> > - if (!jpeg->dec_vdev) {
> > + jpeg->vdev = video_device_alloc();
> > + if (!jpeg->vdev) {
> > ret = -ENOMEM;
> > - goto err_dec_vdev_alloc;
> > + goto err_vfd_jpeg_alloc;
> > }
> > - snprintf(jpeg->dec_vdev->name, sizeof(jpeg->dec_vdev->name),
> > - "%s-dec", MTK_JPEG_NAME);
> > - jpeg->dec_vdev->fops = &mtk_jpeg_fops;
> > - jpeg->dec_vdev->ioctl_ops = &mtk_jpeg_ioctl_ops;
> > - jpeg->dec_vdev->minor = -1;
> > - jpeg->dec_vdev->release = video_device_release;
> > - jpeg->dec_vdev->lock = &jpeg->lock;
> > - jpeg->dec_vdev->v4l2_dev = &jpeg->v4l2_dev;
> > - jpeg->dec_vdev->vfl_dir = VFL_DIR_M2M;
> > - jpeg->dec_vdev->device_caps = V4L2_CAP_STREAMING |
> > + snprintf(jpeg->vdev->name, sizeof(jpeg->vdev->name),
> > + "%s-%s", MTK_JPEG_NAME,
> > + jpeg->variant->is_encoder ? "enc" : "dec");
> > + if (jpeg->variant->is_encoder) {
> > + jpeg->vdev->fops = &mtk_jpeg_enc_fops;
> > + jpeg->vdev->ioctl_ops = &mtk_jpeg_enc_ioctl_ops;
> > + } else {
> > + jpeg->vdev->fops = &mtk_jpeg_dec_fops;
> > + jpeg->vdev->ioctl_ops = &mtk_jpeg_dec_ioctl_ops;
> > + }
> > + jpeg->vdev->minor = -1;
> > + jpeg->vdev->release = video_device_release;
> > + jpeg->vdev->lock = &jpeg->lock;
> > + jpeg->vdev->v4l2_dev = &jpeg->v4l2_dev;
> > + jpeg->vdev->vfl_dir = VFL_DIR_M2M;
> > + jpeg->vdev->device_caps = V4L2_CAP_STREAMING |
> > V4L2_CAP_VIDEO_M2M_MPLANE;
> >
> > - ret = video_register_device(jpeg->dec_vdev, VFL_TYPE_GRABBER, -1);
> > + ret = video_register_device(jpeg->vdev, VFL_TYPE_GRABBER, -1);
> > if (ret) {
> > v4l2_err(&jpeg->v4l2_dev, "Failed to register video device\n");
> > - goto err_dec_vdev_register;
> > + goto err_vfd_jpeg_register;
> > }
> >
> > - video_set_drvdata(jpeg->dec_vdev, jpeg);
> > + video_set_drvdata(jpeg->vdev, jpeg);
> > v4l2_info(&jpeg->v4l2_dev,
> > - "decoder device registered as /dev/video%d (%d,%d)\n",
> > - jpeg->dec_vdev->num, VIDEO_MAJOR, jpeg->dec_vdev->minor);
> > + "jpeg %s device registered as /dev/video%d (%d,%d)\n",
> > + jpeg->variant->is_encoder ? "enc" : "dec", jpeg->vdev->num,
> > + VIDEO_MAJOR, jpeg->vdev->minor);
> >
> > platform_set_drvdata(pdev, jpeg);
> >
> > @@ -1128,10 +1720,10 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
> >
> > return 0;
> >
> > -err_dec_vdev_register:
> > - video_device_release(jpeg->dec_vdev);
> > +err_vfd_jpeg_register:
> > + video_device_release(jpeg->vdev);
> >
> > -err_dec_vdev_alloc:
> > +err_vfd_jpeg_alloc:
> > v4l2_m2m_release(jpeg->m2m_dev);
> >
> > err_m2m_init:
> > @@ -1151,8 +1743,8 @@ static int mtk_jpeg_remove(struct platform_device *pdev)
> > struct mtk_jpeg_dev *jpeg = platform_get_drvdata(pdev);
> >
> > pm_runtime_disable(&pdev->dev);
> > - video_unregister_device(jpeg->dec_vdev);
> > - video_device_release(jpeg->dec_vdev);
> > + video_unregister_device(jpeg->vdev);
> > + video_device_release(jpeg->vdev);
> > v4l2_m2m_release(jpeg->m2m_dev);
> > v4l2_device_unregister(&jpeg->v4l2_dev);
> >
> > @@ -1211,14 +1803,36 @@ static const struct dev_pm_ops mtk_jpeg_pm_ops = {
> > SET_RUNTIME_PM_OPS(mtk_jpeg_pm_suspend, mtk_jpeg_pm_resume, NULL)
> > };
> >
> > +static struct mtk_jpeg_variant mt8173_jpeg_drvdata = {
> > + .is_encoder = false,
> > + .clk_names = {"jpgdec-smi", "jpgdec"},
> > + .num_clocks = 2,
> > +};
> > +
> > +static struct mtk_jpeg_variant mt2701_jpeg_drvdata = {
> > + .is_encoder = false,
> > + .clk_names = {"jpgdec-smi", "jpgdec"},
> > + .num_clocks = 2,
> > +};
> > +
> > +static struct mtk_jpeg_variant mtk_jpeg_drvdata = {
> > + .is_encoder = true,
> > + .clk_names = {"jpgenc"},
> > + .num_clocks = 1,
> > +};
> > +
> > static const struct of_device_id mtk_jpeg_match[] = {
> > {
> > .compatible = "mediatek,mt8173-jpgdec",
> > - .data = NULL,
> > + .data = &mt8173_jpeg_drvdata,
> > },
> > {
> > .compatible = "mediatek,mt2701-jpgdec",
> > - .data = NULL,
> > + .data = &mt2701_jpeg_drvdata,
> > + },
> > + {
> > + .compatible = "mediatek,mtk-jpgenc",
> > + .data = &mtk_jpeg_drvdata,
> > },
> > {},
> > };
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h
> > index 9bbd615b1067..8f80f2a69d45 100644
> > --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h
> > @@ -3,6 +3,7 @@
> > * Copyright (c) 2016 MediaTek Inc.
> > * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
> > * Rick Chang <rick.chang@mediatek.com>
> > + * Xia Jiang <xia.jiang@mediatek.com>
> > */
> >
> > #ifndef _MTK_JPEG_CORE_H
> > @@ -16,19 +17,21 @@
> > #define MTK_JPEG_NAME "mtk-jpeg"
> >
> > #define MTK_JPEG_COMP_MAX 3
> > +#define MTK_JPEG_MAX_CLOCKS 2
> > +
> >
> > #define MTK_JPEG_FMT_FLAG_DEC_OUTPUT BIT(0)
> > #define MTK_JPEG_FMT_FLAG_DEC_CAPTURE BIT(1)
> > -
> > -#define MTK_JPEG_FMT_TYPE_OUTPUT 1
> > -#define MTK_JPEG_FMT_TYPE_CAPTURE 2
> > +#define MTK_JPEG_FMT_FLAG_ENC_OUTPUT BIT(2)
> > +#define MTK_JPEG_FMT_FLAG_ENC_CAPTURE BIT(3)
> >
> > #define MTK_JPEG_MIN_WIDTH 32U
> > #define MTK_JPEG_MIN_HEIGHT 32U
> > -#define MTK_JPEG_MAX_WIDTH 8192U
> > -#define MTK_JPEG_MAX_HEIGHT 8192U
> > +#define MTK_JPEG_MAX_WIDTH 65535U
> > +#define MTK_JPEG_MAX_HEIGHT 65535U
> >
> > #define MTK_JPEG_DEFAULT_SIZEIMAGE (1 * 1024 * 1024)
> > +#define MTK_JPEG_DEFAULT_EXIF_SIZE (64 * 1024)
> >
> > /**
> > * enum mtk_jpeg_ctx_state - contex state of jpeg
> > @@ -39,6 +42,18 @@ enum mtk_jpeg_ctx_state {
> > MTK_JPEG_SOURCE_CHANGE,
> > };
> >
> > +/**
> > + * mtk_jpeg_variant - mtk jpeg driver variant
> > + * @is_encoder: driver mode is jpeg encoder
> > + * @clk_names: clock names
> > + * @num_clocks: numbers of clock
> > + */
> > +struct mtk_jpeg_variant {
> > + bool is_encoder;
> > + const char *clk_names[MTK_JPEG_MAX_CLOCKS];
> > + int num_clocks;
> > +};
> > +
> > /**
> > * struct mt_jpeg - JPEG IP abstraction
> > * @lock: the mutex protecting this structure
> > @@ -48,11 +63,11 @@ enum mtk_jpeg_ctx_state {
> > * @v4l2_dev: v4l2 device for mem2mem mode
> > * @m2m_dev: v4l2 mem2mem device data
> > * @alloc_ctx: videobuf2 memory allocator's context
> > - * @dec_vdev: video device node for decoder mem2mem mode
> > - * @dec_reg_base: JPEG registers mapping
> > - * @clk_jdec: JPEG hw working clock
> > - * @clk_jdec_smi: JPEG SMI bus clock
> > + * @vdev: video device node for jpeg mem2mem mode
> > + * @reg_base: JPEG registers mapping
> > * @larb: SMI device
> > + * @clocks: JPEG IP clock(s)
> > + * @variant: driver variant to be used
> > */
> > struct mtk_jpeg_dev {
> > struct mutex lock;
> > @@ -62,16 +77,17 @@ struct mtk_jpeg_dev {
> > struct v4l2_device v4l2_dev;
> > struct v4l2_m2m_dev *m2m_dev;
> > void *alloc_ctx;
> > - struct video_device *dec_vdev;
> > - void __iomem *dec_reg_base;
> > - struct clk *clk_jdec;
> > - struct clk *clk_jdec_smi;
> > + struct video_device *vdev;
> > + void __iomem *reg_base;
> > struct device *larb;
> > + struct clk *clocks[MTK_JPEG_MAX_CLOCKS];
> > + const struct mtk_jpeg_variant *variant;
> > };
> >
> > /**
> > * struct jpeg_fmt - driver's internal color format data
> > * @fourcc: the fourcc code, 0 if not applicable
> > + * @hw_format: hardware format value
> > * @h_sample: horizontal sample count of plane in 4 * 4 pixel image
> > * @v_sample: vertical sample count of plane in 4 * 4 pixel image
> > * @colplanes: number of color planes (1 for packed formats)
> > @@ -81,6 +97,7 @@ struct mtk_jpeg_dev {
> > */
> > struct mtk_jpeg_fmt {
> > u32 fourcc;
> > + u32 hw_format;
> > int h_sample[VIDEO_MAX_PLANES];
> > int v_sample[VIDEO_MAX_PLANES];
> > int colplanes;
> > @@ -113,6 +130,10 @@ struct mtk_jpeg_q_data {
> > * @cap_q: destination (capture) queue queue information
> > * @fh: V4L2 file handle
> > * @state: state of the context
> > + * @enable_exif: enable exif mode of jpeg encoder
> > + * @enc_quality: jpeg encoder quality
> > + * @restart_interval: jpeg encoder restart interval
> > + * @ctrl_hdl: controls handler
> > * @colorspace: enum v4l2_colorspace; supplemental to pixelformat
> > * @ycbcr_enc: enum v4l2_ycbcr_encoding, Y'CbCr encoding
> > * @quantization: enum v4l2_quantization, colorspace quantization
> > @@ -124,6 +145,10 @@ struct mtk_jpeg_ctx {
> > struct mtk_jpeg_q_data cap_q;
> > struct v4l2_fh fh;
> > enum mtk_jpeg_ctx_state state;
> > + bool enable_exif;
> > + u8 enc_quality;
> > + u8 restart_interval;
> > + struct v4l2_ctrl_handler ctrl_hdl;
> >
> > enum v4l2_colorspace colorspace;
> > enum v4l2_ycbcr_encoding ycbcr_enc;
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h b/drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h
> > index 1cc37dbfc8e7..ce263db5f30a 100644
> > --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_dec_hw.h
> > @@ -3,10 +3,11 @@
> > * Copyright (c) 2016 MediaTek Inc.
> > * Author: Ming Hsiu Tsai <minghsiu.tsai@mediatek.com>
> > * Rick Chang <rick.chang@mediatek.com>
> > + * Xia Jiang <xia.jiang@mediatek.com>
> > */
> >
> > -#ifndef _MTK_JPEG_HW_H
> > -#define _MTK_JPEG_HW_H
> > +#ifndef _MTK_JPEG_DEC_HW_H
> > +#define _MTK_JPEG_DEC_HW_H
> >
> > #include <media/videobuf2-core.h>
> >
> > @@ -75,4 +76,4 @@ void mtk_jpeg_dec_set_config(void __iomem *base,
> > void mtk_jpeg_dec_reset(void __iomem *dec_reg_base);
> > void mtk_jpeg_dec_start(void __iomem *dec_reg_base);
> >
> > -#endif /* _MTK_JPEG_HW_H */
> > +#endif /* _MTK_JPEG_DEC_HW_H */
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c b/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c
> > new file mode 100644
> > index 000000000000..7fc1de920a75
> > --- /dev/null
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.c
> > @@ -0,0 +1,193 @@
> > +// SPDX-License-Identifier: GPL-2.0-only
> > +/*
> > + * Copyright (c) 2019 MediaTek Inc.
> > + * Author: Xia Jiang <xia.jiang@mediatek.com>
> > + *
> > + */
> > +
> > +#include <linux/io.h>
> > +#include <linux/kernel.h>
> > +#include <media/videobuf2-core.h>
> > +
> > +#include "mtk_jpeg_enc_hw.h"
> > +
> > +static const struct mtk_jpeg_enc_qlt mtk_jpeg_enc_quality[] = {
> > + {.quality_param = 34, .hardware_value = JPEG_ENC_QUALITY_Q34},
> > + {.quality_param = 39, .hardware_value = JPEG_ENC_QUALITY_Q39},
> > + {.quality_param = 48, .hardware_value = JPEG_ENC_QUALITY_Q48},
> > + {.quality_param = 60, .hardware_value = JPEG_ENC_QUALITY_Q60},
> > + {.quality_param = 64, .hardware_value = JPEG_ENC_QUALITY_Q64},
> > + {.quality_param = 68, .hardware_value = JPEG_ENC_QUALITY_Q68},
> > + {.quality_param = 74, .hardware_value = JPEG_ENC_QUALITY_Q74},
> > + {.quality_param = 80, .hardware_value = JPEG_ENC_QUALITY_Q80},
> > + {.quality_param = 82, .hardware_value = JPEG_ENC_QUALITY_Q82},
> > + {.quality_param = 84, .hardware_value = JPEG_ENC_QUALITY_Q84},
> > + {.quality_param = 87, .hardware_value = JPEG_ENC_QUALITY_Q87},
> > + {.quality_param = 90, .hardware_value = JPEG_ENC_QUALITY_Q90},
> > + {.quality_param = 92, .hardware_value = JPEG_ENC_QUALITY_Q92},
> > + {.quality_param = 95, .hardware_value = JPEG_ENC_QUALITY_Q95},
> > + {.quality_param = 97, .hardware_value = JPEG_ENC_QUALITY_Q97},
> > +};
> > +
> > +void mtk_jpeg_enc_reset(void __iomem *base)
> > +{
> > + writel(0x00, base + JPEG_ENC_RSTB);
> > + writel(JPEG_ENC_RESET_BIT, base + JPEG_ENC_RSTB);
> > + writel(0x00, base + JPEG_ENC_CODEC_SEL);
> > +}
> > +
> > +u32 mtk_jpeg_enc_get_and_clear_int_status(void __iomem *base)
> > +{
> > + u32 ret;
> > +
> > + ret = readl(base + JPEG_ENC_INT_STS) &
> > + JPEG_ENC_INT_STATUS_MASK_ALLIRQ;
> > + if (ret)
> > + writel(0, base + JPEG_ENC_INT_STS);
> > +
> > + return ret;
> > +}
> > +
> > +u32 mtk_jpeg_enc_get_file_size(void __iomem *base)
> > +{
> > + return readl(base + JPEG_ENC_DMA_ADDR0) -
> > + readl(base + JPEG_ENC_DST_ADDR0);
> > +}
> > +
> > +u32 mtk_jpeg_enc_enum_result(void __iomem *base, u32 irq_status)
> > +{
> > + if (irq_status & JPEG_ENC_INT_STATUS_DONE)
> > + return MTK_JPEG_ENC_RESULT_DONE;
> > + else if (irq_status & JPEG_ENC_INT_STATUS_STALL)
> > + return MTK_JPEG_ENC_RESULT_STALL;
> > + else
> > + return MTK_JPEG_ENC_RESULT_VCODEC_IRQ;
> > +}
> > +
> > +void mtk_jpeg_enc_set_img_size(void __iomem *base, u32 width, u32 height)
> > +{
> > + u32 value;
> > +
> > + value = width << 16 | height;
> > + writel(value, base + JPEG_ENC_IMG_SIZE);
> > +}
> > +
> > +void mtk_jpeg_enc_set_blk_num(void __iomem *base, u32 enc_format, u32 width,
> > + u32 height)
> > +{
> > + u32 blk_num;
> > + u32 is_420;
> > + u32 padding_width;
> > + u32 padding_height;
> > + u32 luma_blocks;
> > + u32 chroma_blocks;
> > +
> > + is_420 = (enc_format == V4L2_PIX_FMT_NV12M ||
> > + enc_format == V4L2_PIX_FMT_NV21M) ? 1 : 0;
> > + padding_width = round_up(width, 16);
> > + padding_height = round_up(height, is_420 ? 16 : 8);
> > +
> > + luma_blocks = padding_width / 8 * padding_height / 8;
> > + if (is_420)
> > + chroma_blocks = luma_blocks / 4;
> > + else
> > + chroma_blocks = luma_blocks / 2;
> > +
> > + blk_num = luma_blocks + 2 * chroma_blocks - 1;
> > +
> > + writel(blk_num, base + JPEG_ENC_BLK_NUM);
> > +}
> > +
> > +void mtk_jpeg_enc_set_stride(void __iomem *base, u32 enc_format, u32 width,
> > + u32 height, u32 bytesperline)
> > +{
> > + u32 img_stride;
> > + u32 mem_stride;
> > +
> > + if (enc_format == V4L2_PIX_FMT_NV12M ||
> > + enc_format == V4L2_PIX_FMT_NV21M) {
> > + img_stride = round_up(width, 16);
> > + mem_stride = bytesperline;
> > + } else {
> > + img_stride = round_up(width * 2, 32);
> > + mem_stride = img_stride;
> > + }
> > +
> > + writel(img_stride, base + JPEG_ENC_IMG_STRIDE);
> > + writel(mem_stride, base + JPEG_ENC_STRIDE);
> > +}
> > +
> > +void mtk_jpeg_enc_set_src_addr(void __iomem *base, u32 src_addr,
> > + u32 plane_index)
> > +{
> > + if (!plane_index)
> > + writel(src_addr, base + JPEG_ENC_SRC_LUMA_ADDR);
> > + else
> > + writel(src_addr, base + JPEG_ENC_SRC_CHROMA_ADDR);
> > +}
> > +
> > +void mtk_jpeg_enc_set_dst_addr(void __iomem *base, u32 dst_addr,
> > + u32 stall_size, u32 init_offset,
> > + u32 offset_mask)
> > +{
> > + writel(init_offset & ~0xf, base + JPEG_ENC_OFFSET_ADDR);
> > + writel(offset_mask & 0xf, base + JPEG_ENC_BYTE_OFFSET_MASK);
> > + writel(dst_addr & ~0xf, base + JPEG_ENC_DST_ADDR0);
> > + writel((dst_addr + stall_size) & ~0xf, base + JPEG_ENC_STALL_ADDR0);
> > +}
> > +
> > +static void mtk_jpeg_enc_set_quality(void __iomem *base, u32 quality)
> > +{
> > + u32 value;
> > + u32 i, enc_quality;
> > +
> > + enc_quality = mtk_jpeg_enc_quality[0].hardware_value;
> > + for (i = 0; i < ARRAY_SIZE(mtk_jpeg_enc_quality); i++) {
> > + if (quality <= mtk_jpeg_enc_quality[i].quality_param) {
> > + enc_quality = mtk_jpeg_enc_quality[i].hardware_value;
> > + break;
> > + }
> > + }
> > +
> > + value = readl(base + JPEG_ENC_QUALITY);
> > + value = (value & JPEG_ENC_QUALITY_MASK) | enc_quality;
> > + writel(value, base + JPEG_ENC_QUALITY);
> > +}
> > +
> > +static void mtk_jpeg_enc_set_ctrl(void __iomem *base, u32 enc_format,
> > + bool exif_en, u32 restart_interval)
> > +{
> > + u32 value;
> > +
> > + value = readl(base + JPEG_ENC_CTRL);
> > + value &= ~JPEG_ENC_CTRL_YUV_FORMAT_MASK;
> > + value |= (enc_format & 3) << 3;
> > + if (exif_en)
> > + value |= JPEG_ENC_CTRL_FILE_FORMAT_BIT;
> > + else
> > + value &= ~JPEG_ENC_CTRL_FILE_FORMAT_BIT;
> > + if (restart_interval)
> > + value |= JPEG_ENC_CTRL_RESTART_EN_BIT;
> > + else
> > + value &= ~JPEG_ENC_CTRL_RESTART_EN_BIT;
> > + writel(value, base + JPEG_ENC_CTRL);
> > +}
> > +
> > +void mtk_jpeg_enc_set_config(void __iomem *base, u32 enc_format, bool exif_en,
> > + u32 quality, u32 restart_interval)
> > +{
> > + mtk_jpeg_enc_set_quality(base, quality);
> > +
> > + mtk_jpeg_enc_set_ctrl(base, enc_format, exif_en, restart_interval);
> > +
> > + writel(restart_interval, base + JPEG_ENC_RST_MCU_NUM);
> > +}
> > +
> > +void mtk_jpeg_enc_start(void __iomem *base)
> > +{
> > + u32 value;
> > +
> > + value = readl(base + JPEG_ENC_CTRL);
> > + value |= JPEG_ENC_CTRL_INT_EN_BIT | JPEG_ENC_CTRL_ENABLE_BIT;
> > + writel(value, base + JPEG_ENC_CTRL);
> > +}
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h b/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h
> > new file mode 100644
> > index 000000000000..73faf49b667c
> > --- /dev/null
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_enc_hw.h
> > @@ -0,0 +1,123 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> > +/*
> > + * Copyright (c) 2019 MediaTek Inc.
> > + * Author: Xia Jiang <xia.jiang@mediatek.com>
> > + *
> > + */
> > +
> > +#ifndef _MTK_JPEG_ENC_HW_H
> > +#define _MTK_JPEG_ENC_HW_H
> > +
> > +#include <media/videobuf2-core.h>
> > +
> > +#include "mtk_jpeg_core.h"
> > +
> > +#define JPEG_ENC_INT_STATUS_DONE BIT(0)
> > +#define JPEG_ENC_INT_STATUS_STALL BIT(1)
> > +#define JPEG_ENC_INT_STATUS_VCODEC_IRQ BIT(4)
> > +#define JPEG_ENC_INT_STATUS_MASK_ALLIRQ 0x13
> > +
> > +#define JPEG_ENC_DST_ADDR_OFFSET_MASK GENMASK(3, 0)
> > +#define JPEG_ENC_QUALITY_MASK GENMASK(31, 16)
> > +
> > +#define JPEG_ENC_CTRL_YUV_FORMAT_MASK 0x18
> > +#define JPEG_ENC_CTRL_RESTART_EN_BIT BIT(10)
> > +#define JPEG_ENC_CTRL_FILE_FORMAT_BIT BIT(5)
> > +#define JPEG_ENC_CTRL_INT_EN_BIT BIT(2)
> > +#define JPEG_ENC_CTRL_ENABLE_BIT BIT(0)
> > +#define JPEG_ENC_RESET_BIT BIT(0)
> > +
> > +#define JPEG_ENC_YUV_FORMAT_YUYV 0
> > +#define JPEG_ENC_YUV_FORMAT_YVYU 1
> > +#define JPEG_ENC_YUV_FORMAT_NV12 2
> > +#define JEPG_ENC_YUV_FORMAT_NV21 3
> > +
> > +#define JPEG_ENC_QUALITY_Q60 0x0
> > +#define JPEG_ENC_QUALITY_Q80 0x1
> > +#define JPEG_ENC_QUALITY_Q90 0x2
> > +#define JPEG_ENC_QUALITY_Q95 0x3
> > +#define JPEG_ENC_QUALITY_Q39 0x4
> > +#define JPEG_ENC_QUALITY_Q68 0x5
> > +#define JPEG_ENC_QUALITY_Q84 0x6
> > +#define JPEG_ENC_QUALITY_Q92 0x7
> > +#define JPEG_ENC_QUALITY_Q48 0x8
> > +#define JPEG_ENC_QUALITY_Q74 0xa
> > +#define JPEG_ENC_QUALITY_Q87 0xb
> > +#define JPEG_ENC_QUALITY_Q34 0xc
> > +#define JPEG_ENC_QUALITY_Q64 0xe
> > +#define JPEG_ENC_QUALITY_Q82 0xf
> > +#define JPEG_ENC_QUALITY_Q97 0x10
> > +
> > +#define JPEG_ENC_RSTB 0x100
> > +#define JPEG_ENC_CTRL 0x104
> > +#define JPEG_ENC_QUALITY 0x108
> > +#define JPEG_ENC_BLK_NUM 0x10C
> > +#define JPEG_ENC_BLK_CNT 0x110
> > +#define JPEG_ENC_INT_STS 0x11c
> > +#define JPEG_ENC_DST_ADDR0 0x120
> > +#define JPEG_ENC_DMA_ADDR0 0x124
> > +#define JPEG_ENC_STALL_ADDR0 0x128
> > +#define JPEG_ENC_OFFSET_ADDR 0x138
> > +#define JPEG_ENC_RST_MCU_NUM 0x150
> > +#define JPEG_ENC_IMG_SIZE 0x154
> > +#define JPEG_ENC_DEBUG_INFO0 0x160
> > +#define JPEG_ENC_DEBUG_INFO1 0x164
> > +#define JPEG_ENC_TOTAL_CYCLE 0x168
> > +#define JPEG_ENC_BYTE_OFFSET_MASK 0x16c
> > +#define JPEG_ENC_SRC_LUMA_ADDR 0x170
> > +#define JPEG_ENC_SRC_CHROMA_ADDR 0x174
> > +#define JPEG_ENC_STRIDE 0x178
> > +#define JPEG_ENC_IMG_STRIDE 0x17c
> > +#define JPEG_ENC_DCM_CTRL 0x300
> > +#define JPEG_ENC_CODEC_SEL 0x314
> > +#define JPEG_ENC_ULTRA_THRES 0x318
> > +
> > +enum {
> > + MTK_JPEG_ENC_RESULT_DONE,
> > + MTK_JPEG_ENC_RESULT_STALL,
> > + MTK_JPEG_ENC_RESULT_VCODEC_IRQ
> > +};
> > +
> > +/**
> > + * struct mtk_jpeg_enc_qlt - JPEG encoder quality data
> > + * @quality_param: quality value
> > + * @hardware_value: hardware value of quality
> > + */
> > +struct mtk_jpeg_enc_qlt {
> > + u8 quality_param;
> > + u8 hardware_value;
> > +};
> > +
> > +/**
> > + * struct mt_jpeg_enc_bs - JPEG encoder bitstream buffer
> > + * @dma_addr: JPEG encoder destination address
> > + * @size: JPEG encoder bistream size
> > + * @dma_addr_offset: JPEG encoder offset address
> > + * @dma_addr_offsetmask: JPEG encoder destination address offset mask
> > + */
> > +struct mtk_jpeg_enc_bs {
> > + dma_addr_t dma_addr;
> > + size_t size;
> > + u32 dma_addr_offset;
> > + u32 dma_addr_offsetmask;
> > +};
> > +
> > +void mtk_jpeg_enc_reset(void __iomem *base);
> > +u32 mtk_jpeg_enc_get_and_clear_int_status(void __iomem *base);
> > +u32 mtk_jpeg_enc_get_file_size(void __iomem *base);
> > +u32 mtk_jpeg_enc_enum_result(void __iomem *base, u32 irq_status);
> > +void mtk_jpeg_enc_set_img_size(void __iomem *base, u32 width, u32 height);
> > +void mtk_jpeg_enc_set_blk_num(void __iomem *base, u32 enc_format, u32 width,
> > + u32 height);
> > +void mtk_jpeg_enc_set_stride(void __iomem *base, u32 enc_format, u32 width,
> > + u32 height, u32 bytesperline);
> > +void mtk_jpeg_enc_set_src_addr(void __iomem *base, u32 src_addr,
> > + u32 plane_index);
> > +void mtk_jpeg_enc_set_dst_addr(void __iomem *base, u32 dst_addr,
> > + u32 stall_size, u32 init_offset,
> > + u32 offset_mask);
> > +void mtk_jpeg_enc_set_config(void __iomem *base, u32 enc_format, bool exif_en,
> > + u32 quality, u32 restart_interval);
> > +void mtk_jpeg_enc_start(void __iomem *enc_reg_base);
> > +
> > +#endif /* _MTK_JPEG_ENC_HW_H */
> >
>
^ permalink raw reply
* Re: Security Random Number Generator support
From: Russell King - ARM Linux admin @ 2020-06-05 8:09 UTC (permalink / raw)
To: Neal Liu
Cc: Marc Zyngier,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Julius Werner, Herbert Xu, Arnd Bergmann, Greg Kroah-Hartman,
Sean Wang, linux-mediatek@lists.infradead.org, lkml, wsd_upstream,
Rob Herring, Linux Crypto Mailing List, Matt Mackall,
Matthias Brugger, Crystal Guo (郭晶), Ard Biesheuvel,
Linux ARM
In-Reply-To: <1591341543.19510.4.camel@mtkswgap22>
On Fri, Jun 05, 2020 at 03:19:03PM +0800, Neal Liu wrote:
> On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote:
> > This kind of thing is something that ARM have seems to shy away from
> > doing - it's a point I brought up many years ago when the whole
> > trustzone thing first appeared with its SMC call. Those around the
> > conference table were not interested - ARM seemed to prefer every
> > vendor to do off and do their own thing with the SMC interface.
>
> Does that mean it make sense to model a sec-rng driver, and get each
> vendor's SMC function id by DT node?
_If_ vendors have already gone off and decided to use different SMC
function IDs for this, while keeping the rest of the SMC interface
the same, then the choice has already been made.
I know on 32-bit that some of the secure world implementations can't
be changed; they're burnt into the ROM. I believe on 64-bit that isn't
the case, which makes it easier to standardise.
Do you have visibility of how this SMC is implemented in the secure
side? Is it in ATF, and is it done as a vendor hack or is there an
element of generic implementation to it? Has it been submitted
upstream to the main ATF repository?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC for 0.8m (est. 1762m) line in suburbia: sync at 13.1Mbps down 424kbps up
^ permalink raw reply
* Re: [PATCH v4 03/11] irqchip: add sl28cpld interrupt controller support
From: Andy Shevchenko @ 2020-06-05 8:07 UTC (permalink / raw)
To: Michael Walle
Cc: open list:GPIO SUBSYSTEM, devicetree, Linux Kernel Mailing List,
linux-hwmon, linux-pwm, linux-watchdog, linux-arm Mailing List,
Linus Walleij, Bartosz Golaszewski, Rob Herring, Jean Delvare,
Guenter Roeck, Lee Jones, Thierry Reding, Uwe Kleine-König,
Wim Van Sebroeck, Shawn Guo, Li Yang, Thomas Gleixner,
Jason Cooper, Marc Zyngier, Mark Brown, Greg Kroah-Hartman,
Andy Shevchenko
In-Reply-To: <20200604211039.12689-4-michael@walle.cc>
On Fri, Jun 5, 2020 at 12:13 AM Michael Walle <michael@walle.cc> wrote:
>
> Add support for the interrupt controller inside the sl28 CPLD management
> controller.
>
> The interrupt controller can handle at most 8 interrupts and is really
> simplistic and consists only of an interrupt mask and an interrupt
> pending register.
...
> +config SL28CPLD_INTC
> + bool
Same Q: Why not module?
...
> +static const struct of_device_id sl28cpld_intc_of_match[] = {
> + { .compatible = "kontron,sl28cpld-intc" },
> + {},
There is no point to have comma in terminator line.
> +};
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH V2 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support
From: ppvk @ 2020-06-05 8:06 UTC (permalink / raw)
To: Sibi Sankar
Cc: Matthias Kaehlcke, bjorn.andersson, adrian.hunter, robh+dt,
ulf.hansson, vbadigan, sboyd, georgi.djakov, linux-mmc,
linux-kernel, linux-arm-msm, devicetree, linux-mmc-owner, rnayak,
matthias
In-Reply-To: <23d6da79d604ce5113d90a2adab17483@codeaurora.org>
On 2020-06-05 00:04, Sibi Sankar wrote:
> On 2020-06-04 22:39, Matthias Kaehlcke wrote:
>> On Thu, Jun 04, 2020 at 04:44:42PM +0530, Pradeep P V K wrote:
>>> Interconnect bandwidth scaling support is now added as a
>>> part of OPP [1]. So, make sure interconnect driver is ready
>>> before handling interconnect scaling.
>>>
>>> This change is based on
>>> [1] [Patch v8] Introduce OPP bandwidth bindings
>>> (https://lkml.org/lkml/2020/5/12/493)
>>>
>>> [2] [Patch v3] mmc: sdhci-msm: Fix error handling
>>> for dev_pm_opp_of_add_table()
>>> (https://lkml.org/lkml/2020/5/5/491)
>>>
>>> Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
>>> ---
>>> drivers/mmc/host/sdhci-msm.c | 13 +++++++++++++
>>> 1 file changed, 13 insertions(+)
>>>
>>> diff --git a/drivers/mmc/host/sdhci-msm.c
>>> b/drivers/mmc/host/sdhci-msm.c
>>> index b277dd7..a13ff1b 100644
>>> --- a/drivers/mmc/host/sdhci-msm.c
>>> +++ b/drivers/mmc/host/sdhci-msm.c
>>> @@ -14,6 +14,7 @@
>>> #include <linux/slab.h>
>>> #include <linux/iopoll.h>
>>> #include <linux/regulator/consumer.h>
>>> +#include <linux/interconnect.h>
>>>
>>> #include "sdhci-pltfm.h"
>>> #include "cqhci.h"
>>> @@ -2070,6 +2071,18 @@ static int sdhci_msm_probe(struct
>>> platform_device *pdev)
>>> }
>>> msm_host->bulk_clks[0].clk = clk;
>>>
>>> + /* Make sure that ICC driver is ready for interconnect bandwdith
>>> + * scaling before registering the device for OPP.
>>> + */
>>> + ret = dev_pm_opp_of_find_icc_paths(&pdev->dev, NULL);
>>> + if (ret) {
>>> + if (ret == -EPROBE_DEFER)
>>> + dev_info(&pdev->dev, "defer icc path: %d\n", ret);
>>
>> I already commented on this on v1:
>>
>> This log seems to add little more than noise, or are there
>> particular reasons
>> why it is useful in this driver? Most drivers just return silently
>> in case of
>> deferred probing.
>>
>> If you think the log is really needed please explain why.
>
Sorry. i forget to remove this print on V2. i will address this in my
next patch set.
> Both the err logs seem redundant.
> EPROBE_DEFERS are rather readily
> noticeable through the return val.
> dev_.._find_icc_paths already prints
> err messages when we fail to get icc
> paths.
True. i will remove this too in my next patch set.
^ permalink raw reply
* Re: [PATCH v8 08/14] media: platform: Change case for improving code quality
From: Xia Jiang @ 2020-06-05 8:04 UTC (permalink / raw)
To: Hans Verkuil
Cc: Mauro Carvalho Chehab, Rob Herring, Matthias Brugger, Rick Chang,
linux-media, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Marek Szyprowski, Tomasz Figa, srv_heupstream,
senozhatsky, mojahsu, drinkcat, maoguang.meng, sj.huang
In-Reply-To: <4b8cc41e-5171-0d48-f588-96e4212ab22c@xs4all.nl>
On Mon, 2020-05-11 at 10:37 +0200, Hans Verkuil wrote:
> On 03/04/2020 11:40, Xia Jiang wrote:
> > Change register offset hex numberals from upercase to lowercase.
>
> Typos:
>
> numberals -> numerals
>
> upercase -> uppercase
Done.
>
> Regards,
>
> Hans
>
> >
> > Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
> > ---
> > v8: no changes
> > ---
> > drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h | 18 +++++++++---------
> > 1 file changed, 9 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h b/drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h
> > index 94db04e9cdb6..2945da842dfa 100644
> > --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h
> > +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h
> > @@ -20,29 +20,29 @@
> > #define BIT_INQST_MASK_ALLIRQ 0x37
> >
> > #define JPGDEC_REG_RESET 0x0090
> > -#define JPGDEC_REG_BRZ_FACTOR 0x00F8
> > -#define JPGDEC_REG_DU_NUM 0x00FC
> > +#define JPGDEC_REG_BRZ_FACTOR 0x00f8
> > +#define JPGDEC_REG_DU_NUM 0x00fc
> > #define JPGDEC_REG_DEST_ADDR0_Y 0x0140
> > #define JPGDEC_REG_DEST_ADDR0_U 0x0144
> > #define JPGDEC_REG_DEST_ADDR0_V 0x0148
> > -#define JPGDEC_REG_DEST_ADDR1_Y 0x014C
> > +#define JPGDEC_REG_DEST_ADDR1_Y 0x014c
> > #define JPGDEC_REG_DEST_ADDR1_U 0x0150
> > #define JPGDEC_REG_DEST_ADDR1_V 0x0154
> > #define JPGDEC_REG_STRIDE_Y 0x0158
> > -#define JPGDEC_REG_STRIDE_UV 0x015C
> > +#define JPGDEC_REG_STRIDE_UV 0x015c
> > #define JPGDEC_REG_IMG_STRIDE_Y 0x0160
> > #define JPGDEC_REG_IMG_STRIDE_UV 0x0164
> > -#define JPGDEC_REG_WDMA_CTRL 0x016C
> > +#define JPGDEC_REG_WDMA_CTRL 0x016c
> > #define JPGDEC_REG_PAUSE_MCU_NUM 0x0170
> > -#define JPGDEC_REG_OPERATION_MODE 0x017C
> > +#define JPGDEC_REG_OPERATION_MODE 0x017c
> > #define JPGDEC_REG_FILE_ADDR 0x0200
> > -#define JPGDEC_REG_COMP_ID 0x020C
> > +#define JPGDEC_REG_COMP_ID 0x020c
> > #define JPGDEC_REG_TOTAL_MCU_NUM 0x0210
> > #define JPGDEC_REG_COMP0_DATA_UNIT_NUM 0x0224
> > -#define JPGDEC_REG_DU_CTRL 0x023C
> > +#define JPGDEC_REG_DU_CTRL 0x023c
> > #define JPGDEC_REG_TRIG 0x0240
> > #define JPGDEC_REG_FILE_BRP 0x0248
> > -#define JPGDEC_REG_FILE_TOTAL_SIZE 0x024C
> > +#define JPGDEC_REG_FILE_TOTAL_SIZE 0x024c
> > #define JPGDEC_REG_QT_ID 0x0270
> > #define JPGDEC_REG_INTERRUPT_STATUS 0x0274
> > #define JPGDEC_REG_STATUS 0x0278
> >
>
^ permalink raw reply
* Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller
From: Andy Shevchenko @ 2020-06-05 8:02 UTC (permalink / raw)
To: Michael Walle
Cc: open list:GPIO SUBSYSTEM, devicetree, Linux Kernel Mailing List,
linux-hwmon, linux-pwm, linux-watchdog, linux-arm Mailing List,
Linus Walleij, Bartosz Golaszewski, Rob Herring, Jean Delvare,
Guenter Roeck, Lee Jones, Thierry Reding, Uwe Kleine-König,
Wim Van Sebroeck, Shawn Guo, Li Yang, Thomas Gleixner,
Jason Cooper, Marc Zyngier, Mark Brown, Greg Kroah-Hartman,
Andy Shevchenko
In-Reply-To: <CAHp75Vd-R3yqhq88-whY6vdDhESpzvFCsbi-ygSTjfXfUzOrtg@mail.gmail.com>
On Fri, Jun 5, 2020 at 11:01 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Fri, Jun 5, 2020 at 12:16 AM Michael Walle <michael@walle.cc> wrote:
...
> > Please note that the MFD driver is defined as bool in the Kconfig
> > because the next patch will add interrupt support.
> > + bool "Kontron sl28 core driver"
> > + depends on I2C=y
>
> Why not module?
To be clear, I have read above, but it didn't shed a light.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller
From: Andy Shevchenko @ 2020-06-05 8:01 UTC (permalink / raw)
To: Michael Walle
Cc: open list:GPIO SUBSYSTEM, devicetree, Linux Kernel Mailing List,
linux-hwmon, linux-pwm, linux-watchdog, linux-arm Mailing List,
Linus Walleij, Bartosz Golaszewski, Rob Herring, Jean Delvare,
Guenter Roeck, Lee Jones, Thierry Reding, Uwe Kleine-König,
Wim Van Sebroeck, Shawn Guo, Li Yang, Thomas Gleixner,
Jason Cooper, Marc Zyngier, Mark Brown, Greg Kroah-Hartman,
Andy Shevchenko
In-Reply-To: <20200604211039.12689-3-michael@walle.cc>
On Fri, Jun 5, 2020 at 12:16 AM Michael Walle <michael@walle.cc> wrote:
>
> Add the core support for the board management controller found on the
> SMARC-sAL28 board. It consists of the following functions:
> - watchdog
> - GPIO controller
> - PWM controller
> - fan sensor
> - interrupt controller
>
> At the moment, this controller is used on the Kontron SMARC-sAL28 board.
>
> Please note that the MFD driver is defined as bool in the Kconfig
> because the next patch will add interrupt support.
...
> +config MFD_SL28CPLD
> + bool "Kontron sl28 core driver"
> + depends on I2C=y
Why not module?
> + depends on OF
I didn't find an evidence this is needed.
No Compile Test?
> + select REGMAP_I2C
> + select MFD_CORE
...
> +#include <linux/of_platform.h>
No evidence of user of this.
I think you meant mod_devicetable.h.
...
> +static struct i2c_driver sl28cpld_driver = {
> + .probe_new = sl28cpld_probe,
> + .driver = {
> + .name = "sl28cpld",
> + .of_match_table = of_match_ptr(sl28cpld_of_match),
Drop of_match_ptr(). It has a little sense in this context (depends OF).
It will have a little sense even if you drop depends OF b/c you will
introduce a compiler warning.
> + },
> +};
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [RFC 1/4] regulator: lp87565: enable voltage regardless of ENx pin
From: Luca Ceresoli @ 2020-06-05 7:57 UTC (permalink / raw)
To: Mark Brown
Cc: Liam Girdwood, devicetree, linux-kernel, Lee Jones, Rob Herring,
Keerthy, Axel Lin
In-Reply-To: <20200604110759.GB6644@sirena.org.uk>
Hi Mark,
On 04/06/20 13:07, Mark Brown wrote:
> On Wed, Jun 03, 2020 at 10:03:16PM +0200, Luca Ceresoli wrote:
>
>> I suspect the only solution that allows to configure the EN_PIN_CTRLn bits
>> correctly in all the possible hardware setups would be to tell in device
>> tree / board info whether each enable pin is connected or not (which is a
>> hardware _fact_) and which ENx pin should control which regulator output
>> (which is a policy). But it would make this simple driver considerably more
>> complex.
>
>> Any suggestion about the correct way to handle this situation would be
>> greatly appreciated.
>
> We can tell if we've got a software controlled GPIO connected, if we
> have then we should ensure that it continues to take effect.
Ideally yes, but it would be made more complex by the chip flexibility:
it's possible to choose which enable pin should drive each output.
For example this configuration is supported by the chip:
- BUCK0 is on if EN_BUCK0 high AND pin EN0 is active
- BUCK1 is on if EN_BUCK1 high AND pin EN0 is active
- BUCK2 is on if EN_BUCK2 high AND pin EN1 is active
- BUCK3 is on if EN_BUCK3 high (no pin used)
- pin EN2 is used as a GPIO (LP875xx acts as an I2C GPIO expander)
So it would be absolutely OK to describe in DT that EN0 and EN1 connect
the SoC to the LP875xx and that EN2 is connected to something else.
But describing in DT the association between enable pins and buck
outputs would be more a configuration than hardware description IMO.
And I'm not even considering the case where the enable pins are be
connected to something else, out of the SoC control, but still meant to
be used to control the buck output.
> That
> should just be a single register write at startup from the sounds of it.
Exactly, each buck output has a register containing the bits involved in
this discussion.
> Otherwise yeah, just ignoring that there's a possibility of a GPIO we
> don't know about seems sensible.
Thanks,
--
Luca
^ permalink raw reply
* Re: (EXT) RE: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
From: Matthias Schiffer @ 2020-06-05 7:57 UTC (permalink / raw)
To: Robin Gong
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-spi@vger.kernel.org, dl-linux-imx, kernel@pengutronix.de,
linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com,
broonie@kernel.org, robh+dt@kernel.org, catalin.marinas@arm.com,
vkoul@kernel.org, will.deacon@arm.com, shawnguo@kernel.org,
festevam@gmail.com, s.hauer@pengutronix.de,
martin.fuzzey@flowbird.group, u.kleine-koenig@pengutronix.de,
dan.j.williams@intel.com, Markus Niebel
In-Reply-To: <VE1PR04MB6638463E7E6577E84F8D1FF589860@VE1PR04MB6638.eurprd04.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 4792 bytes --]
On Fri, 2020-06-05 at 02:45 +0000, Robin Gong wrote:
> On 2020/06/03 Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
> wrote:
> > On Wed, 2020-06-03 at 09:50 +0000, Robin Gong wrote:
> > > On 2020/06/03 Matthias Schiffer <
> > > matthias.schiffer@ew.tq-group.com>
> > > wrote:
> > > > On Thu, 2020-05-21 at 04:34 +0800, Robin Gong wrote:
> > > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause
> > > > > FIFO
> > > > > transfer to be send twice in DMA mode. Please get more
> > > > > information
> > > > > from:
> > > > >
> >
> >
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> > > > > .
> > > > >
> > > >
> > > >
> >
> > nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX6DQCE.pdf&data=02%7C01%7C
> > > > yibin.g
> > > > >
> > > >
> > > >
> >
> > ong%40nxp.com%7C4621358b9be04a79d2d508d80798835b%7C686ea1d3bc2b
> > > > 4c6fa92
> > > > >
> > > >
> > > >
> >
> > cd99c5c301635%7C0%7C1%7C637267698912634476&sdata=hR66H1hP%
> > > > 2Fqb6OXe
> > > > > w9wpXizY8DiNfZZ1KLwu3Kty87jc%3D&reserved=0. The
> > > > > workaround
> >
> > is
> > > > > adding new sdma ram script which works in XCH mode as PIO
> > > > > inside
> > > > > sdma instead of SMC mode, meanwhile, 'TX_THRESHOLD' should be
> > > > > 0.
> > > > > The issue
> > > >
> > > > should be exist on all legacy i.mx6/7 soc family before
> > > > i.mx6ul.
> > > > > NXP fix this design issue from i.mx6ul, so newer chips
> > > > > including
> > > > > i.mx6ul/ 6ull/6sll do not need this workaroud anymore. All
> > > > > other
> > > > > i.mx6/7/8 chips still need this workaroud. This patch set add
> > > > > new
> > > > > 'fsl,imx6ul-ecspi'
> > > > > for ecspi driver and 'ecspi_fixed' in sdma driver to choose
> > > > > if
> > > > > need errata or not.
> > > > > The first two reverted patches should be the same issue,
> > > > > though,
> > > > > it seems 'fixed' by changing to other shp script. Hope Sean
> > > > > or
> > > > > Sascha could have the chance to test this patch set if could
> > > > > fix
> > > > > their issues.
> > > > > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1
> > > > > not
> > > > > work on i.mx8mm because the event id is zero.
> > > > >
> > > > > PS:
> > > > > Please get sdma firmware from below linux-firmware and
> > > > > copy it
> > > > > to your local rootfs /lib/firmware/imx/sdma.
> > > >
> > > >
> > > > Hello Robin,
> > > >
> > > > we have tried out this series, and there seems to be an issue
> > > > with
> > > > the
> > > > PIO fallback. We are testing on an i.MX6Q board, and our kernel
> > > > is
> > > > a
> > > > mostly-unmodified 5.4, on which we backported all SDMA patches
> > > > from
> > > > next-20200602 (imx-sdma.c is identical to next-20200602
> > > > version),
> > > > and
> > > > then applied this whole series.
> > > >
> > > > We build the SDMA driver as a kernel module, which is loaded by
> > > > udev,
> > > > so the root filesystem is ready and the SDMA firmware can be
> > > > loaded.
> > > > The behaviour we're seeing is the following:
> > > >
> > > > 1. As long as the SDMA driver is not loaded, initializing
> > > > spi_imx
> > > > will
> > > > be deferred
> > > > 2. imx_sdma is loaded. The SDMA firmware is not yet loaded at
> > > > this
> > > > point
> > > > 3. spi_imx is initialized and an SPI-NOR flash is probed. To
> > > > load
> > > > the
> > > > BFPT, the driver will attempt to use DMA; this will fail with
> > > > EINVAL as
> > > > long as the SDMA firmware is not ready, so the fallback to PIO
> > > > happens
> > > > (4. SDMA firmware is ready, subsequent SPI transfers use DMA)
> > > >
> > > > The problem happens in step 3: Whenever the driver falls back
> > > > to
> > > > PIO,
> > > > the received data is corrupt. The behaviour is specific to the
> > > > fallback: When I disable DMA completely via spi_imx.use_dma, or
> > > > when
> > > > the timing is lucky and the SDMA firmware gets loaded before
> > > > the
> > > > flash
> > > > is probed, no corruption can be observed.
> > >
> > > Thanks Matthias, would you like post log?
> > >
> >
> > I have attached the following log files:
> > - pio.log: DMA disabled via module parameter
> > - dma.log: "lucky" timing, SDMA firmware loaded before SPI-NOR
> > probe
> > - fallback.log: DMA->PIO fallback
> >
> > The logs include some additional log messages:
> > - Return value of spi_imx_dma_transfer() before PIO fallback
> > - SPI-NOR SFPT dump
> >
> > It can be seen that the BFPT data is identical in pio.log and
> > dma.log,
> > and differs almost completely in fallback.log. The corrupted data
> > seems
> > to be random, or uninitialized memory; it differs with every boot.
>
> Would you please have a try with the attached patch? Thanks.
Thank you, this fixes the issue we're seeing.
Kind regards,
Matthias
[-- Attachment #2: fixed.log --]
[-- Type: text/x-log, Size: 33368 bytes --]
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.39 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Fri Jun 5 07:23:40 UTC 2020
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TQ TQMa6Q on MBa6x
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 160 MiB at 0x46000000
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] Normal zone: 2048 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 262144 pages, LIFO batch:63
[ 0.000000] percpu: Embedded 20 pages/cpu s50664 r8192 d23064 u81920
[ 0.000000] pcpu-alloc: s50664 r8192 d23064 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: root=/dev/mmcblk1p2 ro rootwait console=ttymxc1,115200 spi_imx.dyndbg=+p consoleblank=0 cma=160M
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 850004K/1048576K available (12288K kernel code, 942K rwdata, 3656K rodata, 1024K init, 6554K bss, 34732K reserved, 163840K cma-reserved, 0K highmem)
[ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x20/0x2b8 with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 34625 entries in 68 pages
[ 0.000000] Running RCU self tests
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU lockdep checking is enabled.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C-310 errata 752271 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000009] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.000040] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.001629] Console: colour dummy device 80x30
[ 0.001665] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001687] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001711] ... MAX_LOCK_DEPTH: 48
[ 0.001731] ... MAX_LOCKDEP_KEYS: 8192
[ 0.001753] ... CLASSHASH_SIZE: 4096
[ 0.001774] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.001795] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.001816] ... CHAINHASH_SIZE: 32768
[ 0.001836] memory used by lock dependency info: 3997 kB
[ 0.001856] memory used for stack traces: 2112 kB
[ 0.001878] per task-struct memory footprint: 1536 bytes
[ 0.001953] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.001988] pid_max: default: 32768 minimum: 301
[ 0.002526] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002572] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.005083] CPU: Testing write buffer coherency: ok
[ 0.005169] CPU0: Spectre v2: using BPIALL workaround
[ 0.006459] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.059678] Setting up static identity map for 0x10100000 - 0x10100060
[ 0.079539] rcu: Hierarchical SRCU implementation.
[ 0.129550] smp: Bringing up secondary CPUs ...
[ 0.210001] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.210016] CPU1: Spectre v2: using BPIALL workaround
[ 0.289894] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.289910] CPU2: Spectre v2: using BPIALL workaround
[ 0.369888] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.369903] CPU3: Spectre v2: using BPIALL workaround
[ 0.370513] smp: Brought up 1 node, 4 CPUs
[ 0.370547] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.370573] CPU: All CPU(s) started in SVC mode.
[ 0.372564] devtmpfs: initialized
[ 0.411117] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.413270] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.413334] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.421673] pinctrl core: initialized pinctrl subsystem
[ 0.426412] NET: Registered protocol family 16
[ 0.433920] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.437726] cpuidle: using governor ladder
[ 0.438009] CPU identified as i.MX6Q, silicon rev 1.5
[ 0.471621] vdd1p1: supplied by regulator-dummy
[ 0.473787] vdd3p0: supplied by regulator-dummy
[ 0.475680] vdd2p5: supplied by regulator-dummy
[ 0.477536] vddarm: supplied by regulator-dummy
[ 0.479670] vddpu: supplied by regulator-dummy
[ 0.481530] vddsoc: supplied by regulator-dummy
[ 0.521081] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.521146] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.524299] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.644216] mxs-dma 110000.dma-apbh: initialized
[ 0.653222] vgaarb: loaded
[ 0.654666] SCSI subsystem initialized
[ 0.655483] libata version 3.00 loaded.
[ 0.656501] usbcore: registered new interface driver usbfs
[ 0.656737] usbcore: registered new interface driver hub
[ 0.657080] usbcore: registered new device driver usb
[ 0.657588] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.658449] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[ 0.665470] i2c i2c-0: IMX I2C adapter registered
[ 0.666320] pps_core: LinuxPPS API ver. 1 registered
[ 0.666349] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.666430] PTP clock support registered
[ 0.674652] clocksource: Switched to clocksource mxc_timer1
[ 1.740208] thermal_sys: Registered thermal governor 'fair_share'
[ 1.740222] thermal_sys: Registered thermal governor 'step_wise'
[ 1.740260] thermal_sys: Registered thermal governor 'user_space'
[ 1.741160] NET: Registered protocol family 2
[ 1.743061] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[ 1.743196] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 1.743432] TCP bind hash table entries: 8192 (order: 6, 294912 bytes, linear)
[ 1.744897] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.745528] UDP hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.745768] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.746564] NET: Registered protocol family 1
[ 1.748943] RPC: Registered named UNIX socket transport module.
[ 1.749009] RPC: Registered udp transport module.
[ 1.749037] RPC: Registered tcp transport module.
[ 1.749064] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.760424] PCI: CLS 0 bytes, default 64
[ 1.761389] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.762261] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.768318] Initialise system trusted keyrings
[ 1.769028] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 1.792661] NFS: Registering the id_resolver key type
[ 1.792800] Key type id_resolver registered
[ 1.792870] Key type id_legacy registered
[ 1.792932] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.793719] fuse: init (API version 7.31)
[ 1.796020] NILFS version 2 loaded
[ 1.838986] Key type asymmetric registered
[ 1.839100] Asymmetric key parser 'x509' registered
[ 1.839275] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.839367] io scheduler mq-deadline registered
[ 1.839401] io scheduler kyber registered
[ 1.847454] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[ 1.847675] imx6q-pcie 1ffc000.pcie: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 1.847866] imx6q-pcie 1ffc000.pcie: MEM 0x01000000..0x01efffff -> 0x01000000
[ 1.859118] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[ 1.860092] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[ 1.860126] pfuze100-regulator 0-0008: pfuze100 found.
[ 1.891216] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
[ 2.678656] printk: console [ttymxc1] enabled
[ 2.685153] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 67, base_baud = 5000000) is a IMX
[ 2.695707] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 68, base_baud = 5000000) is a IMX
[ 2.706224] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 69, base_baud = 5000000) is a IMX
[ 2.739808] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops)
[ 2.746264] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops)
[ 2.752620] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops)
[ 2.758410] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[ 2.765556] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[ 2.771816] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[ 2.778030] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[ 2.787199] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[ 2.799546] imx-ipuv3 2400000.ipu: IPUv3H probed
[ 2.807632] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.814322] [drm] No driver support for vblank timestamp query.
[ 2.821418] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[ 2.829349] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[ 2.837354] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[ 2.845276] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[ 2.854389] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 2.862675] imx-ipuv3 2800000.ipu: IPUv3H probed
[ 2.912586] loop: module loaded
[ 2.918439] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.927616] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.937469] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 2.945500] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 2.953544] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 2.961821] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 2.969862] ahci-imx 2200000.sata: 2200000.sata supply ahci not found, using dummy regulator
[ 2.974678] imx6q-pcie 1ffc000.pcie: Phy link never came up
[ 2.978838] ahci-imx 2200000.sata: 2200000.sata supply phy not found, using dummy regulator
[ 2.987906] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 2.993159] ahci-imx 2200000.sata: 2200000.sata supply target not found, using dummy regulator
[ 2.998671] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.998699] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 3.011182] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 3.012881] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 3.019183] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 3.026411] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.033056] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 3.041992] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 3.063650] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 3.067674] scsi host0: ahci-imx
[ 3.070548] pci 0000:00:00.0: Limiting cfg_size to 512
[ 3.075295] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 72
[ 3.079130] pci 0000:00:00.0: supports D1
[ 3.089282] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.090799] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.092133] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 3.099384] libphy: Fixed MDIO Bus: probed
[ 3.102695] PCI: bus0: Fast back to back transfers disabled
[ 3.105356] CAN device driver interface
[ 3.113649] PCI: bus1: Fast back to back transfers enabled
[ 3.114285] flexcan 2090000.flexcan: 2090000.flexcan supply xceiver not found, using dummy regulator
[ 3.119291] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 3.131705] flexcan 2094000.flexcan: 2094000.flexcan supply xceiver not found, using dummy regulator
[ 3.135310] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[ 3.151786] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.153541] pps pps0: new PPS source ptp0
[ 3.159151] pcieport 0000:00:00.0: PME: Signaling with IRQ 306
[ 3.168741] pcieport 0000:00:00.0: AER: enabled with IRQ 306
[ 3.169048] libphy: fec_enet_mii_bus: probed
[ 3.183769] fec 2188000.ethernet eth0: registered PHC device 0
[ 3.190548] usbcore: registered new interface driver cdc_ether
[ 3.196665] usbcore: registered new interface driver smsc95xx
[ 3.202461] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.209144] ehci-pci: EHCI PCI platform driver
[ 3.219204] imx_usb 2184000.usb: No over current polarity defined
[ 3.230025] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 3.235495] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 3.264720] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3.271845] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.280322] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.287654] usb usb1: Product: EHCI Host Controller
[ 3.292565] usb usb1: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.298056] usb usb1: SerialNumber: ci_hdrc.0
[ 3.305485] hub 1-0:1.0: USB hub found
[ 3.309555] hub 1-0:1.0: 1 port detected
[ 3.317484] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 3.330416] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 3.335501] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 3.364702] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 3.371209] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.379600] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.386918] usb usb2: Product: EHCI Host Controller
[ 3.391831] usb usb2: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.397322] usb usb2: SerialNumber: ci_hdrc.1
[ 3.403588] hub 2-0:1.0: USB hub found
[ 3.407620] hub 2-0:1.0: 1 port detected
[ 3.416582] mousedev: PS/2 mouse device common for all mice
[ 3.426923] ata1: SATA link down (SStatus 0 SControl 300)
[ 3.432599] ahci-imx 2200000.sata: no device found, disabling link.
[ 3.434404] rtc-ds1307 0-0068: registered as rtc0
[ 3.438995] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[ 3.445882] i2c /dev entries driver
[ 3.455954] IR NEC protocol handler initialized
[ 3.460526] IR RC5(x/sz) protocol handler initialized
[ 3.465704] IR RC6 protocol handler initialized
[ 3.470272] IR JVC protocol handler initialized
[ 3.474914] IR Sony protocol handler initialized
[ 3.479565] IR SANYO protocol handler initialized
[ 3.484300] IR Sharp protocol handler initialized
[ 3.489093] IR MCE Keyboard/mouse protocol handler initialized
[ 3.495017] IR XMP protocol handler initialized
[ 3.506346] lm75 0-0048: hwmon0: sensor 'lm75'
[ 3.513239] lm75 0-0049: hwmon1: sensor 'lm75'
[ 3.523672] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 3.532392] sdhci: Secure Digital Host Controller Interface driver
[ 3.538672] sdhci: Copyright(c) Pierre Ossman
[ 3.543062] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.550780] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[ 3.556135] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[ 3.598990] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 3.651070] mmc1: new high speed SD card at address 1234
[ 3.657883] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[ 3.670288] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.671305] mmcblk1: mmc1:1234 SA02G 1.84 GiB
[ 3.681554] caam 2100000.caam: Entropy delay = 3200
[ 3.703274] mmcblk1: p1 p2
[ 3.747319] caam 2100000.caam: Instantiated RNG4 SH0
[ 3.774779] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[ 3.787144] mmc0: new DDR MMC card at address 0001
[ 3.794197] mmcblk0: mmc0:0001 MMC04G 3.52 GiB
[ 3.799884] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[ 3.806963] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[ 3.808082] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.813829] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (248:0)
[ 3.817956] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 3.817974] caam 2100000.caam: job rings = 2, qi = 0
[ 3.892098] caam algorithms registered in /proc/crypto
[ 3.912582] caam_jr 2101000.jr0: registering rng-caam
[ 3.919891] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.930853] NET: Registered protocol family 10
[ 3.939894] Segment Routing with IPv6
[ 3.943729] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.952463] NET: Registered protocol family 17
[ 3.957050] can: controller area network core (rev 20170425 abi 9)
[ 3.963506] NET: Registered protocol family 29
[ 3.968053] can: raw protocol (rev 20170425)
[ 3.972458] can: broadcast manager protocol (rev 20170425 t)
[ 3.975864] usb 2-1: New USB device found, idVendor=0424, idProduct=2517, bcdDevice= 0.02
[ 3.978267] can: netlink gateway (rev 20190810) max_hops=1
[ 3.986497] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.992533] Key type dns_resolver registered
[ 4.001775] hub 2-1:1.0: USB hub found
[ 4.007726] hub 2-1:1.0: 7 ports detected
[ 4.019922] Registering SWP/SWPB emulation handler
[ 4.026940] Loading compiled-in X.509 certificates
[ 4.033765] Key type ._fscrypt registered
[ 4.038061] Key type .fscrypt registered
[ 4.197921] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.199984] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.203694] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 4.215406] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.217246] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.219297] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.221081] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.225245] random: fast init done
[ 4.229248] rtc-ds1307 0-0068: setting system clock to 2000-01-01T00:01:08 UTC (946684868)
[ 4.238084] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.258979] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.267092] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 4.276176] cfg80211: failed to load regulatory.db
[ 4.301827] EXT4-fs (mmcblk1p2): INFO: recovery required on readonly filesystem
[ 4.309472] EXT4-fs (mmcblk1p2): write access will be enabled during recovery
[ 4.334800] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[ 4.496212] usb 2-1.1: New USB device found, idVendor=0424, idProduct=9e00, bcdDevice= 3.00
[ 4.504886] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.517379] smsc95xx v1.0.6
[ 4.648480] smsc95xx 2-1.1:1.0 eth1: register 'smsc95xx' at usb-ci_hdrc.1-1.1, smsc95xx USB 2.0 Ethernet, f2:78:83:43:d1:7b
[ 4.662389] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.664256] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.967482] EXT4-fs (mmcblk1p2): recovery complete
[ 4.986706] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.996436] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 5.007139] devtmpfs: mounted
[ 5.028362] Freeing unused kernel memory: 1024K
[ 5.034564] Run /sbin/init as init process
[ 5.606188] systemd[1]: System time before build time, advancing clock.
[ 5.710605] systemd[1]: systemd 243.2+ running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[ 5.736335] systemd[1]: Detected architecture arm.
[ 5.799308] systemd[1]: Set hostname to <tqma6q-mba6x>.
[ 6.675645] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket \xe2\x86\x92 /run/dbus/system_bus_socket; please update the unit file accordingly.
[ 7.024418] systemd[1]: /lib/systemd/system/rpcbind.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/rpcbind.sock \xe2\x86\x92 /run/rpcbind.sock; please update the unit file accordingly.
[ 7.088772] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.100144] systemd[1]: Created slice system-getty.slice.
[ 7.135611] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.146536] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 7.195582] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.206267] systemd[1]: Created slice User and Session Slice.
[ 7.247801] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 7.287818] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 8.148199] random: crng init done
[ 8.151661] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.613147] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 8.619572] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
[ 9.101979] systemd[297]: systemd-udevd.service: ProtectHostname=yes is configured, but the kernel does not support UTS namespaces, ignoring namespace setup.
[ 9.267307] systemd-journald[279]: Received client request to flush runtime journal.
[ 11.123314] input: gpio-buttons as /devices/soc0/gpio-buttons/input/input0
[ 11.127794] input: gpio-beeper as /devices/soc0/gpio-beeper/input/input1
[ 11.157434] mc: Linux media interface: v0.10
[ 11.172601] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.174915] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.176776] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.178815] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.219686] videodev: Linux video capture interface: v2.00
[ 11.401520] imx_media_common: module is from the staging directory, the quality is unknown, you have been warned.
[ 11.457916] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.460009] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.470667] imx6_media: module is from the staging directory, the quality is unknown, you have been warned.
[ 11.650219] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 11.860185] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.869667] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.871503] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 11.968879] spi spi0.0: spi_imx_setup: mode 0, 8 bpw, 50000000 hz
[ 11.972130] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.972637] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.016379] spi-nor spi0.0: n25q128a13
[ 12.020443] spi-nor spi0.0: spi_nor_info_init_params: 03
[ 12.035872] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.035951] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.036037] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.036102] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.036459] spi-nor spi0.0: Header: 53
[ 12.040355] spi-nor spi0.0: Header: 46
[ 12.044198] spi-nor spi0.0: Header: 44
[ 12.073621] spi-nor spi0.0: Header: 50
[ 12.077592] spi-nor spi0.0: Header: 05
[ 12.081414] spi-nor spi0.0: Header: 01
[ 12.112231] spi-nor spi0.0: Header: 01
[ 12.134785] spi-nor spi0.0: Header: ff
[ 12.139506] spi-nor spi0.0: Header: 00
[ 12.143317] spi-nor spi0.0: Header: 05
[ 12.159246] spi-nor spi0.0: Header: 01
[ 12.163108] spi-nor spi0.0: Header: 10
[ 12.184776] spi-nor spi0.0: Header: 30
[ 12.188615] spi-nor spi0.0: Header: 00
[ 12.221040] spi-nor spi0.0: Header: 00
[ 12.244702] spi-nor spi0.0: Header: ff
[ 12.266541] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.266706] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.266788] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.266866] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.267190] spi-nor spi0.0: bfpt addr=30 len=40
[ 12.285142] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.285246] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.285534] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.285658] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.286591] spi-nor spi0.0: DMA transfer: -22
[ 12.286630] spi-nor spi0.0: Fallback to PIO mode
[ 12.296534] spi-nor spi0.0: bfpt: e5
[ 12.314782] spi-nor spi0.0: bfpt: 20
[ 12.344792] spi-nor spi0.0: bfpt: f1
[ 12.348426] spi-nor spi0.0: bfpt: ff
[ 12.352037] spi-nor spi0.0: bfpt: ff
[ 12.397380] spi-nor spi0.0: bfpt: ff
[ 12.416917] spi-nor spi0.0: bfpt: ff
[ 12.420597] spi-nor spi0.0: bfpt: 07
[ 12.424267] spi-nor spi0.0: bfpt: 29
[ 12.442571] spi-nor spi0.0: bfpt: eb
[ 12.458160] spi-nor spi0.0: bfpt: 27
[ 12.462405] Micrel KSZ9031 Gigabit PHY 2188000.ethernet-1:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=2188000.ethernet-1:03, irq=104)
[ 12.467943] spi-nor spi0.0: bfpt: 6b
[ 12.510726] spi-nor spi0.0: bfpt: 27
[ 12.514394] spi-nor spi0.0: bfpt: 3b
[ 12.518667] spi-nor spi0.0: bfpt: 27
[ 12.534799] spi-nor spi0.0: bfpt: bb
[ 12.538425] spi-nor spi0.0: bfpt: ff
[ 12.542035] spi-nor spi0.0: bfpt: ff
[ 12.550887] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.554781] spi-nor spi0.0: bfpt: ff
[ 12.561370] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.574772] spi-nor spi0.0: bfpt: ff
[ 12.578560] spi-nor spi0.0: bfpt: ff
[ 12.582176] spi-nor spi0.0: bfpt: ff
[ 12.583566] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.585889] spi-nor spi0.0: bfpt: 27
[ 12.585908] spi-nor spi0.0: bfpt: bb
[ 12.585923] spi-nor spi0.0: bfpt: ff
[ 12.585938] spi-nor spi0.0: bfpt: ff
[ 12.585953] spi-nor spi0.0: bfpt: 29
[ 12.626081] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.656095] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[ 12.675198] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
[ 12.683695] spi-nor spi0.0: bfpt: eb
[ 12.687574] spi-nor spi0.0: bfpt: 0c
[ 12.691231] spi-nor spi0.0: bfpt: 20
[ 12.705004] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
[ 12.712086] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0
[ 12.717491] spi-nor spi0.0: bfpt: 10
[ 12.721154] spi-nor spi0.0: bfpt: d8
[ 12.734691] spi-nor spi0.0: bfpt: 00
[ 12.738348] spi-nor spi0.0: bfpt: 00
[ 12.741995] spi-nor spi0.0: bfpt: 00
[ 12.745946] imx-media: ipu1_csi0:1 -> ipu1_vdic:0
[ 12.750739] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0
[ 12.764770] spi-nor spi0.0: bfpt: 00
[ 12.768433] spi-nor spi0.0: bfpt: 35
[ 12.772076] spi-nor spi0.0: bfpt: 8a
[ 12.775953] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0
[ 12.781355] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0
[ 12.804725] spi-nor spi0.0: bfpt: 01
[ 12.808484] spi-nor spi0.0: bfpt: 00
[ 12.812131] spi-nor spi0.0: bfpt: 82
[ 12.816051] imx-media: subdev ipu1_csi0 bound
[ 12.822311] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video3
[ 12.844770] spi-nor spi0.0: bfpt: a3
[ 12.848570] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0
[ 12.853600] imx-media: ipu1_csi1:1 -> ipu1_vdic:0
[ 12.858512] spi-nor spi0.0: bfpt: 03
[ 12.862158] spi-nor spi0.0: bfpt: cb
[ 12.865986] spi-nor spi0.0: bfpt: ac
[ 12.869667] spi-nor spi0.0: bfpt: c1
[ 12.873309] spi-nor spi0.0: bfpt: 04
[ 12.877400] imx-media: subdev ipu1_csi1 bound
[ 12.894954] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video4
[ 12.902306] spi-nor spi0.0: bfpt: 2e
[ 12.906067] spi-nor spi0.0: bfpt: 7a
[ 12.909718] spi-nor spi0.0: bfpt: 75
[ 12.913391] spi-nor spi0.0: bfpt: 7a
[ 12.922719] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as /dev/video5
[ 12.936367] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as /dev/video6
[ 12.943584] imx-media: ipu2_csi0:1 -> ipu2_ic_prp:0
[ 12.954793] spi-nor spi0.0: bfpt: 75
[ 12.958625] spi-nor spi0.0: bfpt: fb
[ 12.962308] spi-nor spi0.0: bfpt: 00
[ 12.974773] imx-media: ipu2_csi0:1 -> ipu2_vdic:0
[ 12.994794] spi-nor spi0.0: bfpt: 00
[ 12.998462] spi-nor spi0.0: bfpt: 80
[ 13.002103] spi-nor spi0.0: bfpt: 08
[ 13.006025] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0
[ 13.010994] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0
[ 13.016510] spi-nor spi0.0: bfpt: 0f
[ 13.020173] spi-nor spi0.0: bfpt: 82
[ 13.023833] spi-nor spi0.0: bfpt: ff
[ 13.027699] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0
[ 13.032998] imx-media: subdev ipu2_csi0 bound
[ 13.054705] spi-nor spi0.0: bfpt: 81
[ 13.058330] spi-nor spi0.0: bfpt: 3d
[ 13.064247] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video7
[ 13.071092] spi-nor spi0.0: bfpt: 00
[ 13.084715] imx-media: ipu2_csi1:1 -> ipu2_ic_prp:0
[ 13.089898] spi-nor spi0.0: bfpt: 00
[ 13.093519] spi-nor spi0.0: spi_nor_parse_bfpt: 03
[ 13.098731] imx-media: ipu2_csi1:1 -> ipu2_vdic:0
[ 13.103489] imx-media: subdev ipu2_csi1 bound
[ 13.114805] spi-nor spi0.0: spi_nor_parse_bfpt: 0c
[ 13.121796] spi-nor spi0.0: param headers: 03
[ 13.132542] spi-nor spi0.0: param headers: 00
[ 13.148607] spi-nor spi0.0: param headers: 01
[ 13.153245] spi-nor spi0.0: param headers: 02
[ 13.174355] spi-nor spi0.0: param headers: 00
[ 13.178882] spi-nor spi0.0: param headers: 01
[ 13.183279] spi-nor spi0.0: param headers: 00
[ 13.204795] spi-nor spi0.0: param headers: ff
[ 13.224825] spi-nor spi0.0: has uniform erase
[ 13.229237] spi-nor spi0.0: spi_nor_select_erase: 08
[ 13.234241] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[ 13.316374] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[ 13.331434] imx-sdma 20ec000.sdma: loaded firmware 3.5
[ 13.355143] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[ 13.383312] spi spi0.1: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 13.414032] spi_imx 2008000.spi: probed
[ 13.514940] spi spi4.0: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 13.517232] spi_imx 2018000.spi: probed
[ 13.680184] imx-tlv320aic32x4 sound: tlv320aic32x4-hifi <-> 2028000.ssi mapping ok
[ 13.693001] coda 2040000.vpu: Firmware code revision: 570363
[ 13.715442] coda 2040000.vpu: Initialized CODA960.
[ 13.720303] coda 2040000.vpu: Firmware version: 3.1.1
[ 13.746657] coda 2040000.vpu: encoder registered as video8
[ 13.757458] coda 2040000.vpu: decoder registered as video9
[ 14.365520] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 14.373301] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 14.473634] smsc95xx 2-1.1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0xC5E1
^ permalink raw reply
* [PATCH v2] dt-bindings: usb: ti,keystone-dwc3.yaml: Improve schema
From: Roger Quadros @ 2020-06-05 7:52 UTC (permalink / raw)
To: balbi; +Cc: robh+dt, devicetree, linux-kernel
In-Reply-To: <20200602124055.1680-1-rogerq@ti.com>
There were some review comments after the patch was integrated.
Address those.
Fixes: 1883a934e156 ("dt-bindings: usb: convert keystone-usb.txt to YAML")
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
Changelog:
v2
- don't use quotes for enum/const string
- use phandle instead of phandle-array for phys
- add maxItems for phy-names
.../bindings/usb/ti,keystone-dwc3.yaml | 50 ++++++++++++++-----
1 file changed, 37 insertions(+), 13 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml b/Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml
index f127535feb0b..394e47d2f5d7 100644
--- a/Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/ti,keystone-dwc3.yaml
@@ -11,64 +11,88 @@ maintainers:
properties:
compatible:
- oneOf:
- - const: "ti,keystone-dwc3"
- - const: "ti,am654-dwc3"
+ items:
+ - enum:
+ - ti,keystone-dwc3
+ - ti,am654-dwc3
reg:
maxItems: 1
- description: Address and length of the register set for the USB subsystem on
- the SOC.
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 1
+
+ ranges: true
interrupts:
maxItems: 1
- description: The irq number of this device that is used to interrupt the MPU.
-
clocks:
+ $ref: /schemas/types.yaml#definitions/phandle-array
description: Clock ID for USB functional clock.
+ assigned-clocks:
+ $ref: /schemas/types.yaml#definitions/phandle-array
+
+ assigned-clock-parents:
+ $ref: /schemas/types.yaml#definitions/phandle-array
+
power-domains:
+ $ref: /schemas/types.yaml#definitions/phandle-array
description: Should contain a phandle to a PM domain provider node
and an args specifier containing the USB device id
value. This property is as per the binding,
Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
phys:
+ $ref: /schemas/types.yaml#/definitions/phandle
description:
PHY specifier for the USB3.0 PHY. Some SoCs need the USB3.0 PHY
to be turned on before the controller.
Documentation/devicetree/bindings/phy/phy-bindings.txt
phy-names:
+ maxItems: 1
items:
- - const: "usb3-phy"
+ - const: usb3-phy
+
+ dma-coherent: true
- dwc3:
+ dma-ranges: true
+
+patternProperties:
+ "usb@[a-f0-9]+$":
+ type: object
description: This is the node representing the DWC3 controller instance
Documentation/devicetree/bindings/usb/dwc3.txt
required:
- compatible
- reg
+ - "#address-cells"
+ - "#size-cells"
+ - ranges
- interrupts
- - clocks
+
+additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
- usb: usb@2680000 {
+ dwc3@2680000 {
compatible = "ti,keystone-dwc3";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x2680000 0x10000>;
clocks = <&clkusb>;
- clock-names = "usb";
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
ranges;
- dwc3@2690000 {
+ usb@2690000 {
compatible = "synopsys,dwc3";
reg = <0x2690000 0x70000>;
interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply related
* Re: Security Random Number Generator support
From: Neal Liu @ 2020-06-05 7:19 UTC (permalink / raw)
To: Russell King - ARM Linux admin, Marc Zyngier
Cc: Neal Liu,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Julius Werner, Herbert Xu, Arnd Bergmann, Greg Kroah-Hartman,
Sean Wang, lkml, wsd_upstream, Crystal Guo (郭晶),
Rob Herring, Linux Crypto Mailing List, Matt Mackall,
Matthias Brugger, linux-mediatek@lists.infradead.org,
Ard Biesheuvel, Linux ARM
In-Reply-To: <20200603093416.GY1551@shell.armlinux.org.uk>
On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote:
> On Wed, Jun 03, 2020 at 08:40:58AM +0100, Marc Zyngier wrote:
> > On 2020-06-03 08:29, Neal Liu wrote:
> > > On Tue, 2020-06-02 at 21:02 +0800, Marc Zyngier wrote:
> > > > On 2020-06-02 13:14, Ard Biesheuvel wrote:
> > > > > On Tue, 2 Jun 2020 at 10:15, Neal Liu <neal.liu@mediatek.com> wrote:
> > > > >>
> > > > >> These patch series introduce a security random number generator
> > > > >> which provides a generic interface to get hardware rnd from Secure
> > > > >> state. The Secure state can be Arm Trusted Firmware(ATF), Trusted
> > > > >> Execution Environment(TEE), or even EL2 hypervisor.
> > > > >>
> > > > >> Patch #1..2 adds sec-rng kernel driver for Trustzone based SoCs.
> > > > >> For security awareness SoCs on ARMv8 with TrustZone enabled,
> > > > >> peripherals like entropy sources is not accessible from normal world
> > > > >> (linux) and rather accessible from secure world (HYP/ATF/TEE) only.
> > > > >> This driver aims to provide a generic interface to Arm Trusted
> > > > >> Firmware or Hypervisor rng service.
> > > > >>
> > > > >>
> > > > >> changes since v1:
> > > > >> - rename mt67xx-rng to mtk-sec-rng since all MediaTek ARMv8 SoCs can
> > > > >> reuse
> > > > >> this driver.
> > > > >> - refine coding style and unnecessary check.
> > > > >>
> > > > >> changes since v2:
> > > > >> - remove unused comments.
> > > > >> - remove redundant variable.
> > > > >>
> > > > >> changes since v3:
> > > > >> - add dt-bindings for MediaTek rng with TrustZone enabled.
> > > > >> - revise HWRNG SMC call fid.
> > > > >>
> > > > >> changes since v4:
> > > > >> - move bindings to the arm/firmware directory.
> > > > >> - revise driver init flow to check more property.
> > > > >>
> > > > >> changes since v5:
> > > > >> - refactor to more generic security rng driver which
> > > > >> is not platform specific.
> > > > >>
> > > > >> *** BLURB HERE ***
> > > > >>
> > > > >> Neal Liu (2):
> > > > >> dt-bindings: rng: add bindings for sec-rng
> > > > >> hwrng: add sec-rng driver
> > > > >>
> > > > >
> > > > > There is no reason to model a SMC call as a driver, and represent it
> > > > > via a DT node like this.
> > > >
> > > > +1.
> > > >
> > > > > It would be much better if this SMC interface is made truly generic,
> > > > > and wired into the arch_get_random() interface, which can be used much
> > > > > earlier.
> > > >
> > > > Wasn't there a plan to standardize a SMC call to rule them all?
> > > >
> > > > M.
> > >
> > > Could you give us a hint how to make this SMC interface more generic in
> > > addition to my approach?
> > > There is no (easy) way to get platform-independent SMC function ID,
> > > which is why we encode it into device tree, and provide a generic
> > > driver. In this way, different devices can be mapped and then get
> > > different function ID internally.
> >
> > The idea is simply to have *one* single ID that caters for all
> > implementations, just like we did for PSCI at the time. This
> > requires ARM to edict a standard, which is what I was referring
> > to above.
>
> This sounds all too familiar.
>
> This kind of thing is something that ARM have seems to shy away from
> doing - it's a point I brought up many years ago when the whole
> trustzone thing first appeared with its SMC call. Those around the
> conference table were not interested - ARM seemed to prefer every
> vendor to do off and do their own thing with the SMC interface.
Does that mean it make sense to model a sec-rng driver, and get each
vendor's SMC function id by DT node?
>
> Then OMAP came along with its SMC interfaces, and so did the pain of
> not having a standardised way to configure the L2C when Linux was
> running in the non-secure world, resulting in stuff like l2c_configure
> etc, where each and every implementation has to supply a function to
> call its platform specific SMC interfaces to configure a piece of
> hardware common across many different platforms.
>
> ARM have seemed reluctant to standardise on stuff like this, so
> unless someone pushes hard for it from inside ARM, I doubt it will
> ever happen.
>
^ permalink raw reply
* Re: [PATCH v10 07/20] dt-bindings: mtd: Document boolean NAND ECC properties
From: Miquel Raynal @ 2020-06-05 7:18 UTC (permalink / raw)
To: Rob Herring
Cc: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus, linux-mtd,
Boris Brezillon, Thomas Petazzoni, linux-arm-kernel, Mason Yang,
Julien Su, Mark Rutland, devicetree
In-Reply-To: <20200604230804.GA13821@bogus>
Hi Rob,
Rob Herring <robh@kernel.org> wrote on Thu, 4 Jun 2020 17:08:04 -0600:
> On Wed, Jun 03, 2020 at 07:57:46PM +0200, Miquel Raynal wrote:
> > Document nand-use-soft-ecc-engine and nand-no-ecc-engine properties.
> > The former is here to force software correction, the latter prevents
> > any correction to happen.
> >
> > These properties (along with nand-ecc-engine) are supposed to be more
> > accurate than the current nand-ecc-modes wich is very misleading and
> > very often people think it is mandatory while the core should be
> > relied upon to decide which correction to handle.
> >
> > nand-ecc-mode was already inacurate, but it becomes totally
> > problematic with setups where there are several hardware engines.
> >
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > ---
> > Documentation/devicetree/bindings/mtd/nand-controller.yaml | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
> > index 0969d2e6720b..a3750978ebb8 100644
> > --- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml
> > +++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
> > @@ -68,6 +68,12 @@ patternProperties:
> > 3/ The ECC engine is external, in this case the phandle should
> > reference the specific ECC engine node.
> >
> > + nand-use-soft-ecc-engine: true
> > + description: Use a software ECC engine.
>
> Humm, I'm surprised this is valid YAML. nand-use-soft-ecc-engine can't
> be both a boolean and a map (aka schema, aka dict).
>
> nand-use-soft-ecc-engine:
> type: boolean
> description: ...
>
Ok, I might have been inspired from this line in example-schema.yaml:
interrupt-controller: true
# The core checks this is a boolean, so just have to list it here to be
# valid for this binding.
Thanks for the review, I'll correct it.
Cheers,
Miquèl
^ permalink raw reply
* Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller
From: Lee Jones @ 2020-06-05 6:57 UTC (permalink / raw)
To: Michael Walle, broonie
Cc: linux-gpio, devicetree, linux-kernel, linux-hwmon, linux-pwm,
linux-watchdog, linux-arm-kernel, Linus Walleij,
Bartosz Golaszewski, Rob Herring, Jean Delvare, Guenter Roeck,
Thierry Reding, Uwe Kleine-König, Wim Van Sebroeck,
Shawn Guo, Li Yang, Thomas Gleixner, Jason Cooper, Marc Zyngier,
Mark Brown, Greg Kroah-Hartman, Andy Shevchenko
In-Reply-To: <20200604211039.12689-3-michael@walle.cc>
Mark, what do you think?
On Thu, 04 Jun 2020, Michael Walle wrote:
> Add the core support for the board management controller found on the
> SMARC-sAL28 board. It consists of the following functions:
> - watchdog
> - GPIO controller
> - PWM controller
> - fan sensor
> - interrupt controller
>
> At the moment, this controller is used on the Kontron SMARC-sAL28 board.
>
> Please note that the MFD driver is defined as bool in the Kconfig
> because the next patch will add interrupt support.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
> drivers/mfd/Kconfig | 19 ++++++++++
> drivers/mfd/Makefile | 2 ++
> drivers/mfd/sl28cpld.c | 79 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 100 insertions(+)
> create mode 100644 drivers/mfd/sl28cpld.c
>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 4f8b73d92df3..5c0cd514d197 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -2109,5 +2109,24 @@ config SGI_MFD_IOC3
> If you have an SGI Origin, Octane, or a PCI IOC3 card,
> then say Y. Otherwise say N.
>
> +config MFD_SL28CPLD
> + bool "Kontron sl28 core driver"
"Kontron SL28 Core Driver"
> + depends on I2C=y
> + depends on OF
> + select REGMAP_I2C
> + select MFD_CORE
> + help
> + This option enables support for the board management controller
> + found on the Kontron sl28 CPLD. You have to select individual
I can't find any reference to the "Kontron sl28 CPLD" online.
Is there a datasheet?
> + functions, such as watchdog, GPIO, etc, under the corresponding menus
> + in order to enable them.
> +
> + Currently supported boards are:
> +
> + Kontron SMARC-sAL28
> +
> + To compile this driver as a module, choose M here: the module will be
> + called sl28cpld.
> +
> endmenu
> endif
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index 9367a92f795a..be59fb40aa28 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -264,3 +264,5 @@ obj-$(CONFIG_MFD_ROHM_BD718XX) += rohm-bd718x7.o
> obj-$(CONFIG_MFD_STMFX) += stmfx.o
>
> obj-$(CONFIG_SGI_MFD_IOC3) += ioc3.o
> +
> +obj-$(CONFIG_MFD_SL28CPLD) += sl28cpld.o
> diff --git a/drivers/mfd/sl28cpld.c b/drivers/mfd/sl28cpld.c
> new file mode 100644
> index 000000000000..a23194bb6efa
> --- /dev/null
> +++ b/drivers/mfd/sl28cpld.c
> @@ -0,0 +1,79 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * MFD core for the sl28cpld.
Ideally this would match the Kconfig subject line.
> + * Copyright 2019 Kontron Europe GmbH
This is out of date.
> + */
> +
> +#include <linux/i2c.h>
> +#include <linux/interrupt.h>
> +#include <linux/kernel.h>
> +#include <linux/mfd/core.h>
> +#include <linux/module.h>
> +#include <linux/of_platform.h>
> +#include <linux/regmap.h>
> +
> +#define SL28CPLD_VERSION 0x03
> +#define SL28CPLD_MIN_REQ_VERSION 14
> +
> +struct sl28cpld {
> + struct device *dev;
> + struct regmap *regmap;
> +};
Why do you need this structure?
> +static const struct regmap_config sl28cpld_regmap_config = {
> + .reg_bits = 8,
> + .val_bits = 8,
> + .reg_stride = 1,
> +};
> +
> +static int sl28cpld_probe(struct i2c_client *i2c)
> +{
> + struct sl28cpld *sl28cpld;
> + struct device *dev = &i2c->dev;
> + unsigned int cpld_version;
> + int ret;
> +
> + sl28cpld = devm_kzalloc(dev, sizeof(*sl28cpld), GFP_KERNEL);
> + if (!sl28cpld)
> + return -ENOMEM;
> +
> + sl28cpld->regmap = devm_regmap_init_i2c(i2c, &sl28cpld_regmap_config);
> + if (IS_ERR(sl28cpld->regmap))
> + return PTR_ERR(sl28cpld->regmap);
This is now a shared memory allocator and not an MFD at all.
I'm clamping down on these type of drivers!
Please find a better way to accomplish this.
Potentially using "simple-mfd" and "simple-regmap".
The former already exists and does what you want. The latter doesn't
yet exist, but could solve your and lots of other contributor's
issues.
Heck maybe I'll implement it myself if this keeps happening.
> + ret = regmap_read(sl28cpld->regmap, SL28CPLD_VERSION, &cpld_version);
> + if (ret)
> + return ret;
> +
> + if (cpld_version < SL28CPLD_MIN_REQ_VERSION) {
> + dev_err(dev, "unsupported CPLD version %d\n", cpld_version);
> + return -ENODEV;
> + }
> +
> + sl28cpld->dev = dev;
> + i2c_set_clientdata(i2c, sl28cpld);
If the struct definition is in here, how do you use it elsewhere?
> + dev_info(dev, "successfully probed. CPLD version %d\n", cpld_version);
> +
> + return devm_of_platform_populate(&i2c->dev);
> +}
> +
> +static const struct of_device_id sl28cpld_of_match[] = {
> + { .compatible = "kontron,sl28cpld-r1", },
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, sl28cpld_of_match);
> +
> +static struct i2c_driver sl28cpld_driver = {
> + .probe_new = sl28cpld_probe,
> + .driver = {
> + .name = "sl28cpld",
> + .of_match_table = of_match_ptr(sl28cpld_of_match),
> + },
> +};
> +module_i2c_driver(sl28cpld_driver);
> +
> +MODULE_DESCRIPTION("sl28cpld MFD Core Driver");
> +MODULE_AUTHOR("Michael Walle <michael@walle.cc>");
> +MODULE_LICENSE("GPL");
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox