linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
@ 2020-05-20 20:34 Robin Gong
  2020-05-20 20:34 ` [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Robin Gong
                   ` (15 more replies)
  0 siblings, 16 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

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://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. 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.
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma

v2:
  1.Add commit log for reverted patches.
  2.Add comment for 'ecspi_fixed' in sdma driver.
  3.Add 'fsl,imx6sll-ecspi' compatible instead of 'fsl,imx6ul-ecspi'
    rather than remove.
v3:
  1.Confirm with design team make sure ERR009165 fixed on i.mx6ul/i.mx6ull
    /i.mx6sll, not fixed on i.mx8m/8mm and other i.mx6/7 legacy chips.
    Correct dts related dts patch in v2.
  2.Clean eratta information in binding doc and new 'tx_glitch_fixed' flag
    in spi-imx driver to state ERR009165 fixed or not.
  3.Enlarge burst size to fifo size for tx since tx_wml set to 0 in the
    errata workaroud, thus improve performance as possible.
v4:
  1.Add Ack tag from Mark and Vinod
  2.Remove checking 'event_id1' zero as 'event_id0'.
v5:
  1.Add the last patch for compatible with the current uart driver which
    using rom script, so both uart ram script and rom script supported
    in latest firmware, by default uart rom script used. UART driver
    will be broken without this patch.
v6:
  1.Resend after rebase the latest next branch.
  2.Remove below No.13~No.15 patches of v5 because they were mergered.
  	ARM: dts: imx6ul: add dma support on ecspi
  	ARM: dts: imx6sll: correct sdma compatible
  	arm64: defconfig: Enable SDMA on i.mx8mq/8mm
  3.Revert "dmaengine: imx-sdma: fix context cache" since
    'context_loaded' removed.
v7:
  1.Put the last patch 13/13 'Revert "dmaengine: imx-sdma: fix context
    cache"' to the ahead of 03/13 'Revert "dmaengine: imx-sdma: refine
    to load context only once" so that no building waring during comes out
    during bisect.
  2.Address Sascha's comments, including eliminating any i.mx6sx in this
    series, adding new 'is_imx6ul_ecspi()' instead imx in imx51 and taking
    care SMC bit for PIO.
  3.Add back missing 'Reviewed-by' tag on 08/15(v5):09/13(v7)
   'spi: imx: add new i.mx6ul compatible name in binding doc'
v8:
  1.remove 0003-Revert-dmaengine-imx-sdma-fix-context-cache.patch and merge
    it into 04/13 of v7
  2.add 0005-spi-imx-fallback-to-PIO-if-dma-setup-failure.patch for no any
    ecspi function broken even if sdma firmware not updated.
  3.merge 'tx.dst_maxburst' changes in the two continous patches into one
    patch to avoid confusion.
  4.fix typo 'duplicated'.

Robin Gong (13):
  Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"
  Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"
  Revert "dmaengine: imx-sdma: refine to load context only once"
  dmaengine: imx-sdma: remove duplicated sdma_load_context
  spi: imx: fallback to PIO if dma setup failure
  dmaengine: imx-sdma: add mcu_2_ecspi script
  spi: imx: fix ERR009165
  spi: imx: remove ERR009165 workaround on i.mx6ul
  spi: imx: add new i.mx6ul compatible name in binding doc
  dmaengine: imx-sdma: remove ERR009165 on i.mx6ul
  dma: imx-sdma: add i.mx6ul compatible name
  dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm
  dmaengine: imx-sdma: add uart rom script

 .../devicetree/bindings/dma/fsl-imx-sdma.txt       |  1 +
 .../devicetree/bindings/spi/fsl-imx-cspi.txt       |  1 +
 arch/arm/boot/dts/imx6q.dtsi                       |  2 +-
 arch/arm/boot/dts/imx6qdl.dtsi                     |  8 +-
 drivers/dma/imx-sdma.c                             | 67 ++++++++++------
 drivers/spi/spi-imx.c                              | 92 +++++++++++++++++++---
 include/linux/platform_data/dma-imx-sdma.h         |  8 +-
 7 files changed, 135 insertions(+), 44 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 02/13] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores" Robin Gong
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

  There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS
->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer
to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ
Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and
shp_2_mcu/mcu_2_shp script for such two options. So both AIPS and SPBA
scripts should keep the same behaviour, the issue only caught in AIPS
script sounds not solide.
  The issue is more likely as the ecspi errata
