* Re: [PATCHv3 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation
From: Herbert Xu @ 2020-06-03 12:39 UTC (permalink / raw)
To: Tero Kristo; +Cc: Rob Herring, davem, Keerthy, devicetree, linux-crypto
In-Reply-To: <18c28e88-e3a7-2ec4-1d0c-f4d4163aff1c@ti.com>
On Wed, Jun 03, 2020 at 03:38:03PM +0300, Tero Kristo wrote:
>
> Also I guess this should be posted against 5.8-rc1 once it is out, as merge
> window is already open. Or are you planning to pick it up for 5.8 already?
Sorry this is going to be in the next merge window.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply
* Re: [PATCHv3 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation
From: Tero Kristo @ 2020-06-03 12:38 UTC (permalink / raw)
To: Herbert Xu; +Cc: Rob Herring, davem, Keerthy, devicetree, linux-crypto
In-Reply-To: <20200603122726.GB31719@gondor.apana.org.au>
On 03/06/2020 15:27, Herbert Xu wrote:
> On Wed, Jun 03, 2020 at 01:01:26PM +0300, Tero Kristo wrote:
>>
>> Herbert, whats the plan with the rest of the series? Do you want me to
>> re-post it? It shows deferred under crypto patchwork currently.
>
> Please repost because v3 contains just a single patch.
Also I guess this should be posted against 5.8-rc1 once it is out, as
merge window is already open. Or are you planning to pick it up for 5.8
already?
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply
* Re: [PATCHv3 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation
From: Herbert Xu @ 2020-06-03 12:27 UTC (permalink / raw)
To: Tero Kristo; +Cc: Rob Herring, davem, Keerthy, devicetree, linux-crypto
In-Reply-To: <a75b48ad-ecc0-89bc-f6a2-7149bc3fefb0@ti.com>
On Wed, Jun 03, 2020 at 01:01:26PM +0300, Tero Kristo wrote:
>
> Herbert, whats the plan with the rest of the series? Do you want me to
> re-post it? It shows deferred under crypto patchwork currently.
Please repost because v3 contains just a single patch.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply
* Re: [PATCH v3 0/4] pinctrl: bcm2835: Add support for wake-up interrupts
From: Linus Walleij @ 2020-06-03 12:17 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-kernel@vger.kernel.org, Rob Herring, Ray Jui, Scott Branden,
maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...,
Nicolas Saenz Julienne, Stefan Wahren, Geert Uytterhoeven,
Matti Vaittinen, open list:PIN CONTROL SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
In-Reply-To: <20200531001101.24945-1-f.fainelli@gmail.com>
On Sun, May 31, 2020 at 2:11 AM Florian Fainelli <f.fainelli@gmail.com> wrote:
> This patch series updates the bcm2835 pinctrl driver to support
> the BCM7211 SoC which is quite similar to 2711 (Raspberry Pi 4)
> except that it also supports wake-up interrupts.
>
> Thanks!
>
> Changes in v3:
>
> - added Rob's Acked-by for the binding patches (#1 and #2)
> - correct check on the number of GPIOs in irq_set_irq_wake (Stefan)
Applied this v3 version right in time for the merge window.
Yours,
Linus Walleij
^ permalink raw reply
* Re: [PATCH 14/15] dt-bindings: pinctrl: stm32: Add missing interrupts property
From: Linus Walleij @ 2020-06-03 12:10 UTC (permalink / raw)
To: Benjamin Gaignard
Cc: Rob Herring, Maxime Coquelin, Alexandre TORGUE, Greg KH,
open list:GPIO SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
linux-stm32, Linux ARM, linux-kernel@vger.kernel.org, linux-usb
In-Reply-To: <20200513145935.22493-15-benjamin.gaignard@st.com>
On Wed, May 13, 2020 at 5:00 PM Benjamin Gaignard
<benjamin.gaignard@st.com> wrote:
> Driver use interrupt-parent field so update the bindings to allow it.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply
* [PATCH v2] usb: dwc3: Add support for VBUS power control
From: Mike Looijmans @ 2020-06-03 12:09 UTC (permalink / raw)
To: linux-usb
Cc: devicetree, linux-kernel, gregkh, robh+dt, balbi, Mike Looijmans
Support VBUS power control using regulator framework. Enables the regulator
while the port is in host mode.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
v2: Add missing devm_regulator_get call which got lost during rebase
.../devicetree/bindings/usb/dwc3.txt | 1 +
drivers/usb/dwc3/core.c | 34 ++++++++++++++-----
drivers/usb/dwc3/core.h | 4 +++
drivers/usb/dwc3/drd.c | 6 ++--
4 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt
index 9946ff9ba735..56bc3f238e2d 100644
--- a/Documentation/devicetree/bindings/usb/dwc3.txt
+++ b/Documentation/devicetree/bindings/usb/dwc3.txt
@@ -37,6 +37,7 @@ Optional properties:
- phys: from the *Generic PHY* bindings
- phy-names: from the *Generic PHY* bindings; supported names are "usb2-phy"
or "usb3-phy".
+ - vbus-supply: Regulator handle that provides the VBUS power.
- resets: set of phandle and reset specifier pairs
- snps,usb2-lpm-disable: indicate if we don't want to enable USB2 HW LPM
- snps,usb3_lpm_capable: determines if platform is USB3 LPM capable
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index edc17155cb2b..ad341a182999 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -25,6 +25,7 @@
#include <linux/of.h>
#include <linux/acpi.h>
#include <linux/pinctrl/consumer.h>
+#include <linux/regulator/consumer.h>
#include <linux/reset.h>
#include <linux/usb/ch9.h>
@@ -112,6 +113,23 @@ void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode)
dwc->current_dr_role = mode;
}
+void dwc3_set_vbus(struct dwc3 *dwc, bool enable)
+{
+ int ret;
+
+ if (enable != dwc->vbus_reg_enabled) {
+ if (enable)
+ ret = regulator_enable(dwc->vbus_reg);
+ else
+ ret = regulator_disable(dwc->vbus_reg);
+ if (!ret)
+ dwc->vbus_reg_enabled = enable;
+ }
+
+ if (dwc->usb2_phy)
+ otg_set_vbus(dwc->usb2_phy->otg, enable);
+}
+
static void __dwc3_set_mode(struct work_struct *work)
{
struct dwc3 *dwc = work_to_dwc(work);
@@ -164,8 +182,7 @@ static void __dwc3_set_mode(struct work_struct *work)
if (ret) {
dev_err(dwc->dev, "failed to initialize host\n");
} else {
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, true);
+ dwc3_set_vbus(dwc, true);
phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_HOST);
}
@@ -173,8 +190,7 @@ static void __dwc3_set_mode(struct work_struct *work)
case DWC3_GCTL_PRTCAP_DEVICE:
dwc3_event_buffers_setup(dwc);
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, false);
+ dwc3_set_vbus(dwc, false);
phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_DEVICE);
phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_DEVICE);
@@ -1183,8 +1199,7 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
case USB_DR_MODE_PERIPHERAL:
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_DEVICE);
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, false);
+ dwc3_set_vbus(dwc, false);
phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_DEVICE);
phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_DEVICE);
@@ -1198,8 +1213,7 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
case USB_DR_MODE_HOST:
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_HOST);
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, true);
+ dwc3_set_vbus(dwc, true);
phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_HOST);
@@ -1470,6 +1484,10 @@ static int dwc3_probe(struct platform_device *pdev)
dwc3_get_properties(dwc);
+ dwc->vbus_reg = devm_regulator_get_optional(dev, "vbus");
+ if (IS_ERR(dwc->vbus_reg))
+ return PTR_ERR(dwc->vbus_reg);
+
dwc->reset = devm_reset_control_array_get(dev, true, true);
if (IS_ERR(dwc->reset))
return PTR_ERR(dwc->reset);
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 4c171a8e215f..cee2574d7bf4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -1085,6 +1085,9 @@ struct dwc3 {
bool phys_ready;
+ struct regulator *vbus_reg;
+ bool vbus_reg_enabled;
+
struct ulpi *ulpi;
bool ulpi_ready;
@@ -1397,6 +1400,7 @@ struct dwc3_gadget_ep_cmd_params {
/* prototypes */
void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
+void dwc3_set_vbus(struct dwc3 *dwc, bool enable);
void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
u32 dwc3_core_fifo_space(struct dwc3_ep *dep, u8 type);
diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c
index 7db1ffc92bbd..45fdec2d128d 100644
--- a/drivers/usb/dwc3/drd.c
+++ b/drivers/usb/dwc3/drd.c
@@ -384,8 +384,7 @@ void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus)
if (ret) {
dev_err(dwc->dev, "failed to initialize host\n");
} else {
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, true);
+ dwc3_set_vbus(dwc, true);
if (dwc->usb2_generic_phy)
phy_set_mode(dwc->usb2_generic_phy,
PHY_MODE_USB_HOST);
@@ -398,8 +397,7 @@ void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus)
dwc3_event_buffers_setup(dwc);
spin_unlock_irqrestore(&dwc->lock, flags);
- if (dwc->usb2_phy)
- otg_set_vbus(dwc->usb2_phy->otg, false);
+ dwc3_set_vbus(dwc, false);
if (dwc->usb2_generic_phy)
phy_set_mode(dwc->usb2_generic_phy,
PHY_MODE_USB_DEVICE);
--
2.17.1
^ permalink raw reply related
* Re: [PATCH] dt-bindings: clock: dac: syscon-icst: Remove unneeded unit name
From: Linus Walleij @ 2020-06-03 12:08 UTC (permalink / raw)
To: Fabio Estevam
Cc: Stephen Boyd, Rob Herring, linux-clk,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
In-Reply-To: <20200328184958.16134-1-festevam@gmail.com>
On Sat, Mar 28, 2020 at 7:50 PM Fabio Estevam <festevam@gmail.com> wrote:
> The following warnings are seen with 'make dt_binding_check':
>
> Documentation/devicetree/bindings/clock/arm,syscon-icst.example.dts:17.16-24.11: Warning (unit_address_vs_reg): /example-0/clock@00: node has a unit name, but no reg or ranges property
> Documentation/devicetree/bindings/clock/arm,syscon-icst.example.dts:17.16-24.11: Warning (unit_address_format): /example-0/clock@00: unit name should not have leading 0s
>
> Fix them by removing the unneeded clock unit name.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply
* Re: [PATCH v8 04/10] drm: bridge: dw_mipi_dsi: allow bridge daisy chaining
From: Adrian Ratiu @ 2020-06-03 12:03 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-arm-kernel, devicetree, linux-rockchip, Andrzej Hajda,
Jonas Karlman, Jernej Skrabec, Heiko Stuebner, linux-kernel,
dri-devel, linux-imx, kernel, linux-stm32
In-Reply-To: <20200602235139.GS6547@pendragon.ideasonboard.com>
On Wed, 03 Jun 2020, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> Hi Adrian,
Hi Laurent,
>
> Thank you for the patch.
>
> On Mon, Apr 27, 2020 at 11:19:46AM +0300, Adrian Ratiu wrote:
>> Up until now the assumption was that the synopsis dsi bridge
>> will directly connect to an encoder provided by the platform
>> driver, but the current practice for drivers is to leave the
>> encoder empty via the simple encoder API and add their logic to
>> their own drm_bridge. Thus we need an ablility to connect the
>> DSI bridge to another bridge provided by the platform driver,
>> so we extend the dw_mipi_dsi bind() API with a new "previous
>> bridge" arg instead of just hardcoding NULL. Cc: Laurent
>> Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
>> Adrian Ratiu <adrian.ratiu@collabora.com> --- New in v8. ---
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 ++++--
>> drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 2 +-
>> include/drm/bridge/dw_mipi_dsi.h | 5 ++++- 3
>> files changed, 9 insertions(+), 4 deletions(-)
>> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
>> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index
>> 16fd87055e7b7..140ff40fa1b62 100644 ---
>> a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++
>> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -1456,11
>> +1456,13 @@ EXPORT_SYMBOL_GPL(dw_mipi_dsi_remove);
>> /*
>> * Bind/unbind API, used from platforms based on the component
>> framework. */
>> -int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct
>> drm_encoder *encoder) +int dw_mipi_dsi_bind(struct dw_mipi_dsi
>> *dsi, + struct drm_encoder *encoder, +
>> struct drm_bridge *prev_bridge)
>> { int ret;
>> - ret = drm_bridge_attach(encoder, &dsi->bridge, NULL, 0); +
>> ret = drm_bridge_attach(encoder, &dsi->bridge, prev_bridge, 0);
>
> Please note that chaining of bridges doesn't work well if
> multiple bridges in the chain try to create a connector. This is
> why a DRM_BRIDGE_ATTACH_NO_CONNECTOR flag has been added, with a
> helper to create a connector for a chain of bridges
> (drm_bridge_connector_init()). This won't play well with the
> component framework. I would recommend using the
> of_drm_find_bridge() instead in the rockchip driver, and
> deprecating dw_mipi_dsi_bind().
>
Thank you for this insight, indeed the bridge dw_mipi_dsi_bind()
is clunky and we're making it even more so by possibly
re-inventing drm_bridge_connector_init() with it in a way which
can't work (well it does work but can lead to those nasty
multiple-encoder corner-cases you mention).
I'll address this before posting v9, to try to move to
of_drm_find_bridge() and remove dw_mipi_dsi_bind().
>> if (ret) {
>> DRM_ERROR("Failed to initialize bridge with drm\n");
>> return ret;
>> diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
>> index 3feff0c45b3f7..83ef43be78135 100644
>> --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
>> +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
>> @@ -929,7 +929,7 @@ static int dw_mipi_dsi_rockchip_bind(struct device *dev,
>> return ret;
>> }
>>
>> - ret = dw_mipi_dsi_bind(dsi->dmd, &dsi->encoder);
>> + ret = dw_mipi_dsi_bind(dsi->dmd, &dsi->encoder, NULL);
>> if (ret) {
>> DRM_DEV_ERROR(dev, "Failed to bind: %d\n", ret);
>> return ret;
>> diff --git a/include/drm/bridge/dw_mipi_dsi.h b/include/drm/bridge/dw_mipi_dsi.h
>> index b0e390b3288e8..699b3531f5b36 100644
>> --- a/include/drm/bridge/dw_mipi_dsi.h
>> +++ b/include/drm/bridge/dw_mipi_dsi.h
>> @@ -14,6 +14,7 @@
>> #include <drm/drm_modes.h>
>>
>> struct drm_display_mode;
>> +struct drm_bridge;
>> struct drm_encoder;
>> struct dw_mipi_dsi;
>> struct mipi_dsi_device;
>> @@ -62,7 +63,9 @@ struct dw_mipi_dsi *dw_mipi_dsi_probe(struct platform_device *pdev,
>> const struct dw_mipi_dsi_plat_data
>> *plat_data);
>> void dw_mipi_dsi_remove(struct dw_mipi_dsi *dsi);
>> -int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi, struct drm_encoder *encoder);
>> +int dw_mipi_dsi_bind(struct dw_mipi_dsi *dsi,
>> + struct drm_encoder *encoder,
>> + struct drm_bridge *prev_bridge);
>> void dw_mipi_dsi_unbind(struct dw_mipi_dsi *dsi);
>> void dw_mipi_dsi_set_slave(struct dw_mipi_dsi *dsi, struct dw_mipi_dsi *slave);
>>
>
> --
> Regards,
>
> Laurent Pinchart
^ permalink raw reply
* [PATCH] dt-bindings: rtc: Convert imxdi rtc to json-schema
From: Anson Huang @ 2020-06-03 11:48 UTC (permalink / raw)
To: a.zummo, alexandre.belloni, robh+dt, shawnguo, s.hauer, kernel,
festevam, stigge, linux-rtc, devicetree, linux-arm-kernel,
linux-kernel
Cc: Linux-imx
Convert the i.MXDI RTC binding to DT schema format using json-schema
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
.../devicetree/bindings/rtc/imxdi-rtc.txt | 20 -----------
.../devicetree/bindings/rtc/imxdi-rtc.yaml | 42 ++++++++++++++++++++++
2 files changed, 42 insertions(+), 20 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.txt
create mode 100644 Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt b/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt
deleted file mode 100644
index c797bc9..0000000
--- a/Documentation/devicetree/bindings/rtc/imxdi-rtc.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-* i.MX25 Real Time Clock controller
-
-Required properties:
-- compatible: should be: "fsl,imx25-rtc"
-- reg: physical base address of the controller and length of memory mapped
- region.
-- clocks: should contain the phandle for the rtc clock
-- interrupts: rtc alarm interrupt
-
-Optional properties:
-- interrupts: dryice security violation interrupt (second entry)
-
-Example:
-
-rtc@53ffc000 {
- compatible = "fsl,imx25-rtc";
- reg = <0x53ffc000 0x4000>;
- clocks = <&clks 81>;
- interrupts = <25 56>;
-};
diff --git a/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
new file mode 100644
index 0000000..6e43926
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/imxdi-rtc.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/imxdi-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX25 Real Time Clock controller
+
+maintainers:
+ - Roland Stigge <stigge@antcom.de>
+
+properties:
+ compatible:
+ const: fsl,imx25-rtc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ items:
+ - description: rtc alarm interrupt
+ - description: dryice security violation interrupt
+ minItems: 1
+ maxItems: 2
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+examples:
+ - |
+ rtc@53ffc000 {
+ compatible = "fsl,imx25-rtc";
+ reg = <0x53ffc000 0x4000>;
+ clocks = <&clks 81>;
+ interrupts = <25>, <56>;
+ };
--
2.7.4
^ permalink raw reply related
* Re: [PATCH V1 1/2] mmc: sdhci-msm: Add interconnect bandwidth scaling support
From: Sibi Sankar @ 2020-06-03 11:52 UTC (permalink / raw)
To: Pradeep P V K
Cc: bjorn.andersson, adrian.hunter, robh+dt, ulf.hansson, vbadigan,
sboyd, georgi.djakov, mka, linux-mmc, linux-kernel, linux-arm-msm,
devicetree, linux-mmc-owner, rnayak, matthias,
linux-arm-msm-owner
In-Reply-To: <1591175376-2374-2-git-send-email-ppvk@codeaurora.org>
Hey Pradeep,
Thanks for the patch.
On 2020-06-03 14:39, 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 | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-msm.c
> b/drivers/mmc/host/sdhci-msm.c
> index b277dd7..bf95484 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"
> @@ -1999,6 +2000,7 @@ static int sdhci_msm_probe(struct platform_device
> *pdev)
> struct sdhci_pltfm_host *pltfm_host;
> struct sdhci_msm_host *msm_host;
> struct clk *clk;
> + struct icc_path *sdhc_path;
> int ret;
> u16 host_version, core_minor;
> u32 core_version, config;
> @@ -2070,6 +2072,20 @@ 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.
> + */
> + sdhc_path = of_icc_get(&pdev->dev, NULL);
> + ret = PTR_ERR_OR_ZERO(sdhc_path);
> + if (ret) {
> + if (ret == -EPROBE_DEFER)
> + dev_info(&pdev->dev, "defer icc path: %d\n", ret);
> + else
> + dev_err(&pdev->dev, "failed to get icc path:%d\n", ret);
> + goto bus_clk_disable;
> + }
> + icc_put(sdhc_path);
ret = dev_pm_opp_of_find_icc_paths(&pdev->dev, NULL);
since there are multiple paths
described in the bindings you
should use ^^ instead and you
can drop temporary path as well.
> +
> 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);
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
^ permalink raw reply
* Re: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
From: Matthias Schiffer @ 2020-06-03 11:50 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: <VE1PR04MB663883F25395B3ECEC66384489880@VE1PR04MB6638.eurprd04.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 3905 bytes --]
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.
Kind regards,
Matthias
[-- Attachment #2: dma.log --]
[-- Type: text/x-log, Size: 34255 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 Wed Jun 3 11:14:56 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.000008] 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.001637] Console: colour dummy device 80x30
[ 0.001676] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001700] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001722] ... MAX_LOCK_DEPTH: 48
[ 0.001743] ... MAX_LOCKDEP_KEYS: 8192
[ 0.001764] ... CLASSHASH_SIZE: 4096
[ 0.001786] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.001807] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.001828] ... CHAINHASH_SIZE: 32768
[ 0.001848] memory used by lock dependency info: 3997 kB
[ 0.001869] memory used for stack traces: 2112 kB
[ 0.001891] per task-struct memory footprint: 1536 bytes
[ 0.001965] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.002000] pid_max: default: 32768 minimum: 301
[ 0.002538] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002588] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.005116] CPU: Testing write buffer coherency: ok
[ 0.005199] CPU0: Spectre v2: using BPIALL workaround
[ 0.006482] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.059670] Setting up static identity map for 0x10100000 - 0x10100060
[ 0.079540] rcu: Hierarchical SRCU implementation.
[ 0.129545] smp: Bringing up secondary CPUs ...
[ 0.209995] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.210010] CPU1: Spectre v2: using BPIALL workaround
[ 0.289894] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.289908] CPU2: Spectre v2: using BPIALL workaround
[ 0.369892] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.369907] CPU3: Spectre v2: using BPIALL workaround
[ 0.370533] smp: Brought up 1 node, 4 CPUs
[ 0.370565] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.370593] CPU: All CPU(s) started in SVC mode.
[ 0.372563] devtmpfs: initialized
[ 0.411077] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.413214] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.413275] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.421595] pinctrl core: initialized pinctrl subsystem
[ 0.426328] NET: Registered protocol family 16
[ 0.433888] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.437697] cpuidle: using governor ladder
[ 0.437979] CPU identified as i.MX6Q, silicon rev 1.5
[ 0.471307] vdd1p1: supplied by regulator-dummy
[ 0.473459] vdd3p0: supplied by regulator-dummy
[ 0.475362] vdd2p5: supplied by regulator-dummy
[ 0.477218] vddarm: supplied by regulator-dummy
[ 0.479284] vddpu: supplied by regulator-dummy
[ 0.481213] vddsoc: supplied by regulator-dummy
[ 0.520384] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.520451] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.523614] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.641569] mxs-dma 110000.dma-apbh: initialized
[ 0.650195] vgaarb: loaded
[ 0.651759] SCSI subsystem initialized
[ 0.652513] libata version 3.00 loaded.
[ 0.653576] usbcore: registered new interface driver usbfs
[ 0.653839] usbcore: registered new interface driver hub
[ 0.654185] usbcore: registered new device driver usb
[ 0.654675] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.655594] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[ 0.662480] i2c i2c-0: IMX I2C adapter registered
[ 0.663519] pps_core: LinuxPPS API ver. 1 registered
[ 0.663553] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.663633] PTP clock support registered
[ 0.669341] clocksource: Switched to clocksource mxc_timer1
[ 1.731456] thermal_sys: Registered thermal governor 'fair_share'
[ 1.731471] thermal_sys: Registered thermal governor 'step_wise'
[ 1.731511] thermal_sys: Registered thermal governor 'user_space'
[ 1.732403] NET: Registered protocol family 2
[ 1.734356] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[ 1.734496] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 1.734731] TCP bind hash table entries: 8192 (order: 6, 294912 bytes, linear)
[ 1.735980] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.736595] UDP hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.736831] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.737590] NET: Registered protocol family 1
[ 1.740117] RPC: Registered named UNIX socket transport module.
[ 1.740181] RPC: Registered udp transport module.
[ 1.740210] RPC: Registered tcp transport module.
[ 1.740236] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.751620] PCI: CLS 0 bytes, default 64
[ 1.752717] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.753573] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.759505] Initialise system trusted keyrings
[ 1.760259] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 1.783839] NFS: Registering the id_resolver key type
[ 1.784003] Key type id_resolver registered
[ 1.784071] Key type id_legacy registered
[ 1.784133] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.784940] fuse: init (API version 7.31)
[ 1.787110] NILFS version 2 loaded
[ 1.831059] Key type asymmetric registered
[ 1.831173] Asymmetric key parser 'x509' registered
[ 1.831346] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.831432] io scheduler mq-deadline registered
[ 1.831465] io scheduler kyber registered
[ 1.839429] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[ 1.839650] imx6q-pcie 1ffc000.pcie: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 1.839837] imx6q-pcie 1ffc000.pcie: MEM 0x01000000..0x01efffff -> 0x01000000
[ 1.850946] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[ 1.851908] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[ 1.851943] pfuze100-regulator 0-0008: pfuze100 found.
[ 1.882760] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
[ 2.669689] printk: console [ttymxc1] enabled
[ 2.676079] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 67, base_baud = 5000000) is a IMX
[ 2.686581] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 68, base_baud = 5000000) is a IMX
[ 2.697034] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 69, base_baud = 5000000) is a IMX
[ 2.730520] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops)
[ 2.736883] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops)
[ 2.743284] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops)
[ 2.748990] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[ 2.756158] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[ 2.762471] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[ 2.768608] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[ 2.777809] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[ 2.790180] imx-ipuv3 2400000.ipu: IPUv3H probed
[ 2.798262] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.805012] [drm] No driver support for vblank timestamp query.
[ 2.812143] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[ 2.820052] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[ 2.827960] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[ 2.835872] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[ 2.844823] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 2.853135] imx-ipuv3 2800000.ipu: IPUv3H probed
[ 2.903242] loop: module loaded
[ 2.908961] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.918060] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.927890] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 2.936036] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 2.944137] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 2.952406] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 2.959373] imx6q-pcie 1ffc000.pcie: Phy link never came up
[ 2.960434] ahci-imx 2200000.sata: 2200000.sata supply ahci not found, using dummy regulator
[ 2.969739] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 2.974757] ahci-imx 2200000.sata: 2200000.sata supply phy not found, using dummy regulator
[ 2.980503] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.980527] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 2.989621] ahci-imx 2200000.sata: 2200000.sata supply target not found, using dummy regulator
[ 2.994457] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 3.004372] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 3.009553] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.016256] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 3.023358] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 3.029328] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 3.038191] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 3.060649] pci 0000:00:00.0: Limiting cfg_size to 512
[ 3.064643] scsi host0: ahci-imx
[ 3.066123] pci 0000:00:00.0: supports D1
[ 3.070725] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 72
[ 3.073170] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.083689] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.089605] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 3.093078] PCI: bus0: Fast back to back transfers disabled
[ 3.094697] libphy: Fixed MDIO Bus: probed
[ 3.103260] PCI: bus1: Fast back to back transfers enabled
[ 3.104606] CAN device driver interface
[ 3.108844] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 3.113402] flexcan 2090000.flexcan: 2090000.flexcan supply xceiver not found, using dummy regulator
[ 3.119579] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[ 3.131978] flexcan 2094000.flexcan: 2094000.flexcan supply xceiver not found, using dummy regulator
[ 3.136184] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.152528] pcieport 0000:00:00.0: PME: Signaling with IRQ 305
[ 3.158817] pps pps0: new PPS source ptp0
[ 3.160067] pcieport 0000:00:00.0: AER: enabled with IRQ 305
[ 3.171233] libphy: fec_enet_mii_bus: probed
[ 3.180357] fec 2188000.ethernet eth0: registered PHC device 0
[ 3.187018] usbcore: registered new interface driver cdc_ether
[ 3.193126] usbcore: registered new interface driver smsc95xx
[ 3.198921] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.205600] ehci-pci: EHCI PCI platform driver
[ 3.215616] imx_usb 2184000.usb: No over current polarity defined
[ 3.226333] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 3.231739] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 3.269404] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3.276501] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.284966] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.292293] usb usb1: Product: EHCI Host Controller
[ 3.297205] usb usb1: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.302693] usb usb1: SerialNumber: ci_hdrc.0
[ 3.310269] hub 1-0:1.0: USB hub found
[ 3.314340] hub 1-0:1.0: 1 port detected
[ 3.322494] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 3.335438] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 3.340496] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 3.379392] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 3.385909] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.394313] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.401640] usb usb2: Product: EHCI Host Controller
[ 3.406552] usb usb2: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.411856] ata1: SATA link down (SStatus 0 SControl 300)
[ 3.412039] usb usb2: SerialNumber: ci_hdrc.1
[ 3.417608] ahci-imx 2200000.sata: no device found, disabling link.
[ 3.423741] hub 2-0:1.0: USB hub found
[ 3.428150] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[ 3.434978] hub 2-0:1.0: 1 port detected
[ 3.447810] mousedev: PS/2 mouse device common for all mice
[ 3.462702] rtc-ds1307 0-0068: registered as rtc0
[ 3.469592] i2c /dev entries driver
[ 3.474598] IR NEC protocol handler initialized
[ 3.479392] IR RC5(x/sz) protocol handler initialized
[ 3.484480] IR RC6 protocol handler initialized
[ 3.489042] IR JVC protocol handler initialized
[ 3.493679] IR Sony protocol handler initialized
[ 3.498329] IR SANYO protocol handler initialized
[ 3.503123] IR Sharp protocol handler initialized
[ 3.507859] IR MCE Keyboard/mouse protocol handler initialized
[ 3.513792] IR XMP protocol handler initialized
[ 3.525088] lm75 0-0048: hwmon0: sensor 'lm75'
[ 3.532050] lm75 0-0049: hwmon1: sensor 'lm75'
[ 3.541609] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 3.550983] sdhci: Secure Digital Host Controller Interface driver
[ 3.557200] sdhci: Copyright(c) Pierre Ossman
[ 3.561645] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.569245] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[ 3.574584] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[ 3.615109] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 3.663861] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[ 3.675749] mmc1: new high speed SD card at address 1234
[ 3.684804] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.686753] mmcblk1: mmc1:1234 SA02G 1.84 GiB
[ 3.695954] caam 2100000.caam: Entropy delay = 3200
[ 3.726346] mmcblk1: p1 p2
[ 3.759484] mmc0: new DDR MMC card at address 0001
[ 3.761722] caam 2100000.caam: Instantiated RNG4 SH0
[ 3.766564] mmcblk0: mmc0:0001 MMC04G 3.52 GiB
[ 3.774965] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[ 3.782020] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[ 3.788801] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (248:0)
[ 3.809508] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[ 3.822488] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.827505] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 3.834033] caam 2100000.caam: job rings = 2, qi = 0
[ 3.893947] caam algorithms registered in /proc/crypto
[ 3.914486] caam_jr 2101000.jr0: registering rng-caam
[ 3.921677] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.932331] NET: Registered protocol family 10
[ 3.951379] Segment Routing with IPv6
[ 3.955215] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.964456] NET: Registered protocol family 17
[ 3.968981] can: controller area network core (rev 20170425 abi 9)
[ 3.975525] NET: Registered protocol family 29
[ 3.980171] can: raw protocol (rev 20170425)
[ 3.984577] can: broadcast manager protocol (rev 20170425 t)
[ 3.990353] can: netlink gateway (rev 20190810) max_hops=1
[ 3.996508] Key type dns_resolver registered
[ 4.014442] Registering SWP/SWPB emulation handler
[ 4.020962] Loading compiled-in X.509 certificates
[ 4.027971] Key type ._fscrypt registered
[ 4.033037] Key type .fscrypt registered
[ 4.041073] usb 2-1: New USB device found, idVendor=0424, idProduct=2517, bcdDevice= 0.02
[ 4.049486] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.059458] hub 2-1:1.0: USB hub found
[ 4.063530] hub 2-1:1.0: 7 ports detected
[ 4.190411] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.192458] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.196045] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 4.207779] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.209719] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.211635] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.213461] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.217231] random: fast init done
[ 4.221458] rtc-ds1307 0-0068: setting system clock to 2000-01-01T00:01:44 UTC (946684904)
[ 4.230839] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.251771] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.259615] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 4.268548] cfg80211: failed to load regulatory.db
[ 4.299097] EXT4-fs (mmcblk1p2): INFO: recovery required on readonly filesystem
[ 4.306662] EXT4-fs (mmcblk1p2): write access will be enabled during recovery
[ 4.399421] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[ 4.581061] usb 2-1.1: New USB device found, idVendor=0424, idProduct=9e00, bcdDevice= 3.00
[ 4.589791] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.601185] smsc95xx v1.0.6
[ 4.742162] smsc95xx 2-1.1:1.0 eth1: register 'smsc95xx' at usb-ci_hdrc.1-1.1, smsc95xx USB 2.0 Ethernet, 76:e5:42:55:c2:31
[ 4.758029] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.762043] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 5.707941] EXT4-fs (mmcblk1p2): recovery complete
[ 5.833929] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 5.842879] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 5.855145] devtmpfs: mounted
[ 5.880843] Freeing unused kernel memory: 1024K
[ 5.886304] Run /sbin/init as init process
[ 6.439183] systemd[1]: System time before build time, advancing clock.
[ 6.534977] 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)
[ 6.561863] systemd[1]: Detected architecture arm.
[ 6.633882] systemd[1]: Set hostname to <tqma6q-mba6x>.
[ 7.484040] 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.850932] 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.899201] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.910873] systemd[1]: Created slice system-getty.slice.
[ 7.950702] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.961539] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 8.000090] random: systemd: uninitialized urandom read (16 bytes read)
[ 8.010535] systemd[1]: Created slice User and Session Slice.
[ 8.052505] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 8.092382] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 8.977008] random: crng init done
[ 8.980558] random: 7 urandom warning(s) missed due to ratelimiting
[ 9.504982] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 9.517861] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
[ 9.955588] systemd[296]: systemd-udevd.service: ProtectHostname=yes is configured, but the kernel does not support UTS namespaces, ignoring namespace setup.
[ 10.490241] systemd-journald[278]: Received client request to flush runtime journal.
[ 12.246258] input: gpio-beeper as /devices/soc0/gpio-beeper/input/input0
[ 12.257435] input: gpio-buttons as /devices/soc0/gpio-buttons/input/input1
[ 12.295253] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.297356] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.306997] mc: Linux media interface: v0.10
[ 12.326806] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.330068] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.425369] videodev: Linux video capture interface: v2.00
[ 12.575588] imx_media_common: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.590078] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.594493] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.632029] imx6_media: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.669711] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.671959] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.828772] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 12.856939] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.859008] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.904014] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 12.906008] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 12.909950] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 12.917798] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[ 13.001771] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[ 13.254639] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.256768] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.259092] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 13.561498] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.562322] 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)
[ 13.572649] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.585755] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.587007] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.620981] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[ 13.654748] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
[ 13.713210] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
[ 13.731003] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0
[ 13.732313] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.736105] imx-media: ipu1_csi0:1 -> ipu1_vdic:0
[ 13.736492] coda 2040000.vpu: Firmware code revision: 570363
[ 13.738275] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.740542] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 13.779426] coda 2040000.vpu: Initialized CODA960.
[ 13.779569] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0
[ 13.784278] coda 2040000.vpu: Firmware version: 3.1.1
[ 13.789235] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0
[ 13.821066] coda 2040000.vpu: encoder registered as video3
[ 13.839704] coda 2040000.vpu: decoder registered as video4
[ 13.869408] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0
[ 13.874770] imx-media: subdev ipu1_csi0 bound
[ 13.908819] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video5
[ 13.915439] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0
[ 13.934020] imx-media: ipu1_csi1:1 -> ipu1_vdic:0
[ 13.969412] imx-media: subdev ipu1_csi1 bound
[ 13.980431] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video6
[ 14.009598] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as /dev/video7
[ 14.039600] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as /dev/video8
[ 14.046609] imx-media: ipu2_csi0:1 -> ipu2_ic_prp:0
[ 14.068880] imx-media: ipu2_csi0:1 -> ipu2_vdic:0
[ 14.089544] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0
[ 14.094513] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0
[ 14.119717] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0
[ 14.125002] imx-media: subdev ipu2_csi0 bound
[ 14.161085] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video9
[ 14.167331] imx-media: ipu2_csi1:1 -> ipu2_ic_prp:0
[ 14.185161] imx-media: ipu2_csi1:1 -> ipu2_vdic:0
[ 14.206001] imx-media: subdev ipu2_csi1 bound
[ 14.430499] spi spi0.0: spi_imx_setup: mode 0, 8 bpw, 50000000 hz
[ 14.433744] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.438794] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.439074] spi-nor spi0.0: n25q128a13
[ 14.456688] spi-nor spi0.0: spi_nor_info_init_params: 03
[ 14.483944] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.484980] imx-sdma 20ec000.sdma: loaded firmware 3.5
[ 14.509935] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.510436] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.510535] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.510700] spi-nor spi0.0: Header: 53
[ 14.514506] spi-nor spi0.0: Header: 46
[ 14.518310] spi-nor spi0.0: Header: 44
[ 14.549558] spi-nor spi0.0: Header: 50
[ 14.553372] spi-nor spi0.0: Header: 05
[ 14.557161] spi-nor spi0.0: Header: 01
[ 14.575109] spi-nor spi0.0: Header: 01
[ 14.589472] spi-nor spi0.0: Header: ff
[ 14.593459] spi-nor spi0.0: Header: 00
[ 14.597269] spi-nor spi0.0: Header: 05
[ 14.601153] spi-nor spi0.0: Header: 01
[ 14.604972] spi-nor spi0.0: Header: 10
[ 14.608791] spi-nor spi0.0: Header: 30
[ 14.679359] spi-nor spi0.0: Header: 00
[ 14.683279] spi-nor spi0.0: Header: 00
[ 14.687066] spi-nor spi0.0: Header: ff
[ 14.710045] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.710235] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.710330] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.710418] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.710557] spi-nor spi0.0: bfpt addr=30 len=40
[ 14.715233] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.715336] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.715425] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.715512] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.716167] spi-nor spi0.0: DMA transfer: 64
[ 14.716864] spi-nor spi0.0: bfpt: e5
[ 14.722770] spi-nor spi0.0: bfpt: 20
[ 14.727480] spi-nor spi0.0: bfpt: f1
[ 14.749386] spi-nor spi0.0: bfpt: ff
[ 14.753001] spi-nor spi0.0: bfpt: ff
[ 14.756614] spi-nor spi0.0: bfpt: ff
[ 14.779416] spi-nor spi0.0: bfpt: ff
[ 14.783137] spi-nor spi0.0: bfpt: 07
[ 14.786752] spi-nor spi0.0: bfpt: 29
[ 14.790452] spi-nor spi0.0: bfpt: eb
[ 14.794066] spi-nor spi0.0: bfpt: 27
[ 14.797734] spi-nor spi0.0: bfpt: 6b
[ 14.797763] spi-nor spi0.0: bfpt: 27
[ 14.797779] spi-nor spi0.0: bfpt: 3b
[ 14.797794] spi-nor spi0.0: bfpt: 27
[ 14.797808] spi-nor spi0.0: bfpt: bb
[ 14.797823] spi-nor spi0.0: bfpt: ff
[ 14.797838] spi-nor spi0.0: bfpt: ff
[ 14.797851] spi-nor spi0.0: bfpt: ff
[ 14.797865] spi-nor spi0.0: bfpt: ff
[ 14.797879] spi-nor spi0.0: bfpt: ff
[ 14.797893] spi-nor spi0.0: bfpt: ff
[ 14.797907] spi-nor spi0.0: bfpt: 27
[ 14.797921] spi-nor spi0.0: bfpt: bb
[ 14.797935] spi-nor spi0.0: bfpt: ff
[ 14.797949] spi-nor spi0.0: bfpt: ff
[ 14.797963] spi-nor spi0.0: bfpt: 29
[ 14.797976] spi-nor spi0.0: bfpt: eb
[ 14.797990] spi-nor spi0.0: bfpt: 0c
[ 14.798004] spi-nor spi0.0: bfpt: 20
[ 14.798018] spi-nor spi0.0: bfpt: 10
[ 14.798032] spi-nor spi0.0: bfpt: d8
[ 14.798046] spi-nor spi0.0: bfpt: 00
[ 14.798060] spi-nor spi0.0: bfpt: 00
[ 14.798074] spi-nor spi0.0: bfpt: 00
[ 14.798088] spi-nor spi0.0: bfpt: 00
[ 14.798102] spi-nor spi0.0: bfpt: 35
[ 14.798116] spi-nor spi0.0: bfpt: 8a
[ 14.798129] spi-nor spi0.0: bfpt: 01
[ 14.798144] spi-nor spi0.0: bfpt: 00
[ 14.798157] spi-nor spi0.0: bfpt: 82
[ 14.798171] spi-nor spi0.0: bfpt: a3
[ 14.798185] spi-nor spi0.0: bfpt: 03
[ 14.798199] spi-nor spi0.0: bfpt: cb
[ 14.798213] spi-nor spi0.0: bfpt: ac
[ 14.798226] spi-nor spi0.0: bfpt: c1
[ 14.798240] spi-nor spi0.0: bfpt: 04
[ 14.798254] spi-nor spi0.0: bfpt: 2e
[ 14.798267] spi-nor spi0.0: bfpt: 7a
[ 14.798281] spi-nor spi0.0: bfpt: 75
[ 14.798295] spi-nor spi0.0: bfpt: 7a
[ 14.798309] spi-nor spi0.0: bfpt: 75
[ 14.798323] spi-nor spi0.0: bfpt: fb
[ 14.798336] spi-nor spi0.0: bfpt: 00
[ 14.798350] spi-nor spi0.0: bfpt: 00
[ 14.798364] spi-nor spi0.0: bfpt: 80
[ 14.798377] spi-nor spi0.0: bfpt: 08
[ 14.798391] spi-nor spi0.0: bfpt: 0f
[ 14.798405] spi-nor spi0.0: bfpt: 82
[ 14.798419] spi-nor spi0.0: bfpt: ff
[ 14.798432] spi-nor spi0.0: bfpt: 81
[ 14.798447] spi-nor spi0.0: bfpt: 3d
[ 14.798460] spi-nor spi0.0: bfpt: 00
[ 14.798474] spi-nor spi0.0: bfpt: 00
[ 14.798492] spi-nor spi0.0: spi_nor_parse_bfpt: 03
[ 14.798510] spi-nor spi0.0: spi_nor_parse_bfpt: 0c
[ 14.798527] spi-nor spi0.0: param headers: 03
[ 14.798541] spi-nor spi0.0: param headers: 00
[ 14.798556] spi-nor spi0.0: param headers: 01
[ 14.798570] spi-nor spi0.0: param headers: 02
[ 14.798584] spi-nor spi0.0: param headers: 00
[ 14.798597] spi-nor spi0.0: param headers: 01
[ 14.798611] spi-nor spi0.0: param headers: 00
[ 14.798625] spi-nor spi0.0: param headers: ff
[ 14.798665] spi-nor spi0.0: has uniform erase
[ 14.798681] spi-nor spi0.0: spi_nor_select_erase: 08
[ 14.798700] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[ 14.838235] spi spi0.1: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 14.870741] spi_imx 2008000.spi: probed
[ 14.899712] spi spi4.0: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 14.910546] spi_imx 2018000.spi: probed
[ 14.911988] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 15.139628] imx-tlv320aic32x4 sound: tlv320aic32x4-hifi <-> 2028000.ssi mapping ok
[ 15.527854] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 16.570506] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 17.318990] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 17.326952] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[-- Attachment #3: fallback.log --]
[-- Type: text/x-log, Size: 33164 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 Wed Jun 3 11:14:56 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.000008] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.000038] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.001627] Console: colour dummy device 80x30
[ 0.001665] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001689] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001710] ... 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.001837] memory used by lock dependency info: 3997 kB
[ 0.001857] memory used for stack traces: 2112 kB
[ 0.001879] per task-struct memory footprint: 1536 bytes
[ 0.001954] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.001990] pid_max: default: 32768 minimum: 301
[ 0.002529] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002577] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.005100] CPU: Testing write buffer coherency: ok
[ 0.005188] CPU0: Spectre v2: using BPIALL workaround
[ 0.006476] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.059676] Setting up static identity map for 0x10100000 - 0x10100060
[ 0.079538] rcu: Hierarchical SRCU implementation.
[ 0.129545] smp: Bringing up secondary CPUs ...
[ 0.209998] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.210013] CPU1: Spectre v2: using BPIALL workaround
[ 0.289893] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.289909] CPU2: Spectre v2: using BPIALL workaround
[ 0.369890] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.369906] CPU3: Spectre v2: using BPIALL workaround
[ 0.370530] smp: Brought up 1 node, 4 CPUs
[ 0.370561] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.370588] CPU: All CPU(s) started in SVC mode.
[ 0.372564] devtmpfs: initialized
[ 0.410896] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.413030] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.413092] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.421441] pinctrl core: initialized pinctrl subsystem
[ 0.426181] NET: Registered protocol family 16
[ 0.433762] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.437582] cpuidle: using governor ladder
[ 0.437862] CPU identified as i.MX6Q, silicon rev 1.5
[ 0.471153] vdd1p1: supplied by regulator-dummy
[ 0.473321] vdd3p0: supplied by regulator-dummy
[ 0.475224] vdd2p5: supplied by regulator-dummy
[ 0.477087] vddarm: supplied by regulator-dummy
[ 0.479142] vddpu: supplied by regulator-dummy
[ 0.481062] vddsoc: supplied by regulator-dummy
[ 0.520323] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.520388] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.523550] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.648450] mxs-dma 110000.dma-apbh: initialized
[ 0.657443] vgaarb: loaded
[ 0.658868] SCSI subsystem initialized
[ 0.659892] libata version 3.00 loaded.
[ 0.660905] usbcore: registered new interface driver usbfs
[ 0.661139] usbcore: registered new interface driver hub
[ 0.661508] usbcore: registered new device driver usb
[ 0.662004] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.662868] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[ 0.669828] i2c i2c-0: IMX I2C adapter registered
[ 0.670672] pps_core: LinuxPPS API ver. 1 registered
[ 0.670705] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.670785] PTP clock support registered
[ 0.684612] clocksource: Switched to clocksource mxc_timer1
[ 1.749186] thermal_sys: Registered thermal governor 'fair_share'
[ 1.749200] thermal_sys: Registered thermal governor 'step_wise'
[ 1.749238] thermal_sys: Registered thermal governor 'user_space'
[ 1.750134] NET: Registered protocol family 2
[ 1.752014] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[ 1.752157] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 1.752390] TCP bind hash table entries: 8192 (order: 6, 294912 bytes, linear)
[ 1.753636] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.754236] UDP hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.754477] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.755420] NET: Registered protocol family 1
[ 1.757776] RPC: Registered named UNIX socket transport module.
[ 1.757840] RPC: Registered udp transport module.
[ 1.757869] RPC: Registered tcp transport module.
[ 1.757895] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.769238] PCI: CLS 0 bytes, default 64
[ 1.770213] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.771085] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.777023] Initialise system trusted keyrings
[ 1.777727] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 1.801335] NFS: Registering the id_resolver key type
[ 1.801491] Key type id_resolver registered
[ 1.801559] Key type id_legacy registered
[ 1.801620] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.802401] fuse: init (API version 7.31)
[ 1.804515] NILFS version 2 loaded
[ 1.847844] Key type asymmetric registered
[ 1.847964] Asymmetric key parser 'x509' registered
[ 1.848141] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.848231] io scheduler mq-deadline registered
[ 1.848264] io scheduler kyber registered
[ 1.856264] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[ 1.856481] imx6q-pcie 1ffc000.pcie: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 1.856673] imx6q-pcie 1ffc000.pcie: MEM 0x01000000..0x01efffff -> 0x01000000
[ 1.867830] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[ 1.868815] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[ 1.868848] pfuze100-regulator 0-0008: pfuze100 found.
[ 1.902990] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
[ 2.690418] printk: console [ttymxc1] enabled
[ 2.696881] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 67, base_baud = 5000000) is a IMX
[ 2.707411] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 68, base_baud = 5000000) is a IMX
[ 2.717922] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 69, base_baud = 5000000) is a IMX
[ 2.751447] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops)
[ 2.757898] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops)
[ 2.764265] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops)
[ 2.770054] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[ 2.777234] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[ 2.783499] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[ 2.789718] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[ 2.798852] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[ 2.811155] imx-ipuv3 2400000.ipu: IPUv3H probed
[ 2.819258] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.826022] [drm] No driver support for vblank timestamp query.
[ 2.833058] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[ 2.840981] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[ 2.848989] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[ 2.856919] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[ 2.866114] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 2.874294] imx-ipuv3 2800000.ipu: IPUv3H probed
[ 2.924219] loop: module loaded
[ 2.930036] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.939241] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.949052] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 2.957084] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 2.965190] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 2.973404] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 2.981446] ahci-imx 2200000.sata: 2200000.sata supply ahci not found, using dummy regulator
[ 2.984638] imx6q-pcie 1ffc000.pcie: Phy link never came up
[ 2.990418] ahci-imx 2200000.sata: 2200000.sata supply phy not found, using dummy regulator
[ 2.999570] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 3.004871] ahci-imx 2200000.sata: 2200000.sata supply target not found, using dummy regulator
[ 3.010435] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.022842] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 3.024522] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 3.031601] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 3.037746] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 3.046606] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 3.063094] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.066852] scsi host0: ahci-imx
[ 3.069297] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 3.073959] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 72
[ 3.078785] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 3.089243] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.093556] pci 0000:00:00.0: Limiting cfg_size to 512
[ 3.094869] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 3.099065] pci 0000:00:00.0: supports D1
[ 3.100886] libphy: Fixed MDIO Bus: probed
[ 3.103111] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.109042] CAN device driver interface
[ 3.119205] PCI: bus0: Fast back to back transfers disabled
[ 3.119729] flexcan 2090000.flexcan: 2090000.flexcan supply xceiver not found, using dummy regulator
[ 3.129315] PCI: bus1: Fast back to back transfers enabled
[ 3.137292] flexcan 2094000.flexcan: 2094000.flexcan supply xceiver not found, using dummy regulator
[ 3.139708] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 3.155673] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[ 3.157913] pps pps0: new PPS source ptp0
[ 3.162940] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.174396] libphy: fec_enet_mii_bus: probed
[ 3.175070] pcieport 0000:00:00.0: PME: Signaling with IRQ 306
[ 3.186110] pcieport 0000:00:00.0: AER: enabled with IRQ 306
[ 3.194299] fec 2188000.ethernet eth0: registered PHC device 0
[ 3.201060] usbcore: registered new interface driver cdc_ether
[ 3.207280] usbcore: registered new interface driver smsc95xx
[ 3.213078] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.219779] ehci-pci: EHCI PCI platform driver
[ 3.229820] imx_usb 2184000.usb: No over current polarity defined
[ 3.240623] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 3.246062] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 3.274682] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3.281776] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.290256] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.297603] usb usb1: Product: EHCI Host Controller
[ 3.302516] usb usb1: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.308009] usb usb1: SerialNumber: ci_hdrc.0
[ 3.315501] hub 1-0:1.0: USB hub found
[ 3.319564] hub 1-0:1.0: 1 port detected
[ 3.327497] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 3.340408] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 3.345476] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 3.374666] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 3.381179] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.389597] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.396928] usb usb2: Product: EHCI Host Controller
[ 3.401840] usb usb2: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.407331] usb usb2: SerialNumber: ci_hdrc.1
[ 3.413602] hub 2-0:1.0: USB hub found
[ 3.417637] hub 2-0:1.0: 1 port detected
[ 3.426579] mousedev: PS/2 mouse device common for all mice
[ 3.427092] ata1: SATA link down (SStatus 0 SControl 300)
[ 3.437909] ahci-imx 2200000.sata: no device found, disabling link.
[ 3.439873] rtc-ds1307 0-0068: SET TIME!
[ 3.444206] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[ 3.453040] rtc-ds1307 0-0068: registered as rtc0
[ 3.462224] i2c /dev entries driver
[ 3.467323] IR NEC protocol handler initialized
[ 3.471896] IR RC5(x/sz) protocol handler initialized
[ 3.477061] IR RC6 protocol handler initialized
[ 3.481626] IR JVC protocol handler initialized
[ 3.486257] IR Sony protocol handler initialized
[ 3.490908] IR SANYO protocol handler initialized
[ 3.495701] IR Sharp protocol handler initialized
[ 3.500437] IR MCE Keyboard/mouse protocol handler initialized
[ 3.506380] IR XMP protocol handler initialized
[ 3.517639] lm75 0-0048: hwmon0: sensor 'lm75'
[ 3.524506] lm75 0-0049: hwmon1: sensor 'lm75'
[ 3.534892] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 3.543361] sdhci: Secure Digital Host Controller Interface driver
[ 3.549645] sdhci: Copyright(c) Pierre Ossman
[ 3.554034] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.561729] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[ 3.567078] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[ 3.609890] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 3.658834] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[ 3.664413] mmc1: new high speed SD card at address 1234
[ 3.681829] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.682852] mmcblk1: mmc1:1234 SA02G 1.84 GiB
[ 3.693026] caam 2100000.caam: Entropy delay = 3200
[ 3.698041] caam 2100000.caam: Instantiated RNG4 SH0
[ 3.713163] mmcblk1: p1 p2
[ 3.758809] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.759812] mmc0: new DDR MMC card at address 0001
[ 3.763816] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 3.770984] mmcblk0: mmc0:0001 MMC04G 3.52 GiB
[ 3.775259] caam 2100000.caam: job rings = 2, qi = 0
[ 3.780796] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[ 3.790915] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[ 3.798971] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[ 3.806146] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (248:0)
[ 3.866261] caam algorithms registered in /proc/crypto
[ 3.886189] caam_jr 2101000.jr0: registering rng-caam
[ 3.893375] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.904241] NET: Registered protocol family 10
[ 3.913193] Segment Routing with IPv6
[ 3.918440] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.927153] NET: Registered protocol family 17
[ 3.931677] can: controller area network core (rev 20170425 abi 9)
[ 3.938187] NET: Registered protocol family 29
[ 3.942677] can: raw protocol (rev 20170425)
[ 3.947714] can: broadcast manager protocol (rev 20170425 t)
[ 3.953440] can: netlink gateway (rev 20190810) max_hops=1
[ 3.959606] Key type dns_resolver registered
[ 3.977194] Registering SWP/SWPB emulation handler
[ 3.983357] Loading compiled-in X.509 certificates
[ 3.990380] Key type ._fscrypt registered
[ 3.994473] Key type .fscrypt registered
[ 4.006996] usb 2-1: New USB device found, idVendor=0424, idProduct=2517, bcdDevice= 0.02
[ 4.015670] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.029074] hub 2-1:1.0: USB hub found
[ 4.033212] hub 2-1:1.0: 7 ports detected
[ 4.146893] random: fast init done
[ 4.170985] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.173012] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.176802] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 4.188966] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.190865] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.192982] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.194861] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.199313] rtc-ds1307 0-0068: setting system clock to 2000-01-01T00:00:21 UTC (946684821)
[ 4.208146] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.228542] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.236822] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 4.245866] cfg80211: failed to load regulatory.db
[ 4.291084] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.301061] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 4.311335] devtmpfs: mounted
[ 4.330796] Freeing unused kernel memory: 1024K
[ 4.336324] Run /sbin/init as init process
[ 4.354877] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[ 4.506587] usb 2-1.1: New USB device found, idVendor=0424, idProduct=9e00, bcdDevice= 3.00
[ 4.515814] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.529638] smsc95xx v1.0.6
[ 4.655285] smsc95xx 2-1.1:1.0 eth1: register 'smsc95xx' at usb-ci_hdrc.1-1.1, smsc95xx USB 2.0 Ethernet, 8a:d5:54:85:6f:1e
[ 4.669861] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.671791] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.902115] systemd[1]: System time before build time, advancing clock.
[ 4.992154] 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.017893] systemd[1]: Detected architecture arm.
[ 5.099516] systemd[1]: Set hostname to <tqma6q-mba6x>.
[ 5.130656] random: systemd: uninitialized urandom read (16 bytes read)
[ 5.138063] systemd[1]: Initializing machine ID from random generator.
[ 5.147504] systemd[1]: Installed transient /etc/machine-id file.
[ 5.977972] 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.
[ 6.309996] 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.
[ 6.356520] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.368254] systemd[1]: Created slice system-getty.slice.
[ 6.405609] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.417127] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 6.455578] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.466150] systemd[1]: Created slice User and Session Slice.
[ 7.468332] random: crng init done
[ 7.475093] random: 6 urandom warning(s) missed due to ratelimiting
[ 9.474902] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 9.480768] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
[ 9.660308] systemd-journald[278]: Received client request to flush runtime journal.
[ 13.253959] input: gpio-beeper as /devices/soc0/gpio-beeper/input/input0
[ 13.275416] input: gpio-buttons as /devices/soc0/gpio-buttons/input/input1
[ 13.286225] mc: Linux media interface: v0.10
[ 13.307788] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.310078] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.392651] videodev: Linux video capture interface: v2.00
[ 13.659543] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.661513] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.681591] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.683862] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.729475] imx_media_common: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.731144] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.756824] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.829961] imx6_media: module is from the staging directory, the quality is unknown, you have been warned.
[ 13.887349] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 13.968992] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 13.971136] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 13.972839] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 14.192781] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[ 14.206348] spi spi0.0: spi_imx_setup: mode 0, 8 bpw, 50000000 hz
[ 14.212670] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.213518] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.224910] spi-nor spi0.0: n25q128a13
[ 14.228868] spi-nor spi0.0: spi_nor_info_init_params: 03
[ 14.234331] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.264695] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.264854] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.264954] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.265116] spi-nor spi0.0: Header: 53
[ 14.268909] spi-nor spi0.0: Header: 46
[ 14.276284] spi-nor spi0.0: Header: 44
[ 14.288147] spi-nor spi0.0: Header: 50
[ 14.291946] spi-nor spi0.0: Header: 05
[ 14.296345] spi-nor spi0.0: Header: 01
[ 14.332012] spi-nor spi0.0: Header: 01
[ 14.336321] spi-nor spi0.0: Header: ff
[ 14.340112] spi-nor spi0.0: Header: 00
[ 14.343896] spi-nor spi0.0: Header: 05
[ 14.384177] spi-nor spi0.0: Header: 01
[ 14.388354] spi-nor spi0.0: Header: 10
[ 14.392143] spi-nor spi0.0: Header: 30
[ 14.403490] spi-nor spi0.0: Header: 00
[ 14.407429] spi-nor spi0.0: Header: 00
[ 14.411222] spi-nor spi0.0: Header: ff
[ 14.424870] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.425075] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.434672] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.434773] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.435531] spi-nor spi0.0: bfpt addr=30 len=40
[ 14.443924] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.444030] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.444117] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.444210] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 14.445225] spi-nor spi0.0: DMA transfer: -22
[ 14.445253] spi-nor spi0.0: Fallback to PIO mode
[ 14.446604] spi-nor spi0.0: bfpt: 33
[ 14.464683] spi-nor spi0.0: bfpt: c2
[ 14.473031] spi-nor spi0.0: bfpt: c6
[ 14.476772] spi-nor spi0.0: bfpt: 73
[ 14.480388] spi-nor spi0.0: bfpt: 10
[ 14.483999] spi-nor spi0.0: bfpt: 30
[ 14.510280] spi-nor spi0.0: bfpt: 93
[ 14.517862] spi-nor spi0.0: bfpt: e5
[ 14.521532] spi-nor spi0.0: bfpt: 03
[ 14.534662] spi-nor spi0.0: bfpt: 00
[ 14.538284] spi-nor spi0.0: bfpt: 50
[ 14.541895] spi-nor spi0.0: bfpt: e1
[ 14.556758] spi-nor spi0.0: bfpt: 10
[ 14.560378] spi-nor spi0.0: bfpt: 30
[ 14.563987] spi-nor spi0.0: bfpt: 43
[ 14.584633] spi-nor spi0.0: bfpt: e2
[ 14.588256] spi-nor spi0.0: bfpt: f5
[ 14.591867] spi-nor spi0.0: bfpt: ff
[ 14.614667] spi-nor spi0.0: bfpt: ff
[ 14.620433] spi-nor spi0.0: bfpt: 1a
[ 14.625628] spi-nor spi0.0: bfpt: 00
[ 14.630045] spi-nor spi0.0: bfpt: 00
[ 14.633723] spi-nor spi0.0: bfpt: a0
[ 14.637448] spi-nor spi0.0: bfpt: e3
[ 14.641062] spi-nor spi0.0: bfpt: 00
[ 14.654691] spi-nor spi0.0: bfpt: a8
[ 14.658465] spi-nor spi0.0: bfpt: 9d
[ 14.662136] spi-nor spi0.0: bfpt: e8
[ 14.684649] spi-nor spi0.0: bfpt: 08
[ 14.688267] spi-nor spi0.0: bfpt: 00
[ 14.691879] spi-nor spi0.0: bfpt: 93
[ 14.695597] spi-nor spi0.0: bfpt: e5
[ 14.699209] spi-nor spi0.0: bfpt: 00
[ 14.702818] spi-nor spi0.0: bfpt: 00
[ 14.724643] spi-nor spi0.0: bfpt: 00
[ 14.728260] spi-nor spi0.0: bfpt: 00
[ 14.731869] spi-nor spi0.0: bfpt: 00
[ 14.744654] spi-nor spi0.0: bfpt: 00
[ 14.748271] spi-nor spi0.0: bfpt: 00
[ 14.751881] spi-nor spi0.0: bfpt: 00
[ 14.774626] spi-nor spi0.0: bfpt: 00
[ 14.778243] spi-nor spi0.0: bfpt: 00
[ 14.781852] spi-nor spi0.0: bfpt: 00
[ 14.785568] spi-nor spi0.0: bfpt: 00
[ 14.789183] spi-nor spi0.0: bfpt: 00
[ 14.792795] spi-nor spi0.0: bfpt: 00
[ 14.814630] spi-nor spi0.0: bfpt: 00
[ 14.818246] spi-nor spi0.0: bfpt: 00
[ 14.822997] spi-nor spi0.0: bfpt: 00
[ 14.826775] spi-nor spi0.0: bfpt: 00
[ 14.830393] spi-nor spi0.0: bfpt: 00
[ 14.834001] spi-nor spi0.0: bfpt: 00
[ 14.854653] spi-nor spi0.0: bfpt: 00
[ 14.858271] spi-nor spi0.0: bfpt: 00
[ 14.861880] spi-nor spi0.0: bfpt: 00
[ 14.884632] spi-nor spi0.0: bfpt: 00
[ 14.888248] spi-nor spi0.0: bfpt: 00
[ 14.891859] spi-nor spi0.0: bfpt: 00
[ 14.895564] spi-nor spi0.0: bfpt: 00
[ 14.899179] spi-nor spi0.0: bfpt: 00
[ 14.902786] spi-nor spi0.0: bfpt: 00
[ 14.924637] spi-nor spi0.0: bfpt: 00
[ 14.930956] spi-nor spi0.0: bfpt: 00
[ 14.935568] spi-nor spi0.0: bfpt: 00
[ 14.939515] spi-nor spi0.0: param headers: 03
[ 14.954619] spi-nor spi0.0: param headers: 00
[ 14.959019] spi-nor spi0.0: param headers: 01
[ 14.963411] spi-nor spi0.0: param headers: 02
[ 14.984628] spi-nor spi0.0: param headers: 00
[ 14.989027] spi-nor spi0.0: param headers: 01
[ 14.993420] spi-nor spi0.0: param headers: 00
[ 15.014635] spi-nor spi0.0: param headers: ff
[ 15.019052] spi-nor spi0.0: has uniform erase
[ 15.023446] spi-nor spi0.0: spi_nor_select_erase: 02
[ 15.044665] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[ 15.061846] spi spi0.1: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 15.075705] spi_imx 2008000.spi: probed
[ 15.094925] spi spi4.0: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 15.096762] spi_imx 2018000.spi: probed
[ 15.101978] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 15.287829] imx-sdma 20ec000.sdma: loaded firmware 3.5
[ 15.296612] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[ 15.327734] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.327805] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.327815] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.347763] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[ 15.362182] coda 2040000.vpu: Firmware code revision: 570363
[ 15.410767] coda 2040000.vpu: Initialized CODA960.
[ 15.415492] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
[ 15.420845] coda 2040000.vpu: Firmware version: 3.1.1
[ 15.444982] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
[ 15.452228] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0
[ 15.473450] coda 2040000.vpu: encoder registered as video3
[ 15.476427] imx-media: ipu1_csi0:1 -> ipu1_vdic:0
[ 15.483869] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0
[ 15.483971] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0
[ 15.483995] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0
[ 15.484017] imx-media: subdev ipu1_csi0 bound
[ 15.489622] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video4
[ 15.489653] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0
[ 15.489675] imx-media: ipu1_csi1:1 -> ipu1_vdic:0
[ 15.489700] imx-media: subdev ipu1_csi1 bound
[ 15.505049] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video5
[ 15.511006] coda 2040000.vpu: decoder registered as video7
[ 15.511124] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as /dev/video6
[ 15.512195] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as /dev/video8
[ 15.512285] imx-media: ipu2_csi0:1 -> ipu2_ic_prp:0
[ 15.512309] imx-media: ipu2_csi0:1 -> ipu2_vdic:0
[ 15.512329] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0
[ 15.512349] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0
[ 15.512368] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0
[ 15.512388] imx-media: subdev ipu2_csi0 bound
[ 15.514171] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video9
[ 15.514198] imx-media: ipu2_csi1:1 -> ipu2_ic_prp:0
[ 15.514219] imx-media: ipu2_csi1:1 -> ipu2_vdic:0
[ 15.514243] imx-media: subdev ipu2_csi1 bound
[ 15.865584] 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)
[ 16.263698] imx-tlv320aic32x4 sound: tlv320aic32x4-hifi <-> 2028000.ssi mapping ok
[ 18.313579] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 18.928671] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 18.944737] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 19.316387] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[-- Attachment #4: pio.log --]
[-- Type: text/x-log, Size: 33597 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 Wed Jun 3 11:14:56 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 spi_imx.use_dma=0 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.000008] 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.001631] Console: colour dummy device 80x30
[ 0.001669] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001692] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001715] ... MAX_LOCK_DEPTH: 48
[ 0.001736] ... MAX_LOCKDEP_KEYS: 8192
[ 0.001757] ... CLASSHASH_SIZE: 4096
[ 0.001778] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.001800] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.001820] ... CHAINHASH_SIZE: 32768
[ 0.001842] memory used by lock dependency info: 3997 kB
[ 0.001863] memory used for stack traces: 2112 kB
[ 0.001885] per task-struct memory footprint: 1536 bytes
[ 0.001960] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.001996] pid_max: default: 32768 minimum: 301
[ 0.002539] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002587] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.005096] CPU: Testing write buffer coherency: ok
[ 0.005184] CPU0: Spectre v2: using BPIALL workaround
[ 0.006475] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.059672] Setting up static identity map for 0x10100000 - 0x10100060
[ 0.079538] rcu: Hierarchical SRCU implementation.
[ 0.129545] smp: Bringing up secondary CPUs ...
[ 0.209991] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.210006] CPU1: Spectre v2: using BPIALL workaround
[ 0.289888] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.289904] CPU2: Spectre v2: using BPIALL workaround
[ 0.369890] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.369905] CPU3: Spectre v2: using BPIALL workaround
[ 0.370528] smp: Brought up 1 node, 4 CPUs
[ 0.370561] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.370588] CPU: All CPU(s) started in SVC mode.
[ 0.372568] devtmpfs: initialized
[ 0.410888] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.413025] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.413085] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.421403] pinctrl core: initialized pinctrl subsystem
[ 0.426128] NET: Registered protocol family 16
[ 0.433661] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.437456] cpuidle: using governor ladder
[ 0.437748] CPU identified as i.MX6Q, silicon rev 1.5
[ 0.471008] vdd1p1: supplied by regulator-dummy
[ 0.473182] vdd3p0: supplied by regulator-dummy
[ 0.475073] vdd2p5: supplied by regulator-dummy
[ 0.476908] vddarm: supplied by regulator-dummy
[ 0.478967] vddpu: supplied by regulator-dummy
[ 0.480889] vddsoc: supplied by regulator-dummy
[ 0.520030] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.520096] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.523265] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.648107] mxs-dma 110000.dma-apbh: initialized
[ 0.657074] vgaarb: loaded
[ 0.658511] SCSI subsystem initialized
[ 0.659369] libata version 3.00 loaded.
[ 0.660475] usbcore: registered new interface driver usbfs
[ 0.660709] usbcore: registered new interface driver hub
[ 0.661072] usbcore: registered new device driver usb
[ 0.661594] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[ 0.662432] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[ 0.669188] i2c i2c-0: IMX I2C adapter registered
[ 0.670341] pps_core: LinuxPPS API ver. 1 registered
[ 0.670374] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.670456] PTP clock support registered
[ 0.676353] clocksource: Switched to clocksource mxc_timer1
[ 1.737078] thermal_sys: Registered thermal governor 'fair_share'
[ 1.737092] thermal_sys: Registered thermal governor 'step_wise'
[ 1.737130] thermal_sys: Registered thermal governor 'user_space'
[ 1.738017] NET: Registered protocol family 2
[ 1.739904] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[ 1.740045] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 1.740284] TCP bind hash table entries: 8192 (order: 6, 294912 bytes, linear)
[ 1.741532] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.742172] UDP hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.742412] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes, linear)
[ 1.743199] NET: Registered protocol family 1
[ 1.745671] RPC: Registered named UNIX socket transport module.
[ 1.745740] RPC: Registered udp transport module.
[ 1.745769] RPC: Registered tcp transport module.
[ 1.745796] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.757323] PCI: CLS 0 bytes, default 64
[ 1.758307] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.759172] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.765027] Initialise system trusted keyrings
[ 1.765726] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 1.789539] NFS: Registering the id_resolver key type
[ 1.789704] Key type id_resolver registered
[ 1.789773] Key type id_legacy registered
[ 1.789835] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.790627] fuse: init (API version 7.31)
[ 1.792764] NILFS version 2 loaded
[ 1.835404] Key type asymmetric registered
[ 1.835520] Asymmetric key parser 'x509' registered
[ 1.835696] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.835784] io scheduler mq-deadline registered
[ 1.835819] io scheduler kyber registered
[ 1.843810] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[ 1.844039] imx6q-pcie 1ffc000.pcie: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 1.844226] imx6q-pcie 1ffc000.pcie: MEM 0x01000000..0x01efffff -> 0x01000000
[ 1.858225] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[ 1.859205] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[ 1.859238] pfuze100-regulator 0-0008: pfuze100 found.
[ 1.890339] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
[ 2.680255] printk: console [ttymxc1] enabled
[ 2.686801] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 67, base_baud = 5000000) is a IMX
[ 2.697330] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 68, base_baud = 5000000) is a IMX
[ 2.707805] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 69, base_baud = 5000000) is a IMX
[ 2.741460] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops)
[ 2.748059] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops)
[ 2.754360] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops)
[ 2.760245] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[ 2.767417] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[ 2.773680] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[ 2.779902] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[ 2.789034] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[ 2.801365] imx-ipuv3 2400000.ipu: IPUv3H probed
[ 2.809445] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.816130] [drm] No driver support for vblank timestamp query.
[ 2.823228] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[ 2.831124] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[ 2.839160] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[ 2.847137] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[ 2.856233] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[ 2.864612] imx-ipuv3 2800000.ipu: IPUv3H probed
[ 2.914658] loop: module loaded
[ 2.920485] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.929692] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[ 2.939479] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 2.947642] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 2.955689] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 2.964010] imx6q-pcie 1ffc000.pcie: Phy link never came up
[ 2.966389] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 2.973648] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 2.977739] ahci-imx 2200000.sata: 2200000.sata supply ahci not found, using dummy regulator
[ 2.983685] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.992706] ahci-imx 2200000.sata: 2200000.sata supply phy not found, using dummy regulator
[ 2.998303] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 3.006598] ahci-imx 2200000.sata: 2200000.sata supply target not found, using dummy regulator
[ 3.012421] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 3.024478] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 3.028211] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 3.034996] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 3.041143] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 3.050001] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 3.056237] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 3.072398] pci 0000:00:00.0: Limiting cfg_size to 512
[ 3.076365] scsi host0: ahci-imx
[ 3.077943] pci 0000:00:00.0: supports D1
[ 3.082449] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 72
[ 3.084843] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 3.095327] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 3.101754] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 3.104858] PCI: bus0: Fast back to back transfers disabled
[ 3.106597] libphy: Fixed MDIO Bus: probed
[ 3.115001] PCI: bus1: Fast back to back transfers enabled
[ 3.116403] CAN device driver interface
[ 3.120655] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 3.125099] flexcan 2090000.flexcan: 2090000.flexcan supply xceiver not found, using dummy regulator
[ 3.131427] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[ 3.143698] flexcan 2094000.flexcan: 2094000.flexcan supply xceiver not found, using dummy regulator
[ 3.147756] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 3.164254] pcieport 0000:00:00.0: PME: Signaling with IRQ 305
[ 3.170613] pps pps0: new PPS source ptp0
[ 3.171747] pcieport 0000:00:00.0: AER: enabled with IRQ 305
[ 3.183196] libphy: fec_enet_mii_bus: probed
[ 3.192249] fec 2188000.ethernet eth0: registered PHC device 0
[ 3.199001] usbcore: registered new interface driver cdc_ether
[ 3.205054] usbcore: registered new interface driver smsc95xx
[ 3.210919] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.217682] ehci-pci: EHCI PCI platform driver
[ 3.227720] imx_usb 2184000.usb: No over current polarity defined
[ 3.238373] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 3.243746] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 3.276411] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 3.283528] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.291994] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.299318] usb usb1: Product: EHCI Host Controller
[ 3.304231] usb usb1: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.309716] usb usb1: SerialNumber: ci_hdrc.0
[ 3.317202] hub 1-0:1.0: USB hub found
[ 3.321265] hub 1-0:1.0: 1 port detected
[ 3.329209] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 3.342112] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 3.347176] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 3.376393] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 3.382894] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.391272] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.398583] usb usb2: Product: EHCI Host Controller
[ 3.403493] usb usb2: Manufacturer: Linux 5.4.39 ehci_hcd
[ 3.408978] usb usb2: SerialNumber: ci_hdrc.1
[ 3.415229] hub 2-0:1.0: USB hub found
[ 3.419248] hub 2-0:1.0: 1 port detected
[ 3.427951] mousedev: PS/2 mouse device common for all mice
[ 3.428839] ata1: SATA link down (SStatus 0 SControl 300)
[ 3.439416] ahci-imx 2200000.sata: no device found, disabling link.
[ 3.442758] rtc-ds1307 0-0068: registered as rtc0
[ 3.445717] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[ 3.454943] i2c /dev entries driver
[ 3.462641] IR NEC protocol handler initialized
[ 3.467289] IR RC5(x/sz) protocol handler initialized
[ 3.472376] IR RC6 protocol handler initialized
[ 3.476994] IR JVC protocol handler initialized
[ 3.481558] IR Sony protocol handler initialized
[ 3.486205] IR SANYO protocol handler initialized
[ 3.490990] IR Sharp protocol handler initialized
[ 3.495727] IR MCE Keyboard/mouse protocol handler initialized
[ 3.501637] IR XMP protocol handler initialized
[ 3.512833] lm75 0-0048: hwmon0: sensor 'lm75'
[ 3.519831] lm75 0-0049: hwmon1: sensor 'lm75'
[ 3.530185] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 3.538884] sdhci: Secure Digital Host Controller Interface driver
[ 3.545099] sdhci: Copyright(c) Pierre Ossman
[ 3.549544] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.557199] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[ 3.562477] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[ 3.605232] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 3.653852] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[ 3.665614] mmc1: new high speed SD card at address 1234
[ 3.671379] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.676733] mmcblk1: mmc1:1234 SA02G 1.84 GiB
[ 3.682576] caam 2100000.caam: Entropy delay = 3200
[ 3.712975] mmcblk1: p1 p2
[ 3.746619] mmc0: new DDR MMC card at address 0001
[ 3.748340] caam 2100000.caam: Instantiated RNG4 SH0
[ 3.753640] mmcblk0: mmc0:0001 MMC04G 3.52 GiB
[ 3.762081] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[ 3.769401] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[ 3.776217] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (248:0)
[ 3.786601] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[ 3.809107] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.814128] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 3.820658] caam 2100000.caam: job rings = 2, qi = 0
[ 3.880079] caam algorithms registered in /proc/crypto
[ 3.900455] caam_jr 2101000.jr0: registering rng-caam
[ 3.907616] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.918604] NET: Registered protocol family 10
[ 3.927540] Segment Routing with IPv6
[ 3.931378] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.940432] NET: Registered protocol family 17
[ 3.944955] can: controller area network core (rev 20170425 abi 9)
[ 3.951491] NET: Registered protocol family 29
[ 3.955980] can: raw protocol (rev 20170425)
[ 3.961494] can: broadcast manager protocol (rev 20170425 t)
[ 3.967278] can: netlink gateway (rev 20190810) max_hops=1
[ 3.973382] Key type dns_resolver registered
[ 3.991361] Registering SWP/SWPB emulation handler
[ 3.997852] Loading compiled-in X.509 certificates
[ 4.004844] Key type ._fscrypt registered
[ 4.008700] usb 2-1: New USB device found, idVendor=0424, idProduct=2517, bcdDevice= 0.02
[ 4.009670] Key type .fscrypt registered
[ 4.017420] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.034111] hub 2-1:1.0: USB hub found
[ 4.038408] hub 2-1:1.0: 7 ports detected
[ 4.178587] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.180625] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.184304] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 4.198751] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.202494] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.206768] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.209072] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.212563] random: fast init done
[ 4.217265] rtc-ds1307 0-0068: setting system clock to 2000-01-01T00:02:49 UTC (946684969)
[ 4.226041] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.240578] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.248850] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 4.257793] cfg80211: failed to load regulatory.db
[ 4.284573] EXT4-fs (mmcblk1p2): INFO: recovery required on readonly filesystem
[ 4.292215] EXT4-fs (mmcblk1p2): write access will be enabled during recovery
[ 4.396600] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[ 4.577913] usb 2-1.1: New USB device found, idVendor=0424, idProduct=9e00, bcdDevice= 3.00
[ 4.586513] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.599418] smsc95xx v1.0.6
[ 4.749453] smsc95xx 2-1.1:1.0 eth1: register 'smsc95xx' at usb-ci_hdrc.1-1.1, smsc95xx USB 2.0 Ethernet, 82:2d:52:34:cf:2a
[ 4.765314] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 4.769182] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 4.780142] EXT4-fs (mmcblk1p2): recovery complete
[ 4.797452] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.806747] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 4.818722] devtmpfs: mounted
[ 4.851029] Freeing unused kernel memory: 1024K
[ 4.856666] Run /sbin/init as init process
[ 5.418635] systemd[1]: System time before build time, advancing clock.
[ 5.508743] 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.535563] systemd[1]: Detected architecture arm.
[ 5.611280] systemd[1]: Set hostname to <tqma6q-mba6x>.
[ 6.401685] 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.
[ 6.782349] 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.
[ 6.830107] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.841514] systemd[1]: Created slice system-getty.slice.
[ 6.887096] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.897900] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 6.947264] random: systemd: uninitialized urandom read (16 bytes read)
[ 6.957658] systemd[1]: Created slice User and Session Slice.
[ 6.999521] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 7.039178] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 7.950566] random: crng init done
[ 7.954034] random: 7 urandom warning(s) missed due to ratelimiting
[ 8.497381] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 8.503256] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
[ 8.964912] systemd[295]: systemd-udevd.service: ProtectHostname=yes is configured, but the kernel does not support UTS namespaces, ignoring namespace setup.
[ 9.174457] systemd-journald[277]: Received client request to flush runtime journal.
[ 11.049679] input: gpio-buttons as /devices/soc0/gpio-buttons/input/input1
[ 11.049787] input: gpio-beeper as /devices/soc0/gpio-beeper/input/input0
[ 11.068230] mc: Linux media interface: v0.10
[ 11.083566] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.085501] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.095673] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.097824] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.197809] videodev: Linux video capture interface: v2.00
[ 11.351020] imx_media_common: module is from the staging directory, the quality is unknown, you have been warned.
[ 11.351685] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.374712] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.423080] imx6_media: module is from the staging directory, the quality is unknown, you have been warned.
[ 11.481814] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 11.622670] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.624876] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.633873] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 11.674681] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[ 11.697069] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[ 11.699226] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[ 11.700980] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[ 11.761861] spi spi0.0: spi_imx_setup: mode 0, 8 bpw, 50000000 hz
[ 11.764793] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.787745] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.788056] spi-nor spi0.0: n25q128a13
[ 11.794833] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[ 11.807919] spi-nor spi0.0: spi_nor_info_init_params: 03
[ 11.870437] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.870594] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.870678] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.870765] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 11.872719] spi-nor spi0.0: Header: 53
[ 11.876721] spi-nor spi0.0: Header: 46
[ 11.936444] spi-nor spi0.0: Header: 44
[ 11.940282] spi-nor spi0.0: Header: 50
[ 11.944121] spi-nor spi0.0: Header: 05
[ 11.976413] spi-nor spi0.0: Header: 01
[ 11.980221] spi-nor spi0.0: Header: 01
[ 11.987891] spi-nor spi0.0: Header: ff
[ 11.991691] spi-nor spi0.0: Header: 00
[ 11.995477] spi-nor spi0.0: Header: 05
[ 12.024555] spi-nor spi0.0: Header: 01
[ 12.045931] spi-nor spi0.0: Header: 10
[ 12.075446] spi-nor spi0.0: Header: 30
[ 12.106506] spi-nor spi0.0: Header: 00
[ 12.110350] spi-nor spi0.0: Header: 00
[ 12.114172] spi-nor spi0.0: Header: ff
[ 12.147075] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.147153] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.147217] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.147277] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.148841] spi-nor spi0.0: bfpt addr=30 len=40
[ 12.166023] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.166103] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.167341] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.167468] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[ 12.169177] spi-nor spi0.0: bfpt: e5
[ 12.191849] spi-nor spi0.0: bfpt: 20
[ 12.195474] spi-nor spi0.0: bfpt: f1
[ 12.209855] 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.225459] spi-nor spi0.0: bfpt: ff
[ 12.229684] spi-nor spi0.0: bfpt: ff
[ 12.260442] spi-nor spi0.0: bfpt: ff
[ 12.264188] spi-nor spi0.0: bfpt: ff
[ 12.279151] spi-nor spi0.0: bfpt: 07
[ 12.294820] spi-nor spi0.0: bfpt: 29
[ 12.309453] spi-nor spi0.0: bfpt: eb
[ 12.313081] spi-nor spi0.0: bfpt: 27
[ 12.316876] spi-nor spi0.0: bfpt: 6b
[ 12.321341] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.335698] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.347651] spi-nor spi0.0: bfpt: 27
[ 12.355251] spi-nor spi0.0: bfpt: 3b
[ 12.395230] spi-nor spi0.0: bfpt: 27
[ 12.408021] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[ 12.415751] spi-nor spi0.0: bfpt: bb
[ 12.415814] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.426966] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[ 12.432747] spi-nor spi0.0: bfpt: ff
[ 12.456245] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
[ 12.456611] spi-nor spi0.0: bfpt: ff
[ 12.473108] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
[ 12.499078] spi-nor spi0.0: bfpt: ff
[ 12.502756] spi-nor spi0.0: bfpt: ff
[ 12.517429] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0
[ 12.528275] spi-nor spi0.0: bfpt: ff
[ 12.531955] spi-nor spi0.0: bfpt: ff
[ 12.533364] imx-media: ipu1_csi0:1 -> ipu1_vdic:0
[ 12.551890] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0
[ 12.559605] spi-nor spi0.0: bfpt: 27
[ 12.563251] spi-nor spi0.0: bfpt: bb
[ 12.567067] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0
[ 12.582238] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0
[ 12.594779] spi-nor spi0.0: bfpt: ff
[ 12.598558] spi-nor spi0.0: bfpt: ff
[ 12.602209] spi-nor spi0.0: bfpt: 29
[ 12.607405] imx-media: subdev ipu1_csi0 bound
[ 12.633656] spi-nor spi0.0: bfpt: eb
[ 12.637402] spi-nor spi0.0: bfpt: 0c
[ 12.656467] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video3
[ 12.659961] spi-nor spi0.0: bfpt: 20
[ 12.666992] spi-nor spi0.0: bfpt: 10
[ 12.670647] spi-nor spi0.0: bfpt: d8
[ 12.672261] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0
[ 12.694552] spi-nor spi0.0: bfpt: 00
[ 12.708481] imx-media: ipu1_csi1:1 -> ipu1_vdic:0
[ 12.711604] spi-nor spi0.0: bfpt: 00
[ 12.727267] imx-media: subdev ipu1_csi1 bound
[ 12.736656] spi-nor spi0.0: bfpt: 00
[ 12.740611] spi-nor spi0.0: bfpt: 00
[ 12.744387] spi-nor spi0.0: bfpt: 35
[ 12.747752] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video4
[ 12.778642] spi-nor spi0.0: bfpt: 8a
[ 12.782320] spi-nor spi0.0: bfpt: 01
[ 12.785998] spi-nor spi0.0: bfpt: 00
[ 12.786257] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as /dev/video5
[ 12.812138] spi-nor spi0.0: bfpt: 82
[ 12.815770] spi-nor spi0.0: bfpt: a3
[ 12.833307] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as /dev/video6
[ 12.853184] imx-media: ipu2_csi0:1 -> ipu2_ic_prp:0
[ 12.867251] spi-nor spi0.0: bfpt: 03
[ 12.867601] imx-media: ipu2_csi0:1 -> ipu2_vdic:0
[ 12.874324] spi-nor spi0.0: bfpt: cb
[ 12.889407] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0
[ 12.896387] spi-nor spi0.0: bfpt: ac
[ 12.900019] spi-nor spi0.0: bfpt: c1
[ 12.903640] spi-nor spi0.0: bfpt: 04
[ 12.906510] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0
[ 12.920315] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0
[ 12.925603] imx-media: subdev ipu2_csi0 bound
[ 12.943675] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video7
[ 12.950064] imx-media: ipu2_csi1:1 -> ipu2_ic_prp:0
[ 12.955019] imx-media: ipu2_csi1:1 -> ipu2_vdic:0
[ 12.969453] spi-nor spi0.0: bfpt: 2e
[ 12.973079] spi-nor spi0.0: bfpt: 7a
[ 12.976389] imx-media: subdev ipu2_csi1 bound
[ 12.976797] spi-nor spi0.0: bfpt: 75
[ 13.007042] spi-nor spi0.0: bfpt: 7a
[ 13.010670] spi-nor spi0.0: bfpt: 75
[ 13.014283] spi-nor spi0.0: bfpt: fb
[ 13.035649] spi-nor spi0.0: bfpt: 00
[ 13.040012] spi-nor spi0.0: bfpt: 00
[ 13.057608] spi-nor spi0.0: bfpt: 80
[ 13.061970] spi-nor spi0.0: bfpt: 08
[ 13.065637] spi-nor spi0.0: bfpt: 0f
[ 13.069493] spi-nor spi0.0: bfpt: 82
[ 13.073210] spi-nor spi0.0: bfpt: ff
[ 13.093995] spi-nor spi0.0: bfpt: 81
[ 13.097994] spi-nor spi0.0: bfpt: 3d
[ 13.101611] spi-nor spi0.0: bfpt: 00
[ 13.105220] spi-nor spi0.0: bfpt: 00
[ 13.136446] spi-nor spi0.0: spi_nor_parse_bfpt: 03
[ 13.141319] spi-nor spi0.0: spi_nor_parse_bfpt: 0c
[ 13.146149] spi-nor spi0.0: param headers: 03
[ 13.186412] spi-nor spi0.0: param headers: 00
[ 13.190824] spi-nor spi0.0: param headers: 01
[ 13.195215] spi-nor spi0.0: param headers: 02
[ 13.239140] spi-nor spi0.0: param headers: 00
[ 13.243549] spi-nor spi0.0: param headers: 01
[ 13.266414] spi-nor spi0.0: param headers: 00
[ 13.286417] spi-nor spi0.0: param headers: ff
[ 13.290846] spi-nor spi0.0: has uniform erase
[ 13.295240] spi-nor spi0.0: spi_nor_select_erase: 08
[ 13.340596] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[ 13.378430] imx-sdma 20ec000.sdma: loaded firmware 3.5
[ 13.403404] spi spi0.1: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 13.405629] coda 2040000.vpu: Firmware code revision: 570363
[ 13.416498] coda 2040000.vpu: Initialized CODA960.
[ 13.421334] coda 2040000.vpu: Firmware version: 3.1.1
[ 13.454666] spi_imx 2008000.spi: probed
[ 13.469845] spi spi4.0: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[ 13.485789] imx-tlv320aic32x4 sound: tlv320aic32x4-hifi <-> 2028000.ssi mapping ok
[ 13.486786] spi_imx 2018000.spi: probed
[ 13.498976] coda 2040000.vpu: encoder registered as video8
[ 13.516607] coda 2040000.vpu: decoder registered as video9
[ 13.937912] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 13.944925] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 15.337279] fec 2188000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 15.356432] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
^ permalink raw reply
* Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump
From: Prabhakar Kushwaha @ 2020-06-03 11:47 UTC (permalink / raw)
To: John Donnelly
Cc: Bhupesh Sharma, Chen Zhou, Simon Horman, Devicetree List,
Baoquan He, Will Deacon, Linux Doc Mailing List, Catalin Marinas,
kexec mailing list, Linux Kernel Mailing List, Rob Herring,
Ingo Molnar, Arnd Bergmann, guohanjun, James Morse,
Thomas Gleixner, Prabhakar Kushwaha, RuiRui Yang,
linux-arm-kernel
In-Reply-To: <6EA47B07-5119-49DF-9980-12A2066F22CA@oracle.com>
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.
> >>>>>>
> >>>>>> To solve these issues, introduce crashkernel=X,low to reserve specified
> >>>>>> size low memory.
> >>>>>> Crashkernel=X tries to reserve memory for the crash dump kernel under
> >>>>>> 4G. If crashkernel=Y,low is specified simultaneously, reserve spcified
> >>>>>> size low memory for crash kdump kernel devices firstly and then reserve
> >>>>>> memory above 4G.
> >>>>>>
> >>>>>> When crashkernel is reserved above 4G in memory, that is, crashkernel=X,low
> >>>>>> is specified simultaneously, kernel should reserve specified size low memory
> >>>>>> for crash dump kernel devices. So there may be two crash kernel regions, one
> >>>>>> is below 4G, the other is above 4G.
> >>>>>> In order to distinct from the high region and make no effect to the use of
> >>>>>> kexec-tools, rename the low region as "Crash kernel (low)", and add DT property
> >>>>>> "linux,low-memory-range" to crash dump kernel's dtb to pass the low region.
> >>>>>>
> >>>>>> Besides, we need to modify kexec-tools:
> >>>>>> arm64: kdump: add another DT property to crash dump kernel's dtb(see [1])
> >>>>>>
> >>>>>> The previous changes and discussions can be retrieved from:
> >>>>>>
> >>>>>> Changes since [v7]
> >>>>>> - Move x86 CRASH_ALIGN to 2M
> >>>>>> Suggested by Dave and do some test, move x86 CRASH_ALIGN to 2M.
> >>>>>> - Update Documentation/devicetree/bindings/chosen.txt
> >>>>>> Add corresponding documentation to Documentation/devicetree/bindings/chosen.txt suggested by Arnd.
> >>>>>> - Add Tested-by from Jhon and pk
> >>>>>>
> >>>>>> Changes since [v6]
> >>>>>> - Fix build errors reported by kbuild test robot.
> >>>>>>
> >>>>>> Changes since [v5]
> >>>>>> - Move reserve_crashkernel_low() into kernel/crash_core.c.
> >>>>>> - Delete crashkernel=X,high.
> >>>>>> - Modify crashkernel=X,low.
> >>>>>> If crashkernel=X,low is specified simultaneously, reserve spcified size low
> >>>>>> memory for crash kdump kernel devices firstly and then reserve memory above 4G.
> >>>>>> In addition, rename crashk_low_res as "Crash kernel (low)" for arm64, and then
> >>>>>> pass to crash dump kernel by DT property "linux,low-memory-range".
> >>>>>> - Update Documentation/admin-guide/kdump/kdump.rst.
> >>>>>>
> >>>>>> Changes since [v4]
> >>>>>> - Reimplement memblock_cap_memory_ranges for multiple ranges by Mike.
> >>>>>>
> >>>>>> Changes since [v3]
> >>>>>> - Add memblock_cap_memory_ranges back for multiple ranges.
> >>>>>> - Fix some compiling warnings.
> >>>>>>
> >>>>>> Changes since [v2]
> >>>>>> - Split patch "arm64: kdump: support reserving crashkernel above 4G" as
> >>>>>> two. Put "move reserve_crashkernel_low() into kexec_core.c" in a separate
> >>>>>> patch.
> >>>>>>
> >>>>>> Changes since [v1]:
> >>>>>> - Move common reserve_crashkernel_low() code into kernel/kexec_core.c.
> >>>>>> - Remove memblock_cap_memory_ranges() i added in v1 and implement that
> >>>>>> in fdt_enforce_memory_region().
> >>>>>> There are at most two crash kernel regions, for two crash kernel regions
> >>>>>> case, we cap the memory range [min(regs[*].start), max(regs[*].end)]
> >>>>>> and then remove the memory range in the middle.
> >>>>>>
> >>>>>> [1]: https://urldefense.com/v3/__http://lists.infradead.org/pipermail/kexec/2020-May/025128.html__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbvpn1uM1$
> >>>>>> [v1]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/4/2/1174__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbt0xN9PE$
> >>>>>> [v2]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/4/9/86__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbub7yUQH$
> >>>>>> [v3]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/4/9/306__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbnc4zPPV$
> >>>>>> [v4]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/4/15/273__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbvsAsZLu$
> >>>>>> [v5]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/5/6/1360__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbl24n-79$
> >>>>>> [v6]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/8/30/142__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbs7r8G2a$
> >>>>>> [v7]: https://urldefense.com/v3/__https://lkml.org/lkml/2019/12/23/411__;!!GqivPVa7Brio!LnTSARkCt0V0FozR0KmqooaH5ADtdXvs3mPdP3KRVqALmvSK2VmCkIPIhsaxbiFUH90G$
> >>>>>>
> >>>>>> Chen Zhou (5):
> >>>>>> x86: kdump: move reserve_crashkernel_low() into crash_core.c
> >>>>>> arm64: kdump: reserve crashkenel above 4G for crash dump kernel
> >>>>>> arm64: kdump: add memory for devices by DT property, low-memory-range
> >>>>>> kdump: update Documentation about crashkernel on arm64
> >>>>>> dt-bindings: chosen: Document linux,low-memory-range for arm64 kdump
> >>>>>>
> >>>>> 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+0xb10/0xb50
> >>>>> [ 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.
--pk.
^ permalink raw reply
* Re: [PATCH] usb: dwc3: Add support for VBUS power control
From: Mike Looijmans @ 2020-06-03 11:34 UTC (permalink / raw)
To: linux-usb; +Cc: devicetree, linux-kernel, gregkh, robh+dt, balbi
In-Reply-To: <20200603085932.31746-1-mike.looijmans@topic.nl>
Oh darn, the "devm_get_regulator..." call in probe got lost in the
rebase+merge. I'll add that in v2.
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: mike.looijmans@topicproducts.com
W: www.topicproducts.com
Please consider the environment before printing this e-mail
On 03-06-2020 10:59, Mike Looijmans wrote:
> Support VBUS power control using regulator framework. Enables the regulator
> while the port is in host mode.
>
> Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
> ---
> .../devicetree/bindings/usb/dwc3.txt | 1 +
> drivers/usb/dwc3/core.c | 30 ++++++++++++++-----
> drivers/usb/dwc3/core.h | 4 +++
> drivers/usb/dwc3/drd.c | 6 ++--
> 4 files changed, 29 insertions(+), 12 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt
> index 9946ff9ba735..56bc3f238e2d 100644
> --- a/Documentation/devicetree/bindings/usb/dwc3.txt
> +++ b/Documentation/devicetree/bindings/usb/dwc3.txt
> @@ -37,6 +37,7 @@ Optional properties:
> - phys: from the *Generic PHY* bindings
> - phy-names: from the *Generic PHY* bindings; supported names are "usb2-phy"
> or "usb3-phy".
> + - vbus-supply: Regulator handle that provides the VBUS power.
> - resets: set of phandle and reset specifier pairs
> - snps,usb2-lpm-disable: indicate if we don't want to enable USB2 HW LPM
> - snps,usb3_lpm_capable: determines if platform is USB3 LPM capable
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index edc17155cb2b..a9e58a301446 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -25,6 +25,7 @@
> #include <linux/of.h>
> #include <linux/acpi.h>
> #include <linux/pinctrl/consumer.h>
> +#include <linux/regulator/consumer.h>
> #include <linux/reset.h>
>
> #include <linux/usb/ch9.h>
> @@ -112,6 +113,23 @@ void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode)
> dwc->current_dr_role = mode;
> }
>
> +void dwc3_set_vbus(struct dwc3 *dwc, bool enable)
> +{
> + int ret;
> +
> + if (enable != dwc->vbus_reg_enabled) {
> + if (enable)
> + ret = regulator_enable(dwc->vbus_reg);
> + else
> + ret = regulator_disable(dwc->vbus_reg);
> + if (!ret)
> + dwc->vbus_reg_enabled = enable;
> + }
> +
> + if (dwc->usb2_phy)
> + otg_set_vbus(dwc->usb2_phy->otg, enable);
> +}
> +
> static void __dwc3_set_mode(struct work_struct *work)
> {
> struct dwc3 *dwc = work_to_dwc(work);
> @@ -164,8 +182,7 @@ static void __dwc3_set_mode(struct work_struct *work)
> if (ret) {
> dev_err(dwc->dev, "failed to initialize host\n");
> } else {
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, true);
> + dwc3_set_vbus(dwc, true);
> phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
> phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_HOST);
> }
> @@ -173,8 +190,7 @@ static void __dwc3_set_mode(struct work_struct *work)
> case DWC3_GCTL_PRTCAP_DEVICE:
> dwc3_event_buffers_setup(dwc);
>
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, false);
> + dwc3_set_vbus(dwc, false);
> phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_DEVICE);
> phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_DEVICE);
>
> @@ -1183,8 +1199,7 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
> case USB_DR_MODE_PERIPHERAL:
> dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_DEVICE);
>
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, false);
> + dwc3_set_vbus(dwc, false);
> phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_DEVICE);
> phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_DEVICE);
>
> @@ -1198,8 +1213,7 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
> case USB_DR_MODE_HOST:
> dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_HOST);
>
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, true);
> + dwc3_set_vbus(dwc, true);
> phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
> phy_set_mode(dwc->usb3_generic_phy, PHY_MODE_USB_HOST);
>
> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> index 4c171a8e215f..cee2574d7bf4 100644
> --- a/drivers/usb/dwc3/core.h
> +++ b/drivers/usb/dwc3/core.h
> @@ -1085,6 +1085,9 @@ struct dwc3 {
>
> bool phys_ready;
>
> + struct regulator *vbus_reg;
> + bool vbus_reg_enabled;
> +
> struct ulpi *ulpi;
> bool ulpi_ready;
>
> @@ -1397,6 +1400,7 @@ struct dwc3_gadget_ep_cmd_params {
>
> /* prototypes */
> void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
> +void dwc3_set_vbus(struct dwc3 *dwc, bool enable);
> void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
> u32 dwc3_core_fifo_space(struct dwc3_ep *dep, u8 type);
>
> diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c
> index 7db1ffc92bbd..45fdec2d128d 100644
> --- a/drivers/usb/dwc3/drd.c
> +++ b/drivers/usb/dwc3/drd.c
> @@ -384,8 +384,7 @@ void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus)
> if (ret) {
> dev_err(dwc->dev, "failed to initialize host\n");
> } else {
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, true);
> + dwc3_set_vbus(dwc, true);
> if (dwc->usb2_generic_phy)
> phy_set_mode(dwc->usb2_generic_phy,
> PHY_MODE_USB_HOST);
> @@ -398,8 +397,7 @@ void dwc3_otg_update(struct dwc3 *dwc, bool ignore_idstatus)
> dwc3_event_buffers_setup(dwc);
> spin_unlock_irqrestore(&dwc->lock, flags);
>
> - if (dwc->usb2_phy)
> - otg_set_vbus(dwc->usb2_phy->otg, false);
> + dwc3_set_vbus(dwc, false);
> if (dwc->usb2_generic_phy)
> phy_set_mode(dwc->usb2_generic_phy,
> PHY_MODE_USB_DEVICE);
--
Mike Looijmans
^ permalink raw reply
* Re: [PATCH v4 3/4] iio: chemical: scd30: add serial interface driver
From: Andy Shevchenko @ 2020-06-03 11:31 UTC (permalink / raw)
To: Tomasz Duszynski
Cc: linux-iio, Linux Kernel Mailing List, devicetree, Rob Herring,
Jonathan Cameron, Peter Meerwald
In-Reply-To: <20200603084441.33952-4-tomasz.duszynski@octakon.com>
On Wed, Jun 3, 2020 at 11:47 AM Tomasz Duszynski
<tomasz.duszynski@octakon.com> wrote:
>
> Add serial interface driver for the SCD30 sensor.
FWIW,
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
> ---
> MAINTAINERS | 1 +
> drivers/iio/chemical/Kconfig | 11 ++
> drivers/iio/chemical/Makefile | 1 +
> drivers/iio/chemical/scd30_serial.c | 263 ++++++++++++++++++++++++++++
> 4 files changed, 276 insertions(+)
> create mode 100644 drivers/iio/chemical/scd30_serial.c
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 13aed3473b7e..5db4b446c8ba 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -15143,6 +15143,7 @@ S: Maintained
> F: drivers/iio/chemical/scd30.h
> F: drivers/iio/chemical/scd30_core.c
> F: drivers/iio/chemical/scd30_i2c.c
> +F: drivers/iio/chemical/scd30_serial.c
>
> SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER
> M: Tomasz Duszynski <tduszyns@gmail.com>
> diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig
> index 970d34888c2e..10bb431bc3ce 100644
> --- a/drivers/iio/chemical/Kconfig
> +++ b/drivers/iio/chemical/Kconfig
> @@ -107,6 +107,17 @@ config SCD30_I2C
> To compile this driver as a module, choose M here: the module will
> be called scd30_i2c.
>
> +config SCD30_SERIAL
> + tristate "SCD30 carbon dioxide sensor serial driver"
> + depends on SCD30_CORE && SERIAL_DEV_BUS
> + select CRC16
> + help
> + Say Y here to build support for the Sensirion SCD30 serial interface
> + driver.
> +
> + To compile this driver as a module, choose M here: the module will
> + be called scd30_serial.
> +
> config SENSIRION_SGP30
> tristate "Sensirion SGPxx gas sensors"
> depends on I2C
> diff --git a/drivers/iio/chemical/Makefile b/drivers/iio/chemical/Makefile
> index 0966ca34e34b..fef63dd5bf92 100644
> --- a/drivers/iio/chemical/Makefile
> +++ b/drivers/iio/chemical/Makefile
> @@ -14,6 +14,7 @@ obj-$(CONFIG_IAQCORE) += ams-iaq-core.o
> obj-$(CONFIG_PMS7003) += pms7003.o
> obj-$(CONFIG_SCD30_CORE) += scd30_core.o
> obj-$(CONFIG_SCD30_I2C) += scd30_i2c.o
> +obj-$(CONFIG_SCD30_SERIAL) += scd30_serial.o
> obj-$(CONFIG_SENSIRION_SGP30) += sgp30.o
> obj-$(CONFIG_SPS30) += sps30.o
> obj-$(CONFIG_VZ89X) += vz89x.o
> diff --git a/drivers/iio/chemical/scd30_serial.c b/drivers/iio/chemical/scd30_serial.c
> new file mode 100644
> index 000000000000..06f85eb1a4dd
> --- /dev/null
> +++ b/drivers/iio/chemical/scd30_serial.c
> @@ -0,0 +1,263 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Sensirion SCD30 carbon dioxide sensor serial driver
> + *
> + * Copyright (c) 2020 Tomasz Duszynski <tomasz.duszynski@octakon.com>
> + */
> +#include <linux/crc16.h>
> +#include <linux/device.h>
> +#include <linux/errno.h>
> +#include <linux/iio/iio.h>
> +#include <linux/jiffies.h>
> +#include <linux/mod_devicetable.h>
> +#include <linux/module.h>
> +#include <linux/property.h>
> +#include <linux/serdev.h>
> +#include <linux/string.h>
> +#include <linux/types.h>
> +#include <asm/unaligned.h>
> +
> +#include "scd30.h"
> +
> +#define SCD30_SERDEV_ADDR 0x61
> +#define SCD30_SERDEV_WRITE 0x06
> +#define SCD30_SERDEV_READ 0x03
> +#define SCD30_SERDEV_MAX_BUF_SIZE 17
> +#define SCD30_SERDEV_RX_HEADER_SIZE 3
> +#define SCD30_SERDEV_CRC_SIZE 2
> +#define SCD30_SERDEV_TIMEOUT msecs_to_jiffies(200)
> +
> +struct scd30_serdev_priv {
> + struct completion meas_ready;
> + char *buf;
> + int num_expected;
> + int num;
> +};
> +
> +static u16 scd30_serdev_cmd_lookup_tbl[] = {
> + [CMD_START_MEAS] = 0x0036,
> + [CMD_STOP_MEAS] = 0x0037,
> + [CMD_MEAS_INTERVAL] = 0x0025,
> + [CMD_MEAS_READY] = 0x0027,
> + [CMD_READ_MEAS] = 0x0028,
> + [CMD_ASC] = 0x003a,
> + [CMD_FRC] = 0x0039,
> + [CMD_TEMP_OFFSET] = 0x003b,
> + [CMD_FW_VERSION] = 0x0020,
> + [CMD_RESET] = 0x0034,
> +};
> +
> +static u16 scd30_serdev_calc_crc(const char *buf, int size)
> +{
> + return crc16(0xffff, buf, size);
> +}
> +
> +static int scd30_serdev_xfer(struct scd30_state *state, char *txbuf, int txsize,
> + char *rxbuf, int rxsize)
> +{
> + struct serdev_device *serdev = to_serdev_device(state->dev);
> + struct scd30_serdev_priv *priv = state->priv;
> + int ret;
> +
> + priv->buf = rxbuf;
> + priv->num_expected = rxsize;
> + priv->num = 0;
> +
> + ret = serdev_device_write(serdev, txbuf, txsize, SCD30_SERDEV_TIMEOUT);
> + if (ret < 0)
> + return ret;
> + if (ret != txsize)
> + return -EIO;
> +
> + ret = wait_for_completion_interruptible_timeout(&priv->meas_ready, SCD30_SERDEV_TIMEOUT);
> + if (ret < 0)
> + return ret;
> + if (!ret)
> + return -ETIMEDOUT;
> +
> + return 0;
> +}
> +
> +static int scd30_serdev_command(struct scd30_state *state, enum scd30_cmd cmd, u16 arg,
> + void *response, int size)
> +{
> + /*
> + * Communication over serial line is based on modbus protocol (or rather
> + * its variation called modbus over serial to be precise). Upon
> + * receiving a request device should reply with response.
> + *
> + * Frame below represents a request message. Each field takes
> + * exactly one byte.
> + *
> + * +------+------+-----+-----+-------+-------+-----+-----+
> + * | dev | op | reg | reg | byte1 | byte0 | crc | crc |
> + * | addr | code | msb | lsb | | | lsb | msb |
> + * +------+------+-----+-----+-------+-------+-----+-----+
> + *
> + * The message device replies with depends on the 'op code' field from
> + * the request. In case it was set to SCD30_SERDEV_WRITE sensor should
> + * reply with unchanged request. Otherwise 'op code' was set to
> + * SCD30_SERDEV_READ and response looks like the one below. As with
> + * request, each field takes one byte.
> + *
> + * +------+------+--------+-------+-----+-------+-----+-----+
> + * | dev | op | num of | byte0 | ... | byteN | crc | crc |
> + * | addr | code | bytes | | | | lsb | msb |
> + * +------+------+--------+-------+-----+-------+-----+-----+
> + */
> + char txbuf[SCD30_SERDEV_MAX_BUF_SIZE] = { SCD30_SERDEV_ADDR },
> + rxbuf[SCD30_SERDEV_MAX_BUF_SIZE];
> + int ret, rxsize, txsize = 2;
> + char *rsp = response;
> + u16 crc;
> +
> + put_unaligned_be16(scd30_serdev_cmd_lookup_tbl[cmd], txbuf + txsize);
> + txsize += 2;
> +
> + if (rsp) {
> + txbuf[1] = SCD30_SERDEV_READ;
> + if (cmd == CMD_READ_MEAS)
> + /* number of u16 words to read */
> + put_unaligned_be16(size / 2, txbuf + txsize);
> + else
> + put_unaligned_be16(0x0001, txbuf + txsize);
> + txsize += 2;
> + crc = scd30_serdev_calc_crc(txbuf, txsize);
> + put_unaligned_le16(crc, txbuf + txsize);
> + txsize += 2;
> + rxsize = SCD30_SERDEV_RX_HEADER_SIZE + size + SCD30_SERDEV_CRC_SIZE;
> + } else {
> + if ((cmd == CMD_STOP_MEAS) || (cmd == CMD_RESET))
> + arg = 0x0001;
> +
> + txbuf[1] = SCD30_SERDEV_WRITE;
> + put_unaligned_be16(arg, txbuf + txsize);
> + txsize += 2;
> + crc = scd30_serdev_calc_crc(txbuf, txsize);
> + put_unaligned_le16(crc, txbuf + txsize);
> + txsize += 2;
> + rxsize = txsize;
> + }
> +
> + ret = scd30_serdev_xfer(state, txbuf, txsize, rxbuf, rxsize);
> + if (ret)
> + return ret;
> +
> + switch (txbuf[1]) {
> + case SCD30_SERDEV_WRITE:
> + if (memcmp(txbuf, rxbuf, txsize)) {
> + dev_err(state->dev, "wrong message received\n");
> + return -EIO;
> + }
> + break;
> + case SCD30_SERDEV_READ:
> + if (rxbuf[2] != (rxsize - SCD30_SERDEV_RX_HEADER_SIZE - SCD30_SERDEV_CRC_SIZE)) {
> + dev_err(state->dev, "received data size does not match header\n");
> + return -EIO;
> + }
> +
> + rxsize -= SCD30_SERDEV_CRC_SIZE;
> + crc = get_unaligned_le16(rxbuf + rxsize);
> + if (crc != scd30_serdev_calc_crc(rxbuf, rxsize)) {
> + dev_err(state->dev, "data integrity check failed\n");
> + return -EIO;
> + }
> +
> + rxsize -= SCD30_SERDEV_RX_HEADER_SIZE;
> + memcpy(rsp, rxbuf + SCD30_SERDEV_RX_HEADER_SIZE, rxsize);
> + break;
> + default:
> + dev_err(state->dev, "received unknown op code\n");
> + return -EIO;
> + }
> +
> + return 0;
> +}
> +
> +static int scd30_serdev_receive_buf(struct serdev_device *serdev,
> + const unsigned char *buf, size_t size)
> +{
> + struct iio_dev *indio_dev = dev_get_drvdata(&serdev->dev);
> + struct scd30_serdev_priv *priv;
> + struct scd30_state *state;
> + int num;
> +
> + if (!indio_dev)
> + return 0;
> +
> + state = iio_priv(indio_dev);
> + priv = state->priv;
> +
> + /* just in case sensor puts some unexpected bytes on the bus */
> + if (!priv->buf)
> + return 0;
> +
> + if (priv->num + size >= priv->num_expected)
> + num = priv->num_expected - priv->num;
> + else
> + num = size;
> +
> + memcpy(priv->buf + priv->num, buf, num);
> + priv->num += num;
> +
> + if (priv->num == priv->num_expected) {
> + priv->buf = NULL;
> + complete(&priv->meas_ready);
> + }
> +
> + return num;
> +}
> +
> +static const struct serdev_device_ops scd30_serdev_ops = {
> + .receive_buf = scd30_serdev_receive_buf,
> + .write_wakeup = serdev_device_write_wakeup,
> +};
> +
> +static int scd30_serdev_probe(struct serdev_device *serdev)
> +{
> + struct device *dev = &serdev->dev;
> + struct scd30_serdev_priv *priv;
> + int irq, ret;
> +
> + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> + if (!priv)
> + return -ENOMEM;
> +
> + init_completion(&priv->meas_ready);
> + serdev_device_set_client_ops(serdev, &scd30_serdev_ops);
> +
> + ret = devm_serdev_device_open(dev, serdev);
> + if (ret)
> + return ret;
> +
> + serdev_device_set_baudrate(serdev, 19200);
> + serdev_device_set_flow_control(serdev, false);
> +
> + ret = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
> + if (ret)
> + return ret;
> +
> + irq = fwnode_irq_get(dev_fwnode(dev), 0);
> +
> + return scd30_probe(dev, irq, KBUILD_MODNAME, priv, scd30_serdev_command);
> +}
> +
> +static const struct of_device_id scd30_serdev_of_match[] = {
> + { .compatible = "sensirion,scd30" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, scd30_serdev_of_match);
> +
> +static struct serdev_device_driver scd30_serdev_driver = {
> + .driver = {
> + .name = KBUILD_MODNAME,
> + .of_match_table = scd30_serdev_of_match,
> + .pm = &scd30_pm_ops,
> + },
> + .probe = scd30_serdev_probe,
> +};
> +module_serdev_device_driver(scd30_serdev_driver);
> +
> +MODULE_AUTHOR("Tomasz Duszynski <tomasz.duszynski@octakon.com>");
> +MODULE_DESCRIPTION("Sensirion SCD30 carbon dioxide sensor serial driver");
> +MODULE_LICENSE("GPL v2");
> --
> 2.27.0
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v4 2/4] iio: chemical: scd30: add I2C interface driver
From: Andy Shevchenko @ 2020-06-03 11:29 UTC (permalink / raw)
To: Tomasz Duszynski
Cc: linux-iio, Linux Kernel Mailing List, devicetree, Rob Herring,
Jonathan Cameron, Peter Meerwald
In-Reply-To: <20200603084441.33952-3-tomasz.duszynski@octakon.com>
On Wed, Jun 3, 2020 at 11:47 AM Tomasz Duszynski
<tomasz.duszynski@octakon.com> wrote:
>
> Add I2C interface driver for the SCD30 sensor.
>
FWIW,
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com>
> ---
> MAINTAINERS | 1 +
> drivers/iio/chemical/Kconfig | 11 +++
> drivers/iio/chemical/Makefile | 1 +
> drivers/iio/chemical/scd30_i2c.c | 139 +++++++++++++++++++++++++++++++
> 4 files changed, 152 insertions(+)
> create mode 100644 drivers/iio/chemical/scd30_i2c.c
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 41a509cca6f1..13aed3473b7e 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -15142,6 +15142,7 @@ M: Tomasz Duszynski <tomasz.duszynski@octakon.com>
> S: Maintained
> F: drivers/iio/chemical/scd30.h
> F: drivers/iio/chemical/scd30_core.c
> +F: drivers/iio/chemical/scd30_i2c.c
>
> SENSIRION SPS30 AIR POLLUTION SENSOR DRIVER
> M: Tomasz Duszynski <tduszyns@gmail.com>
> diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig
> index 99e852b67e55..970d34888c2e 100644
> --- a/drivers/iio/chemical/Kconfig
> +++ b/drivers/iio/chemical/Kconfig
> @@ -96,6 +96,17 @@ config SCD30_CORE
> To compile this driver as a module, choose M here: the module will
> be called scd30_core.
>
> +config SCD30_I2C
> + tristate "SCD30 carbon dioxide sensor I2C driver"
> + depends on SCD30_CORE && I2C
> + select CRC8
> + help
> + Say Y here to build support for the Sensirion SCD30 I2C interface
> + driver.
> +
> + To compile this driver as a module, choose M here: the module will
> + be called scd30_i2c.
> +
> config SENSIRION_SGP30
> tristate "Sensirion SGPxx gas sensors"
> depends on I2C
> diff --git a/drivers/iio/chemical/Makefile b/drivers/iio/chemical/Makefile
> index c9804b041ecd..0966ca34e34b 100644
> --- a/drivers/iio/chemical/Makefile
> +++ b/drivers/iio/chemical/Makefile
> @@ -13,6 +13,7 @@ obj-$(CONFIG_CCS811) += ccs811.o
> obj-$(CONFIG_IAQCORE) += ams-iaq-core.o
> obj-$(CONFIG_PMS7003) += pms7003.o
> obj-$(CONFIG_SCD30_CORE) += scd30_core.o
> +obj-$(CONFIG_SCD30_I2C) += scd30_i2c.o
> obj-$(CONFIG_SENSIRION_SGP30) += sgp30.o
> obj-$(CONFIG_SPS30) += sps30.o
> obj-$(CONFIG_VZ89X) += vz89x.o
> diff --git a/drivers/iio/chemical/scd30_i2c.c b/drivers/iio/chemical/scd30_i2c.c
> new file mode 100644
> index 000000000000..875892a070ee
> --- /dev/null
> +++ b/drivers/iio/chemical/scd30_i2c.c
> @@ -0,0 +1,139 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Sensirion SCD30 carbon dioxide sensor i2c driver
> + *
> + * Copyright (c) 2020 Tomasz Duszynski <tomasz.duszynski@octakon.com>
> + *
> + * I2C slave address: 0x61
> + */
> +#include <linux/crc8.h>
> +#include <linux/device.h>
> +#include <linux/errno.h>
> +#include <linux/i2c.h>
> +#include <linux/mod_devicetable.h>
> +#include <linux/module.h>
> +#include <linux/types.h>
> +#include <asm/unaligned.h>
> +
> +#include "scd30.h"
> +
> +#define SCD30_I2C_MAX_BUF_SIZE 18
> +#define SCD30_I2C_CRC8_POLYNOMIAL 0x31
> +
> +static u16 scd30_i2c_cmd_lookup_tbl[] = {
> + [CMD_START_MEAS] = 0x0010,
> + [CMD_STOP_MEAS] = 0x0104,
> + [CMD_MEAS_INTERVAL] = 0x4600,
> + [CMD_MEAS_READY] = 0x0202,
> + [CMD_READ_MEAS] = 0x0300,
> + [CMD_ASC] = 0x5306,
> + [CMD_FRC] = 0x5204,
> + [CMD_TEMP_OFFSET] = 0x5403,
> + [CMD_FW_VERSION] = 0xd100,
> + [CMD_RESET] = 0xd304,
> +};
> +
> +DECLARE_CRC8_TABLE(scd30_i2c_crc8_tbl);
> +
> +static int scd30_i2c_xfer(struct scd30_state *state, char *txbuf, int txsize,
> + char *rxbuf, int rxsize)
> +{
> + struct i2c_client *client = to_i2c_client(state->dev);
> + int ret;
> +
> + /*
> + * repeated start is not supported hence instead of sending two i2c
> + * messages in a row we send one by one
> + */
> + ret = i2c_master_send(client, txbuf, txsize);
> + if (ret < 0)
> + return ret;
> + if (ret != txsize)
> + return -EIO;
> +
> + if (!rxbuf)
> + return 0;
> +
> + ret = i2c_master_recv(client, rxbuf, rxsize);
> + if (ret < 0)
> + return ret;
> + if (ret != rxsize)
> + return -EIO;
> +
> + return 0;
> +}
> +
> +static int scd30_i2c_command(struct scd30_state *state, enum scd30_cmd cmd, u16 arg,
> + void *response, int size)
> +{
> + char buf[SCD30_I2C_MAX_BUF_SIZE];
> + char *rsp = response;
> + int i, ret;
> + char crc;
> +
> + put_unaligned_be16(scd30_i2c_cmd_lookup_tbl[cmd], buf);
> + i = 2;
> +
> + if (rsp) {
> + /* each two bytes are followed by a crc8 */
> + size += size / 2;
> + } else {
> + put_unaligned_be16(arg, buf + i);
> + crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE);
> + i += 2;
> + buf[i] = crc;
> + i += 1;
> +
> + /* commands below don't take an argument */
> + if ((cmd == CMD_STOP_MEAS) || (cmd == CMD_RESET))
> + i -= 3;
> + }
> +
> + ret = scd30_i2c_xfer(state, buf, i, buf, size);
> + if (ret)
> + return ret;
> +
> + /* validate received data and strip off crc bytes */
> + for (i = 0; i < size; i += 3) {
> + crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE);
> + if (crc != buf[i + 2]) {
> + dev_err(state->dev, "data integrity check failed\n");
> + return -EIO;
> + }
> +
> + *rsp++ = buf[i];
> + *rsp++ = buf[i + 1];
> + }
> +
> + return 0;
> +}
> +
> +static int scd30_i2c_probe(struct i2c_client *client)
> +{
> + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
> + return -EOPNOTSUPP;
> +
> + crc8_populate_msb(scd30_i2c_crc8_tbl, SCD30_I2C_CRC8_POLYNOMIAL);
> +
> + return scd30_probe(&client->dev, client->irq, client->name, NULL, scd30_i2c_command);
> +}
> +
> +static const struct of_device_id scd30_i2c_of_match[] = {
> + { .compatible = "sensirion,scd30" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, scd30_i2c_of_match);
> +
> +static struct i2c_driver scd30_i2c_driver = {
> + .driver = {
> + .name = KBUILD_MODNAME,
> + .of_match_table = scd30_i2c_of_match,
> + .pm = &scd30_pm_ops,
> + },
> + .probe_new = scd30_i2c_probe,
> +};
> +module_i2c_driver(scd30_i2c_driver);
> +
> +MODULE_AUTHOR("Tomasz Duszynski <tomasz.duszynski@octakon.com>");
> +MODULE_DESCRIPTION("Sensirion SCD30 carbon dioxide sensor i2c driver");
> +MODULE_LICENSE("GPL v2");
> --
> 2.27.0
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply
* Re: [PATCH v3 2/6] PCI: uniphier: Add misc interrupt handler to invoke PME and AER
From: Marc Zyngier @ 2020-06-03 11:22 UTC (permalink / raw)
To: Kunihiko Hayashi
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Jingoo Han, Gustavo Pimentel,
Rob Herring, Masahiro Yamada, linux-pci, devicetree,
linux-arm-kernel, linux-kernel, Masami Hiramatsu, Jassi Brar
In-Reply-To: <1591174481-13975-3-git-send-email-hayashi.kunihiko@socionext.com>
On 2020-06-03 09:54, Kunihiko Hayashi wrote:
> The misc interrupts consisting of PME, AER, and Link event, is handled
> by INTx handler, however, these interrupts should be also handled by
> MSI handler.
>
> This adds the function uniphier_pcie_misc_isr() that handles misc
> intterupts, which is called from both INTx and MSI handlers.
interrupts
> This function detects PME and AER interrupts with the status register,
> and invoke PME and AER drivers related to INTx or MSI.
>
> And this sets the mask for misc interrupts from INTx if MSI is enabled
> and sets the mask for misc interrupts from MSI if MSI is disabled.
>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---
> drivers/pci/controller/dwc/pcie-uniphier.c | 53
> +++++++++++++++++++++++-------
> 1 file changed, 42 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/pci/controller/dwc/pcie-uniphier.c
> b/drivers/pci/controller/dwc/pcie-uniphier.c
> index a5401a0..a8dda39 100644
> --- a/drivers/pci/controller/dwc/pcie-uniphier.c
> +++ b/drivers/pci/controller/dwc/pcie-uniphier.c
> @@ -44,7 +44,9 @@
> #define PCL_SYS_AUX_PWR_DET BIT(8)
>
> #define PCL_RCV_INT 0x8108
> +#define PCL_RCV_INT_ALL_INT_MASK GENMASK(28, 25)
> #define PCL_RCV_INT_ALL_ENABLE GENMASK(20, 17)
> +#define PCL_RCV_INT_ALL_MSI_MASK GENMASK(12, 9)
> #define PCL_CFG_BW_MGT_STATUS BIT(4)
> #define PCL_CFG_LINK_AUTO_BW_STATUS BIT(3)
> #define PCL_CFG_AER_RC_ERR_MSI_STATUS BIT(2)
> @@ -167,7 +169,15 @@ static void uniphier_pcie_stop_link(struct dw_pcie
> *pci)
>
> static void uniphier_pcie_irq_enable(struct uniphier_pcie_priv *priv)
> {
> - writel(PCL_RCV_INT_ALL_ENABLE, priv->base + PCL_RCV_INT);
> + u32 val;
> +
> + val = PCL_RCV_INT_ALL_ENABLE;
> + if (pci_msi_enabled())
> + val |= PCL_RCV_INT_ALL_INT_MASK;
> + else
> + val |= PCL_RCV_INT_ALL_MSI_MASK;
> +
> + writel(val, priv->base + PCL_RCV_INT);
> writel(PCL_RCV_INTX_ALL_ENABLE, priv->base + PCL_RCV_INTX);
> }
>
> @@ -231,28 +241,48 @@ static const struct irq_domain_ops
> uniphier_intx_domain_ops = {
> .map = uniphier_pcie_intx_map,
> };
>
> -static void uniphier_pcie_irq_handler(struct irq_desc *desc)
> +static void uniphier_pcie_misc_isr(struct pcie_port *pp)
> {
> - struct pcie_port *pp = irq_desc_get_handler_data(desc);
> struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> struct uniphier_pcie_priv *priv = to_uniphier_pcie(pci);
> - struct irq_chip *chip = irq_desc_get_chip(desc);
> - unsigned long reg;
> - u32 val, bit, virq;
> + u32 val, virq;
>
> - /* INT for debug */
> val = readl(priv->base + PCL_RCV_INT);
>
> if (val & PCL_CFG_BW_MGT_STATUS)
> dev_dbg(pci->dev, "Link Bandwidth Management Event\n");
> +
> if (val & PCL_CFG_LINK_AUTO_BW_STATUS)
> dev_dbg(pci->dev, "Link Autonomous Bandwidth Event\n");
> - if (val & PCL_CFG_AER_RC_ERR_MSI_STATUS)
> - dev_dbg(pci->dev, "Root Error\n");
> - if (val & PCL_CFG_PME_MSI_STATUS)
> - dev_dbg(pci->dev, "PME Interrupt\n");
> +
> + if (pci_msi_enabled()) {
This checks whether the kernel supports MSIs. Not that they are
enabled in your controller. Is that really what you want to do?
> + if (val & PCL_CFG_AER_RC_ERR_MSI_STATUS) {
> + dev_dbg(pci->dev, "Root Error Status\n");
> + virq = irq_linear_revmap(pp->irq_domain, 0);
> + generic_handle_irq(virq);
> + }
> +
> + if (val & PCL_CFG_PME_MSI_STATUS) {
> + dev_dbg(pci->dev, "PME Interrupt\n");
> + virq = irq_linear_revmap(pp->irq_domain, 0);
> + generic_handle_irq(virq);
> + }
These two cases do the exact same thing, calling the same interrupt.
What is the point of dealing with them independently?
> + }
>
> writel(val, priv->base + PCL_RCV_INT);
> +}
> +
> +static void uniphier_pcie_irq_handler(struct irq_desc *desc)
> +{
> + struct pcie_port *pp = irq_desc_get_handler_data(desc);
> + struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
> + struct uniphier_pcie_priv *priv = to_uniphier_pcie(pci);
> + struct irq_chip *chip = irq_desc_get_chip(desc);
> + unsigned long reg;
> + u32 val, bit, virq;
> +
> + /* misc interrupt */
> + uniphier_pcie_misc_isr(pp);
This is a chained handler called outside of a chained_irq_enter/exit
block. It isn't acceptable.
>
> /* INTx */
> chained_irq_enter(chip, desc);
> @@ -330,6 +360,7 @@ static int uniphier_pcie_host_init(struct pcie_port
> *pp)
>
> static const struct dw_pcie_host_ops uniphier_pcie_host_ops = {
> .host_init = uniphier_pcie_host_init,
> + .msi_host_isr = uniphier_pcie_misc_isr,
> };
>
> static int uniphier_add_pcie_port(struct uniphier_pcie_priv *priv,
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply
* Re: [PATCH v3 04/20] arm64: dts: arm: vexpress: Move fixed devices out of bus node
From: André Przywara @ 2020-06-03 11:20 UTC (permalink / raw)
To: Rob Herring
Cc: Guenter Roeck, Sudeep Holla, Liviu Dudau, Lorenzo Pieralisi,
Mark Rutland, devicetree,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE
In-Reply-To: <CAL_JsqLgNDd-+rrYD=Y0Hm=NaV7f0NbBFb9uhhYhzM6LjxnXZg@mail.gmail.com>
On 02/06/2020 00:12, Rob Herring wrote:
Hi,
> On Mon, Jun 1, 2020 at 4:15 AM André Przywara <andre.przywara@arm.com> wrote:
>>
>> On 28/05/2020 14:30, André Przywara wrote:
>>
>> Hi,
>>
>>> On 28/05/2020 03:48, Guenter Roeck wrote:
>>>
>>> Hi Guenter,
>>>
>>>> On Wed, May 13, 2020 at 11:30:00AM +0100, Andre Przywara wrote:
>>>>> The devicetree compiler complains when DT nodes without a reg property
>>>>> live inside a (simple) bus node:
>>>>> Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/refclk32khz
>>>>> missing or empty reg/ranges property
>>>>>
>>>>> Move the fixed clocks, the fixed regulator, the leds and the config bus
>>>>> subtree to the root node, since they do not depend on any busses.
>>>>>
>>>>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>>>>
>>>> This patch results in tracebacks when booting the vexpress-a15 machine
>>>> with vexpress-v2p-ca15-tc1 devicetree file in qemu. Reverting it as well
>>>> as the subsequent patches affecting the same file (to avoid revert
>>>> conflicts) fixes the problem.
>>>
>>> Many thanks for the heads up! I was able to reproduce it here. On the
>>> first glance it looks like the UART is probed before the clocks now,
>>> because the traversal of the changed DT leads to a different probe
>>> order. I will look into how to fix this.
>>
>> Turned out to be a bit more complicated:
>> The arm,vexpress,config-bus driver walks up the device tree to find a
>> arm,vexpress,site property [1]. With this patch the first parent node
>> with that property it finds is now the root node, with the wrong site ID
>> (0xf instead of 0x0). So it queries the wrong clocks (those IDs are
>> actually reserved there), and QEMU reports back "0", consequently [2].
>> Finding a clock frequency in the range of [0, 0] won't get very far.
>>
>> Possible solutions are:
>> 1) Just keep the mcc and its children at where it is in mainline right
>> now, so *partly* reverting this patch. This has the problem of still
>> producing a dtc warning, so kind of defeats the purpose of this patch.
>>
>> 2) Add a "arm,vexpress,site = <0>;" line to the "mcc" node itself.
>> Works, but looks somewhat dodgy, as the mcc node should really be a
>> child of the motherboard node, and we should not hack around this.
>>
>> 3) Dig deeper and fix the DT in a way that makes dtc happy. Might
>> involve (dummy?) ranges or reg properties. My gut feeling is that
>> arm,vexpress-sysreg,func should really have been "reg" in the first
>> place, but that's too late to change now, anyway.
>>
>> I will post 2) as a fix if 3) turns out to be not feasible.
>
> I would just do 1).
>
> To some extent, the warnings are for avoiding poor design on new
> bindings. We need a way to distinguish between existing boards and new
> ones. Maybe dts needs to learn some warning disable annotations or we
> need per target warning settings (DTC_FLAGS_foo.dtb ?). Or maybe this
> check is just too strict.
So I was always wondering about this check, actually. A simple-bus
describes a bus which is mapped into the CPU address space (in contrast
to say an I2C bus, for instance). So children of this bus node typically
have a reg property.
Now also those simple-bus nodes seem to be used to logically group
hardware in a DT (see this "motherboard" node here). *If* we go with
this, we should also allow other subnodes, for instance fixed-clocks:
after all there is probably an actual fixed crystal oscillator on the
motherboard, so it would also belong in there.
I see that (ab)using simple-bus for *just* grouping nodes is probably
not a good design, but I don't see why *every* child must be mapped into
the address space.
Maybe dtc's simple-bus check should indeed be relaxed, to just require
*at least one* child with a reg or ranges property, but also allow other
nodes?
Cheers,
Andre
^ permalink raw reply
* Re: [PATCH v3 1/6] PCI: dwc: Add msi_host_isr() callback
From: Marc Zyngier @ 2020-06-03 11:15 UTC (permalink / raw)
To: Kunihiko Hayashi
Cc: Bjorn Helgaas, Lorenzo Pieralisi, Jingoo Han, Gustavo Pimentel,
Rob Herring, Masahiro Yamada, linux-pci, devicetree,
linux-arm-kernel, linux-kernel, Masami Hiramatsu, Jassi Brar
In-Reply-To: <1591174481-13975-2-git-send-email-hayashi.kunihiko@socionext.com>
On 2020-06-03 09:54, Kunihiko Hayashi wrote:
> This adds msi_host_isr() callback function support to describe
> SoC-dependent service triggered by MSI.
>
> For example, when AER interrupt is triggered by MSI, the callback
> function
> reads SoC-dependent registers and detects that the interrupt is from
> AER,
> and invoke AER interrupts related to MSI.
>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Jingoo Han <jingoohan1@gmail.com>
> Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---
> drivers/pci/controller/dwc/pcie-designware-host.c | 8 ++++----
> drivers/pci/controller/dwc/pcie-designware.h | 1 +
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c
> b/drivers/pci/controller/dwc/pcie-designware-host.c
> index 0a4a5aa..9b628a2 100644
> --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> @@ -112,13 +112,13 @@ irqreturn_t dw_handle_msi_irq(struct pcie_port
> *pp)
> static void dw_chained_msi_isr(struct irq_desc *desc)
> {
> struct irq_chip *chip = irq_desc_get_chip(desc);
> - struct pcie_port *pp;
> + struct pcie_port *pp = irq_desc_get_handler_data(desc);
>
> - chained_irq_enter(chip, desc);
> + if (pp->ops->msi_host_isr)
> + pp->ops->msi_host_isr(pp);
Why is this call outside of the enter/exit guards?
Do you still need to execute the standard handler?
>
> - pp = irq_desc_get_handler_data(desc);
> + chained_irq_enter(chip, desc);
> dw_handle_msi_irq(pp);
> -
> chained_irq_exit(chip, desc);
> }
>
> diff --git a/drivers/pci/controller/dwc/pcie-designware.h
> b/drivers/pci/controller/dwc/pcie-designware.h
> index 656e00f..e741967 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.h
> +++ b/drivers/pci/controller/dwc/pcie-designware.h
> @@ -170,6 +170,7 @@ struct dw_pcie_host_ops {
> void (*scan_bus)(struct pcie_port *pp);
> void (*set_num_vectors)(struct pcie_port *pp);
> int (*msi_host_init)(struct pcie_port *pp);
> + void (*msi_host_isr)(struct pcie_port *pp);
> };
>
> struct pcie_port {
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply
* Re: Security Random Number Generator support
From: Marc Zyngier @ 2020-06-03 11:12 UTC (permalink / raw)
To: Neal Liu
Cc: Julius Werner, Ard Biesheuvel,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Herbert Xu, Arnd Bergmann, Greg Kroah-Hartman, Sean Wang,
linux-mediatek, lkml, wsd_upstream, Rob Herring,
Linux Crypto Mailing List, Matt Mackall, Matthias Brugger,
Crystal Guo (郭晶), Linux ARM, mark.rutland,
Jose.Marinho
In-Reply-To: <1591170857.19414.5.camel@mtkswgap22>
On 2020-06-03 08:54, Neal Liu wrote:
> On Wed, 2020-06-03 at 08:40 +0100, Marc Zyngier wrote:
>> On 2020-06-03 08:29, Neal Liu wrote:
[...]
>> > 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.
>>
>> There is zero benefit in having a platform-dependent ID. It just
>> pointlessly increases complexity, and means we cannot use the RNG
>> before the firmware tables are available (yes, we need it that
>> early).
>>
>> M.
>
> Do you know which ARM expert could edict this standard?
> Or is there any chance that we can make one? And be reviewed by
> maintainers?
Sudeep already mentioned Jose's effort to offer a standard.
Hopefully he will *soon* be able to give us something that can be
implemented everywhere (firmware, kernel, but also hypervisors),
as the need exists across the whole stack.
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply
* [PATCH 2/2] ASoC: wm8960: Support headphone jack detection function
From: Shengjiu Wang @ 2020-06-03 10:26 UTC (permalink / raw)
To: perex, tiwai, lgirdwood, broonie, ckeepax, allison, info, tglx,
patches, alsa-devel, linux-kernel, robh+dt, devicetree
In-Reply-To: <1591180013-12416-1-git-send-email-shengjiu.wang@nxp.com>
Add two platform variables for headphone jack detection.
"hp_cfg" is for configuration of heaphone jack detection.
"gpio_cfg" is for configuration of gpio, the gpio is used
for plug & unplug interrupt on SoC.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
include/sound/wm8960.h | 17 +++++++++++++++++
sound/soc/codecs/wm8960.c | 20 ++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/include/sound/wm8960.h b/include/sound/wm8960.h
index d22e84805025..275fd5b201ce 100644
--- a/include/sound/wm8960.h
+++ b/include/sound/wm8960.h
@@ -16,6 +16,23 @@ struct wm8960_data {
bool capless; /* Headphone outputs configured in capless mode */
bool shared_lrclk; /* DAC and ADC LRCLKs are wired together */
+
+ /*
+ * Setup for headphone detection
+ *
+ * hp_cfg[0]: HPSEL[1:0] of R48 (Additional Control 4)
+ * hp_cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2).
+ * hp_cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
+ */
+ u32 hp_cfg[3];
+
+ /*
+ * Setup for gpio configuration
+ *
+ * gpio_cfg[0]: ALRCGPIO of R9 (Audio interface)
+ * gpio_cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).
+ */
+ u32 gpio_cfg[2];
};
#endif
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 6cf0f6612bda..2f7f0493144a 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -1389,6 +1389,12 @@ static void wm8960_set_pdata_from_of(struct i2c_client *i2c,
if (of_property_read_bool(np, "wlf,shared-lrclk"))
pdata->shared_lrclk = true;
+
+ of_property_read_u32_array(np, "wlf,gpio-cfg", pdata->gpio_cfg,
+ ARRAY_SIZE(pdata->gpio_cfg));
+
+ of_property_read_u32_array(np, "wlf,hp-cfg", pdata->hp_cfg,
+ ARRAY_SIZE(pdata->hp_cfg));
}
static int wm8960_i2c_probe(struct i2c_client *i2c,
@@ -1446,6 +1452,20 @@ static int wm8960_i2c_probe(struct i2c_client *i2c,
regmap_update_bits(wm8960->regmap, WM8960_LOUT2, 0x100, 0x100);
regmap_update_bits(wm8960->regmap, WM8960_ROUT2, 0x100, 0x100);
+ /* ADCLRC pin configured as GPIO. */
+ regmap_update_bits(wm8960->regmap, WM8960_IFACE2, 1 << 6,
+ wm8960->pdata.gpio_cfg[0] << 6);
+ regmap_update_bits(wm8960->regmap, WM8960_ADDCTL4, 0xF << 4,
+ wm8960->pdata.gpio_cfg[1] << 4);
+
+ /* Enable headphone jack detect */
+ regmap_update_bits(wm8960->regmap, WM8960_ADDCTL4, 3 << 2,
+ wm8960->pdata.hp_cfg[0] << 2);
+ regmap_update_bits(wm8960->regmap, WM8960_ADDCTL2, 3 << 5,
+ wm8960->pdata.hp_cfg[1] << 5);
+ regmap_update_bits(wm8960->regmap, WM8960_ADDCTL1, 3,
+ wm8960->pdata.hp_cfg[2]);
+
i2c_set_clientdata(i2c, wm8960);
ret = devm_snd_soc_register_component(&i2c->dev,
--
2.21.0
^ permalink raw reply related
* [PATCH 1/2] ASoC: bindings: wm8960: Add property for headphone detection
From: Shengjiu Wang @ 2020-06-03 10:26 UTC (permalink / raw)
To: perex, tiwai, lgirdwood, broonie, ckeepax, allison, info, tglx,
patches, alsa-devel, linux-kernel, robh+dt, devicetree
Add two properties for headphone detection.
wlf,hp-cfg: A list of headphone jack detect configuration register values
wlf,gpio-cfg: A list of GPIO configuration register values
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
Documentation/devicetree/bindings/sound/wm8960.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/wm8960.txt b/Documentation/devicetree/bindings/sound/wm8960.txt
index 6d29ac3750ee..85d3b287108c 100644
--- a/Documentation/devicetree/bindings/sound/wm8960.txt
+++ b/Documentation/devicetree/bindings/sound/wm8960.txt
@@ -21,6 +21,17 @@ Optional properties:
enabled and disabled together with HP_L and HP_R pins in response to jack
detect events.
+ - wlf,hp-cfg: A list of headphone jack detect configuration register values.
+ The list must be 3 entries long.
+ hp-cfg[0]: HPSEL[1:0] of R48 (Additional Control 4).
+ hp-cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2).
+ hp-cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
+
+ - wlf,gpio-cfg: A list of GPIO configuration register values.
+ The list must be 2 entries long.
+ gpio-cfg[0]: ALRCGPIO of R9 (Audio interface)
+ gpio-cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).
+
Example:
wm8960: codec@1a {
--
2.21.0
^ permalink raw reply related
* Re: [Linux-stm32] [PATCH v8 08/10] drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
From: Adrian Ratiu @ 2020-06-03 10:28 UTC (permalink / raw)
To: Emil Velikov, Adrian Ratiu
Cc: devicetree@vger.kernel.org, Jernej Skrabec, Benjamin GAIGNARD,
Adrian Pop, Jonas Karlman, Philippe CORNU,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Yannick FERTRE, linux-rockchip@lists.infradead.org, Andrzej Hajda,
Laurent Pinchart, Arnaud Ferraris, kernel@collabora.com,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com
In-Reply-To: <CACvgo51QyzEa8LFpGq5zjYV-0TifQRtNh4WhMYy8jNtaswxd7Q@mail.gmail.com>
On Tue, 02 Jun 2020, Emil Velikov <emil.l.velikov@gmail.com>
wrote:
> Hi Adrian,
Hi Email,
>
> On Mon, 1 Jun 2020 at 10:14, Adrian Ratiu
> <adrian.ratiu@collabora.com> wrote:
>>
>> On Fri, 29 May 2020, Philippe CORNU <philippe.cornu@st.com>
>> wrote:
>> > Hi Adrian, and thank you very much for the patchset. Thank
>> > you also for having tested it on STM32F769 and STM32MP1.
>> > Sorry for the late response, Yannick and I will review it as
>> > soon as possible and we will keep you posted. Note: Do not
>> > hesitate to put us in copy for the next version
>> > (philippe.cornu@st.com, yannick.fertre@st.com) Regards,
>> > Philippe :-)
>>
>> Hi Philippe,
>>
>> Thank you very much for your previous and future STM testing,
>> really appreciate it! I've CC'd Yannick until now but I'll also
>> CC you sure :)
>>
>> It's been over a month since I posted v8 and I was just gearing
>> up to address all feedback, rebase & retest to prepare v9 but
>> I'll wait a little longer, no problem, it's no rush.
>>
> Small idea, pardon for joining so late:
>
> Might be a good idea to add inline comment, why the clocks are
> disabled so late. Effectively a 2 line version of the commit
> summary.
>
> Feel free to make that a separate/follow-up patch.
Thanks, I'll add the comment to this patch in v9.
>
> -Emil
>
> _______________________________________________
> Linux-rockchip mailing list
> Linux-rockchip@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rockchip
^ permalink raw reply
* Re: [PATCHv3 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation
From: Tero Kristo @ 2020-06-03 10:01 UTC (permalink / raw)
To: Rob Herring; +Cc: herbert, davem, Keerthy, devicetree, linux-crypto
In-Reply-To: <20200528152341.GA103581@bogus>
On 28/05/2020 18:23, Rob Herring wrote:
> On Thu, 14 May 2020 15:50:05 +0300, Tero Kristo wrote:
>> From: Keerthy <j-keerthy@ti.com>
>>
>> The Security Accelerator Ultra Lite (SA2UL) subsystem provides hardware
>> cryptographic acceleration for the following use cases:
>>
>> * Encryption and authentication for secure boot
>> * Encryption and authentication of content in applications
>> requiring DRM (digital rights management) and
>> content/asset protection
>>
>> SA2UL provides support for number of different cryptographic algorithms
>> including SHA1, SHA256, SHA512, AES, 3DES, and various combinations of
>> the previous for AEAD use.
>>
>> Cc: Rob Herring <robh@kernel.org>
>> Cc: devicetree@vger.kernel.org
>> Signed-off-by: Keerthy <j-keerthy@ti.com>
>> [t-kristo@ti.com: converted documentation to yaml]
>> Signed-off-by: Tero Kristo <t-kristo@ti.com>
>> ---
>> v3:
>> - fixed a typo in rng child node regex
>>
>> .../devicetree/bindings/crypto/ti,sa2ul.yaml | 76 +++++++++++++++++++
>> 1 file changed, 76 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml
>>
>
> Reviewed-by: Rob Herring <robh@kernel.org>
Thanks Rob,
Herbert, whats the plan with the rest of the series? Do you want me to
re-post it? It shows deferred under crypto patchwork currently.
-Tero
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
^ permalink raw reply
* RE: (EXT) [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
From: Robin Gong @ 2020-06-03 9:50 UTC (permalink / raw)
To: Matthias Schiffer
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: <5d246dd81607bb6e5cb9af86ad4e53f7a7a99c50.camel@ew.tq-group.com>
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?
^ permalink raw reply
* Re: [PATCH 1/4] clk: sunxi-ng: add support for the Allwinner A100 CCU
From: Chen-Yu Tsai @ 2020-06-03 9:48 UTC (permalink / raw)
To: 李扬韬
Cc: Maxime Ripard, robh+dt, mturquette, sboyd, linus.walleij, p.zabel,
黄烁生, tiny.windzz, linux-arm-kernel,
devicetree, linux-kernel, linux-clk, linux-gpio
In-Reply-To: <d7d6ee84-bfbb-4fef-9ed8-1f7045494594.frank@allwinnertech.com>
On Wed, Jun 3, 2020 at 5:42 PM 李扬韬 <frank@allwinnertech.com> wrote:
>
> >> + /* Enable the lock bits on all PLLs */
> >> + for (i = 0; i < ARRAY_SIZE(pll_regs); i++) {
> >> + val = readl(reg + pll_regs[i]);
> >> + val |= BIT(29);
> >
> >Having a define for that would be nice here
> >
> >> + writel(val, reg + pll_regs[i]);
> >> + }
> >> +
> >> + /*
> >> + * In order to pass the EMI certification, the SDM function of
> >> + * the peripheral 1 bus is enabled, and the frequency is still
> >> + * calculated using the previous division factor.
> >> + */
> >> + writel(0xd1303333, reg + SUN50I_A100_PLL_PERIPH1_PATTERN0_REG);
> >
> >Same here
>
> Having a define? I don’t quite understand what you mean,
> can you give me an example?
What Maxime means is that 0xd1303333 is a magic number.
It is better to make a properly named macro, or many macros
that you then bitwise-OR together. So you should make macros
for each bitfield in that register, which would likely include
the SDM calculation factors, the enable bit, and any other fields.
ChenYu
> MBR,
> Yangtao
^ 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