ERR009165(http://www.nxp.com/docs/en/errata/IMX6DQCE.pdf):
eCSPI: TXFIFO empty flag glitch can cause the current FIFO transfer to
       be sent twice
So revert commit 'df07101e1c4a' firstly.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
---
 arch/arm/boot/dts/imx6q.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
index 78a4d64..afdd9eb 100644
--- a/arch/arm/boot/dts/imx6q.dtsi
+++ b/arch/arm/boot/dts/imx6q.dtsi
@@ -177,7 +177,7 @@
 					clocks = <&clks IMX6Q_CLK_ECSPI5>,
 						 <&clks IMX6Q_CLK_ECSPI5>;
 					clock-names = "ipg", "per";
-					dmas = <&sdma 11 8 1>, <&sdma 12 8 2>;
+					dmas = <&sdma 11 7 1>, <&sdma 12 7 2>;
 					dma-names = "rx", "tx";
 					status = "disabled";
 				};
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 02/13] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
  2020-05-20 20:34 ` [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 03/13] Revert "dmaengine: imx-sdma: refine to load context only once" Robin Gong
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS
->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer
to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ
Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and
shp_2_mcu/mcu_2_shp script for such two options. So both AIPS and SPBA
scripts should keep the same behaviour, the issue only caught in AIPS
script sounds not solide.
The issue is more likely as the ecspi errata
ERR009165(http://www.nxp.com/docs/en/errata/IMX6DQCE.pdf):
eCSPI: TXFIFO empty flag glitch can cause the current FIFO transfer to
           be sent twice
So revert commit 'dd4b487b32a3' firstly.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
---
 arch/arm/boot/dts/imx6qdl.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index 98da446..4a50331 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -337,7 +337,7 @@
 					clocks = <&clks IMX6QDL_CLK_ECSPI1>,
 						 <&clks IMX6QDL_CLK_ECSPI1>;
 					clock-names = "ipg", "per";
-					dmas = <&sdma 3 8 1>, <&sdma 4 8 2>;
+					dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
 					dma-names = "rx", "tx";
 					status = "disabled";
 				};
@@ -351,7 +351,7 @@
 					clocks = <&clks IMX6QDL_CLK_ECSPI2>,
 						 <&clks IMX6QDL_CLK_ECSPI2>;
 					clock-names = "ipg", "per";
-					dmas = <&sdma 5 8 1>, <&sdma 6 8 2>;
+					dmas = <&sdma 5 7 1>, <&sdma 6 7 2>;
 					dma-names = "rx", "tx";
 					status = "disabled";
 				};
@@ -365,7 +365,7 @@
 					clocks = <&clks IMX6QDL_CLK_ECSPI3>,
 						 <&clks IMX6QDL_CLK_ECSPI3>;
 					clock-names = "ipg", "per";
-					dmas = <&sdma 7 8 1>, <&sdma 8 8 2>;
+					dmas = <&sdma 7 7 1>, <&sdma 8 7 2>;
 					dma-names = "rx", "tx";
 					status = "disabled";
 				};
@@ -379,7 +379,7 @@
 					clocks = <&clks IMX6QDL_CLK_ECSPI4>,
 						 <&clks IMX6QDL_CLK_ECSPI4>;
 					clock-names = "ipg", "per";
-					dmas = <&sdma 9 8 1>, <&sdma 10 8 2>;
+					dmas = <&sdma 9 7 1>, <&sdma 10 7 2>;
 					dma-names = "rx", "tx";
 					status = "disabled";
 				};
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 03/13] Revert "dmaengine: imx-sdma: refine to load context only once"
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
  2020-05-20 20:34 ` [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Robin Gong
  2020-05-20 20:34 ` [PATCH v8 02/13] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores" Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 04/13] dmaengine: imx-sdma: remove duplicated sdma_load_context Robin Gong
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because
in spi-imx case, burst length may be changed dynamically.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
---
 drivers/dma/imx-sdma.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 9177403..b1f61eb 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -377,7 +377,6 @@ struct sdma_channel {
 	unsigned long			watermark_level;
 	u32				shp_addr, per_addr;
 	enum dma_status			status;
-	bool				context_loaded;
 	struct imx_dma_data		data;
 	struct work_struct		terminate_worker;
 };
@@ -984,9 +983,6 @@ static int sdma_load_context(struct sdma_channel *sdmac)
 	int ret;
 	unsigned long flags;
 
-	if (sdmac->context_loaded)
-		return 0;
-
 	if (sdmac->direction == DMA_DEV_TO_MEM)
 		load_address = sdmac->pc_from_device;
 	else if (sdmac->direction == DMA_DEV_TO_DEV)
@@ -1029,8 +1025,6 @@ static int sdma_load_context(struct sdma_channel *sdmac)
 
 	spin_unlock_irqrestore(&sdma->channel_0_lock, flags);
 
-	sdmac->context_loaded = true;
-
 	return ret;
 }
 
@@ -1069,7 +1063,6 @@ static void sdma_channel_terminate_work(struct work_struct *work)
 	vchan_get_all_descriptors(&sdmac->vc, &head);
 	spin_unlock_irqrestore(&sdmac->vc.lock, flags);
 	vchan_dma_desc_free_list(&sdmac->vc, &head);
-	sdmac->context_loaded = false;
 }
 
 static int sdma_terminate_all(struct dma_chan *chan)
@@ -1338,7 +1331,6 @@ static void sdma_free_chan_resources(struct dma_chan *chan)
 
 	sdmac->event_id0 = 0;
 	sdmac->event_id1 = 0;
-	sdmac->context_loaded = false;
 
 	sdma_set_channel_priority(sdmac, 0);
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 04/13] dmaengine: imx-sdma: remove duplicated sdma_load_context
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (2 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 03/13] Revert "dmaengine: imx-sdma: refine to load context only once" Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 05/13] spi: imx: fallback to PIO if dma setup failure Robin Gong
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Since sdma_transfer_init() will do sdma_load_context before any
sdma transfer, no need once more in sdma_config_channel().

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index b1f61eb..4440ddb 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1137,7 +1137,6 @@ static void sdma_set_watermarklevel_for_p2p(struct sdma_channel *sdmac)
 static int sdma_config_channel(struct dma_chan *chan)
 {
 	struct sdma_channel *sdmac = to_sdma_chan(chan);
-	int ret;
 
 	sdma_disable_channel(chan);
 
@@ -1177,9 +1176,7 @@ static int sdma_config_channel(struct dma_chan *chan)
 		sdmac->watermark_level = 0; /* FIXME: M3_BASE_ADDRESS */
 	}
 
-	ret = sdma_load_context(sdmac);
-
-	return ret;
+	return 0;
 }
 
 static int sdma_set_channel_priority(struct sdma_channel *sdmac,
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 05/13] spi: imx: fallback to PIO if dma setup failure
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (3 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 04/13] dmaengine: imx-sdma: remove duplicated sdma_load_context Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 06/13] dmaengine: imx-sdma: add mcu_2_ecspi script Robin Gong
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Fallback to PIO in case dma setup failed. For example, sdma firmware not
updated but ERR009165 workaroud added in kernel.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
---
 drivers/spi/spi-imx.c | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index f4f28a4..b7a85e3 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -71,6 +71,7 @@ struct spi_imx_devtype_data {
 	void (*reset)(struct spi_imx_data *);
 	void (*setup_wml)(struct spi_imx_data *);
 	void (*disable)(struct spi_imx_data *);
+	void (*disable_dma)(struct spi_imx_data *);
 	bool has_dmamode;
 	bool has_slavemode;
 	unsigned int fifo_size;
@@ -485,6 +486,11 @@ static void mx51_ecspi_trigger(struct spi_imx_data *spi_imx)
 	writel(reg, spi_imx->base + MX51_ECSPI_CTRL);
 }
 
+static void mx51_disable_dma(struct spi_imx_data *spi_imx)
+{
+	writel(0, spi_imx->base + MX51_ECSPI_DMA);
+}
+
 static void mx51_ecspi_disable(struct spi_imx_data *spi_imx)
 {
 	u32 ctrl;
@@ -987,6 +993,7 @@ static struct spi_imx_devtype_data imx51_ecspi_devtype_data = {
 	.rx_available = mx51_ecspi_rx_available,
 	.reset = mx51_ecspi_reset,
 	.setup_wml = mx51_setup_wml,
+	.disable_dma = mx51_disable_dma,
 	.fifo_size = 64,
 	.has_dmamode = true,
 	.dynamic_burst = true,
@@ -1001,6 +1008,7 @@ static struct spi_imx_devtype_data imx53_ecspi_devtype_data = {
 	.prepare_transfer = mx51_ecspi_prepare_transfer,
 	.trigger = mx51_ecspi_trigger,
 	.rx_available = mx51_ecspi_rx_available,
+	.disable_dma = mx51_disable_dma,
 	.reset = mx51_ecspi_reset,
 	.fifo_size = 64,
 	.has_dmamode = true,
@@ -1385,6 +1393,7 @@ static int spi_imx_dma_transfer(struct spi_imx_data *spi_imx,
 				DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
 	if (!desc_tx) {
 		dmaengine_terminate_all(master->dma_tx);
+		dmaengine_terminate_all(master->dma_rx);
 		return -EINVAL;
 	}
 
@@ -1498,6 +1507,7 @@ static int spi_imx_transfer(struct spi_device *spi,
 				struct spi_transfer *transfer)
 {
 	struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
+	int ret;
 
 	/* flush rxfifo before transfer */
 	while (spi_imx->devtype_data->rx_available(spi_imx))
@@ -1506,10 +1516,23 @@ static int spi_imx_transfer(struct spi_device *spi,
 	if (spi_imx->slave_mode)
 		return spi_imx_pio_transfer_slave(spi, transfer);
 
-	if (spi_imx->usedma)
-		return spi_imx_dma_transfer(spi_imx, transfer);
-	else
-		return spi_imx_pio_transfer(spi, transfer);
+	/*
+	 * fallback PIO mode if dma setup error happen, for example sdma
+	 * firmware may not be updated as ERR009165 required.
+	 */
+	if (spi_imx->usedma) {
+		ret = spi_imx_dma_transfer(spi_imx, transfer);
+		if (ret != -EINVAL)
+			return ret;
+
+		spi_imx->devtype_data->disable_dma(spi_imx);
+
+		spi_imx->usedma = false;
+		spi_imx->dynamic_burst = spi_imx->devtype_data->dynamic_burst;
+		dev_dbg(&spi->dev, "Fallback to PIO mode\n");
+	}
+
+	return spi_imx_pio_transfer(spi, transfer);
 }
 
 static int spi_imx_setup(struct spi_device *spi)
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 06/13] dmaengine: imx-sdma: add mcu_2_ecspi script
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (4 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 05/13] spi: imx: fallback to PIO if dma setup failure Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 07/13] spi: imx: fix ERR009165 Robin Gong
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Add mcu_2_ecspi script to fix ecspi errata ERR009165.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 4440ddb..db4132f 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -920,6 +920,9 @@ static void sdma_get_pc(struct sdma_channel *sdmac,
 		emi_2_per = sdma->script_addrs->mcu_2_ata_addr;
 		break;
 	case IMX_DMATYPE_CSPI:
+		per_2_emi = sdma->script_addrs->app_2_mcu_addr;
+		emi_2_per = sdma->script_addrs->mcu_2_ecspi_addr;
+		break;
 	case IMX_DMATYPE_EXT:
 	case IMX_DMATYPE_SSI:
 	case IMX_DMATYPE_SAI:
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 07/13] spi: imx: fix ERR009165
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (5 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 06/13] dmaengine: imx-sdma: add mcu_2_ecspi script Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 08/13] spi: imx: remove ERR009165 workaround on i.mx6ul Robin Gong
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Change to XCH  mode even in dma mode, please refer to the below
errata:
https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Mark Brown <broonie@kernel.org>
---
 drivers/spi/spi-imx.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index b7a85e3..8f758db 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -591,8 +591,8 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx_data *spi_imx,
 	ctrl |= mx51_ecspi_clkdiv(spi_imx, t->speed_hz, &clk);
 	spi_imx->spi_bus_clk = clk;
 
-	if (spi_imx->usedma)
-		ctrl |= MX51_ECSPI_CTRL_SMC;
+	/* ERR009165: work in XHC mode as PIO */
+	ctrl &= ~MX51_ECSPI_CTRL_SMC;
 
 	writel(ctrl, spi_imx->base + MX51_ECSPI_CTRL);
 
@@ -623,7 +623,7 @@ static void mx51_setup_wml(struct spi_imx_data *spi_imx)
 	 * and enable DMA request.
 	 */
 	writel(MX51_ECSPI_DMA_RX_WML(spi_imx->wml - 1) |
-		MX51_ECSPI_DMA_TX_WML(spi_imx->wml) |
+		MX51_ECSPI_DMA_TX_WML(0) |
 		MX51_ECSPI_DMA_RXT_WML(spi_imx->wml) |
 		MX51_ECSPI_DMA_TEDEN | MX51_ECSPI_DMA_RXDEN |
 		MX51_ECSPI_DMA_RXTDEN, spi_imx->base + MX51_ECSPI_DMA);
@@ -1273,10 +1273,6 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx,
 {
 	int ret;
 
-	/* use pio mode for i.mx6dl chip TKT238285 */
-	if (of_machine_is_compatible("fsl,imx6dl"))
-		return 0;
-
 	spi_imx->wml = spi_imx->devtype_data->fifo_size / 2;
 
 	/* Prepare for TX DMA: */
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 08/13] spi: imx: remove ERR009165 workaround on i.mx6ul
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (6 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 07/13] spi: imx: fix ERR009165 Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 09/13] spi: imx: add new i.mx6ul compatible name in binding doc Robin Gong
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

ERR009165 fixed on i.mx6ul/6ull/6sll. All other i.mx6/7 and
i.mx8m/8mm still need this errata. Please refer to nxp official
errata document from https://www.nxp.com/ .

For removing workaround on those chips. Add new i.mx6ul type.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Mark Brown <broonie@kernel.org>
---
 drivers/spi/spi-imx.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 54 insertions(+), 5 deletions(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 8f758db..9ac9222 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -57,6 +57,7 @@ enum spi_imx_devtype {
 	IMX35_CSPI,	/* CSPI on all i.mx except above */
 	IMX51_ECSPI,	/* ECSPI on i.mx51 */
 	IMX53_ECSPI,	/* ECSPI on i.mx53 and later */
+	IMX6UL_ECSPI,	/* ERR009165 fix from i.mx6ul */
 };
 
 struct spi_imx_data;
@@ -76,6 +77,11 @@ struct spi_imx_devtype_data {
 	bool has_slavemode;
 	unsigned int fifo_size;
 	bool dynamic_burst;
+	/*
+	 * ERR009165 fixed or not:
+	 * https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf
+	 */
+	bool tx_glitch_fixed;
 	enum spi_imx_devtype devtype;
 };
 
@@ -132,6 +138,11 @@ static inline int is_imx51_ecspi(struct spi_imx_data *d)
 	return d->devtype_data->devtype == IMX51_ECSPI;
 }
 
+static inline int is_imx6ul_ecspi(struct spi_imx_data *d)
+{
+	return d->devtype_data->devtype == IMX6UL_ECSPI;
+}
+
 static inline int is_imx53_ecspi(struct spi_imx_data *d)
 {
 	return d->devtype_data->devtype == IMX53_ECSPI;
@@ -591,8 +602,14 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx_data *spi_imx,
 	ctrl |= mx51_ecspi_clkdiv(spi_imx, t->speed_hz, &clk);
 	spi_imx->spi_bus_clk = clk;
 
-	/* ERR009165: work in XHC mode as PIO */
-	ctrl &= ~MX51_ECSPI_CTRL_SMC;
+	/*
+	 * ERR009165: work in XHC mode instead of SMC as PIO on the chips
+	 * before i.mx6ul.
+	 */
+	if (spi_imx->usedma && spi_imx->devtype_data->tx_glitch_fixed)
+		ctrl |= MX51_ECSPI_CTRL_SMC;
+	else
+		ctrl &= ~MX51_ECSPI_CTRL_SMC;
 
 	writel(ctrl, spi_imx->base + MX51_ECSPI_CTRL);
 
@@ -618,12 +635,16 @@ static int mx51_ecspi_prepare_transfer(struct spi_imx_data *spi_imx,
 
 static void mx51_setup_wml(struct spi_imx_data *spi_imx)
 {
+	u32 tx_wml = 0;
+
+	if (spi_imx->devtype_data->tx_glitch_fixed)
+		tx_wml = spi_imx->wml;
 	/*
 	 * Configure the DMA register: setup the watermark
 	 * and enable DMA request.
 	 */
 	writel(MX51_ECSPI_DMA_RX_WML(spi_imx->wml - 1) |
-		MX51_ECSPI_DMA_TX_WML(0) |
+		MX51_ECSPI_DMA_TX_WML(tx_wml) |
 		MX51_ECSPI_DMA_RXT_WML(spi_imx->wml) |
 		MX51_ECSPI_DMA_TEDEN | MX51_ECSPI_DMA_RXDEN |
 		MX51_ECSPI_DMA_RXTDEN, spi_imx->base + MX51_ECSPI_DMA);
@@ -1017,6 +1038,23 @@ static struct spi_imx_devtype_data imx53_ecspi_devtype_data = {
 	.devtype = IMX53_ECSPI,
 };
 
+static struct spi_imx_devtype_data imx6ul_ecspi_devtype_data = {
+	.intctrl = mx51_ecspi_intctrl,
+	.prepare_message = mx51_ecspi_prepare_message,
+	.prepare_transfer = mx51_ecspi_prepare_transfer,
+	.trigger = mx51_ecspi_trigger,
+	.rx_available = mx51_ecspi_rx_available,
+	.reset = mx51_ecspi_reset,
+	.setup_wml = mx51_setup_wml,
+	.fifo_size = 64,
+	.has_dmamode = true,
+	.dynamic_burst = true,
+	.has_slavemode = true,
+	.tx_glitch_fixed = true,
+	.disable = mx51_ecspi_disable,
+	.devtype = IMX6UL_ECSPI,
+};
+
 static const struct platform_device_id spi_imx_devtype[] = {
 	{
 		.name = "imx1-cspi",
@@ -1040,6 +1078,9 @@ static const struct platform_device_id spi_imx_devtype[] = {
 		.name = "imx53-ecspi",
 		.driver_data = (kernel_ulong_t) &imx53_ecspi_devtype_data,
 	}, {
+		.name = "imx6ul-ecspi",
+		.driver_data = (kernel_ulong_t) &imx6ul_ecspi_devtype_data,
+	}, {
 		/* sentinel */
 	}
 };
@@ -1052,6 +1093,7 @@ static const struct of_device_id spi_imx_dt_ids[] = {
 	{ .compatible = "fsl,imx35-cspi", .data = &imx35_cspi_devtype_data, },
 	{ .compatible = "fsl,imx51-ecspi", .data = &imx51_ecspi_devtype_data, },
 	{ .compatible = "fsl,imx53-ecspi", .data = &imx53_ecspi_devtype_data, },
+	{ .compatible = "fsl,imx6ul-ecspi", .data = &imx6ul_ecspi_devtype_data, },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, spi_imx_dt_ids);
@@ -1179,7 +1221,14 @@ static int spi_imx_dma_configure(struct spi_master *master)
 	tx.direction = DMA_MEM_TO_DEV;
 	tx.dst_addr = spi_imx->base_phys + MXC_CSPITXDATA;
 	tx.dst_addr_width = buswidth;
-	tx.dst_maxburst = spi_imx->wml;
+	/*
+	 * For ERR009165 with TX_THRESHOLD=0 could enlarge burst size to fifo
+	 * size to speed up fifo filling as possible.
+	 */
+	if (spi_imx->devtype_data->tx_glitch_fixed)
+		tx.dst_maxburst = spi_imx->wml;
+	else
+		tx.dst_maxburst = spi_imx->devtype_data->fifo_size;
 	ret = dmaengine_slave_config(master->dma_tx, &tx);
 	if (ret) {
 		dev_err(spi_imx->dev, "TX dma configuration failed with %d\n", ret);
@@ -1678,7 +1727,7 @@ static int spi_imx_probe(struct platform_device *pdev)
 	spi_imx->bitbang.master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH \
 					     | SPI_NO_CS;
 	if (is_imx35_cspi(spi_imx) || is_imx51_ecspi(spi_imx) ||
-	    is_imx53_ecspi(spi_imx))
+	    is_imx53_ecspi(spi_imx) || is_imx6ul_ecspi(spi_imx))
 		spi_imx->bitbang.master->mode_bits |= SPI_LOOP | SPI_READY;
 
 	spi_imx->spi_drctl = spi_drctl;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 09/13] spi: imx: add new i.mx6ul compatible name in binding doc
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (7 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 08/13] spi: imx: remove ERR009165 workaround on i.mx6ul Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 10/13] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul Robin Gong
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

ERR009165 fixed from i.mx6ul, add its compatible name in binding doc.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt
index 33bc58f..0a529ba 100644
--- a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt
+++ b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt
@@ -10,6 +10,7 @@ Required properties:
   - "fsl,imx35-cspi" for SPI compatible with the one integrated on i.MX35
   - "fsl,imx51-ecspi" for SPI compatible with the one integrated on i.MX51
   - "fsl,imx53-ecspi" for SPI compatible with the one integrated on i.MX53 and later Soc
+  - "fsl,imx6ul-ecspi" for SPI compatible with the one integrated on i.MX6UL and later Soc
   - "fsl,imx8mq-ecspi" for SPI compatible with the one integrated on i.MX8MQ
   - "fsl,imx8mm-ecspi" for SPI compatible with the one integrated on i.MX8MM
   - "fsl,imx8mn-ecspi" for SPI compatible with the one integrated on i.MX8MN
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 10/13] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (8 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 09/13] spi: imx: add new i.mx6ul compatible name in binding doc Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 11/13] dma: imx-sdma: add i.mx6ul compatible name Robin Gong
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

ECSPI issue fixed from i.mx6ul at hardware level, no need
ERR009165 anymore on those chips such as i.mx8mq.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index db4132f..be86ae8 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -419,6 +419,13 @@ struct sdma_driver_data {
 	int num_events;
 	struct sdma_script_start_addrs	*script_addrs;
 	bool check_ratio;
+	/*
+	 * ecspi ERR009165 fixed should be done in sdma script
+	 * and it has been fixed in soc from i.mx6ul.
+	 * please get more information from the below link:
+	 * https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf
+	 */
+	bool ecspi_fixed;
 };
 
 struct sdma_engine {
@@ -539,6 +546,13 @@ static struct sdma_driver_data sdma_imx6q = {
 	.script_addrs = &sdma_script_imx6q,
 };
 
+static struct sdma_driver_data sdma_imx6ul = {
+	.chnenbl0 = SDMA_CHNENBL0_IMX35,
+	.num_events = 48,
+	.script_addrs = &sdma_script_imx6q,
+	.ecspi_fixed = true,
+};
+
 static struct sdma_script_start_addrs sdma_script_imx7d = {
 	.ap_2_ap_addr = 644,
 	.uart_2_mcu_addr = 819,
@@ -587,6 +601,9 @@ static const struct platform_device_id sdma_devtypes[] = {
 		.name = "imx7d-sdma",
 		.driver_data = (unsigned long)&sdma_imx7d,
 	}, {
+		.name = "imx6ul-sdma",
+		.driver_data = (unsigned long)&sdma_imx6ul,
+	}, {
 		.name = "imx8mq-sdma",
 		.driver_data = (unsigned long)&sdma_imx8mq,
 	}, {
@@ -603,6 +620,7 @@ static const struct of_device_id sdma_dt_ids[] = {
 	{ .compatible = "fsl,imx31-sdma", .data = &sdma_imx31, },
 	{ .compatible = "fsl,imx25-sdma", .data = &sdma_imx25, },
 	{ .compatible = "fsl,imx7d-sdma", .data = &sdma_imx7d, },
+	{ .compatible = "fsl,imx6ul-sdma", .data = &sdma_imx6ul, },
 	{ .compatible = "fsl,imx8mq-sdma", .data = &sdma_imx8mq, },
 	{ /* sentinel */ }
 };
@@ -1169,8 +1187,17 @@ static int sdma_config_channel(struct dma_chan *chan)
 			if (sdmac->peripheral_type == IMX_DMATYPE_ASRC_SP ||
 			    sdmac->peripheral_type == IMX_DMATYPE_ASRC)
 				sdma_set_watermarklevel_for_p2p(sdmac);
-		} else
+		} else {
+			/*
+			 * ERR009165 fixed from i.mx6ul, no errata need,
+			 * set bit31 to let sdma script skip the errata.
+			 */
+			if (sdmac->peripheral_type == IMX_DMATYPE_CSPI &&
+			    sdmac->direction == DMA_MEM_TO_DEV &&
+			    sdmac->sdma->drvdata->ecspi_fixed)
+				__set_bit(31, &sdmac->watermark_level);
 			__set_bit(sdmac->event_id0, sdmac->event_mask);
+		}
 
 		/* Address */
 		sdmac->shp_addr = sdmac->per_address;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 11/13] dma: imx-sdma: add i.mx6ul compatible name
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (9 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 10/13] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 12/13] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm Robin Gong
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Add i.mx6ul compatible name in binding doc.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
index c9e9740..12c316f 100644
--- a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
+++ b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt
@@ -9,6 +9,7 @@ Required properties:
       "fsl,imx53-sdma"
       "fsl,imx6q-sdma"
       "fsl,imx7d-sdma"
+      "fsl,imx6ul-sdma"
       "fsl,imx8mq-sdma"
       "fsl,imx8mm-sdma"
       "fsl,imx8mn-sdma"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 12/13] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (10 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 11/13] dma: imx-sdma: add i.mx6ul compatible name Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-20 20:34 ` [PATCH v8 13/13] dmaengine: imx-sdma: add uart rom script Robin Gong
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

Because the number of ecspi1 rx event on i.mx8mm is 0, the condition
check ignore such special case without dma channel enabled, which caused
ecspi1 rx works failed. Actually, no need to check event_id0/event_id1
and replace checking 'event_id1' with 'DMA_DEV_TO_DEV', so that configure
event_id1 only in case DEV_TO_DEV.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index be86ae8..320104f 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1183,7 +1183,7 @@ static int sdma_config_channel(struct dma_chan *chan)
 	if ((sdmac->peripheral_type != IMX_DMATYPE_MEMORY) &&
 			(sdmac->peripheral_type != IMX_DMATYPE_DSP)) {
 		/* Handle multiple event channels differently */
-		if (sdmac->event_id1) {
+		if (sdmac->direction == DMA_DEV_TO_DEV) {
 			if (sdmac->peripheral_type == IMX_DMATYPE_ASRC_SP ||
 			    sdmac->peripheral_type == IMX_DMATYPE_ASRC)
 				sdma_set_watermarklevel_for_p2p(sdmac);
@@ -1351,9 +1351,9 @@ static void sdma_free_chan_resources(struct dma_chan *chan)
 
 	sdma_channel_synchronize(chan);
 
-	if (sdmac->event_id0 >= 0)
-		sdma_event_disable(sdmac, sdmac->event_id0);
-	if (sdmac->event_id1)
+	sdma_event_disable(sdmac, sdmac->event_id0);
+
+	if (sdmac->direction == DMA_DEV_TO_DEV)
 		sdma_event_disable(sdmac, sdmac->event_id1);
 
 	sdmac->event_id0 = 0;
@@ -1651,13 +1651,11 @@ static int sdma_config(struct dma_chan *chan,
 	memcpy(&sdmac->slave_config, dmaengine_cfg, sizeof(*dmaengine_cfg));
 
 	/* Set ENBLn earlier to make sure dma request triggered after that */
-	if (sdmac->event_id0 >= 0) {
-		if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events)
-			return -EINVAL;
-		sdma_event_enable(sdmac, sdmac->event_id0);
-	}
+	if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events)
+		return -EINVAL;
+	sdma_event_enable(sdmac, sdmac->event_id0);
 
-	if (sdmac->event_id1) {
+	if (sdmac->direction == DMA_DEV_TO_DEV) {
 		if (sdmac->event_id1 >= sdmac->sdma->drvdata->num_events)
 			return -EINVAL;
 		sdma_event_enable(sdmac, sdmac->event_id1);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* [PATCH v8 13/13] dmaengine: imx-sdma: add uart rom script
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (11 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 12/13] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm Robin Gong
@ 2020-05-20 20:34 ` Robin Gong
  2020-05-27  5:03 ` [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Sascha Hauer
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 21+ messages in thread
From: Robin Gong @ 2020-05-20 20:34 UTC (permalink / raw)
  To: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, s.hauer, martin.fuzzey,
	u.kleine-koenig, dan.j.williams
  Cc: linux-spi, linux-kernel, devicetree, linux-arm-kernel, kernel, linux-imx

For the compatibility of NXP internal legacy kernel before 4.19 which
is based on uart ram script and upstreaming kernel based on uart rom
script, add both uart ram/rom script in latest sdma firmware. By default
uart rom script used.
Besides, add two multi-fifo scripts for SAI/PDM on i.mx8m/8mm and add
back qspi script miss for v4(i.mx7d/8m/8mm family, but v3 is for i.mx6).

rom script:
        uart_2_mcu_addr
	uartsh_2_mcu_addr /* through spba bus */
am script:
	uart_2_mcu_ram_addr
	uartsh_2_mcu_ram_addr /* through spba bus */

Please get latest sdma firmware from the below and put them into the path
(/lib/firmware/imx/sdma/):
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
/tree/imx/sdma

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c                     | 4 ++--
 include/linux/platform_data/dma-imx-sdma.h | 8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 320104f..2ca7935 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1718,8 +1718,8 @@ static void sdma_issue_pending(struct dma_chan *chan)
 
 #define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1	34
 #define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V2	38
-#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3	41
-#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4	42
+#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V3	45
+#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4	46
 
 static void sdma_add_scripts(struct sdma_engine *sdma,
 		const struct sdma_script_start_addrs *addr)
diff --git a/include/linux/platform_data/dma-imx-sdma.h b/include/linux/platform_data/dma-imx-sdma.h
index 30e676b..e12d2e8 100644
--- a/include/linux/platform_data/dma-imx-sdma.h
+++ b/include/linux/platform_data/dma-imx-sdma.h
@@ -20,12 +20,12 @@ struct sdma_script_start_addrs {
 	s32 per_2_firi_addr;
 	s32 mcu_2_firi_addr;
 	s32 uart_2_per_addr;
-	s32 uart_2_mcu_addr;
+	s32 uart_2_mcu_ram_addr;
 	s32 per_2_app_addr;
 	s32 mcu_2_app_addr;
 	s32 per_2_per_addr;
 	s32 uartsh_2_per_addr;
-	s32 uartsh_2_mcu_addr;
+	s32 uartsh_2_mcu_ram_addr;
 	s32 per_2_shp_addr;
 	s32 mcu_2_shp_addr;
 	s32 ata_2_mcu_addr;
@@ -52,6 +52,10 @@ struct sdma_script_start_addrs {
 	s32 zcanfd_2_mcu_addr;
 	s32 zqspi_2_mcu_addr;
 	s32 mcu_2_ecspi_addr;
+	s32 mcu_2_sai_addr;
+	s32 sai_2_mcu_addr;
+	s32 uart_2_mcu_addr;
+	s32 uartsh_2_mcu_addr;
 	/* End of v3 array */
 	s32 mcu_2_zqspi_addr;
 	/* End of v4 array */
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (12 preceding siblings ...)
  2020-05-20 20:34 ` [PATCH v8 13/13] dmaengine: imx-sdma: add uart rom script Robin Gong
@ 2020-05-27  5:03 ` Sascha Hauer
  2020-05-28 13:07 ` Mark Brown
  2020-06-03  8:31 ` (EXT) " Matthias Schiffer
  15 siblings, 0 replies; 21+ messages in thread
From: Sascha Hauer @ 2020-05-27  5:03 UTC (permalink / raw)
  To: Robin Gong
  Cc: mark.rutland, broonie, robh+dt, catalin.marinas, vkoul,
	will.deacon, shawnguo, festevam, martin.fuzzey, u.kleine-koenig,
	dan.j.williams, linux-spi, linux-kernel, devicetree,
	linux-arm-kernel, kernel, linux-imx

On Thu, May 21, 2020 at 04:34:12AM +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://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. 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.

For the series:

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (13 preceding siblings ...)
  2020-05-27  5:03 ` [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Sascha Hauer
@ 2020-05-28 13:07 ` Mark Brown
  2020-06-03  8:31 ` (EXT) " Matthias Schiffer
  15 siblings, 0 replies; 21+ messages in thread
From: Mark Brown @ 2020-05-28 13:07 UTC (permalink / raw)
  To: catalin.marinas, vkoul, mark.rutland, will.deacon, s.hauer,
	festevam, dan.j.williams, Robin Gong, shawnguo, u.kleine-koenig,
	martin.fuzzey, robh+dt
  Cc: linux-imx, linux-spi, kernel, linux-arm-kernel, devicetree, linux-kernel

On Thu, 21 May 2020 04:34:12 +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://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: imx: fallback to PIO if dma setup failure
      commit: bcd8e7761ec9c128b9102b0833d9c7052ae2dbcf

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: (EXT) [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
                   ` (14 preceding siblings ...)
  2020-05-28 13:07 ` Mark Brown
@ 2020-06-03  8:31 ` Matthias Schiffer
  2020-06-03  9:50   ` Robin Gong
  15 siblings, 1 reply; 21+ messages in thread
From: Matthias Schiffer @ 2020-06-03  8:31 UTC (permalink / raw)
  To: Robin Gong
  Cc: devicetree, linux-kernel, linux-spi, linux-imx, kernel,
	linux-arm-kernel, mark.rutland, broonie, robh+dt,
	catalin.marinas, vkoul, will.deacon, shawnguo, festevam, s.hauer,
	martin.fuzzey, u.kleine-koenig, dan.j.williams, Markus Niebel

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://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. 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.

Kind regards,
Matthias



> 
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/imx/sdma
> 
> v2:
>   1.Add commit log for reverted patches.
>   2.Add comment for 'ecspi_fixed' in sdma driver.
>   3.Add 'fsl,imx6sll-ecspi' compatible instead of 'fsl,imx6ul-ecspi'
>     rather than remove.
> v3:
>   1.Confirm with design team make sure ERR009165 fixed on
> i.mx6ul/i.mx6ull
>     /i.mx6sll, not fixed on i.mx8m/8mm and other i.mx6/7 legacy
> chips.
>     Correct dts related dts patch in v2.
>   2.Clean eratta information in binding doc and new 'tx_glitch_fixed'
> flag
>     in spi-imx driver to state ERR009165 fixed or not.
>   3.Enlarge burst size to fifo size for tx since tx_wml set to 0 in
> the
>     errata workaroud, thus improve performance as possible.
> v4:
>   1.Add Ack tag from Mark and Vinod
>   2.Remove checking 'event_id1' zero as 'event_id0'.
> v5:
>   1.Add the last patch for compatible with the current uart driver
> which
>     using rom script, so both uart ram script and rom script
> supported
>     in latest firmware, by default uart rom script used. UART driver
>     will be broken without this patch.
> v6:
>   1.Resend after rebase the latest next branch.
>   2.Remove below No.13~No.15 patches of v5 because they were
> mergered.
>   	ARM: dts: imx6ul: add dma support on ecspi
>   	ARM: dts: imx6sll: correct sdma compatible
>   	arm64: defconfig: Enable SDMA on i.mx8mq/8mm
>   3.Revert "dmaengine: imx-sdma: fix context cache" since
>     'context_loaded' removed.
> v7:
>   1.Put the last patch 13/13 'Revert "dmaengine: imx-sdma: fix
> context
>     cache"' to the ahead of 03/13 'Revert "dmaengine: imx-sdma:
> refine
>     to load context only once" so that no building waring during
> comes out
>     during bisect.
>   2.Address Sascha's comments, including eliminating any i.mx6sx in
> this
>     series, adding new 'is_imx6ul_ecspi()' instead imx in imx51 and
> taking
>     care SMC bit for PIO.
>   3.Add back missing 'Reviewed-by' tag on 08/15(v5):09/13(v7)
>    'spi: imx: add new i.mx6ul compatible name in binding doc'
> v8:
>   1.remove 0003-Revert-dmaengine-imx-sdma-fix-context-cache.patch and
> merge
>     it into 04/13 of v7
>   2.add 0005-spi-imx-fallback-to-PIO-if-dma-setup-failure.patch for
> no any
>     ecspi function broken even if sdma firmware not updated.
>   3.merge 'tx.dst_maxburst' changes in the two continous patches into
> one
>     patch to avoid confusion.
>   4.fix typo 'duplicated'.
> 
> Robin Gong (13):
>   Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"
>   Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"
>   Revert "dmaengine: imx-sdma: refine to load context only once"
>   dmaengine: imx-sdma: remove duplicated sdma_load_context
>   spi: imx: fallback to PIO if dma setup failure
>   dmaengine: imx-sdma: add mcu_2_ecspi script
>   spi: imx: fix ERR009165
>   spi: imx: remove ERR009165 workaround on i.mx6ul
>   spi: imx: add new i.mx6ul compatible name in binding doc
>   dmaengine: imx-sdma: remove ERR009165 on i.mx6ul
>   dma: imx-sdma: add i.mx6ul compatible name
>   dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm
>   dmaengine: imx-sdma: add uart rom script
> 
>  .../devicetree/bindings/dma/fsl-imx-sdma.txt       |  1 +
>  .../devicetree/bindings/spi/fsl-imx-cspi.txt       |  1 +
>  arch/arm/boot/dts/imx6q.dtsi                       |  2 +-
>  arch/arm/boot/dts/imx6qdl.dtsi                     |  8 +-
>  drivers/dma/imx-sdma.c                             | 67 ++++++++++
> ------
>  drivers/spi/spi-imx.c                              | 92
> +++++++++++++++++++---
>  include/linux/platform_data/dma-imx-sdma.h         |  8 +-
>  7 files changed, 135 insertions(+), 44 deletions(-)
> 


^ permalink raw reply	[flat|nested] 21+ messages in thread

* RE: (EXT) [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-06-03  8:31 ` (EXT) " Matthias Schiffer
@ 2020-06-03  9:50   ` Robin Gong
  2020-06-03 11:50     ` Matthias Schiffer
  0 siblings, 1 reply; 21+ messages in thread
From: Robin Gong @ 2020-06-03  9:50 UTC (permalink / raw)
  To: Matthias Schiffer
  Cc: devicetree, linux-kernel, linux-spi, dl-linux-imx, kernel,
	linux-arm-kernel, mark.rutland, broonie, robh+dt,
	catalin.marinas, vkoul, will.deacon, shawnguo, festevam, s.hauer,
	martin.fuzzey, u.kleine-koenig, dan.j.williams, Markus Niebel

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&amp;data=02%7C01%7C
> yibin.g
> >
> ong%40nxp.com%7C4621358b9be04a79d2d508d80798835b%7C686ea1d3bc2b
> 4c6fa92
> >
> cd99c5c301635%7C0%7C1%7C637267698912634476&amp;sdata=hR66H1hP%
> 2Fqb6OXe
> > w9wpXizY8DiNfZZ1KLwu3Kty87jc%3D&amp;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	[flat|nested] 21+ messages in thread

* Re: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-06-03  9:50   ` Robin Gong
@ 2020-06-03 11:50     ` Matthias Schiffer
  2020-06-05  2:45       ` Robin Gong
  0 siblings, 1 reply; 21+ messages in thread
From: Matthias Schiffer @ 2020-06-03 11:50 UTC (permalink / raw)
  To: Robin Gong
  Cc: devicetree, linux-kernel, linux-spi, dl-linux-imx, kernel,
	linux-arm-kernel, mark.rutland, broonie, robh+dt,
	catalin.marinas, vkoul, will.deacon, shawnguo, festevam, s.hauer,
	martin.fuzzey, u.kleine-koenig, dan.j.williams, Markus Niebel

[-- 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&amp;data=02%7C01%7C
> > yibin.g
> > > 
> > 
> > ong%40nxp.com%7C4621358b9be04a79d2d508d80798835b%7C686ea1d3bc2b
> > 4c6fa92
> > > 
> > 
> > cd99c5c301635%7C0%7C1%7C637267698912634476&amp;sdata=hR66H1hP%
> > 2Fqb6OXe
> > > w9wpXizY8DiNfZZ1KLwu3Kty87jc%3D&amp;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	[flat|nested] 21+ messages in thread

* RE: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-06-03 11:50     ` Matthias Schiffer
@ 2020-06-05  2:45       ` Robin Gong
  2020-06-05  7:57         ` (EXT) " Matthias Schiffer
  0 siblings, 1 reply; 21+ messages in thread
From: Robin Gong @ 2020-06-05  2:45 UTC (permalink / raw)
  To: Matthias Schiffer
  Cc: devicetree, linux-kernel, linux-spi, dl-linux-imx, kernel,
	linux-arm-kernel, mark.rutland, broonie, robh+dt,
	catalin.marinas, vkoul, will.deacon, shawnguo, festevam, s.hauer,
	martin.fuzzey, u.kleine-koenig, dan.j.williams, Markus Niebel

[-- Attachment #1: Type: text/plain, Size: 4271 bytes --]

On 2020/06/03 Matthias Schiffer <matthias.schiffer@ew.tq-group.com> wrote:
> On Wed, 2020-06-03 at 09:50 +0000, Robin Gong wrote:
> > On 2020/06/03 Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
> > wrote:
> >  > On Thu, 2020-05-21 at 04:34 +0800, Robin Gong wrote:
> > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO
> > > > transfer to be send twice in DMA mode. Please get more information
> > > > from:
> > > >
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> > > > .
> > > >
> > >
> > >
> nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX6DQCE.pdf&amp;data=02%7C01%7C
> > > yibin.g
> > > >
> > >
> > >
> ong%40nxp.com%7C4621358b9be04a79d2d508d80798835b%7C686ea1d3bc2b
> > > 4c6fa92
> > > >
> > >
> > >
> cd99c5c301635%7C0%7C1%7C637267698912634476&amp;sdata=hR66H1hP%
> > > 2Fqb6OXe
> > > > w9wpXizY8DiNfZZ1KLwu3Kty87jc%3D&amp;reserved=0. The workaround
> is
> > > > adding new sdma ram script which works in XCH  mode as PIO inside
> > > > sdma instead of SMC mode, meanwhile, 'TX_THRESHOLD' should be 0.
> > > > The issue
> > >
> > > should be exist on all legacy i.mx6/7 soc family before i.mx6ul.
> > > > NXP fix this design issue from i.mx6ul, so newer chips including
> > > > i.mx6ul/ 6ull/6sll do not need this workaroud anymore. All other
> > > > i.mx6/7/8 chips still need this workaroud. This patch set add new
> > > > 'fsl,imx6ul-ecspi'
> > > > for ecspi driver and 'ecspi_fixed' in sdma driver to choose if
> > > > need errata or not.
> > > > The first two reverted patches should be the same issue, though,
> > > > it seems 'fixed' by changing to other shp script. Hope Sean or
> > > > Sascha could have the chance to test this patch set if could fix
> > > > their issues.
> > > > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1 not
> > > > work on i.mx8mm because the event id is zero.
> > > >
> > > > PS:
> > > >    Please get sdma firmware from below linux-firmware and copy it
> > > > to your local rootfs /lib/firmware/imx/sdma.
> > >
> > >
> > > Hello Robin,
> > >
> > > we have tried out this series, and there seems to be an issue with
> > > the
> > > PIO fallback. We are testing on an i.MX6Q board, and our kernel is
> > > a
> > > mostly-unmodified 5.4, on which we backported all SDMA patches from
> > > next-20200602 (imx-sdma.c is identical to next-20200602 version),
> > > and
> > > then applied this whole series.
> > >
> > > We build the SDMA driver as a kernel module, which is loaded by
> > > udev,
> > > so the root filesystem is ready and the SDMA firmware can be
> > > loaded.
> > > The behaviour we're seeing is the following:
> > >
> > > 1. As long as the SDMA driver is not loaded, initializing spi_imx
> > > will
> > > be deferred
> > > 2. imx_sdma is loaded. The SDMA firmware is not yet loaded at this
> > > point
> > > 3. spi_imx is initialized and an SPI-NOR flash is probed. To load
> > > the
> > > BFPT, the driver will attempt to use DMA; this will fail with
> > > EINVAL as
> > > long as the SDMA firmware is not ready, so the fallback to PIO
> > > happens
> > > (4. SDMA firmware is ready, subsequent SPI transfers use DMA)
> > >
> > > The problem happens in step 3: Whenever the driver falls back to
> > > PIO,
> > > the received data is corrupt. The behaviour is specific to the
> > > fallback: When I disable DMA completely via spi_imx.use_dma, or
> > > when
> > > the timing is lucky and the SDMA firmware gets loaded before the
> > > flash
> > > is probed, no corruption can be observed.
> >
> > Thanks Matthias, would you like post log?
> >
> 
> I have attached the following log files:
> - pio.log: DMA disabled via module parameter
> - dma.log: "lucky" timing, SDMA firmware loaded before SPI-NOR probe
> - fallback.log: DMA->PIO fallback
> 
> The logs include some additional log messages:
> - Return value of spi_imx_dma_transfer() before PIO fallback
> - SPI-NOR SFPT dump
> 
> It can be seen that the BFPT data is identical in pio.log and dma.log,
> and differs almost completely in fallback.log. The corrupted data seems
> to be random, or uninitialized memory; it differs with every boot.
Would you please have a try with the attached patch? Thanks.

[-- Attachment #2: 0006-spi-imx-add-dma_sync_sg_for_device-after-fallback-fr.patch --]
[-- Type: application/octet-stream, Size: 1526 bytes --]

From 08becec165b15663fafea52e3dc6ed5482ad3652 Mon Sep 17 00:00:00 2001
From: Robin Gong <yibin.gong@nxp.com>
Date: Fri, 5 Jun 2020 08:57:19 +0800
Subject: [PATCH v9 06/14] spi: imx: add dma_sync_sg_for_device after fallback
 from dma

In case dma transfer failed and fallback to pio, tx_buf/rx_buf need to be
taken care cache since they have already been  mapped by dma_map_sg() in
spi.c.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
---
 drivers/spi/spi-imx.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index b7a85e3..c51cd3a 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -1456,6 +1456,13 @@ static int spi_imx_pio_transfer(struct spi_device *spi,
 		return -ETIMEDOUT;
 	}
 
+	if (transfer->rx_sg.sgl) {
+		struct device *rx_dev = spi->controller->dma_rx->device->dev;
+
+		dma_sync_sg_for_device(rx_dev, transfer->rx_sg.sgl,
+				       transfer->rx_sg.nents, DMA_TO_DEVICE);
+	}
+
 	return transfer->len;
 }
 
@@ -1521,10 +1528,15 @@ static int spi_imx_transfer(struct spi_device *spi,
 	 * firmware may not be updated as ERR009165 required.
 	 */
 	if (spi_imx->usedma) {
+		struct device *tx_dev = spi->controller->dma_tx->device->dev;
+
 		ret = spi_imx_dma_transfer(spi_imx, transfer);
 		if (ret != -EINVAL)
 			return ret;
 
+		dma_sync_sg_for_device(tx_dev, transfer->tx_sg.sgl,
+				       transfer->tx_sg.nents, DMA_FROM_DEVICE);
+
 		spi_imx->devtype_data->disable_dma(spi_imx);
 
 		spi_imx->usedma = false;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 21+ messages in thread

* Re: (EXT) RE: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family
  2020-06-05  2:45       ` Robin Gong
@ 2020-06-05  7:57         ` Matthias Schiffer
  0 siblings, 0 replies; 21+ messages in thread
From: Matthias Schiffer @ 2020-06-05  7:57 UTC (permalink / raw)
  To: Robin Gong
  Cc: devicetree, linux-kernel, linux-spi, dl-linux-imx, kernel,
	linux-arm-kernel, mark.rutland, broonie, robh+dt,
	catalin.marinas, vkoul, will.deacon, shawnguo, festevam, s.hauer,
	martin.fuzzey, u.kleine-koenig, dan.j.williams, Markus Niebel

[-- Attachment #1: Type: text/plain, Size: 4792 bytes --]

On Fri, 2020-06-05 at 02:45 +0000, Robin Gong wrote:
> On 2020/06/03 Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
> wrote:
> > On Wed, 2020-06-03 at 09:50 +0000, Robin Gong wrote:
> > > On 2020/06/03 Matthias Schiffer <
> > > matthias.schiffer@ew.tq-group.com>
> > > wrote:
> > >  > On Thu, 2020-05-21 at 04:34 +0800, Robin Gong wrote:
> > > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause
> > > > > FIFO
> > > > > transfer to be send twice in DMA mode. Please get more
> > > > > information
> > > > > from:
> > > > > 
> > 
> > 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
> > > > > .
> > > > > 
> > > > 
> > > > 
> > 
> > nxp.com%2Fdocs%2Fen%2Ferrata%2FIMX6DQCE.pdf&amp;data=02%7C01%7C
> > > > yibin.g
> > > > > 
> > > > 
> > > > 
> > 
> > ong%40nxp.com%7C4621358b9be04a79d2d508d80798835b%7C686ea1d3bc2b
> > > > 4c6fa92
> > > > > 
> > > > 
> > > > 
> > 
> > cd99c5c301635%7C0%7C1%7C637267698912634476&amp;sdata=hR66H1hP%
> > > > 2Fqb6OXe
> > > > > w9wpXizY8DiNfZZ1KLwu3Kty87jc%3D&amp;reserved=0. The
> > > > > workaround
> > 
> > is
> > > > > adding new sdma ram script which works in XCH  mode as PIO
> > > > > inside
> > > > > sdma instead of SMC mode, meanwhile, 'TX_THRESHOLD' should be
> > > > > 0.
> > > > > The issue
> > > > 
> > > > should be exist on all legacy i.mx6/7 soc family before
> > > > i.mx6ul.
> > > > > NXP fix this design issue from i.mx6ul, so newer chips
> > > > > including
> > > > > i.mx6ul/ 6ull/6sll do not need this workaroud anymore. All
> > > > > other
> > > > > i.mx6/7/8 chips still need this workaroud. This patch set add
> > > > > new
> > > > > 'fsl,imx6ul-ecspi'
> > > > > for ecspi driver and 'ecspi_fixed' in sdma driver to choose
> > > > > if
> > > > > need errata or not.
> > > > > The first two reverted patches should be the same issue,
> > > > > though,
> > > > > it seems 'fixed' by changing to other shp script. Hope Sean
> > > > > or
> > > > > Sascha could have the chance to test this patch set if could
> > > > > fix
> > > > > their issues.
> > > > > Besides, enable sdma support for i.mx8mm/8mq and fix ecspi1
> > > > > not
> > > > > work on i.mx8mm because the event id is zero.
> > > > > 
> > > > > PS:
> > > > >    Please get sdma firmware from below linux-firmware and
> > > > > copy it
> > > > > to your local rootfs /lib/firmware/imx/sdma.
> > > > 
> > > > 
> > > > Hello Robin,
> > > > 
> > > > we have tried out this series, and there seems to be an issue
> > > > with
> > > > the
> > > > PIO fallback. We are testing on an i.MX6Q board, and our kernel
> > > > is
> > > > a
> > > > mostly-unmodified 5.4, on which we backported all SDMA patches
> > > > from
> > > > next-20200602 (imx-sdma.c is identical to next-20200602
> > > > version),
> > > > and
> > > > then applied this whole series.
> > > > 
> > > > We build the SDMA driver as a kernel module, which is loaded by
> > > > udev,
> > > > so the root filesystem is ready and the SDMA firmware can be
> > > > loaded.
> > > > The behaviour we're seeing is the following:
> > > > 
> > > > 1. As long as the SDMA driver is not loaded, initializing
> > > > spi_imx
> > > > will
> > > > be deferred
> > > > 2. imx_sdma is loaded. The SDMA firmware is not yet loaded at
> > > > this
> > > > point
> > > > 3. spi_imx is initialized and an SPI-NOR flash is probed. To
> > > > load
> > > > the
> > > > BFPT, the driver will attempt to use DMA; this will fail with
> > > > EINVAL as
> > > > long as the SDMA firmware is not ready, so the fallback to PIO
> > > > happens
> > > > (4. SDMA firmware is ready, subsequent SPI transfers use DMA)
> > > > 
> > > > The problem happens in step 3: Whenever the driver falls back
> > > > to
> > > > PIO,
> > > > the received data is corrupt. The behaviour is specific to the
> > > > fallback: When I disable DMA completely via spi_imx.use_dma, or
> > > > when
> > > > the timing is lucky and the SDMA firmware gets loaded before
> > > > the
> > > > flash
> > > > is probed, no corruption can be observed.
> > > 
> > > Thanks Matthias, would you like post log?
> > > 
> > 
> > I have attached the following log files:
> > - pio.log: DMA disabled via module parameter
> > - dma.log: "lucky" timing, SDMA firmware loaded before SPI-NOR
> > probe
> > - fallback.log: DMA->PIO fallback
> > 
> > The logs include some additional log messages:
> > - Return value of spi_imx_dma_transfer() before PIO fallback
> > - SPI-NOR SFPT dump
> > 
> > It can be seen that the BFPT data is identical in pio.log and
> > dma.log,
> > and differs almost completely in fallback.log. The corrupted data
> > seems
> > to be random, or uninitialized memory; it differs with every boot.
> 
> Would you please have a try with the attached patch? Thanks.


Thank you, this fixes the issue we're seeing.

Kind regards,
Matthias

[-- Attachment #2: fixed.log --]
[-- Type: text/x-log, Size: 33368 bytes --]

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.39 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Fri Jun 5 07:23:40 UTC 2020
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TQ TQMa6Q on MBa6x
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 160 MiB at 0x46000000
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 2048 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 262144 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s50664 r8192 d23064 u81920
[    0.000000] pcpu-alloc: s50664 r8192 d23064 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: root=/dev/mmcblk1p2 ro rootwait console=ttymxc1,115200 spi_imx.dyndbg=+p consoleblank=0 cma=160M
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 850004K/1048576K available (12288K kernel code, 942K rwdata, 3656K rodata, 1024K init, 6554K bss, 34732K reserved, 163840K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x20/0x2b8 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34625 entries in 68 pages
[    0.000000] Running RCU self tests
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU lockdep checking is enabled.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 errata 752271 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000009] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000040] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.001629] Console: colour dummy device 80x30
[    0.001665] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.001687] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.001711] ... MAX_LOCK_DEPTH:          48
[    0.001731] ... MAX_LOCKDEP_KEYS:        8192
[    0.001753] ... CLASSHASH_SIZE:          4096
[    0.001774] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.001795] ... MAX_LOCKDEP_CHAINS:      65536
[    0.001816] ... CHAINHASH_SIZE:          32768
[    0.001836]  memory used by lock dependency info: 3997 kB
[    0.001856]  memory used for stack traces: 2112 kB
[    0.001878]  per task-struct memory footprint: 1536 bytes
[    0.001953] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.001988] pid_max: default: 32768 minimum: 301
[    0.002526] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002572] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.005083] CPU: Testing write buffer coherency: ok
[    0.005169] CPU0: Spectre v2: using BPIALL workaround
[    0.006459] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.059678] Setting up static identity map for 0x10100000 - 0x10100060
[    0.079539] rcu: Hierarchical SRCU implementation.
[    0.129550] smp: Bringing up secondary CPUs ...
[    0.210001] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.210016] CPU1: Spectre v2: using BPIALL workaround
[    0.289894] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.289910] CPU2: Spectre v2: using BPIALL workaround
[    0.369888] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.369903] CPU3: Spectre v2: using BPIALL workaround
[    0.370513] smp: Brought up 1 node, 4 CPUs
[    0.370547] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[    0.370573] CPU: All CPU(s) started in SVC mode.
[    0.372564] devtmpfs: initialized
[    0.411117] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.413270] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.413334] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.421673] pinctrl core: initialized pinctrl subsystem
[    0.426412] NET: Registered protocol family 16
[    0.433920] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.437726] cpuidle: using governor ladder
[    0.438009] CPU identified as i.MX6Q, silicon rev 1.5
[    0.471621] vdd1p1: supplied by regulator-dummy
[    0.473787] vdd3p0: supplied by regulator-dummy
[    0.475680] vdd2p5: supplied by regulator-dummy
[    0.477536] vddarm: supplied by regulator-dummy
[    0.479670] vddpu: supplied by regulator-dummy
[    0.481530] vddsoc: supplied by regulator-dummy
[    0.521081] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.521146] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.524299] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.644216] mxs-dma 110000.dma-apbh: initialized
[    0.653222] vgaarb: loaded
[    0.654666] SCSI subsystem initialized
[    0.655483] libata version 3.00 loaded.
[    0.656501] usbcore: registered new interface driver usbfs
[    0.656737] usbcore: registered new interface driver hub
[    0.657080] usbcore: registered new device driver usb
[    0.657588] usb_phy_generic usbphynop1: usbphynop1 supply vcc not found, using dummy regulator
[    0.658449] usb_phy_generic usbphynop2: usbphynop2 supply vcc not found, using dummy regulator
[    0.665470] i2c i2c-0: IMX I2C adapter registered
[    0.666320] pps_core: LinuxPPS API ver. 1 registered
[    0.666349] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.666430] PTP clock support registered
[    0.674652] clocksource: Switched to clocksource mxc_timer1
[    1.740208] thermal_sys: Registered thermal governor 'fair_share'
[    1.740222] thermal_sys: Registered thermal governor 'step_wise'
[    1.740260] thermal_sys: Registered thermal governor 'user_space'
[    1.741160] NET: Registered protocol family 2
[    1.743061] tcp_listen_portaddr_hash hash table entries: 512 (order: 2, 20480 bytes, linear)
[    1.743196] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.743432] TCP bind hash table entries: 8192 (order: 6, 294912 bytes, linear)
[    1.744897] TCP: Hash tables configured (established 8192 bind 8192)
[    1.745528] UDP hash table entries: 512 (order: 3, 40960 bytes, linear)
[    1.745768] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes, linear)
[    1.746564] NET: Registered protocol family 1
[    1.748943] RPC: Registered named UNIX socket transport module.
[    1.749009] RPC: Registered udp transport module.
[    1.749037] RPC: Registered tcp transport module.
[    1.749064] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.760424] PCI: CLS 0 bytes, default 64
[    1.761389] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    1.762261] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.768318] Initialise system trusted keyrings
[    1.769028] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.792661] NFS: Registering the id_resolver key type
[    1.792800] Key type id_resolver registered
[    1.792870] Key type id_legacy registered
[    1.792932] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.793719] fuse: init (API version 7.31)
[    1.796020] NILFS version 2 loaded
[    1.838986] Key type asymmetric registered
[    1.839100] Asymmetric key parser 'x509' registered
[    1.839275] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.839367] io scheduler mq-deadline registered
[    1.839401] io scheduler kyber registered
[    1.847454] imx6q-pcie 1ffc000.pcie: host bridge /soc/pcie@1ffc000 ranges:
[    1.847675] imx6q-pcie 1ffc000.pcie:    IO 0x01f80000..0x01f8ffff -> 0x00000000
[    1.847866] imx6q-pcie 1ffc000.pcie:   MEM 0x01000000..0x01efffff -> 0x01000000
[    1.859118] pfuze100-regulator 0-0008: Full layer: 2, Metal layer: 1
[    1.860092] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[    1.860126] pfuze100-regulator 0-0008: pfuze100 found.
[    1.891216] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 66, base_baud = 5000000) is a IMX
[    2.678656] printk: console [ttymxc1] enabled
[    2.685153] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 67, base_baud = 5000000) is a IMX
[    2.695707] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 68, base_baud = 5000000) is a IMX
[    2.706224] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 69, base_baud = 5000000) is a IMX
[    2.739808] etnaviv etnaviv: bound 130000.gpu (ops gpu_ops)
[    2.746264] etnaviv etnaviv: bound 134000.gpu (ops gpu_ops)
[    2.752620] etnaviv etnaviv: bound 2204000.gpu (ops gpu_ops)
[    2.758410] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[    2.765556] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[    2.771816] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[    2.778030] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[    2.787199] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[    2.799546] imx-ipuv3 2400000.ipu: IPUv3H probed
[    2.807632] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.814322] [drm] No driver support for vblank timestamp query.
[    2.821418] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[    2.829349] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[    2.837354] imx-drm display-subsystem: bound imx-ipuv3-crtc.6 (ops ipu_crtc_ops)
[    2.845276] imx-drm display-subsystem: bound imx-ipuv3-crtc.7 (ops ipu_crtc_ops)
[    2.854389] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    2.862675] imx-ipuv3 2800000.ipu: IPUv3H probed
[    2.912586] loop: module loaded
[    2.918439] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[    2.927616] at24 0-0057: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
[    2.937469] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[    2.945500] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[    2.953544] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[    2.961821] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[    2.969862] ahci-imx 2200000.sata: 2200000.sata supply ahci not found, using dummy regulator
[    2.974678] imx6q-pcie 1ffc000.pcie: Phy link never came up
[    2.978838] ahci-imx 2200000.sata: 2200000.sata supply phy not found, using dummy regulator
[    2.987906] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[    2.993159] ahci-imx 2200000.sata: 2200000.sata supply target not found, using dummy regulator
[    2.998671] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.998699] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    3.011182] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[    3.012881] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[    3.019183] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    3.026411] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[    3.033056] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst 
[    3.041992] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    3.063650] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    3.067674] scsi host0: ahci-imx
[    3.070548] pci 0000:00:00.0: Limiting cfg_size to 512
[    3.075295] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 72
[    3.079130] pci 0000:00:00.0: supports D1
[    3.089282] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[    3.090799] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    3.092133] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[    3.099384] libphy: Fixed MDIO Bus: probed
[    3.102695] PCI: bus0: Fast back to back transfers disabled
[    3.105356] CAN device driver interface
[    3.113649] PCI: bus1: Fast back to back transfers enabled
[    3.114285] flexcan 2090000.flexcan: 2090000.flexcan supply xceiver not found, using dummy regulator
[    3.119291] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[    3.131705] flexcan 2094000.flexcan: 2094000.flexcan supply xceiver not found, using dummy regulator
[    3.135310] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[    3.151786] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    3.153541] pps pps0: new PPS source ptp0
[    3.159151] pcieport 0000:00:00.0: PME: Signaling with IRQ 306
[    3.168741] pcieport 0000:00:00.0: AER: enabled with IRQ 306
[    3.169048] libphy: fec_enet_mii_bus: probed
[    3.183769] fec 2188000.ethernet eth0: registered PHC device 0
[    3.190548] usbcore: registered new interface driver cdc_ether
[    3.196665] usbcore: registered new interface driver smsc95xx
[    3.202461] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.209144] ehci-pci: EHCI PCI platform driver
[    3.219204] imx_usb 2184000.usb: No over current polarity defined
[    3.230025] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    3.235495] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    3.264720] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    3.271845] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    3.280322] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.287654] usb usb1: Product: EHCI Host Controller
[    3.292565] usb usb1: Manufacturer: Linux 5.4.39 ehci_hcd
[    3.298056] usb usb1: SerialNumber: ci_hdrc.0
[    3.305485] hub 1-0:1.0: USB hub found
[    3.309555] hub 1-0:1.0: 1 port detected
[    3.317484] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[    3.330416] ci_hdrc ci_hdrc.1: EHCI Host Controller
[    3.335501] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[    3.364702] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[    3.371209] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    3.379600] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.386918] usb usb2: Product: EHCI Host Controller
[    3.391831] usb usb2: Manufacturer: Linux 5.4.39 ehci_hcd
[    3.397322] usb usb2: SerialNumber: ci_hdrc.1
[    3.403588] hub 2-0:1.0: USB hub found
[    3.407620] hub 2-0:1.0: 1 port detected
[    3.416582] mousedev: PS/2 mouse device common for all mice
[    3.426923] ata1: SATA link down (SStatus 0 SControl 300)
[    3.432599] ahci-imx 2200000.sata: no device found, disabling link.
[    3.434404] rtc-ds1307 0-0068: registered as rtc0
[    3.438995] ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
[    3.445882] i2c /dev entries driver
[    3.455954] IR NEC protocol handler initialized
[    3.460526] IR RC5(x/sz) protocol handler initialized
[    3.465704] IR RC6 protocol handler initialized
[    3.470272] IR JVC protocol handler initialized
[    3.474914] IR Sony protocol handler initialized
[    3.479565] IR SANYO protocol handler initialized
[    3.484300] IR Sharp protocol handler initialized
[    3.489093] IR MCE Keyboard/mouse protocol handler initialized
[    3.495017] IR XMP protocol handler initialized
[    3.506346] lm75 0-0048: hwmon0: sensor 'lm75'
[    3.513239] lm75 0-0049: hwmon1: sensor 'lm75'
[    3.523672] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    3.532392] sdhci: Secure Digital Host Controller Interface driver
[    3.538672] sdhci: Copyright(c) Pierre Ossman
[    3.543062] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.550780] sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
[    3.556135] sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
[    3.598990] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    3.651070] mmc1: new high speed SD card at address 1234
[    3.657883] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[    3.670288] ledtrig-cpu: registered to indicate activity on CPUs
[    3.671305] mmcblk1: mmc1:1234 SA02G 1.84 GiB 
[    3.681554] caam 2100000.caam: Entropy delay = 3200
[    3.703274]  mmcblk1: p1 p2
[    3.747319] caam 2100000.caam: Instantiated RNG4 SH0
[    3.774779] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[    3.787144] mmc0: new DDR MMC card at address 0001
[    3.794197] mmcblk0: mmc0:0001 MMC04G 3.52 GiB 
[    3.799884] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
[    3.806963] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
[    3.808082] caam 2100000.caam: Instantiated RNG4 SH1
[    3.813829] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (248:0)
[    3.817956] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[    3.817974] caam 2100000.caam: job rings = 2, qi = 0
[    3.892098] caam algorithms registered in /proc/crypto
[    3.912582] caam_jr 2101000.jr0: registering rng-caam
[    3.919891] hidraw: raw HID events driver (C) Jiri Kosina
[    3.930853] NET: Registered protocol family 10
[    3.939894] Segment Routing with IPv6
[    3.943729] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.952463] NET: Registered protocol family 17
[    3.957050] can: controller area network core (rev 20170425 abi 9)
[    3.963506] NET: Registered protocol family 29
[    3.968053] can: raw protocol (rev 20170425)
[    3.972458] can: broadcast manager protocol (rev 20170425 t)
[    3.975864] usb 2-1: New USB device found, idVendor=0424, idProduct=2517, bcdDevice= 0.02
[    3.978267] can: netlink gateway (rev 20190810) max_hops=1
[    3.986497] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.992533] Key type dns_resolver registered
[    4.001775] hub 2-1:1.0: USB hub found
[    4.007726] hub 2-1:1.0: 7 ports detected
[    4.019922] Registering SWP/SWPB emulation handler
[    4.026940] Loading compiled-in X.509 certificates
[    4.033765] Key type ._fscrypt registered
[    4.038061] Key type .fscrypt registered
[    4.197921] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[    4.199984] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[    4.203694] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[    4.215406] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[    4.217246] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[    4.219297] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[    4.221081] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[    4.225245] random: fast init done
[    4.229248] rtc-ds1307 0-0068: setting system clock to 2000-01-01T00:01:08 UTC (946684868)
[    4.238084] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.258979] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.267092] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.276176] cfg80211: failed to load regulatory.db
[    4.301827] EXT4-fs (mmcblk1p2): INFO: recovery required on readonly filesystem
[    4.309472] EXT4-fs (mmcblk1p2): write access will be enabled during recovery
[    4.334800] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[    4.496212] usb 2-1.1: New USB device found, idVendor=0424, idProduct=9e00, bcdDevice= 3.00
[    4.504886] usb 2-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.517379] smsc95xx v1.0.6
[    4.648480] smsc95xx 2-1.1:1.0 eth1: register 'smsc95xx' at usb-ci_hdrc.1-1.1, smsc95xx USB 2.0 Ethernet, f2:78:83:43:d1:7b
[    4.662389] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[    4.664256] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[    4.967482] EXT4-fs (mmcblk1p2): recovery complete
[    4.986706] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.996436] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    5.007139] devtmpfs: mounted
[    5.028362] Freeing unused kernel memory: 1024K
[    5.034564] Run /sbin/init as init process
[    5.606188] systemd[1]: System time before build time, advancing clock.
[    5.710605] systemd[1]: systemd 243.2+ running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    5.736335] systemd[1]: Detected architecture arm.
[    5.799308] systemd[1]: Set hostname to <tqma6q-mba6x>.
[    6.675645] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket \xe2\x86\x92 /run/dbus/system_bus_socket; please update the unit file accordingly.
[    7.024418] systemd[1]: /lib/systemd/system/rpcbind.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/rpcbind.sock \xe2\x86\x92 /run/rpcbind.sock; please update the unit file accordingly.
[    7.088772] random: systemd: uninitialized urandom read (16 bytes read)
[    7.100144] systemd[1]: Created slice system-getty.slice.
[    7.135611] random: systemd: uninitialized urandom read (16 bytes read)
[    7.146536] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    7.195582] random: systemd: uninitialized urandom read (16 bytes read)
[    7.206267] systemd[1]: Created slice User and Session Slice.
[    7.247801] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    7.287818] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    8.148199] random: crng init done
[    8.151661] random: 7 urandom warning(s) missed due to ratelimiting
[    8.613147] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[    8.619572] ext4 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)
[    9.101979] systemd[297]: systemd-udevd.service: ProtectHostname=yes is configured, but the kernel does not support UTS namespaces, ignoring namespace setup.
[    9.267307] systemd-journald[279]: Received client request to flush runtime journal.
[   11.123314] input: gpio-buttons as /devices/soc0/gpio-buttons/input/input0
[   11.127794] input: gpio-beeper as /devices/soc0/gpio-beeper/input/input1
[   11.157434] mc: Linux media interface: v0.10
[   11.172601] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[   11.174915] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[   11.176776] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[   11.178815] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[   11.219686] videodev: Linux video capture interface: v2.00
[   11.401520] imx_media_common: module is from the staging directory, the quality is unknown, you have been warned.
[   11.457916] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[   11.460009] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[   11.470667] imx6_media: module is from the staging directory, the quality is unknown, you have been warned.
[   11.650219] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[   11.860185] spi_imx 2008000.spi: can't get the TX DMA channel, error -517!
[   11.869667] spi_imx 2018000.spi: can't get the TX DMA channel, error -517!
[   11.871503] fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
[   11.968879] spi spi0.0: spi_imx_setup: mode 0, 8 bpw, 50000000 hz
[   11.972130] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   11.972637] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.016379] spi-nor spi0.0: n25q128a13
[   12.020443] spi-nor spi0.0: spi_nor_info_init_params: 03
[   12.035872] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.035951] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.036037] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.036102] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.036459] spi-nor spi0.0: Header: 53
[   12.040355] spi-nor spi0.0: Header: 46
[   12.044198] spi-nor spi0.0: Header: 44
[   12.073621] spi-nor spi0.0: Header: 50
[   12.077592] spi-nor spi0.0: Header: 05
[   12.081414] spi-nor spi0.0: Header: 01
[   12.112231] spi-nor spi0.0: Header: 01
[   12.134785] spi-nor spi0.0: Header: ff
[   12.139506] spi-nor spi0.0: Header: 00
[   12.143317] spi-nor spi0.0: Header: 05
[   12.159246] spi-nor spi0.0: Header: 01
[   12.163108] spi-nor spi0.0: Header: 10
[   12.184776] spi-nor spi0.0: Header: 30
[   12.188615] spi-nor spi0.0: Header: 00
[   12.221040] spi-nor spi0.0: Header: 00
[   12.244702] spi-nor spi0.0: Header: ff
[   12.266541] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.266706] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.266788] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.266866] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.267190] spi-nor spi0.0: bfpt addr=30 len=40
[   12.285142] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.285246] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.285534] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.285658] spi_imx 2008000.spi: mx51_ecspi_clkdiv: fin: 60000000, fspi: 50000000, post: 0, pre: 1
[   12.286591] spi-nor spi0.0: DMA transfer: -22
[   12.286630] spi-nor spi0.0: Fallback to PIO mode
[   12.296534] spi-nor spi0.0: bfpt: e5
[   12.314782] spi-nor spi0.0: bfpt: 20
[   12.344792] spi-nor spi0.0: bfpt: f1
[   12.348426] spi-nor spi0.0: bfpt: ff
[   12.352037] spi-nor spi0.0: bfpt: ff
[   12.397380] spi-nor spi0.0: bfpt: ff
[   12.416917] spi-nor spi0.0: bfpt: ff
[   12.420597] spi-nor spi0.0: bfpt: 07
[   12.424267] spi-nor spi0.0: bfpt: 29
[   12.442571] spi-nor spi0.0: bfpt: eb
[   12.458160] spi-nor spi0.0: bfpt: 27
[   12.462405] Micrel KSZ9031 Gigabit PHY 2188000.ethernet-1:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=2188000.ethernet-1:03, irq=104)
[   12.467943] spi-nor spi0.0: bfpt: 6b
[   12.510726] spi-nor spi0.0: bfpt: 27
[   12.514394] spi-nor spi0.0: bfpt: 3b
[   12.518667] spi-nor spi0.0: bfpt: 27
[   12.534799] spi-nor spi0.0: bfpt: bb
[   12.538425] spi-nor spi0.0: bfpt: ff
[   12.542035] spi-nor spi0.0: bfpt: ff
[   12.550887] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[   12.554781] spi-nor spi0.0: bfpt: ff
[   12.561370] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[   12.574772] spi-nor spi0.0: bfpt: ff
[   12.578560] spi-nor spi0.0: bfpt: ff
[   12.582176] spi-nor spi0.0: bfpt: ff
[   12.583566] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[   12.585889] spi-nor spi0.0: bfpt: 27
[   12.585908] spi-nor spi0.0: bfpt: bb
[   12.585923] spi-nor spi0.0: bfpt: ff
[   12.585938] spi-nor spi0.0: bfpt: ff
[   12.585953] spi-nor spi0.0: bfpt: 29
[   12.626081] imx6_media_csi: module is from the staging directory, the quality is unknown, you have been warned.
[   12.656095] ipu1_csi0: Registered ipu1_csi0 capture as /dev/video0
[   12.675198] ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /dev/video1
[   12.683695] spi-nor spi0.0: bfpt: eb
[   12.687574] spi-nor spi0.0: bfpt: 0c
[   12.691231] spi-nor spi0.0: bfpt: 20
[   12.705004] ipu1_ic_prpvf: Registered ipu1_ic_prpvf capture as /dev/video2
[   12.712086] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0
[   12.717491] spi-nor spi0.0: bfpt: 10
[   12.721154] spi-nor spi0.0: bfpt: d8
[   12.734691] spi-nor spi0.0: bfpt: 00
[   12.738348] spi-nor spi0.0: bfpt: 00
[   12.741995] spi-nor spi0.0: bfpt: 00
[   12.745946] imx-media: ipu1_csi0:1 -> ipu1_vdic:0
[   12.750739] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0
[   12.764770] spi-nor spi0.0: bfpt: 00
[   12.768433] spi-nor spi0.0: bfpt: 35
[   12.772076] spi-nor spi0.0: bfpt: 8a
[   12.775953] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0
[   12.781355] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0
[   12.804725] spi-nor spi0.0: bfpt: 01
[   12.808484] spi-nor spi0.0: bfpt: 00
[   12.812131] spi-nor spi0.0: bfpt: 82
[   12.816051] imx-media: subdev ipu1_csi0 bound
[   12.822311] ipu1_csi1: Registered ipu1_csi1 capture as /dev/video3
[   12.844770] spi-nor spi0.0: bfpt: a3
[   12.848570] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0
[   12.853600] imx-media: ipu1_csi1:1 -> ipu1_vdic:0
[   12.858512] spi-nor spi0.0: bfpt: 03
[   12.862158] spi-nor spi0.0: bfpt: cb
[   12.865986] spi-nor spi0.0: bfpt: ac
[   12.869667] spi-nor spi0.0: bfpt: c1
[   12.873309] spi-nor spi0.0: bfpt: 04
[   12.877400] imx-media: subdev ipu1_csi1 bound
[   12.894954] ipu2_csi0: Registered ipu2_csi0 capture as /dev/video4
[   12.902306] spi-nor spi0.0: bfpt: 2e
[   12.906067] spi-nor spi0.0: bfpt: 7a
[   12.909718] spi-nor spi0.0: bfpt: 75
[   12.913391] spi-nor spi0.0: bfpt: 7a
[   12.922719] ipu2_ic_prpenc: Registered ipu2_ic_prpenc capture as /dev/video5
[   12.936367] ipu2_ic_prpvf: Registered ipu2_ic_prpvf capture as /dev/video6
[   12.943584] imx-media: ipu2_csi0:1 -> ipu2_ic_prp:0
[   12.954793] spi-nor spi0.0: bfpt: 75
[   12.958625] spi-nor spi0.0: bfpt: fb
[   12.962308] spi-nor spi0.0: bfpt: 00
[   12.974773] imx-media: ipu2_csi0:1 -> ipu2_vdic:0
[   12.994794] spi-nor spi0.0: bfpt: 00
[   12.998462] spi-nor spi0.0: bfpt: 80
[   13.002103] spi-nor spi0.0: bfpt: 08
[   13.006025] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0
[   13.010994] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0
[   13.016510] spi-nor spi0.0: bfpt: 0f
[   13.020173] spi-nor spi0.0: bfpt: 82
[   13.023833] spi-nor spi0.0: bfpt: ff
[   13.027699] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0
[   13.032998] imx-media: subdev ipu2_csi0 bound
[   13.054705] spi-nor spi0.0: bfpt: 81
[   13.058330] spi-nor spi0.0: bfpt: 3d
[   13.064247] ipu2_csi1: Registered ipu2_csi1 capture as /dev/video7
[   13.071092] spi-nor spi0.0: bfpt: 00
[   13.084715] imx-media: ipu2_csi1:1 -> ipu2_ic_prp:0
[   13.089898] spi-nor spi0.0: bfpt: 00
[   13.093519] spi-nor spi0.0: spi_nor_parse_bfpt: 03
[   13.098731] imx-media: ipu2_csi1:1 -> ipu2_vdic:0
[   13.103489] imx-media: subdev ipu2_csi1 bound
[   13.114805] spi-nor spi0.0: spi_nor_parse_bfpt: 0c
[   13.121796] spi-nor spi0.0: param headers: 03
[   13.132542] spi-nor spi0.0: param headers: 00
[   13.148607] spi-nor spi0.0: param headers: 01
[   13.153245] spi-nor spi0.0: param headers: 02
[   13.174355] spi-nor spi0.0: param headers: 00
[   13.178882] spi-nor spi0.0: param headers: 01
[   13.183279] spi-nor spi0.0: param headers: 00
[   13.204795] spi-nor spi0.0: param headers: ff
[   13.224825] spi-nor spi0.0: has uniform erase
[   13.229237] spi-nor spi0.0: spi_nor_select_erase: 08
[   13.234241] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[   13.316374] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[   13.331434] imx-sdma 20ec000.sdma: loaded firmware 3.5
[   13.355143] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[   13.383312] spi spi0.1: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[   13.414032] spi_imx 2008000.spi: probed
[   13.514940] spi spi4.0: spi_imx_setup: mode 0, 8 bpw, 1000000 hz
[   13.517232] spi_imx 2018000.spi: probed
[   13.680184] imx-tlv320aic32x4 sound: tlv320aic32x4-hifi <-> 2028000.ssi mapping ok
[   13.693001] coda 2040000.vpu: Firmware code revision: 570363
[   13.715442] coda 2040000.vpu: Initialized CODA960.
[   13.720303] coda 2040000.vpu: Firmware version: 3.1.1
[   13.746657] coda 2040000.vpu: encoder registered as video8
[   13.757458] coda 2040000.vpu: decoder registered as video9
[   14.365520] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[   14.373301] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[   14.473634] smsc95xx 2-1.1:1.0 eth1: link up, 100Mbps, full-duplex, lpa 0xC5E1

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2020-06-05  7:57 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 20:34 [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Robin Gong
2020-05-20 20:34 ` [PATCH v8 01/13] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core" Robin Gong
2020-05-20 20:34 ` [PATCH v8 02/13] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores" Robin Gong
2020-05-20 20:34 ` [PATCH v8 03/13] Revert "dmaengine: imx-sdma: refine to load context only once" Robin Gong
2020-05-20 20:34 ` [PATCH v8 04/13] dmaengine: imx-sdma: remove duplicated sdma_load_context Robin Gong
2020-05-20 20:34 ` [PATCH v8 05/13] spi: imx: fallback to PIO if dma setup failure Robin Gong
2020-05-20 20:34 ` [PATCH v8 06/13] dmaengine: imx-sdma: add mcu_2_ecspi script Robin Gong
2020-05-20 20:34 ` [PATCH v8 07/13] spi: imx: fix ERR009165 Robin Gong
2020-05-20 20:34 ` [PATCH v8 08/13] spi: imx: remove ERR009165 workaround on i.mx6ul Robin Gong
2020-05-20 20:34 ` [PATCH v8 09/13] spi: imx: add new i.mx6ul compatible name in binding doc Robin Gong
2020-05-20 20:34 ` [PATCH v8 10/13] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul Robin Gong
2020-05-20 20:34 ` [PATCH v8 11/13] dma: imx-sdma: add i.mx6ul compatible name Robin Gong
2020-05-20 20:34 ` [PATCH v8 12/13] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm Robin Gong
2020-05-20 20:34 ` [PATCH v8 13/13] dmaengine: imx-sdma: add uart rom script Robin Gong
2020-05-27  5:03 ` [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family Sascha Hauer
2020-05-28 13:07 ` Mark Brown
2020-06-03  8:31 ` (EXT) " Matthias Schiffer
2020-06-03  9:50   ` Robin Gong
2020-06-03 11:50     ` Matthias Schiffer
2020-06-05  2:45       ` Robin Gong
2020-06-05  7:57         ` (EXT) " Matthias Schiffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).