All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-15 23:25 Mans Rullgard
  2015-12-15 23:25 ` [PATCH 2/3] ata: sata_dwc_460ex: add phy support Mans Rullgard
                   ` (3 more replies)
  0 siblings, 4 replies; 154+ messages in thread
From: Mans Rullgard @ 2015-12-15 23:25 UTC (permalink / raw)
  To: Tejun Heo, linux-ide, linux-kernel; +Cc: Andy Shevchenko

Currently this driver only works with a DesignWare DMA engine which it
registers manually using the second "reg" address range and interrupt
number from the DT node.

This patch makes the driver instead use the "dmas" property if present,
otherwise optionally falling back on the old way so existing device
trees can continue to work.

With this change, there is no longer any reason to depend on the 460EX
machine type so drop that from Kconfig.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/Kconfig          |  10 ++-
 drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++----------------
 2 files changed, 131 insertions(+), 71 deletions(-)

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 3fc2a56..193c673 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -296,14 +296,20 @@ config ATA_PIIX
 
 config SATA_DWC
 	tristate "DesignWare Cores SATA support"
-	depends on 460EX
-	select DW_DMAC
 	help
 	  This option enables support for the on-chip SATA controller of the
 	  AppliedMicro processor 460EX.
 
 	  If unsure, say N.
 
+config SATA_DWC_OLD_DMA
+	bool "Support old device trees"
+	depends on SATA_DWC && 460EX
+	select DW_DMAC
+	help
+	  This option enables support for old device trees without the
+	  "dmas" property.
+
 config SATA_DWC_DEBUG
 	bool "Debugging driver version"
 	depends on SATA_DWC
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 9020349..9985749 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -30,6 +30,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/device.h>
+#include <linux/dmaengine.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
@@ -42,10 +43,6 @@
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_cmnd.h>
 
-/* Supported DMA engine drivers */
-#include <linux/platform_data/dma-dw.h>
-#include <linux/dma/dw.h>
-
 /* These two are defined in "libata.h" */
 #undef	DRV_NAME
 #undef	DRV_VERSION
@@ -148,7 +145,9 @@ struct sata_dwc_device {
 	struct ata_host		*host;
 	u8 __iomem		*reg_base;
 	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
+#ifdef CONFIG_SATA_DWC_OLD_DMA
 	struct dw_dma_chip	*dma;
+#endif
 };
 
 #define SATA_DWC_QCMD_MAX	32
@@ -159,7 +158,6 @@ struct sata_dwc_device_port {
 	int			dma_pending[SATA_DWC_QCMD_MAX];
 
 	/* DMA info */
-	struct dw_dma_slave		*dws;
 	struct dma_chan			*chan;
 	struct dma_async_tx_descriptor	*desc[SATA_DWC_QCMD_MAX];
 	u32				dma_interrupt_count;
@@ -198,13 +196,6 @@ struct sata_dwc_host_priv {
 
 static struct sata_dwc_host_priv host_pvt;
 
-static struct dw_dma_slave sata_dwc_dma_dws = {
-	.src_id = 0,
-	.dst_id = 0,
-	.src_master = 0,
-	.dst_master = 1,
-};
-
 /*
  * Prototypes
  */
@@ -215,6 +206,90 @@ static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status);
 static void sata_dwc_port_stop(struct ata_port *ap);
 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+
+#include <linux/platform_data/dma-dw.h>
+#include <linux/dma/dw.h>
+
+static struct dw_dma_slave sata_dwc_dma_dws = {
+	.src_id = 0,
+	.dst_id = 0,
+	.src_master = 0,
+	.dst_master = 1,
+};
+
+static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
+{
+	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
+
+	if (dws->dma_dev != chan->device->dev)
+		return false;
+
+	chan->private = dws;
+	return true;
+}
+
+static int sata_dwc_dma_get_channel_old(struct sata_dwc_device_port *hsdevp)
+{
+	struct sata_dwc_device *hsdev = hsdevp->hsdev;
+	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
+	dma_cap_mask_t mask;
+
+	dws->dma_dev = hsdev->dev;
+
+	dma_cap_zero(mask);
+	dma_cap_set(DMA_SLAVE, mask);
+
+	/* Acquire DMA channel */
+	hsdevp->chan = dma_request_channel(mask, sata_dwc_dma_filter, hsdevp);
+	if (!hsdevp->chan) {
+		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
+			 __func__);
+		return -EAGAIN;
+	}
+
+	return 0;
+}
+
+static int sata_dwc_dma_init_old(struct platform_device *pdev,
+				 struct sata_dwc_device *hsdev)
+{
+	struct device_node *np = pdev->dev.of_node;
+	int err;
+
+	hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL);
+	if (!hsdev->dma)
+		return -ENOMEM;
+
+	hsdev->dma->dev = &pdev->dev;
+
+	/* Get SATA DMA interrupt number */
+	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
+	if (hsdev->dma->irq == NO_IRQ) {
+		dev_err(&pdev->dev, "no SATA DMA irq\n");
+		return -ENODEV;
+	}
+
+	/* Get physical SATA DMA register base address */
+	hsdev->dma->regs = of_iomap(np, 1);
+	if (!hsdev->dma->regs) {
+		dev_err(&pdev->dev,
+			"ioremap failed for AHBDMA register address\n");
+		return -ENODEV;
+	}
+
+	/* Initialize AHB DMAC */
+	err = dw_dma_probe(hsdev->dma, NULL);
+	if (err) {
+		iounmap(hsdev->dma->regs);
+		return err;
+	}
+
+	return 0;
+}
+
+#endif
+
 static const char *get_prot_descript(u8 protocol)
 {
 	switch ((enum ata_tf_protocols)protocol) {
@@ -783,18 +858,6 @@ static void sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev)
 		in_le32(&hsdev->sata_dwc_regs->errmr));
 }
 
-static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
-{
-	struct sata_dwc_device_port *hsdevp = param;
-	struct dw_dma_slave *dws = hsdevp->dws;
-
-	if (dws->dma_dev != chan->device->dev)
-		return false;
-
-	chan->private = dws;
-	return true;
-}
-
 static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
 {
 	port->cmd_addr = (void __iomem *)base + 0x00;
@@ -817,6 +880,26 @@ static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
 	port->ctl_addr = (void __iomem *)base + 0x20;
 }
 
+static int sata_dwc_dma_get_channel(struct sata_dwc_device_port *hsdevp)
+{
+	struct sata_dwc_device *hsdev = hsdevp->hsdev;
+	struct device *dev = hsdev->dev;
+
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+	if (!of_find_property(dev->of_node, "dmas", NULL))
+		return sata_dwc_dma_get_channel_old(hsdevp);
+#endif
+
+	hsdevp->chan = dma_request_slave_channel(dev, "sata-dma");
+	if (IS_ERR(hsdevp->chan)) {
+		dev_err(dev, "failed to allocate dma channel: %ld\n",
+			PTR_ERR(hsdevp->chan));
+		return PTR_ERR(hsdevp->chan);
+	}
+
+	return 0;
+}
+
 /*
  * Function : sata_dwc_port_start
  * arguments : struct ata_ioports *port
@@ -829,7 +912,6 @@ static int sata_dwc_port_start(struct ata_port *ap)
 	struct sata_dwc_device *hsdev;
 	struct sata_dwc_device_port *hsdevp = NULL;
 	struct device *pdev;
-	dma_cap_mask_t mask;
 	int i;
 
 	hsdev = HSDEV_FROM_AP(ap);
@@ -853,20 +935,9 @@ static int sata_dwc_port_start(struct ata_port *ap)
 	}
 	hsdevp->hsdev = hsdev;
 
-	hsdevp->dws = &sata_dwc_dma_dws;
-	hsdevp->dws->dma_dev = hsdev->dev;
-
-	dma_cap_zero(mask);
-	dma_cap_set(DMA_SLAVE, mask);
-
-	/* Acquire DMA channel */
-	hsdevp->chan = dma_request_channel(mask, sata_dwc_dma_filter, hsdevp);
-	if (!hsdevp->chan) {
-		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
-			 __func__);
-		err = -EAGAIN;
+	err = sata_dwc_dma_get_channel(hsdevp);
+	if (err)
 		goto CLEANUP_ALLOC;
-	}
 
 	for (i = 0; i < SATA_DWC_QCMD_MAX; i++)
 		hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT;
@@ -1225,33 +1296,9 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
 		   idr, ver[0], ver[1], ver[2]);
 
-	/* Get SATA DMA interrupt number */
-	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
-	if (hsdev->dma->irq == NO_IRQ) {
-		dev_err(&ofdev->dev, "no SATA DMA irq\n");
-		err = -ENODEV;
-		goto error_iomap;
-	}
-
-	/* Get physical SATA DMA register base address */
-	hsdev->dma->regs = of_iomap(np, 1);
-	if (!hsdev->dma->regs) {
-		dev_err(&ofdev->dev,
-			"ioremap failed for AHBDMA register address\n");
-		err = -ENODEV;
-		goto error_iomap;
-	}
-
 	/* Save dev for later use in dev_xxx() routines */
 	hsdev->dev = &ofdev->dev;
 
-	hsdev->dma->dev = &ofdev->dev;
-
-	/* Initialize AHB DMAC */
-	err = dw_dma_probe(hsdev->dma, NULL);
-	if (err)
-		goto error_dma_iomap;
-
 	/* Enable SATA Interrupts */
 	sata_dwc_enable_interrupts(hsdev);
 
@@ -1263,6 +1310,14 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 		goto error_out;
 	}
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+	if (!of_find_property(np, "dmas", NULL)) {
+		err = sata_dwc_dma_init_old(ofdev, hsdev);
+		if (err)
+			goto error_out;
+	}
+#endif
+
 	/*
 	 * Now, register with libATA core, this will also initiate the
 	 * device discovery process, invoking our port_start() handler &
@@ -1276,11 +1331,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	return 0;
 
 error_out:
-	/* Free SATA DMA resources */
-	dw_dma_remove(hsdev->dma);
-error_dma_iomap:
-	iounmap(hsdev->dma->regs);
-error_iomap:
 	iounmap(base);
 	return err;
 }
@@ -1293,10 +1343,14 @@ static int sata_dwc_remove(struct platform_device *ofdev)
 
 	ata_host_detach(host);
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
 	/* Free SATA DMA resources */
-	dw_dma_remove(hsdev->dma);
+	if (hsdev->dma) {
+		dw_dma_remove(hsdev->dma);
+		iounmap(hsdev->dma->regs);
+	}
+#endif
 
-	iounmap(hsdev->dma->regs);
 	iounmap(hsdev->reg_base);
 	dev_dbg(&ofdev->dev, "done\n");
 	return 0;
-- 
2.6.3


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

* [PATCH 2/3] ata: sata_dwc_460ex: add phy support
  2015-12-15 23:25 [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Mans Rullgard
@ 2015-12-15 23:25 ` Mans Rullgard
  2015-12-16 11:14   ` Sergei Shtylyov
  2015-12-15 23:25 ` [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data Mans Rullgard
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 154+ messages in thread
From: Mans Rullgard @ 2015-12-15 23:25 UTC (permalink / raw)
  To: Tejun Heo, linux-ide, linux-kernel; +Cc: Andy Shevchenko

This adds support for powering on an optional PHY when activating the
device.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/Kconfig          |  1 +
 drivers/ata/sata_dwc_460ex.c | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 193c673..b13c609 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -296,6 +296,7 @@ config ATA_PIIX
 
 config SATA_DWC
 	tristate "DesignWare Cores SATA support"
+	select GENERIC_PHY
 	help
 	  This option enables support for the on-chip SATA controller of the
 	  AppliedMicro processor 460EX.
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 9985749..d07aae1 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -35,6 +35,7 @@
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
+#include <linux/phy/phy.h>
 #include <linux/libata.h>
 #include <linux/slab.h>
 
@@ -145,6 +146,7 @@ struct sata_dwc_device {
 	struct ata_host		*host;
 	u8 __iomem		*reg_base;
 	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
+	struct phy		*phy;
 #ifdef CONFIG_SATA_DWC_OLD_DMA
 	struct dw_dma_chip	*dma;
 #endif
@@ -1318,6 +1320,21 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	}
 #endif
 
+	hsdev->phy = devm_phy_optional_get(hsdev->dev, "sata-phy");
+	if (IS_ERR(hsdev->phy)) {
+		err = PTR_ERR(hsdev->phy);
+		hsdev->phy = NULL;
+		goto error_out;
+	}
+
+	err = phy_init(hsdev->phy);
+	if (err)
+		goto error_out;
+
+	err = phy_power_on(hsdev->phy);
+	if (err)
+		goto error_out;
+
 	/*
 	 * Now, register with libATA core, this will also initiate the
 	 * device discovery process, invoking our port_start() handler &
@@ -1331,6 +1348,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	return 0;
 
 error_out:
+	phy_exit(hsdev->phy);
 	iounmap(base);
 	return err;
 }
@@ -1343,6 +1361,9 @@ static int sata_dwc_remove(struct platform_device *ofdev)
 
 	ata_host_detach(host);
 
+	phy_power_off(hsdev->phy);
+	phy_exit(hsdev->phy);
+
 #ifdef CONFIG_SATA_DWC_OLD_DMA
 	/* Free SATA DMA resources */
 	if (hsdev->dma) {
-- 
2.6.3


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

* [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data
  2015-12-15 23:25 [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Mans Rullgard
  2015-12-15 23:25 ` [PATCH 2/3] ata: sata_dwc_460ex: add phy support Mans Rullgard
@ 2015-12-15 23:25 ` Mans Rullgard
  2015-12-17 15:06   ` Andy Shevchenko
  2015-12-15 23:34 ` [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Måns Rullgård
  2015-12-17 14:58 ` Andy Shevchenko
  3 siblings, 1 reply; 154+ messages in thread
From: Mans Rullgard @ 2015-12-15 23:25 UTC (permalink / raw)
  To: Tejun Heo, linux-ide, linux-kernel; +Cc: Andy Shevchenko

This moves all global data into the driver private struct, thus
permitting multiple devices of this type to be used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 80 ++++++++++++++++++++------------------------
 1 file changed, 36 insertions(+), 44 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index d07aae1..919f870 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -146,6 +146,8 @@ struct sata_dwc_device {
 	struct ata_host		*host;
 	u8 __iomem		*reg_base;
 	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
+	u32			sactive_issued;
+	u32			sactive_queued;
 	struct phy		*phy;
 #ifdef CONFIG_SATA_DWC_OLD_DMA
 	struct dw_dma_chip	*dma;
@@ -190,14 +192,6 @@ enum {
 	SATA_DWC_DMA_PENDING_RX		= 2,
 };
 
-struct sata_dwc_host_priv {
-	void	__iomem	 *scr_addr_sstatus;
-	u32	sata_dwc_sactive_issued ;
-	u32	sata_dwc_sactive_queued ;
-};
-
-static struct sata_dwc_host_priv host_pvt;
-
 /*
  * Prototypes
  */
@@ -448,21 +442,22 @@ static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val)
 	return 0;
 }
 
-static u32 core_scr_read(unsigned int scr)
+static u32 core_scr_read(struct sata_dwc_device *hsdev, unsigned int scr)
 {
-	return in_le32(host_pvt.scr_addr_sstatus + (scr * 4));
+	return in_le32(hsdev->reg_base + SATA_DWC_SCR_OFFSET + (scr * 4));
 }
 
-static void core_scr_write(unsigned int scr, u32 val)
+static void core_scr_write(struct sata_dwc_device *hsdev, unsigned int scr,
+			   u32 val)
 {
-	out_le32(host_pvt.scr_addr_sstatus + (scr * 4), val);
+	out_le32(hsdev->reg_base + SATA_DWC_SCR_OFFSET + (scr * 4), val);
 }
 
-static void clear_serror(void)
+static void clear_serror(struct sata_dwc_device *hsdev)
 {
 	u32 val;
-	val = core_scr_read(SCR_ERROR);
-	core_scr_write(SCR_ERROR, val);
+	val = core_scr_read(hsdev, SCR_ERROR);
+	core_scr_write(hsdev, SCR_ERROR, val);
 }
 
 static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit)
@@ -489,7 +484,7 @@ static void sata_dwc_error_intr(struct ata_port *ap,
 
 	ata_ehi_clear_desc(ehi);
 
-	serror = core_scr_read(SCR_ERROR);
+	serror = core_scr_read(hsdev, SCR_ERROR);
 	status = ap->ops->sff_check_status(ap);
 
 	tag = ap->link.active_tag;
@@ -500,7 +495,7 @@ static void sata_dwc_error_intr(struct ata_port *ap,
 		hsdevp->dma_pending[tag], hsdevp->cmd_issued[tag]);
 
 	/* Clear error register and interrupt bit */
-	clear_serror();
+	clear_serror(hsdev);
 	clear_interrupt_bit(hsdev, SATA_DWC_INTPR_ERR);
 
 	/* This is the only error happening now.  TODO check for exact error */
@@ -539,7 +534,7 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
 	int handled, num_processed, port = 0;
 	uint intpr, sactive, sactive2, tag_mask;
 	struct sata_dwc_device_port *hsdevp;
-	host_pvt.sata_dwc_sactive_issued = 0;
+	hsdev->sactive_issued = 0;
 
 	spin_lock_irqsave(&host->lock, flags);
 
@@ -568,7 +563,7 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
 		if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_PEND)
 			dev_warn(ap->dev, "CMD tag=%d not pending?\n", tag);
 
-		host_pvt.sata_dwc_sactive_issued |= qcmd_tag_to_mask(tag);
+		hsdev->sactive_issued |= qcmd_tag_to_mask(tag);
 
 		qc = ata_qc_from_tag(ap, tag);
 		/*
@@ -582,11 +577,11 @@ static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
 		handled = 1;
 		goto DONE;
 	}
-	sactive = core_scr_read(SCR_ACTIVE);
-	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;
+	sactive = core_scr_read(hsdev, SCR_ACTIVE);
+	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
 
 	/* If no sactive issued and tag_mask is zero then this is not NCQ */
-	if (host_pvt.sata_dwc_sactive_issued == 0 && tag_mask == 0) {
+	if (hsdev->sactive_issued == 0 && tag_mask == 0) {
 		if (ap->link.active_tag == ATA_TAG_POISON)
 			tag = 0;
 		else
@@ -656,22 +651,19 @@ DRVSTILLBUSY:
 	 */
 
 	 /* process completed commands */
-	sactive = core_scr_read(SCR_ACTIVE);
-	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;
+	sactive = core_scr_read(hsdev, SCR_ACTIVE);
+	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
 
-	if (sactive != 0 || (host_pvt.sata_dwc_sactive_issued) > 1 || \
-							tag_mask > 1) {
+	if (sactive != 0 || hsdev->sactive_issued > 1 ||  tag_mask > 1) {
 		dev_dbg(ap->dev,
 			"%s NCQ:sactive=0x%08x  sactive_issued=0x%08x tag_mask=0x%08x\n",
-			__func__, sactive, host_pvt.sata_dwc_sactive_issued,
-			tag_mask);
+			__func__, sactive, hsdev->sactive_issued, tag_mask);
 	}
 
-	if ((tag_mask | (host_pvt.sata_dwc_sactive_issued)) != \
-					(host_pvt.sata_dwc_sactive_issued)) {
+	if ((tag_mask | hsdev->sactive_issued) != hsdev->sactive_issued) {
 		dev_warn(ap->dev,
-			 "Bad tag mask?  sactive=0x%08x (host_pvt.sata_dwc_sactive_issued)=0x%08x  tag_mask=0x%08x\n",
-			 sactive, host_pvt.sata_dwc_sactive_issued, tag_mask);
+			 "Bad tag mask?  sactive=0x%08x sactive_issued=0x%08x  tag_mask=0x%08x\n",
+			 sactive, hsdev->sactive_issued, tag_mask);
 	}
 
 	/* read just to clear ... not bad if currently still busy */
@@ -733,7 +725,7 @@ STILLBUSY:
 	 * we were processing --we read status as part of processing a completed
 	 * command).
 	 */
-	sactive2 = core_scr_read(SCR_ACTIVE);
+	sactive2 = core_scr_read(hsdev, SCR_ACTIVE);
 	if (sactive2 != sactive) {
 		dev_dbg(ap->dev,
 			"More completed - sactive=0x%x sactive2=0x%x\n",
@@ -819,8 +811,9 @@ static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
 	u8 status = 0;
 	u32 mask = 0x0;
 	u8 tag = qc->tag;
+	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
-	host_pvt.sata_dwc_sactive_queued = 0;
+	hsdev->sactive_queued = 0;
 	dev_dbg(ap->dev, "%s checkstatus? %x\n", __func__, check_status);
 
 	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX)
@@ -833,10 +826,8 @@ static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
 
 	/* clear active bit */
 	mask = (~(qcmd_tag_to_mask(tag)));
-	host_pvt.sata_dwc_sactive_queued = (host_pvt.sata_dwc_sactive_queued) \
-						& mask;
-	host_pvt.sata_dwc_sactive_issued = (host_pvt.sata_dwc_sactive_issued) \
-						& mask;
+	hsdev->sactive_queued = hsdev->sactive_queued & mask;
+	hsdev->sactive_issued = hsdev->sactive_issued & mask;
 	ata_qc_complete(qc);
 	return 0;
 }
@@ -961,7 +952,7 @@ static int sata_dwc_port_start(struct ata_port *ap)
 	}
 
 	/* Clear any error bits before libata starts issuing commands */
-	clear_serror();
+	clear_serror(hsdev);
 	ap->private_data = hsdevp;
 	dev_dbg(ap->dev, "%s: done\n", __func__);
 	return 0;
@@ -999,6 +990,7 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 {
 	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
+	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
@@ -1012,7 +1004,7 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 	 * managed SError register for the disk needs to be done before the
 	 * task file is loaded.
 	 */
-	clear_serror();
+	clear_serror(hsdev);
 	ata_sff_exec_command(ap, tf);
 }
 
@@ -1065,7 +1057,7 @@ static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag)
 	sata_dwc_tf_dump(ap, &qc->tf);
 
 	if (start_dma) {
-		reg = core_scr_read(SCR_ERROR);
+		reg = core_scr_read(hsdev, SCR_ERROR);
 		if (reg & SATA_DWC_SERROR_ERR_BITS) {
 			dev_err(ap->dev, "%s: ****** SError=0x%08x ******\n",
 				__func__, reg);
@@ -1128,6 +1120,7 @@ static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc)
 	u32 sactive;
 	u8 tag = qc->tag;
 	struct ata_port *ap = qc->ap;
+	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 #ifdef DEBUG_NCQ
 	if (qc->tag > 0 || ap->link.sactive > 1)
@@ -1144,9 +1137,9 @@ static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc)
 	sata_dwc_qc_prep_by_tag(qc, tag);
 
 	if (ata_is_ncq(qc->tf.protocol)) {
-		sactive = core_scr_read(SCR_ACTIVE);
+		sactive = core_scr_read(hsdev, SCR_ACTIVE);
 		sactive |= (0x00000001 << tag);
-		core_scr_write(SCR_ACTIVE, sactive);
+		core_scr_write(hsdev, SCR_ACTIVE, sactive);
 
 		dev_dbg(qc->ap->dev,
 			"%s: tag=%d ap->link.sactive = 0x%08x sactive=0x%08x\n",
@@ -1289,7 +1282,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	/* Setup port */
 	host->ports[0]->ioaddr.cmd_addr = base;
 	host->ports[0]->ioaddr.scr_addr = base + SATA_DWC_SCR_OFFSET;
-	host_pvt.scr_addr_sstatus = base + SATA_DWC_SCR_OFFSET;
 	sata_dwc_setup_port(&host->ports[0]->ioaddr, (unsigned long)base);
 
 	/* Read the ID and Version Registers */
-- 
2.6.3

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-15 23:25 [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Mans Rullgard
  2015-12-15 23:25 ` [PATCH 2/3] ata: sata_dwc_460ex: add phy support Mans Rullgard
  2015-12-15 23:25 ` [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data Mans Rullgard
@ 2015-12-15 23:34 ` Måns Rullgård
  2015-12-17 14:59   ` Andy Shevchenko
  2015-12-17 14:58 ` Andy Shevchenko
  3 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-15 23:34 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide, linux-kernel, Andy Shevchenko

Mans Rullgard <mans@mansr.com> writes:

> Currently this driver only works with a DesignWare DMA engine which it
> registers manually using the second "reg" address range and interrupt
> number from the DT node.
>
> This patch makes the driver instead use the "dmas" property if present,
> otherwise optionally falling back on the old way so existing device
> trees can continue to work.
>
> With this change, there is no longer any reason to depend on the 460EX
> machine type so drop that from Kconfig.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
>  drivers/ata/Kconfig          |  10 ++-
>  drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++----------------
>  2 files changed, 131 insertions(+), 71 deletions(-)

The corresponding patch for the canyonlands devicetree looks something
like this.  I don't have any such hardware or even a manual, so I don't
know what values to use for the various required DT properties of the
DMA controller node, nor can I test it.  The SATA driver works with a
different DMA controller on a Sigma Designs chip.

diff --git a/arch/powerpc/boot/dts/canyonlands.dts b/arch/powerpc/boot/dts/canyonlands.dts
index 3dc75de..959f36e 100644
--- a/arch/powerpc/boot/dts/canyonlands.dts
+++ b/arch/powerpc/boot/dts/canyonlands.dts
@@ -190,12 +190,22 @@
 					 /* DMA */ 0x2 &UIC0 0xc 0x4>;
 		};
 
+		DMA0: dma@bffd0800 {
+			compatible = "snps,dma-spear1340";
+			reg = <4 0xbffd0800 0x400>;
+			interrupt-parent = <&UIC3>;
+			interrupts = <0x5 0x4>;
+			#dma-cells = <3>;
+			/* required properties here */
+		};
+
 		SATA0: sata@bffd1000 {
 			compatible = "amcc,sata-460ex";
-			reg = <4 0xbffd1000 0x800 4 0xbffd0800 0x400>;
+			reg = <4 0xbffd1000 0x800>;
 			interrupt-parent = <&UIC3>;
-			interrupts = <0x0 0x4       /* SATA */
-				      0x5 0x4>;     /* AHBDMA */
+			interrupts = <0x0 0x4>;
+			dmas = <&DMA0 0 0 1>;
+			dma-names = "sata-dma";
 		};
 
 		POB0: opb {


-- 
Måns Rullgård

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

* Re: [PATCH 2/3] ata: sata_dwc_460ex: add phy support
  2015-12-15 23:25 ` [PATCH 2/3] ata: sata_dwc_460ex: add phy support Mans Rullgard
@ 2015-12-16 11:14   ` Sergei Shtylyov
  2015-12-16 11:24     ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Sergei Shtylyov @ 2015-12-16 11:14 UTC (permalink / raw)
  To: Mans Rullgard, Tejun Heo, linux-ide, linux-kernel; +Cc: Andy Shevchenko

Hello.

On 12/16/2015 2:25 AM, Mans Rullgard wrote:

> This adds support for powering on an optional PHY when activating the
> device.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
[...]
> diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
> index 9985749..d07aae1 100644
> --- a/drivers/ata/sata_dwc_460ex.c
> +++ b/drivers/ata/sata_dwc_460ex.c
[...]
> @@ -1318,6 +1320,21 @@ static int sata_dwc_probe(struct platform_device *ofdev)
>   	}
>   #endif
>
> +	hsdev->phy = devm_phy_optional_get(hsdev->dev, "sata-phy");
> +	if (IS_ERR(hsdev->phy)) {
> +		err = PTR_ERR(hsdev->phy);
> +		hsdev->phy = NULL;
> +		goto error_out;
> +	}
> +
> +	err = phy_init(hsdev->phy);
> +	if (err)
> +		goto error_out;

    If phy_init() fails, do we really need to call phy_exit()?

> +
> +	err = phy_power_on(hsdev->phy);
> +	if (err)
> +		goto error_out;
> +
>   	/*
>   	 * Now, register with libATA core, this will also initiate the
>   	 * device discovery process, invoking our port_start() handler &
> @@ -1331,6 +1348,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
>   	return 0;
>
>   error_out:
> +	phy_exit(hsdev->phy);
>   	iounmap(base);
>   	return err;
>   }
[...]

MBR, Sergei


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

* Re: [PATCH 2/3] ata: sata_dwc_460ex: add phy support
  2015-12-16 11:14   ` Sergei Shtylyov
@ 2015-12-16 11:24     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-16 11:24 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: Tejun Heo, linux-ide, linux-kernel, Andy Shevchenko

Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> writes:

> Hello.
>
> On 12/16/2015 2:25 AM, Mans Rullgard wrote:
>
>> This adds support for powering on an optional PHY when activating the
>> device.
>>
>> Signed-off-by: Mans Rullgard <mans@mansr.com>
> [...]
>> diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
>> index 9985749..d07aae1 100644
>> --- a/drivers/ata/sata_dwc_460ex.c
>> +++ b/drivers/ata/sata_dwc_460ex.c
> [...]
>> @@ -1318,6 +1320,21 @@ static int sata_dwc_probe(struct platform_device *ofdev)
>>   	}
>>   #endif
>>
>> +	hsdev->phy = devm_phy_optional_get(hsdev->dev, "sata-phy");
>> +	if (IS_ERR(hsdev->phy)) {
>> +		err = PTR_ERR(hsdev->phy);
>> +		hsdev->phy = NULL;
>> +		goto error_out;
>> +	}
>> +
>> +	err = phy_init(hsdev->phy);
>> +	if (err)
>> +		goto error_out;
>
>    If phy_init() fails, do we really need to call phy_exit()?

No, but it doesn't hurt either, and it makes the code slightly simpler.
I can change it though.

>> +
>> +	err = phy_power_on(hsdev->phy);
>> +	if (err)
>> +		goto error_out;
>> +
>>   	/*
>>   	 * Now, register with libATA core, this will also initiate the
>>   	 * device discovery process, invoking our port_start() handler &
>> @@ -1331,6 +1348,7 @@ static int sata_dwc_probe(struct platform_device *ofdev)
>>   	return 0;
>>
>>   error_out:
>> +	phy_exit(hsdev->phy);
>>   	iounmap(base);
>>   	return err;
>>   }
> [...]
>
> MBR, Sergei
>

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-15 23:25 [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Mans Rullgard
                   ` (2 preceding siblings ...)
  2015-12-15 23:34 ` [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Måns Rullgård
@ 2015-12-17 14:58 ` Andy Shevchenko
  3 siblings, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 14:58 UTC (permalink / raw)
  To: Mans Rullgard, Tejun Heo, linux-ide, linux-kernel

On Tue, 2015-12-15 at 23:25 +0000, Mans Rullgard wrote:
> Currently this driver only works with a DesignWare DMA engine which
> it
> registers manually using the second "reg" address range and interrupt
> number from the DT node.
> 
> This patch makes the driver instead use the "dmas" property if
> present,
> otherwise optionally falling back on the old way so existing device
> trees can continue to work.
> 
> With this change, there is no longer any reason to depend on the
> 460EX
> machine type so drop that from Kconfig.

Looks good for me (from dw_dmac usage prospective).

> 
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
>  drivers/ata/Kconfig          |  10 ++-
>  drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++----
> ------------
>  2 files changed, 131 insertions(+), 71 deletions(-)
> 
> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
> index 3fc2a56..193c673 100644
> --- a/drivers/ata/Kconfig
> +++ b/drivers/ata/Kconfig
> @@ -296,14 +296,20 @@ config ATA_PIIX
>  
>  config SATA_DWC
>  	tristate "DesignWare Cores SATA support"
> -	depends on 460EX
> -	select DW_DMAC
>  	help
>  	  This option enables support for the on-chip SATA
> controller of the
>  	  AppliedMicro processor 460EX.
>  
>  	  If unsure, say N.
>  
> +config SATA_DWC_OLD_DMA
> +	bool "Support old device trees"
> +	depends on SATA_DWC && 460EX
> +	select DW_DMAC
> +	help
> +	  This option enables support for old device trees without
> the
> +	  "dmas" property.
> +
>  config SATA_DWC_DEBUG
>  	bool "Debugging driver version"
>  	depends on SATA_DWC
> diff --git a/drivers/ata/sata_dwc_460ex.c
> b/drivers/ata/sata_dwc_460ex.c
> index 9020349..9985749 100644
> --- a/drivers/ata/sata_dwc_460ex.c
> +++ b/drivers/ata/sata_dwc_460ex.c
> @@ -30,6 +30,7 @@
>  #include <linux/kernel.h>
>  #include <linux/module.h>
>  #include <linux/device.h>
> +#include <linux/dmaengine.h>
>  #include <linux/of_address.h>
>  #include <linux/of_irq.h>
>  #include <linux/of_platform.h>
> @@ -42,10 +43,6 @@
>  #include <scsi/scsi_host.h>
>  #include <scsi/scsi_cmnd.h>
>  
> -/* Supported DMA engine drivers */
> -#include <linux/platform_data/dma-dw.h>
> -#include <linux/dma/dw.h>
> -
>  /* These two are defined in "libata.h" */
>  #undef	DRV_NAME
>  #undef	DRV_VERSION
> @@ -148,7 +145,9 @@ struct sata_dwc_device {
>  	struct ata_host		*host;
>  	u8 __iomem		*reg_base;
>  	struct sata_dwc_regs	*sata_dwc_regs;	/* DW
> Synopsys SATA specific */
> +#ifdef CONFIG_SATA_DWC_OLD_DMA
>  	struct dw_dma_chip	*dma;
> +#endif
>  };
>  
>  #define SATA_DWC_QCMD_MAX	32
> @@ -159,7 +158,6 @@ struct sata_dwc_device_port {
>  	int			dma_pending[SATA_DWC_QCMD_MAX];
>  
>  	/* DMA info */
> -	struct dw_dma_slave		*dws;
>  	struct dma_chan			*chan;
>  	struct dma_async_tx_descriptor	*desc[SATA_DWC_QCMD_MA
> X];
>  	u32				dma_interrupt_count;
> @@ -198,13 +196,6 @@ struct sata_dwc_host_priv {
>  
>  static struct sata_dwc_host_priv host_pvt;
>  
> -static struct dw_dma_slave sata_dwc_dma_dws = {
> -	.src_id = 0,
> -	.dst_id = 0,
> -	.src_master = 0,
> -	.dst_master = 1,
> -};
> -
>  /*
>   * Prototypes
>   */
> @@ -215,6 +206,90 @@ static void sata_dwc_dma_xfer_complete(struct
> ata_port *ap, u32 check_status);
>  static void sata_dwc_port_stop(struct ata_port *ap);
>  static void sata_dwc_clear_dmacr(struct sata_dwc_device_port
> *hsdevp, u8 tag);
>  
> +#ifdef CONFIG_SATA_DWC_OLD_DMA
> +
> +#include <linux/platform_data/dma-dw.h>
> +#include <linux/dma/dw.h>
> +
> +static struct dw_dma_slave sata_dwc_dma_dws = {
> +	.src_id = 0,
> +	.dst_id = 0,
> +	.src_master = 0,
> +	.dst_master = 1,
> +};
> +
> +static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
> +{
> +	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
> +
> +	if (dws->dma_dev != chan->device->dev)
> +		return false;
> +
> +	chan->private = dws;
> +	return true;
> +}
> +
> +static int sata_dwc_dma_get_channel_old(struct sata_dwc_device_port
> *hsdevp)
> +{
> +	struct sata_dwc_device *hsdev = hsdevp->hsdev;
> +	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
> +	dma_cap_mask_t mask;
> +
> +	dws->dma_dev = hsdev->dev;
> +
> +	dma_cap_zero(mask);
> +	dma_cap_set(DMA_SLAVE, mask);
> +
> +	/* Acquire DMA channel */
> +	hsdevp->chan = dma_request_channel(mask,
> sata_dwc_dma_filter, hsdevp);
> +	if (!hsdevp->chan) {
> +		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
> +			 __func__);
> +		return -EAGAIN;
> +	}
> +
> +	return 0;
> +}
> +
> +static int sata_dwc_dma_init_old(struct platform_device *pdev,
> +				 struct sata_dwc_device *hsdev)
> +{
> +	struct device_node *np = pdev->dev.of_node;
> +	int err;
> +
> +	hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma),
> GFP_KERNEL);
> +	if (!hsdev->dma)
> +		return -ENOMEM;
> +
> +	hsdev->dma->dev = &pdev->dev;
> +
> +	/* Get SATA DMA interrupt number */
> +	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
> +	if (hsdev->dma->irq == NO_IRQ) {
> +		dev_err(&pdev->dev, "no SATA DMA irq\n");
> +		return -ENODEV;
> +	}
> +
> +	/* Get physical SATA DMA register base address */
> +	hsdev->dma->regs = of_iomap(np, 1);
> +	if (!hsdev->dma->regs) {
> +		dev_err(&pdev->dev,
> +			"ioremap failed for AHBDMA register
> address\n");
> +		return -ENODEV;
> +	}
> +
> +	/* Initialize AHB DMAC */
> +	err = dw_dma_probe(hsdev->dma, NULL);
> +	if (err) {
> +		iounmap(hsdev->dma->regs);
> +		return err;
> +	}
> +
> +	return 0;
> +}
> +
> +#endif
> +
>  static const char *get_prot_descript(u8 protocol)
>  {
>  	switch ((enum ata_tf_protocols)protocol) {
> @@ -783,18 +858,6 @@ static void sata_dwc_enable_interrupts(struct
> sata_dwc_device *hsdev)
>  		in_le32(&hsdev->sata_dwc_regs->errmr));
>  }
>  
> -static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
> -{
> -	struct sata_dwc_device_port *hsdevp = param;
> -	struct dw_dma_slave *dws = hsdevp->dws;
> -
> -	if (dws->dma_dev != chan->device->dev)
> -		return false;
> -
> -	chan->private = dws;
> -	return true;
> -}
> -
>  static void sata_dwc_setup_port(struct ata_ioports *port, unsigned
> long base)
>  {
>  	port->cmd_addr = (void __iomem *)base + 0x00;
> @@ -817,6 +880,26 @@ static void sata_dwc_setup_port(struct
> ata_ioports *port, unsigned long base)
>  	port->ctl_addr = (void __iomem *)base + 0x20;
>  }
>  
> +static int sata_dwc_dma_get_channel(struct sata_dwc_device_port
> *hsdevp)
> +{
> +	struct sata_dwc_device *hsdev = hsdevp->hsdev;
> +	struct device *dev = hsdev->dev;
> +
> +#ifdef CONFIG_SATA_DWC_OLD_DMA
> +	if (!of_find_property(dev->of_node, "dmas", NULL))
> +		return sata_dwc_dma_get_channel_old(hsdevp);
> +#endif
> +
> +	hsdevp->chan = dma_request_slave_channel(dev, "sata-dma");
> +	if (IS_ERR(hsdevp->chan)) {
> +		dev_err(dev, "failed to allocate dma channel:
> %ld\n",
> +			PTR_ERR(hsdevp->chan));
> +		return PTR_ERR(hsdevp->chan);
> +	}
> +
> +	return 0;
> +}
> +
>  /*
>   * Function : sata_dwc_port_start
>   * arguments : struct ata_ioports *port
> @@ -829,7 +912,6 @@ static int sata_dwc_port_start(struct ata_port
> *ap)
>  	struct sata_dwc_device *hsdev;
>  	struct sata_dwc_device_port *hsdevp = NULL;
>  	struct device *pdev;
> -	dma_cap_mask_t mask;
>  	int i;
>  
>  	hsdev = HSDEV_FROM_AP(ap);
> @@ -853,20 +935,9 @@ static int sata_dwc_port_start(struct ata_port
> *ap)
>  	}
>  	hsdevp->hsdev = hsdev;
>  
> -	hsdevp->dws = &sata_dwc_dma_dws;
> -	hsdevp->dws->dma_dev = hsdev->dev;
> -
> -	dma_cap_zero(mask);
> -	dma_cap_set(DMA_SLAVE, mask);
> -
> -	/* Acquire DMA channel */
> -	hsdevp->chan = dma_request_channel(mask,
> sata_dwc_dma_filter, hsdevp);
> -	if (!hsdevp->chan) {
> -		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
> -			 __func__);
> -		err = -EAGAIN;
> +	err = sata_dwc_dma_get_channel(hsdevp);
> +	if (err)
>  		goto CLEANUP_ALLOC;
> -	}
>  
>  	for (i = 0; i < SATA_DWC_QCMD_MAX; i++)
>  		hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT;
> @@ -1225,33 +1296,9 @@ static int sata_dwc_probe(struct
> platform_device *ofdev)
>  	dev_notice(&ofdev->dev, "id %d, controller version
> %c.%c%c\n",
>  		   idr, ver[0], ver[1], ver[2]);
>  
> -	/* Get SATA DMA interrupt number */
> -	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
> -	if (hsdev->dma->irq == NO_IRQ) {
> -		dev_err(&ofdev->dev, "no SATA DMA irq\n");
> -		err = -ENODEV;
> -		goto error_iomap;
> -	}
> -
> -	/* Get physical SATA DMA register base address */
> -	hsdev->dma->regs = of_iomap(np, 1);
> -	if (!hsdev->dma->regs) {
> -		dev_err(&ofdev->dev,
> -			"ioremap failed for AHBDMA register
> address\n");
> -		err = -ENODEV;
> -		goto error_iomap;
> -	}
> -
>  	/* Save dev for later use in dev_xxx() routines */
>  	hsdev->dev = &ofdev->dev;
>  
> -	hsdev->dma->dev = &ofdev->dev;
> -
> -	/* Initialize AHB DMAC */
> -	err = dw_dma_probe(hsdev->dma, NULL);
> -	if (err)
> -		goto error_dma_iomap;
> -
>  	/* Enable SATA Interrupts */
>  	sata_dwc_enable_interrupts(hsdev);
>  
> @@ -1263,6 +1310,14 @@ static int sata_dwc_probe(struct
> platform_device *ofdev)
>  		goto error_out;
>  	}
>  
> +#ifdef CONFIG_SATA_DWC_OLD_DMA
> +	if (!of_find_property(np, "dmas", NULL)) {
> +		err = sata_dwc_dma_init_old(ofdev, hsdev);
> +		if (err)
> +			goto error_out;
> +	}
> +#endif
> +
>  	/*
>  	 * Now, register with libATA core, this will also initiate
> the
>  	 * device discovery process, invoking our port_start()
> handler &
> @@ -1276,11 +1331,6 @@ static int sata_dwc_probe(struct
> platform_device *ofdev)
>  	return 0;
>  
>  error_out:
> -	/* Free SATA DMA resources */
> -	dw_dma_remove(hsdev->dma);
> -error_dma_iomap:
> -	iounmap(hsdev->dma->regs);
> -error_iomap:
>  	iounmap(base);
>  	return err;
>  }
> @@ -1293,10 +1343,14 @@ static int sata_dwc_remove(struct
> platform_device *ofdev)
>  
>  	ata_host_detach(host);
>  
> +#ifdef CONFIG_SATA_DWC_OLD_DMA
>  	/* Free SATA DMA resources */
> -	dw_dma_remove(hsdev->dma);
> +	if (hsdev->dma) {
> +		dw_dma_remove(hsdev->dma);
> +		iounmap(hsdev->dma->regs);
> +	}
> +#endif
>  
> -	iounmap(hsdev->dma->regs);
>  	iounmap(hsdev->reg_base);
>  	dev_dbg(&ofdev->dev, "done\n");
>  	return 0;

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-15 23:34 ` [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Måns Rullgård
@ 2015-12-17 14:59   ` Andy Shevchenko
  2015-12-17 15:13     ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 14:59 UTC (permalink / raw)
  To: Måns Rullgård, Tejun Heo; +Cc: linux-ide, linux-kernel

On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
> Mans Rullgard <mans@mansr.com> writes:
> 
> > Currently this driver only works with a DesignWare DMA engine which
> > it
> > registers manually using the second "reg" address range and
> > interrupt
> > number from the DT node.
> > 
> > This patch makes the driver instead use the "dmas" property if
> > present,
> > otherwise optionally falling back on the old way so existing device
> > trees can continue to work.
> > 
> > With this change, there is no longer any reason to depend on the
> > 460EX
> > machine type so drop that from Kconfig.
> > 
> > Signed-off-by: Mans Rullgard <mans@mansr.com>
> > ---
> >  drivers/ata/Kconfig          |  10 ++-
> >  drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++--
> > --------------
> >  2 files changed, 131 insertions(+), 71 deletions(-)
> 
> The corresponding patch for the canyonlands devicetree looks
> something
> like this.  I don't have any such hardware or even a manual, so I
> don't
> know what values to use for the various required DT properties of the
> DMA controller node, nor can I test it.  The SATA driver works with a
> different DMA controller on a Sigma Designs chip.
> 
> diff --git a/arch/powerpc/boot/dts/canyonlands.dts
> b/arch/powerpc/boot/dts/canyonlands.dts
> index 3dc75de..959f36e 100644
> --- a/arch/powerpc/boot/dts/canyonlands.dts
> +++ b/arch/powerpc/boot/dts/canyonlands.dts
> @@ -190,12 +190,22 @@
>  					 /* DMA */ 0x2 &UIC0 0xc
> 0x4>;
>  		};
>  
> +		DMA0: dma@bffd0800 {
> +			compatible = "snps,dma-spear1340";
> +			reg = <4 0xbffd0800 0x400>;
> +			interrupt-parent = <&UIC3>;
> +			interrupts = <0x5 0x4>;
> +			#dma-cells = <3>;
> +			/* required properties here */

You have to move the master assignments and other custom dw_dmac
properties. Maybe at some point I will fix that in dw/platform.c.

> +		};
> +
>  		SATA0: sata@bffd1000 {
>  			compatible = "amcc,sata-460ex";
> -			reg = <4 0xbffd1000 0x800 4 0xbffd0800
> 0x400>;
> +			reg = <4 0xbffd1000 0x800>;
>  			interrupt-parent = <&UIC3>;
> -			interrupts = <0x0 0x4       /* SATA */
> -				      0x5 0x4>;     /* AHBDMA */
> +			interrupts = <0x0 0x4>;
> +			dmas = <&DMA0 0 0 1>;
> +			dma-names = "sata-dma";
>  		};
>  
>  		POB0: opb {
> 
> 

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data
  2015-12-15 23:25 ` [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data Mans Rullgard
@ 2015-12-17 15:06   ` Andy Shevchenko
  2015-12-17 15:19     ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 15:06 UTC (permalink / raw)
  To: Mans Rullgard, Tejun Heo, linux-ide, linux-kernel

On Tue, 2015-12-15 at 23:25 +0000, Mans Rullgard wrote:
> This moves all global data into the driver private struct, thus
> permitting multiple devices of this type to be used.
> 

Nice!

Btw, last time Linus complained about new warnings. Most of them I have
fixed when moved to external DMA driver. Leftovers IIRC are related to
address space. Are you going to fix them? Otherwise it might be a
headache for him again with strong wording to our address I suppose.

> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
>  drivers/ata/sata_dwc_460ex.c | 80 ++++++++++++++++++++------------
> ------------
>  1 file changed, 36 insertions(+), 44 deletions(-)
> 
> diff --git a/drivers/ata/sata_dwc_460ex.c
> b/drivers/ata/sata_dwc_460ex.c
> index d07aae1..919f870 100644
> --- a/drivers/ata/sata_dwc_460ex.c
> +++ b/drivers/ata/sata_dwc_460ex.c
> @@ -146,6 +146,8 @@ struct sata_dwc_device {
>  	struct ata_host		*host;
>  	u8 __iomem		*reg_base;
>  	struct sata_dwc_regs	*sata_dwc_regs;	/* DW
> Synopsys SATA specific */
> +	u32			sactive_issued;
> +	u32			sactive_queued;
>  	struct phy		*phy;
>  #ifdef CONFIG_SATA_DWC_OLD_DMA
>  	struct dw_dma_chip	*dma;
> @@ -190,14 +192,6 @@ enum {
>  	SATA_DWC_DMA_PENDING_RX		= 2,
>  };
>  
> -struct sata_dwc_host_priv {
> -	void	__iomem	 *scr_addr_sstatus;
> -	u32	sata_dwc_sactive_issued ;
> -	u32	sata_dwc_sactive_queued ;
> -};
> -
> -static struct sata_dwc_host_priv host_pvt;
> -
>  /*
>   * Prototypes
>   */
> @@ -448,21 +442,22 @@ static int sata_dwc_scr_write(struct ata_link
> *link, unsigned int scr, u32 val)
>  	return 0;
>  }
>  
> -static u32 core_scr_read(unsigned int scr)
> +static u32 core_scr_read(struct sata_dwc_device *hsdev, unsigned int
> scr)
>  {
> -	return in_le32(host_pvt.scr_addr_sstatus + (scr * 4));
> +	return in_le32(hsdev->reg_base + SATA_DWC_SCR_OFFSET + (scr
> * 4));
>  }
>  
> -static void core_scr_write(unsigned int scr, u32 val)
> +static void core_scr_write(struct sata_dwc_device *hsdev, unsigned
> int scr,
> +			   u32 val)
>  {
> -	out_le32(host_pvt.scr_addr_sstatus + (scr * 4), val);
> +	out_le32(hsdev->reg_base + SATA_DWC_SCR_OFFSET + (scr * 4),
> val);
>  }
>  
> -static void clear_serror(void)
> +static void clear_serror(struct sata_dwc_device *hsdev)
>  {
>  	u32 val;
> -	val = core_scr_read(SCR_ERROR);
> -	core_scr_write(SCR_ERROR, val);
> +	val = core_scr_read(hsdev, SCR_ERROR);
> +	core_scr_write(hsdev, SCR_ERROR, val);
>  }
>  
>  static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32
> bit)
> @@ -489,7 +484,7 @@ static void sata_dwc_error_intr(struct ata_port
> *ap,
>  
>  	ata_ehi_clear_desc(ehi);
>  
> -	serror = core_scr_read(SCR_ERROR);
> +	serror = core_scr_read(hsdev, SCR_ERROR);
>  	status = ap->ops->sff_check_status(ap);
>  
>  	tag = ap->link.active_tag;
> @@ -500,7 +495,7 @@ static void sata_dwc_error_intr(struct ata_port
> *ap,
>  		hsdevp->dma_pending[tag], hsdevp->cmd_issued[tag]);
>  
>  	/* Clear error register and interrupt bit */
> -	clear_serror();
> +	clear_serror(hsdev);
>  	clear_interrupt_bit(hsdev, SATA_DWC_INTPR_ERR);
>  
>  	/* This is the only error happening now.  TODO check for
> exact error */
> @@ -539,7 +534,7 @@ static irqreturn_t sata_dwc_isr(int irq, void
> *dev_instance)
>  	int handled, num_processed, port = 0;
>  	uint intpr, sactive, sactive2, tag_mask;
>  	struct sata_dwc_device_port *hsdevp;
> -	host_pvt.sata_dwc_sactive_issued = 0;
> +	hsdev->sactive_issued = 0;
>  
>  	spin_lock_irqsave(&host->lock, flags);
>  
> @@ -568,7 +563,7 @@ static irqreturn_t sata_dwc_isr(int irq, void
> *dev_instance)
>  		if (hsdevp->cmd_issued[tag] !=
> SATA_DWC_CMD_ISSUED_PEND)
>  			dev_warn(ap->dev, "CMD tag=%d not
> pending?\n", tag);
>  
> -		host_pvt.sata_dwc_sactive_issued |=
> qcmd_tag_to_mask(tag);
> +		hsdev->sactive_issued |= qcmd_tag_to_mask(tag);
>  
>  		qc = ata_qc_from_tag(ap, tag);
>  		/*
> @@ -582,11 +577,11 @@ static irqreturn_t sata_dwc_isr(int irq, void
> *dev_instance)
>  		handled = 1;
>  		goto DONE;
>  	}
> -	sactive = core_scr_read(SCR_ACTIVE);
> -	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^
> sactive;
> +	sactive = core_scr_read(hsdev, SCR_ACTIVE);
> +	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
>  
>  	/* If no sactive issued and tag_mask is zero then this is
> not NCQ */
> -	if (host_pvt.sata_dwc_sactive_issued == 0 && tag_mask == 0)
> {
> +	if (hsdev->sactive_issued == 0 && tag_mask == 0) {
>  		if (ap->link.active_tag == ATA_TAG_POISON)
>  			tag = 0;
>  		else
> @@ -656,22 +651,19 @@ DRVSTILLBUSY:
>  	 */
>  
>  	 /* process completed commands */
> -	sactive = core_scr_read(SCR_ACTIVE);
> -	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^
> sactive;
> +	sactive = core_scr_read(hsdev, SCR_ACTIVE);
> +	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
>  
> -	if (sactive != 0 || (host_pvt.sata_dwc_sactive_issued) > 1
> || \
> -							tag_mask >
> 1) {
> +	if (sactive != 0 || hsdev->sactive_issued > 1 ||  tag_mask >
> 1) {
>  		dev_dbg(ap->dev,
>  			"%s
> NCQ:sactive=0x%08x  sactive_issued=0x%08x tag_mask=0x%08x\n",
> -			__func__, sactive,
> host_pvt.sata_dwc_sactive_issued,
> -			tag_mask);
> +			__func__, sactive, hsdev->sactive_issued,
> tag_mask);
>  	}
>  
> -	if ((tag_mask | (host_pvt.sata_dwc_sactive_issued)) != \
> -					(host_pvt.sata_dwc_sactive_i
> ssued)) {
> +	if ((tag_mask | hsdev->sactive_issued) != hsdev-
> >sactive_issued) {
>  		dev_warn(ap->dev,
> -			 "Bad tag mask?  sactive=0x%08x
> (host_pvt.sata_dwc_sactive_issued)=0x%08x  tag_mask=0x%08x\n",
> -			 sactive, host_pvt.sata_dwc_sactive_issued,
> tag_mask);
> +			 "Bad tag mask?  sactive=0x%08x
> sactive_issued=0x%08x  tag_mask=0x%08x\n",
> +			 sactive, hsdev->sactive_issued, tag_mask);
>  	}
>  
>  	/* read just to clear ... not bad if currently still busy */
> @@ -733,7 +725,7 @@ STILLBUSY:
>  	 * we were processing --we read status as part of processing
> a completed
>  	 * command).
>  	 */
> -	sactive2 = core_scr_read(SCR_ACTIVE);
> +	sactive2 = core_scr_read(hsdev, SCR_ACTIVE);
>  	if (sactive2 != sactive) {
>  		dev_dbg(ap->dev,
>  			"More completed - sactive=0x%x
> sactive2=0x%x\n",
> @@ -819,8 +811,9 @@ static int sata_dwc_qc_complete(struct ata_port
> *ap, struct ata_queued_cmd *qc,
>  	u8 status = 0;
>  	u32 mask = 0x0;
>  	u8 tag = qc->tag;
> +	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
>  	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
> -	host_pvt.sata_dwc_sactive_queued = 0;
> +	hsdev->sactive_queued = 0;
>  	dev_dbg(ap->dev, "%s checkstatus? %x\n", __func__,
> check_status);
>  
>  	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX)
> @@ -833,10 +826,8 @@ static int sata_dwc_qc_complete(struct ata_port
> *ap, struct ata_queued_cmd *qc,
>  
>  	/* clear active bit */
>  	mask = (~(qcmd_tag_to_mask(tag)));
> -	host_pvt.sata_dwc_sactive_queued =
> (host_pvt.sata_dwc_sactive_queued) \
> -						& mask;
> -	host_pvt.sata_dwc_sactive_issued =
> (host_pvt.sata_dwc_sactive_issued) \
> -						& mask;
> +	hsdev->sactive_queued = hsdev->sactive_queued & mask;
> +	hsdev->sactive_issued = hsdev->sactive_issued & mask;
>  	ata_qc_complete(qc);
>  	return 0;
>  }
> @@ -961,7 +952,7 @@ static int sata_dwc_port_start(struct ata_port
> *ap)
>  	}
>  
>  	/* Clear any error bits before libata starts issuing
> commands */
> -	clear_serror();
> +	clear_serror(hsdev);
>  	ap->private_data = hsdevp;
>  	dev_dbg(ap->dev, "%s: done\n", __func__);
>  	return 0;
> @@ -999,6 +990,7 @@ static void sata_dwc_exec_command_by_tag(struct
> ata_port *ap,
>  {
>  	unsigned long flags;
>  	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
> +	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
>  
>  	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__,
> tf->command,
>  		ata_get_cmd_descript(tf->command), tag);
> @@ -1012,7 +1004,7 @@ static void sata_dwc_exec_command_by_tag(struct
> ata_port *ap,
>  	 * managed SError register for the disk needs to be done
> before the
>  	 * task file is loaded.
>  	 */
> -	clear_serror();
> +	clear_serror(hsdev);
>  	ata_sff_exec_command(ap, tf);
>  }
>  
> @@ -1065,7 +1057,7 @@ static void sata_dwc_bmdma_start_by_tag(struct
> ata_queued_cmd *qc, u8 tag)
>  	sata_dwc_tf_dump(ap, &qc->tf);
>  
>  	if (start_dma) {
> -		reg = core_scr_read(SCR_ERROR);
> +		reg = core_scr_read(hsdev, SCR_ERROR);
>  		if (reg & SATA_DWC_SERROR_ERR_BITS) {
>  			dev_err(ap->dev, "%s: ****** SError=0x%08x
> ******\n",
>  				__func__, reg);
> @@ -1128,6 +1120,7 @@ static unsigned int sata_dwc_qc_issue(struct
> ata_queued_cmd *qc)
>  	u32 sactive;
>  	u8 tag = qc->tag;
>  	struct ata_port *ap = qc->ap;
> +	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
>  
>  #ifdef DEBUG_NCQ
>  	if (qc->tag > 0 || ap->link.sactive > 1)
> @@ -1144,9 +1137,9 @@ static unsigned int sata_dwc_qc_issue(struct
> ata_queued_cmd *qc)
>  	sata_dwc_qc_prep_by_tag(qc, tag);
>  
>  	if (ata_is_ncq(qc->tf.protocol)) {
> -		sactive = core_scr_read(SCR_ACTIVE);
> +		sactive = core_scr_read(hsdev, SCR_ACTIVE);
>  		sactive |= (0x00000001 << tag);
> -		core_scr_write(SCR_ACTIVE, sactive);
> +		core_scr_write(hsdev, SCR_ACTIVE, sactive);
>  
>  		dev_dbg(qc->ap->dev,
>  			"%s: tag=%d ap->link.sactive = 0x%08x
> sactive=0x%08x\n",
> @@ -1289,7 +1282,6 @@ static int sata_dwc_probe(struct
> platform_device *ofdev)
>  	/* Setup port */
>  	host->ports[0]->ioaddr.cmd_addr = base;
>  	host->ports[0]->ioaddr.scr_addr = base +
> SATA_DWC_SCR_OFFSET;
> -	host_pvt.scr_addr_sstatus = base + SATA_DWC_SCR_OFFSET;
>  	sata_dwc_setup_port(&host->ports[0]->ioaddr, (unsigned
> long)base);
>  
>  	/* Read the ID and Version Registers */

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 14:59   ` Andy Shevchenko
@ 2015-12-17 15:13     ` Måns Rullgård
  2015-12-17 15:55       ` Andy Shevchenko
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 15:13 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
>> Mans Rullgard <mans@mansr.com> writes:
>> 
>> > Currently this driver only works with a DesignWare DMA engine which
>> > it
>> > registers manually using the second "reg" address range and
>> > interrupt
>> > number from the DT node.
>> > 
>> > This patch makes the driver instead use the "dmas" property if
>> > present,
>> > otherwise optionally falling back on the old way so existing device
>> > trees can continue to work.
>> > 
>> > With this change, there is no longer any reason to depend on the
>> > 460EX
>> > machine type so drop that from Kconfig.
>> > 
>> > Signed-off-by: Mans Rullgard <mans@mansr.com>
>> > ---
>> >  drivers/ata/Kconfig          |  10 ++-
>> >  drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++--
>> > --------------
>> >  2 files changed, 131 insertions(+), 71 deletions(-)
>> 
>> The corresponding patch for the canyonlands devicetree looks
>> something
>> like this.  I don't have any such hardware or even a manual, so I
>> don't
>> know what values to use for the various required DT properties of the
>> DMA controller node, nor can I test it.  The SATA driver works with a
>> different DMA controller on a Sigma Designs chip.
>> 
>> diff --git a/arch/powerpc/boot/dts/canyonlands.dts
>> b/arch/powerpc/boot/dts/canyonlands.dts
>> index 3dc75de..959f36e 100644
>> --- a/arch/powerpc/boot/dts/canyonlands.dts
>> +++ b/arch/powerpc/boot/dts/canyonlands.dts
>> @@ -190,12 +190,22 @@
>>  					 /* DMA */ 0x2 &UIC0 0xc
>> 0x4>;
>>  		};
>>  
>> +		DMA0: dma@bffd0800 {
>> +			compatible = "snps,dma-spear1340";
>> +			reg = <4 0xbffd0800 0x400>;
>> +			interrupt-parent = <&UIC3>;
>> +			interrupts = <0x5 0x4>;
>> +			#dma-cells = <3>;
>> +			/* required properties here */
>
> You have to move the master assignments and other custom dw_dmac
> properties. Maybe at some point I will fix that in dw/platform.c.
>
>> +		};

The current sata_dwc driver calls dw_dma_probe() with null pdata which
causes the dw_dma driver to auto-detect most parameters.  It looks like
simply omitting those properties here results in the same thing,
although in this case dw_dma_parse_dt() leaves a devm-allocated pdata
struct adrift.  Deferring the allocation of that and changing the DT
binding doc to make these properties optional for auto-detect-capable
hardware should just work.  Something like this:

diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c
index 68a4815..f90c465 100644
--- a/drivers/dma/dw/platform.c
+++ b/drivers/dma/dw/platform.c
@@ -103,18 +103,21 @@ dw_dma_parse_dt(struct platform_device *pdev)
 	struct device_node *np = pdev->dev.of_node;
 	struct dw_dma_platform_data *pdata;
 	u32 tmp, arr[DW_DMA_MAX_NR_MASTERS];
+	u32 nr_channels;
 
 	if (!np) {
 		dev_err(&pdev->dev, "Missing DT data\n");
 		return NULL;
 	}
 
+	if (of_property_read_u32(np, "dma-channels", nr_channels))
+		return NULL;
+
 	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
 	if (!pdata)
 		return NULL;
 
-	if (of_property_read_u32(np, "dma-channels", &pdata->nr_channels))
-		return NULL;
+	pdata->nr_channels = nr_channels;
 
 	if (of_property_read_bool(np, "is_private"))
 		pdata->is_private = true;


-- 
Måns Rullgård

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

* Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data
  2015-12-17 15:06   ` Andy Shevchenko
@ 2015-12-17 15:19     ` Måns Rullgård
  2015-12-17 15:37       ` Andy Shevchenko
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 15:19 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Tue, 2015-12-15 at 23:25 +0000, Mans Rullgard wrote:
>> This moves all global data into the driver private struct, thus
>> permitting multiple devices of this type to be used.
>> 
>
> Nice!
>
> Btw, last time Linus complained about new warnings. Most of them I have
> fixed when moved to external DMA driver. Leftovers IIRC are related to
> address space. Are you going to fix them? Otherwise it might be a
> headache for him again with strong wording to our address I suppose.

There are some issues with __iomem annotations.  Is that the warnings
you refer to?  I'm not getting any regular compiler warnings.

-- 
Måns Rullgård

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

* Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data
  2015-12-17 15:19     ` Måns Rullgård
@ 2015-12-17 15:37       ` Andy Shevchenko
  2015-12-17 15:57         ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 15:37 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: Tejun Heo, linux-ide, linux-kernel

On Thu, 2015-12-17 at 15:19 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Tue, 2015-12-15 at 23:25 +0000, Mans Rullgard wrote:
> > > This moves all global data into the driver private struct, thus
> > > permitting multiple devices of this type to be used.
> > > 
> > 
> > Nice!
> > 
> > Btw, last time Linus complained about new warnings. Most of them I
> > have
> > fixed when moved to external DMA driver. Leftovers IIRC are related
> > to
> > address space. Are you going to fix them? Otherwise it might be a
> > headache for him again with strong wording to our address I
> > suppose.
> 
> There are some issues with __iomem annotations.  Is that the warnings
> you refer to?  I'm not getting any regular compiler warnings.
> 

I guess I got them because I'am checking sparse warnings as well.


There is the original Linus' complain.
http://permalink.gmane.org/gmane.linux.ide/59391

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 15:13     ` Måns Rullgård
@ 2015-12-17 15:55       ` Andy Shevchenko
  2015-12-17 16:04         ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 15:55 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: Tejun Heo, linux-ide, linux-kernel

On Thu, 2015-12-17 at 15:13 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
> > > Mans Rullgard <mans@mansr.com> writes:
> > > 
> > > > Currently this driver only works with a DesignWare DMA engine
> > > > which
> > > > it
> > > > registers manually using the second "reg" address range and
> > > > interrupt
> > > > number from the DT node.
> > > > 
> > > > This patch makes the driver instead use the "dmas" property if
> > > > present,
> > > > otherwise optionally falling back on the old way so existing
> > > > device
> > > > trees can continue to work.
> > > > 
> > > > With this change, there is no longer any reason to depend on
> > > > the
> > > > 460EX
> > > > machine type so drop that from Kconfig.
> > > > 
> > > > Signed-off-by: Mans Rullgard <mans@mansr.com>
> > > > ---
> > > >  drivers/ata/Kconfig          |  10 ++-
> > > >  drivers/ata/sata_dwc_460ex.c | 192
> > > > +++++++++++++++++++++++++++--
> > > > --------------
> > > >  2 files changed, 131 insertions(+), 71 deletions(-)
> > > 
> > > The corresponding patch for the canyonlands devicetree looks
> > > something
> > > like this.  I don't have any such hardware or even a manual, so I
> > > don't
> > > know what values to use for the various required DT properties of
> > > the
> > > DMA controller node, nor can I test it.  The SATA driver works
> > > with a
> > > different DMA controller on a Sigma Designs chip.
> > > 
> > > diff --git a/arch/powerpc/boot/dts/canyonlands.dts
> > > b/arch/powerpc/boot/dts/canyonlands.dts
> > > index 3dc75de..959f36e 100644
> > > --- a/arch/powerpc/boot/dts/canyonlands.dts
> > > +++ b/arch/powerpc/boot/dts/canyonlands.dts
> > > @@ -190,12 +190,22 @@
> > >  					 /* DMA */ 0x2 &UIC0 0xc
> > > 0x4>;
> > >  		};
> > >  
> > > +		DMA0: dma@bffd0800 {
> > > +			compatible = "snps,dma-spear1340";
> > > +			reg = <4 0xbffd0800 0x400>;
> > > +			interrupt-parent = <&UIC3>;
> > > +			interrupts = <0x5 0x4>;
> > > +			#dma-cells = <3>;
> > > +			/* required properties here */
> > 
> > You have to move the master assignments and other custom dw_dmac
> > properties. Maybe at some point I will fix that in dw/platform.c.
> > 
> > > +		};
> 
> The current sata_dwc driver calls dw_dma_probe() with null pdata
> which
> causes the dw_dma driver to auto-detect most parameters.  It looks
> like
> simply omitting those properties here results in the same thing,
> although in this case dw_dma_parse_dt() leaves a devm-allocated pdata
> struct adrift.  Deferring the allocation of that and changing the DT
> binding doc to make these properties optional for auto-detect-capable
> hardware should just work.  

Yeah, I would like to allow autoconfiguration in case of DT as well and
translate it to use unified device property API.


> Something like this:

If it works for you, please, submit as a patch. Thanks.

> 
> diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c
> index 68a4815..f90c465 100644
> --- a/drivers/dma/dw/platform.c
> +++ b/drivers/dma/dw/platform.c
> @@ -103,18 +103,21 @@ dw_dma_parse_dt(struct platform_device *pdev)
>  	struct device_node *np = pdev->dev.of_node;
>  	struct dw_dma_platform_data *pdata;
>  	u32 tmp, arr[DW_DMA_MAX_NR_MASTERS];
> +	u32 nr_channels;
>  
>  	if (!np) {
>  		dev_err(&pdev->dev, "Missing DT data\n");
>  		return NULL;
>  	}
>  
> +	if (of_property_read_u32(np, "dma-channels", nr_channels))
> +		return NULL;
> +
>  	pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata),
> GFP_KERNEL);
>  	if (!pdata)
>  		return NULL;
>  
> -	if (of_property_read_u32(np, "dma-channels", &pdata-
> >nr_channels))
> -		return NULL;
> +	pdata->nr_channels = nr_channels;
>  
>  	if (of_property_read_bool(np, "is_private"))
>  		pdata->is_private = true;
> 
> 

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data
  2015-12-17 15:37       ` Andy Shevchenko
@ 2015-12-17 15:57         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 15:57 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Thu, 2015-12-17 at 15:19 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Tue, 2015-12-15 at 23:25 +0000, Mans Rullgard wrote:
>> > > This moves all global data into the driver private struct, thus
>> > > permitting multiple devices of this type to be used.
>> > > 
>> > 
>> > Nice!
>> > 
>> > Btw, last time Linus complained about new warnings. Most of them I
>> > have
>> > fixed when moved to external DMA driver. Leftovers IIRC are related
>> > to
>> > address space. Are you going to fix them? Otherwise it might be a
>> > headache for him again with strong wording to our address I
>> > suppose.
>> 
>> There are some issues with __iomem annotations.  Is that the warnings
>> you refer to?  I'm not getting any regular compiler warnings.
>> 
>
> I guess I got them because I'am checking sparse warnings as well.
>
> There is the original Linus' complain.
> http://permalink.gmane.org/gmane.linux.ide/59391

He's right, those casts are ugly and possibly wrong.  I was thinking of
cleaning it up, but first I wanted to get it working at all with my
hardware.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 15:55       ` Andy Shevchenko
@ 2015-12-17 16:04         ` Måns Rullgård
  2015-12-17 16:53           ` Andy Shevchenko
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 16:04 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Thu, 2015-12-17 at 15:13 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
>> > > Mans Rullgard <mans@mansr.com> writes:
>> > > 
>> > > > Currently this driver only works with a DesignWare DMA engine
>> > > > which it registers manually using the second "reg" address
>> > > > range and interrupt number from the DT node.
>> > > > 
>> > > > This patch makes the driver instead use the "dmas" property if
>> > > > present, otherwise optionally falling back on the old way so
>> > > > existing device trees can continue to work.
>> > > > 
>> > > > With this change, there is no longer any reason to depend on
>> > > > the 460EX machine type so drop that from Kconfig.
>> > > > 
>> > > > Signed-off-by: Mans Rullgard <mans@mansr.com>
>> > > > ---
>> > > >  drivers/ata/Kconfig          |  10 ++-
>> > > >  drivers/ata/sata_dwc_460ex.c | 192
>> > > > +++++++++++++++++++++++++++--
>> > > > --------------
>> > > >  2 files changed, 131 insertions(+), 71 deletions(-)
>> > > 
>> > > The corresponding patch for the canyonlands devicetree looks
>> > > something
>> > > like this.  I don't have any such hardware or even a manual, so I
>> > > don't
>> > > know what values to use for the various required DT properties of
>> > > the
>> > > DMA controller node, nor can I test it.  The SATA driver works
>> > > with a
>> > > different DMA controller on a Sigma Designs chip.
>> > > 
>> > > diff --git a/arch/powerpc/boot/dts/canyonlands.dts
>> > > b/arch/powerpc/boot/dts/canyonlands.dts
>> > > index 3dc75de..959f36e 100644
>> > > --- a/arch/powerpc/boot/dts/canyonlands.dts
>> > > +++ b/arch/powerpc/boot/dts/canyonlands.dts
>> > > @@ -190,12 +190,22 @@
>> > >  					 /* DMA */ 0x2 &UIC0 0xc
>> > > 0x4>;
>> > >  		};
>> > >  
>> > > +		DMA0: dma@bffd0800 {
>> > > +			compatible = "snps,dma-spear1340";
>> > > +			reg = <4 0xbffd0800 0x400>;
>> > > +			interrupt-parent = <&UIC3>;
>> > > +			interrupts = <0x5 0x4>;
>> > > +			#dma-cells = <3>;
>> > > +			/* required properties here */
>> > 
>> > You have to move the master assignments and other custom dw_dmac
>> > properties. Maybe at some point I will fix that in dw/platform.c.
>> > 
>> > > +		};
>> 
>> The current sata_dwc driver calls dw_dma_probe() with null pdata
>> which causes the dw_dma driver to auto-detect most parameters.  It
>> looks like simply omitting those properties here results in the same
>> thing, although in this case dw_dma_parse_dt() leaves a
>> devm-allocated pdata struct adrift.  Deferring the allocation of that
>> and changing the DT binding doc to make these properties optional for
>> auto-detect-capable hardware should just work.
>
> Yeah, I would like to allow autoconfiguration in case of DT as well and
> translate it to use unified device property API.
>
>> Something like this:
>
> If it works for you, please, submit as a patch. Thanks.

I can't test it since I have no such hardware.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 16:04         ` Måns Rullgård
@ 2015-12-17 16:53           ` Andy Shevchenko
  2015-12-17 17:57             ` Julian Margetson
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-17 16:53 UTC (permalink / raw)
  To: Måns Rullgård, Julian Margetson
  Cc: Tejun Heo, linux-ide, linux-kernel

On Thu, 2015-12-17 at 16:04 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Thu, 2015-12-17 at 15:13 +0000, Måns Rullgård wrote:
> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > > 
> > > > On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
> > > > > Mans Rullgard <mans@mansr.com> writes:
> > > > > 
> > > > > > Currently this driver only works with a DesignWare DMA
> > > > > > engine
> > > > > > which it registers manually using the second "reg" address
> > > > > > range and interrupt number from the DT node.
> > > > > > 
> > > > > > This patch makes the driver instead use the "dmas" property
> > > > > > if
> > > > > > present, otherwise optionally falling back on the old way
> > > > > > so
> > > > > > existing device trees can continue to work.
> > > > > > 
> > > > > > With this change, there is no longer any reason to depend
> > > > > > on
> > > > > > the 460EX machine type so drop that from Kconfig.
> > > > > > 
> > > > > > Signed-off-by: Mans Rullgard <mans@mansr.com>
> > > > > > ---
> > > > > >  drivers/ata/Kconfig          |  10 ++-
> > > > > >  drivers/ata/sata_dwc_460ex.c | 192
> > > > > > +++++++++++++++++++++++++++--
> > > > > > --------------
> > > > > >  2 files changed, 131 insertions(+), 71 deletions(-)
> > > > > 
> > > > > The corresponding patch for the canyonlands devicetree looks
> > > > > something
> > > > > like this.  I don't have any such hardware or even a manual,
> > > > > so I
> > > > > don't
> > > > > know what values to use for the various required DT
> > > > > properties of
> > > > > the
> > > > > DMA controller node, nor can I test it.  The SATA driver
> > > > > works
> > > > > with a
> > > > > different DMA controller on a Sigma Designs chip.
> > > > > 
> > > > > diff --git a/arch/powerpc/boot/dts/canyonlands.dts
> > > > > b/arch/powerpc/boot/dts/canyonlands.dts
> > > > > index 3dc75de..959f36e 100644
> > > > > --- a/arch/powerpc/boot/dts/canyonlands.dts
> > > > > +++ b/arch/powerpc/boot/dts/canyonlands.dts
> > > > > @@ -190,12 +190,22 @@
> > > > >  					 /* DMA */ 0x2 &UIC0
> > > > > 0xc
> > > > > 0x4>;
> > > > >  		};
> > > > >  
> > > > > +		DMA0: dma@bffd0800 {
> > > > > +			compatible = "snps,dma-spear1340";
> > > > > +			reg = <4 0xbffd0800 0x400>;
> > > > > +			interrupt-parent = <&UIC3>;
> > > > > +			interrupts = <0x5 0x4>;
> > > > > +			#dma-cells = <3>;
> > > > > +			/* required properties here */
> > > > 
> > > > You have to move the master assignments and other custom
> > > > dw_dmac
> > > > properties. Maybe at some point I will fix that in
> > > > dw/platform.c.
> > > > 
> > > > > +		};
> > > 
> > > The current sata_dwc driver calls dw_dma_probe() with null pdata
> > > which causes the dw_dma driver to auto-detect most
> > > parameters.  It
> > > looks like simply omitting those properties here results in the
> > > same
> > > thing, although in this case dw_dma_parse_dt() leaves a
> > > devm-allocated pdata struct adrift.  Deferring the allocation of
> > > that
> > > and changing the DT binding doc to make these properties optional
> > > for
> > > auto-detect-capable hardware should just work.
> > 
> > Yeah, I would like to allow autoconfiguration in case of DT as well
> > and
> > translate it to use unified device property API.
> > 
> > > Something like this:
> > 
> > If it works for you, please, submit as a patch. Thanks.
> 
> I can't test it since I have no such hardware.

It's currently broken, last person who seems to have it is
(was?) Julian Margetson [1]

[1] https://patchwork.ozlabs.org/patch/439850/

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 16:53           ` Andy Shevchenko
@ 2015-12-17 17:57             ` Julian Margetson
  2015-12-17 17:59               ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-17 17:57 UTC (permalink / raw)
  To: Andy Shevchenko, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

On 12/17/2015 12:53 PM, Andy Shevchenko wrote:
> On Thu, 2015-12-17 at 16:04 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>
>>> On Thu, 2015-12-17 at 15:13 +0000, Måns Rullgård wrote:
>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>
>>>>> On Tue, 2015-12-15 at 23:34 +0000, Måns Rullgård wrote:
>>>>>> Mans Rullgard <mans@mansr.com> writes:
>>>>>>
>>>>>>> Currently this driver only works with a DesignWare DMA
>>>>>>> engine
>>>>>>> which it registers manually using the second "reg" address
>>>>>>> range and interrupt number from the DT node.
>>>>>>>
>>>>>>> This patch makes the driver instead use the "dmas" property
>>>>>>> if
>>>>>>> present, otherwise optionally falling back on the old way
>>>>>>> so
>>>>>>> existing device trees can continue to work.
>>>>>>>
>>>>>>> With this change, there is no longer any reason to depend
>>>>>>> on
>>>>>>> the 460EX machine type so drop that from Kconfig.
>>>>>>>
>>>>>>> Signed-off-by: Mans Rullgard <mans@mansr.com>
>>>>>>> ---
>>>>>>>   drivers/ata/Kconfig          |  10 ++-
>>>>>>>   drivers/ata/sata_dwc_460ex.c | 192
>>>>>>> +++++++++++++++++++++++++++--
>>>>>>> --------------
>>>>>>>   2 files changed, 131 insertions(+), 71 deletions(-)
>>>>>> The corresponding patch for the canyonlands devicetree looks
>>>>>> something
>>>>>> like this.  I don't have any such hardware or even a manual,
>>>>>> so I
>>>>>> don't
>>>>>> know what values to use for the various required DT
>>>>>> properties of
>>>>>> the
>>>>>> DMA controller node, nor can I test it.  The SATA driver
>>>>>> works
>>>>>> with a
>>>>>> different DMA controller on a Sigma Designs chip.
>>>>>>
>>>>>> diff --git a/arch/powerpc/boot/dts/canyonlands.dts
>>>>>> b/arch/powerpc/boot/dts/canyonlands.dts
>>>>>> index 3dc75de..959f36e 100644
>>>>>> --- a/arch/powerpc/boot/dts/canyonlands.dts
>>>>>> +++ b/arch/powerpc/boot/dts/canyonlands.dts
>>>>>> @@ -190,12 +190,22 @@
>>>>>>   					 /* DMA */ 0x2 &UIC0
>>>>>> 0xc
>>>>>> 0x4>;
>>>>>>   		};
>>>>>>   
>>>>>> +		DMA0: dma@bffd0800 {
>>>>>> +			compatible = "snps,dma-spear1340";
>>>>>> +			reg = <4 0xbffd0800 0x400>;
>>>>>> +			interrupt-parent = <&UIC3>;
>>>>>> +			interrupts = <0x5 0x4>;
>>>>>> +			#dma-cells = <3>;
>>>>>> +			/* required properties here */
>>>>> You have to move the master assignments and other custom
>>>>> dw_dmac
>>>>> properties. Maybe at some point I will fix that in
>>>>> dw/platform.c.
>>>>>
>>>>>> +		};
>>>> The current sata_dwc driver calls dw_dma_probe() with null pdata
>>>> which causes the dw_dma driver to auto-detect most
>>>> parameters.  It
>>>> looks like simply omitting those properties here results in the
>>>> same
>>>> thing, although in this case dw_dma_parse_dt() leaves a
>>>> devm-allocated pdata struct adrift.  Deferring the allocation of
>>>> that
>>>> and changing the DT binding doc to make these properties optional
>>>> for
>>>> auto-detect-capable hardware should just work.
>>> Yeah, I would like to allow autoconfiguration in case of DT as well
>>> and
>>> translate it to use unified device property API.
>>>
>>>> Something like this:
>>> If it works for you, please, submit as a patch. Thanks.
>> I can't test it since I have no such hardware.
> It's currently broken, last person who seems to have it is
> (was?) Julian Margetson [1]
>
> [1] https://patchwork.ozlabs.org/patch/439850/
>
I have been running my machine mostly configured for pciex1  thus with 
the sata_dwc disabled.
The changes to sata_dwc-460ex do cause an oops.
I will try to give more detailed info over this weekend .



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-17 17:57             ` Julian Margetson
@ 2015-12-17 17:59               ` Måns Rullgård
       [not found]                 ` <567302E8.5050303@candw.ms>
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 17:59 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> I have been running my machine mostly configured for pciex1  thus with
> the sata_dwc disabled.
> The changes to sata_dwc-460ex do cause an oops.
> I will try to give more detailed info over this weekend .

The driver as is upstream would do that since it unconditionally
dereferences a null pointer in the probe function.  My patch fixes that
as a side-effect.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                 ` <567302E8.5050303@candw.ms>
@ 2015-12-17 18:51                   ` Måns Rullgård
       [not found]                     ` <5673061A.4070700@candw.ms>
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 18:51 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> I have been running my machine mostly configured for pciex1  thus with
>>> the sata_dwc disabled.
>>> The changes to sata_dwc-460ex do cause an oops.
>>> I will try to give more detailed info over this weekend .
>> The driver as is upstream would do that since it unconditionally
>> dereferences a null pointer in the probe function.  My patch fixes that
>> as a side-effect.
>>
>
> patching file drivers/ata/Kconfig
>
> Hunk #1 FAILED at 296.

[...]

> root@julian-VirtualBox:/usr/src/linux-3.18.25#

The patch is against 4.4-rc5.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                     ` <5673061A.4070700@candw.ms>
@ 2015-12-17 19:53                       ` Måns Rullgård
       [not found]                         ` <56732C04.9040100@candw.ms>
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-17 19:53 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>> the sata_dwc disabled.
>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>> I will try to give more detailed info over this weekend .
>>>> The driver as is upstream would do that since it unconditionally
>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>> as a side-effect.
>>>>
>>> patching file drivers/ata/Kconfig
>>>
>>> Hunk #1 FAILED at 296.
>> [...]
>>
>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>> The patch is against 4.4-rc5.
>>
>  CC      drivers/ata/sata_dwc_460ex.o
>
> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>
>  static struct dw_dma_slave sata_dwc_dma_dws = {
>                ^

It builds, albeit with an unrelated warning, using the attached config.
Maybe there's a missing config dependency somewhere.

-- 
Måns Rullgård

[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 60935 bytes --]

#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 4.4.0-rc5 Kernel Configuration
#
# CONFIG_PPC64 is not set

#
# Processor support
#
# CONFIG_PPC_BOOK3S_32 is not set
# CONFIG_PPC_85xx is not set
# CONFIG_PPC_8xx is not set
# CONFIG_40x is not set
CONFIG_44x=y
# CONFIG_E200 is not set
CONFIG_PPC_FPU=y
CONFIG_4xx=y
CONFIG_BOOKE=y
CONFIG_PTE_64BIT=y
CONFIG_PHYS_64BIT=y
CONFIG_PPC_MMU_NOHASH=y
# CONFIG_PPC_MM_SLICES is not set
CONFIG_NOT_COHERENT_CACHE=y
# CONFIG_PPC_DOORBELL is not set
CONFIG_VDSO32=y
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_PPC32=y
CONFIG_32BIT=y
CONFIG_WORD_SIZE=32
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_MMU=y
# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set
# CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK is not set
CONFIG_NR_IRQS=512
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_ILOG2_U32=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_HAS_DMA_SET_COHERENT_MASK=y
CONFIG_PPC=y
# CONFIG_GENERIC_CSUM is not set
CONFIG_EARLY_PRINTK=y
CONFIG_PANIC_TIMEOUT=180
CONFIG_GENERIC_NVRAM=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_PPC_UDBG_16550=y
# CONFIG_GENERIC_TBSYNC is not set
CONFIG_AUDIT_ARCH=y
CONFIG_GENERIC_BUG=y
# CONFIG_EPAPR_BOOT is not set
# CONFIG_DEFAULT_UIMAGE is not set
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_PPC_DCR_NATIVE=y
# CONFIG_PPC_DCR_MMIO is not set
CONFIG_PPC_DCR=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_PPC_ADV_DEBUG_REGS=y
CONFIG_PPC_ADV_DEBUG_IACS=4
CONFIG_PPC_ADV_DEBUG_DACS=2
CONFIG_PPC_ADV_DEBUG_DVCS=2
CONFIG_PPC_ADV_DEBUG_DAC_RANGE=y
CONFIG_PGTABLE_LEVELS=2
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_FHANDLE is not set
CONFIG_USELIB=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
CONFIG_IRQ_DOMAIN=y
CONFIG_GENERIC_MSI_IRQ=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_GENERIC_TIME_VSYSCALL_OLD=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_EXPEDITE_BOOT is not set
# CONFIG_BUILD_BIN2C is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
# CONFIG_BPF_SYSCALL is not set
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
# CONFIG_USERFAULTFD is not set
CONFIG_PCI_QUIRKS=y
CONFIG_MEMBARRIER=y
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y

#
# Kernel Performance Events And Counters
#
# CONFIG_PERF_EVENTS is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
CONFIG_COMPAT_BRK=y
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_SYSTEM_DATA_VERIFICATION is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_JUMP_LABEL is not set
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_OLD_SIGSUSPEND=y
CONFIG_OLD_SIGACTION=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
# CONFIG_MODULES is not set
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_CMDLINE_PARSER is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_FREEZER=y
CONFIG_PPC4xx_PCI_EXPRESS=y
# CONFIG_PPC4xx_HSTA_MSI is not set
CONFIG_PPC4xx_MSI=y
CONFIG_PPC_MSI_BITMAP=y
# CONFIG_PPC_XICS is not set
# CONFIG_PPC_ICP_NATIVE is not set
# CONFIG_PPC_ICP_HV is not set
# CONFIG_PPC_ICS_RTAS is not set
# CONFIG_GE_FPGA is not set

#
# Platform support
#
# CONFIG_PPC_CELL is not set
# CONFIG_PPC_CELL_NATIVE is not set
# CONFIG_PQ2ADS is not set
# CONFIG_PPC_47x is not set
# CONFIG_BAMBOO is not set
# CONFIG_BLUESTONE is not set
# CONFIG_EBONY is not set
# CONFIG_SAM440EP is not set
# CONFIG_SEQUOIA is not set
# CONFIG_TAISHAN is not set
# CONFIG_KATMAI is not set
# CONFIG_RAINIER is not set
# CONFIG_WARP is not set
# CONFIG_ARCHES is not set
CONFIG_CANYONLANDS=y
# CONFIG_GLACIER is not set
# CONFIG_REDWOOD is not set
# CONFIG_EIGER is not set
# CONFIG_YOSEMITE is not set
# CONFIG_ISS4xx is not set
# CONFIG_ICON is not set
# CONFIG_XILINX_VIRTEX440_GENERIC_BOARD is not set
# CONFIG_PPC44x_SIMPLE is not set
# CONFIG_PPC4xx_GPIO is not set
# CONFIG_PPC4xx_OCM is not set
CONFIG_460EX=y
# CONFIG_KVM_GUEST is not set
# CONFIG_EPAPR_PARAVIRT is not set
# CONFIG_IPIC is not set
# CONFIG_MPIC is not set
# CONFIG_PPC_EPAPR_HV_PIC is not set
# CONFIG_MPIC_WEIRD is not set
# CONFIG_PPC_I8259 is not set
# CONFIG_PPC_RTAS is not set
# CONFIG_MMIO_NVRAM is not set
# CONFIG_MPIC_U3_HT_IRQS is not set
# CONFIG_PPC_MPC106 is not set
# CONFIG_PPC_970_NAP is not set
# CONFIG_PPC_P7_NAP is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# CPUIdle driver
#

#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
# CONFIG_FSL_ULI1575 is not set
# CONFIG_SIMPLE_GPIO is not set

#
# Kernel options
#
# CONFIG_HIGHMEM is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
CONFIG_SCHED_HRTICK=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_BINFMT_ELF=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
CONFIG_COREDUMP=y
# CONFIG_MATH_EMULATION is not set
# CONFIG_IOMMU_HELPER is not set
# CONFIG_SWIOTLB is not set
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ARCH_HAS_WALK_MEMORY=y
CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_HAVE_GENERIC_RCU_GUP=y
CONFIG_NO_BOOTMEM=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
# CONFIG_FRONTSWAP is not set
# CONFIG_CMA is not set
# CONFIG_ZPOOL is not set
# CONFIG_ZBUD is not set
# CONFIG_ZSMALLOC is not set
# CONFIG_IDLE_PAGE_TRACKING is not set
CONFIG_STDBINUTILS=y
CONFIG_PPC_4K_PAGES=y
# CONFIG_PPC_16K_PAGES is not set
# CONFIG_PPC_64K_PAGES is not set
CONFIG_FORCE_MAX_ZONEORDER=11
# CONFIG_PPC_COPRO_BASE is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE=""
# CONFIG_CMDLINE_FORCE is not set
CONFIG_EXTRA_TARGETS=""
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
# CONFIG_HIBERNATION is not set
CONFIG_PM_SLEEP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y

#
# Bus options
#
CONFIG_ZONE_DMA=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_PPC_INDIRECT_PCI=y
CONFIG_PPC4xx_CPM=y
CONFIG_4xx_SOC=y
CONFIG_PPC_PCI_CHOICE=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_SYSCALL=y
# CONFIG_PCIEPORTBUS is not set
CONFIG_PCI_BUS_ADDR_T_64BIT=y
CONFIG_PCI_MSI=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set

#
# PCI host controller drivers
#
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HAS_RAPIDIO is not set
# CONFIG_RAPIDIO is not set
# CONFIG_NONSTATIC_KERNEL is not set

#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set

#
# Default settings for advanced configuration options are used
#
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_PAGE_OFFSET=0xc0000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_PHYSICAL_START=0x00000000
CONFIG_TASK_SIZE=0xc0000000
CONFIG_CONSISTENT_SIZE=0x00200000
# CONFIG_ARCH_RANDOM is not set
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_NET_IP_TUNNEL is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_NET_UDP_TUNNEL is not set
# CONFIG_NET_FOU is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_LRO is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_INET_UDP_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IPV6 is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NET_PTP_CLASSIFY is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_MMAP is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
CONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
# CONFIG_LIB80211 is not set

#
# CFG80211 needs to be enabled for MAC80211
#
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_LWTUNNEL is not set
CONFIG_HAVE_BPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set

#
# Bus devices
#
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
CONFIG_MTD=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_AR7_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set
# CONFIG_MTD_PARTITIONED_MASTER is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PHYSMAP is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_INTEL_VR_NOR is not set
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND_ECC_SMC=y
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_ECC_BCH is not set
# CONFIG_MTD_SM_COMMON is not set
# CONFIG_MTD_NAND_DENALI_PCI is not set
# CONFIG_MTD_NAND_OMAP_BCH_BUILD is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_RICOH is not set
CONFIG_MTD_NAND_NDFC=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_DOCG4 is not set
# CONFIG_MTD_NAND_CAFE is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_NAND_FSL_ELBC is not set
# CONFIG_MTD_NAND_HISI504 is not set
# CONFIG_MTD_ONENAND is not set

#
# LPDDR & LPDDR2 PCM memory drivers
#
# CONFIG_MTD_LPDDR is not set
# CONFIG_MTD_SPI_NOR is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y
# CONFIG_OF_UNITTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_ADDRESS_PCI=y
CONFIG_OF_IRQ=y
CONFIG_OF_NET=y
CONFIG_OF_PCI=y
CONFIG_OF_PCI_IRQ=y
CONFIG_OF_MTD=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_OF_OVERLAY is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=35000
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_XILINX_SYSACE is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set
# CONFIG_BLK_DEV_NVME is not set

#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_PHANTOM is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_BMP085_I2C is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_CB710_CORE is not set

#
# Texas Instruments shared transport line discipline
#

#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not set

#
# Intel MIC Bus Driver
#

#
# SCIF Bus Driver
#

#
# Intel MIC Host Driver
#

#
# Intel MIC Card Driver
#

#
# SCIF Driver
#

#
# Intel MIC Coprocessor State Management (COSM) Drivers
#
# CONFIG_ECHO is not set
# CONFIG_CXL_BASE is not set
# CONFIG_CXL_KERNEL_API is not set
# CONFIG_CXL_EEH is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_MQ_DEFAULT is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
# CONFIG_SATA_PMP is not set

#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_AHCI_CEVA is not set
# CONFIG_AHCI_QORIQ is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
# CONFIG_ATA_PIIX is not set
CONFIG_SATA_DWC=y
CONFIG_SATA_DWC_OLD_DMA=y
# CONFIG_SATA_DWC_DEBUG is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not set
CONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not set
CONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not set
CONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
CONFIG_NET_VENDOR_ARC=y
# CONFIG_ARC_EMAC is not set
CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
# CONFIG_NET_VENDOR_AURORA is not set
CONFIG_NET_CADENCE=y
# CONFIG_MACB is not set
CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not set
CONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set
CONFIG_NET_VENDOR_CAVIUM=y
CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_DNET is not set
CONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not set
CONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not set
CONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set
CONFIG_NET_VENDOR_EZCHIP=y
# CONFIG_EZCHIP_NPS_MANAGEMENT_ENET is not set
CONFIG_NET_VENDOR_EXAR=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not set
CONFIG_NET_VENDOR_HP=y
# CONFIG_HP100 is not set
CONFIG_NET_VENDOR_IBM=y
CONFIG_IBM_EMAC=y
CONFIG_IBM_EMAC_RXB=256
CONFIG_IBM_EMAC_TXB=256
CONFIG_IBM_EMAC_POLL_WEIGHT=32
CONFIG_IBM_EMAC_RX_COPY_THRESHOLD=256
CONFIG_IBM_EMAC_RX_SKB_HEADROOM=0
# CONFIG_IBM_EMAC_DEBUG is not set
CONFIG_IBM_EMAC_ZMII=y
CONFIG_IBM_EMAC_RGMII=y
CONFIG_IBM_EMAC_TAH=y
CONFIG_IBM_EMAC_EMAC4=y
# CONFIG_IBM_EMAC_NO_FLOW_CTRL is not set
# CONFIG_IBM_EMAC_MAL_CLR_ICINTSTAT is not set
# CONFIG_IBM_EMAC_MAL_COMMON_ERR is not set
CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set
# CONFIG_E1000 is not set
# CONFIG_E1000E is not set
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_FM10K is not set
CONFIG_NET_VENDOR_I825XX=y
# CONFIG_JME is not set
CONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MV643XX_ETH is not set
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX4_CORE is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not set
CONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not set
CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not set
CONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not set
CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not set
CONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not set
CONFIG_NET_PACKET_ENGINE=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
CONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_QLGE is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not set
CONFIG_NET_VENDOR_QUALCOMM=y
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not set
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not set
CONFIG_NET_VENDOR_ROCKER=y
CONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not set
CONFIG_NET_VENDOR_SEEQ=y
CONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not set
CONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not set
# CONFIG_SFC is not set
CONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set
CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set
CONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
CONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_SYNOPSYS_DWC_ETH_QOS is not set
CONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not set
CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_ALE is not set
# CONFIG_TLAN is not set
CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not set
CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not set
CONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PHYLIB is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
CONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_LAN78XX is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_IPHETH is not set
CONFIG_WLAN=y
# CONFIG_PRISM54 is not set
# CONFIG_HOSTAP is not set
# CONFIG_WL_MEDIATEK is not set
# CONFIG_WL_TI is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_ISDN is not set
# CONFIG_NVM is not set

#
# Input device support
#
# CONFIG_INPUT is not set

#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
# CONFIG_VT is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_PPC_EPAPR_HV_BYTECHAN is not set
CONFIG_DEVMEM=y
CONFIG_DEVKMEM=y

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
# CONFIG_SERIAL_8250_PCI is not set
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_RSA is not set
CONFIG_SERIAL_8250_FSL=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
# CONFIG_SERIAL_8250_INGENIC is not set
# CONFIG_SERIAL_8250_MID is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_SERIAL_OF_PLATFORM=y
# CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_HVC_UDBG is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
CONFIG_DEVPORT=y
# CONFIG_XILLYBUS is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not set
CONFIG_I2C_HELPER_AUTO=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
CONFIG_I2C_IBM_IIC=y
# CONFIG_I2C_MPC is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set

#
# PPS support
#
# CONFIG_PPS is not set

#
# PPS generators support
#

#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
CONFIG_HWMON=y
# CONFIG_HWMON_VID is not set
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
CONFIG_SENSORS_AD7414=y
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_HTU21 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SCH56XX_COMMON is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS1015 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_ATMEL_FLEXCOM is not set
# CONFIG_MFD_ATMEL_HLCDC is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_AXP20X is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_HI6421_PMIC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77686 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RTSX_PCI is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RTSX_USB is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_RK808 is not set
# CONFIG_MFD_RN5T618 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SMSC is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TPS65218 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set

#
# Graphics support
#
# CONFIG_AGP is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_DRM is not set

#
# Frame buffer Devices
#
# CONFIG_FB is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# CONFIG_VGASTATE is not set
# CONFIG_SOUND is not set
CONFIG_USB_OHCI_BIG_ENDIAN_DESC=y
CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_ULPI_BUS is not set
CONFIG_USB_MON=y
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not set
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
# CONFIG_XPS_USB_HCD_XILINX is not set
CONFIG_USB_EHCI_HCD_PPC_OF=y
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PPC_OF_BE=y
CONFIG_USB_OHCI_HCD_PPC_OF_LE=y
CONFIG_USB_OHCI_HCD_PPC_OF=y
CONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not set
# CONFIG_USB_UHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#

#
# also be needed; see USB_STORAGE Help for more info
#
# CONFIG_USB_STORAGE is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set

#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_ISP1301 is not set
# CONFIG_USB_GADGET is not set
# CONFIG_UWB is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_HYM8563 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_ISL12057 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
CONFIG_RTC_DRV_M41T80=y
# CONFIG_RTC_DRV_M41T80_WDT is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RV8803 is not set

#
# SPI RTC drivers
#

#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_ZYNQMP is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_GENERIC is not set
# CONFIG_RTC_DRV_SNVS is not set

#
# HID Sensor RTC drivers
#
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y
# CONFIG_FSL_EDMA is not set
# CONFIG_INTEL_IDMA64 is not set
CONFIG_DW_DMAC_CORE=y
CONFIG_DW_DMAC=y
# CONFIG_DW_DMAC_PCI is not set

#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set

#
# Virtio drivers
#
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_MMIO is not set

#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set

#
# Hardware Spinlock drivers
#

#
# Clock Source drivers
#
# CONFIG_ATMEL_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_MAILBOX is not set
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#

#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set

#
# Rpmsg drivers
#

#
# SOC (System On Chip) specific Drivers
#
# CONFIG_SUNXI_SRAM is not set
# CONFIG_SOC_TI is not set
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
CONFIG_IRQCHIP=y
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_FMC is not set

#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

#
# Performance monitor support
#
# CONFIG_RAS is not set
# CONFIG_THUNDERBOLT is not set

#
# Android
#
# CONFIG_ANDROID is not set
# CONFIG_LIBNVDIMM is not set
# CONFIG_NVMEM is not set
# CONFIG_STM is not set
# CONFIG_STM_DUMMY is not set
# CONFIG_STM_SOURCE_CONSOLE is not set
# CONFIG_INTEL_TH is not set

#
# FPGA Configuration Support
#
# CONFIG_FPGA is not set

#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_EXT4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
# CONFIG_FS_DAX is not set
# CONFIG_FS_POSIX_ACL is not set
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
# CONFIG_OVERLAY_FS is not set

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not set
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS2_FS is not set
# CONFIG_LOGFS is not set
CONFIG_CRAMFS=y
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_SWAP is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
CONFIG_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_BINARY_PRINTF is not set

#
# Library routines
#
CONFIG_BITREVERSE=y
# CONFIG_HAVE_ARCH_BITREVERSE is not set
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IO=y
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_IA64=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
CONFIG_LIBFDT=y
# CONFIG_SG_SPLIT is not set
CONFIG_ARCH_HAS_SG_CHAIN=y

#
# Kernel hacking
#

#
# printk and dmesg options
#
# CONFIG_PRINTK_TIME is not set
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_DYNAMIC_DEBUG is not set

#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_PAGE_OWNER is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
# CONFIG_LOCKUP_DETECTOR is not set
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_SCHED_DEBUG=y
# CONFIG_SCHED_INFO is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_SCHED_STACK_END_CHECK is not set
# CONFIG_DEBUG_TIMEKEEPING is not set
# CONFIG_TIMER_STATS is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_STACKTRACE is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set

#
# RCU Debugging
#
# CONFIG_PROVE_RCU is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_RCU_EQS_DEBUG is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_ENABLE_DEFAULT_TRACERS is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_PROBE_EVENTS is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_MEMTEST is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_PPC_DISABLE_WERROR is not set
CONFIG_PPC_WERROR=y
# CONFIG_STRICT_MM_TYPECHECKS is not set
CONFIG_PRINT_STACK_DEPTH=64
# CONFIG_PPC_EMULATED_STATS is not set
# CONFIG_CODE_PATCHING_SELFTEST is not set
# CONFIG_FTR_FIXUP_SELFTEST is not set
# CONFIG_MSI_BITMAP_SELFTEST is not set
# CONFIG_XMON is not set
# CONFIG_BDI_SWITCH is not set
# CONFIG_PPC_EARLY_DEBUG is not set
CONFIG_STRICT_DEVMEM=y

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=y
CONFIG_CRYPTO_PCOMP2=y
CONFIG_CRYPTO_AKCIPHER2=y
# CONFIG_CRYPTO_RSA is not set
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
# CONFIG_CRYPTO_GF128MUL is not set
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_MCRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
# CONFIG_CRYPTO_SEQIV is not set
CONFIG_CRYPTO_ECHAINIV=y

#
# Block modes
#
# CONFIG_CRYPTO_CBC is not set
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
# CONFIG_CRYPTO_ECB is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
# CONFIG_CRYPTO_XTS is not set
# CONFIG_CRYPTO_KEYWRAP is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRCT10DIF is not set
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MD5_PPC is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA1_PPC is not set
CONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_ZLIB is not set
# CONFIG_CRYPTO_LZO is not set
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not set
# CONFIG_CRYPTO_DRBG_CTR is not set
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PPC4XX is not set

#
# Certificates for signature checking
#
# CONFIG_VIRTUALIZATION is not set

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                         ` <56732C04.9040100@candw.ms>
@ 2015-12-18  0:06                           ` Måns Rullgård
  2015-12-18  0:59                             ` Julian Margetson
  2015-12-18 11:48                             ` Julian Margetson
  2015-12-18 10:08                           ` Andy Shevchenko
  1 sibling, 2 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18  0:06 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>
>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>> the sata_dwc disabled.
>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>> I will try to give more detailed info over this weekend .
>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>> as a side-effect.
>>>>>>
>>>>> patching file drivers/ata/Kconfig
>>>>>
>>>>> Hunk #1 FAILED at 296.
>>>> [...]
>>>>
>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>> The patch is against 4.4-rc5.
>>>>
>>>   CC      drivers/ata/sata_dwc_460ex.o
>>>
>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>
>>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>>                 ^
>> It builds, albeit with an unrelated warning, using the attached config.
>> Maybe there's a missing config dependency somewhere.
>>
> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
> with your .config.
> 4.4.0-rc5 builds ok with no patches applied .
> Once your patch is applied it fails to build .
>
> CC      drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>  static struct dw_dma_slave sata_dwc_dma_dws = {
>                ^

Bizarre.  This is what it looks like here:

mru@unicorn:/tmp/linux-sata$ git status
On branch sata-dwc
nothing to commit, working directory clean
mru@unicorn:/tmp/linux-sata$ git describe
v4.4-rc5
mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch 
e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
mru@unicorn:/tmp/linux-sata$ sha1sum .config
4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/powerpc/include/generated/asm/clkdev.h
  WRAP    arch/powerpc/include/generated/asm/div64.h
  WRAP    arch/powerpc/include/generated/asm/irq_regs.h
  WRAP    arch/powerpc/include/generated/asm/irq_work.h
  WRAP    arch/powerpc/include/generated/asm/local64.h
  WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
  WRAP    arch/powerpc/include/generated/asm/preempt.h
  WRAP    arch/powerpc/include/generated/asm/rwsem.h
  WRAP    arch/powerpc/include/generated/asm/vtime.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  UPD     include/generated/timeconst.h
  CC      arch/powerpc/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  SHIPPED scripts/dtc/dtc-parser.tab.c
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  CC      drivers/ata/sata_dwc_460ex.o
drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
                    ^
mru@unicorn:/tmp/linux-sata$

Patch file and .config attached.

Looking into that warning, I doubt it works as is, but that's not caused
by my patch.  I can try to come up with a fix, but again, I can't test it.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch --]
[-- Type: text/x-diff, Size: 9394 bytes --]

>From bfffde37a17f8bca810302d8e1961ab1f8b24ea5 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Wed, 25 Nov 2015 21:44:54 +0000
Subject: [PATCH] ata: sata_dwc_460ex: use "dmas" DT property to find dma
 channel

Currently this driver only works with a DesignWare DMA engine which it
registers manually using the second "reg" address range and interrupt
number from the DT node.

This patch makes the driver instead use the "dmas" property if present,
otherwise optionally falling back on the old way so existing device
trees can continue to work.

With this change, there is no longer any reason to depend on the 460EX
machine type so drop that from Kconfig.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/Kconfig          |  10 ++-
 drivers/ata/sata_dwc_460ex.c | 192 +++++++++++++++++++++++++++----------------
 2 files changed, 131 insertions(+), 71 deletions(-)

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 3fc2a56..193c673 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -296,14 +296,20 @@ config ATA_PIIX
 
 config SATA_DWC
 	tristate "DesignWare Cores SATA support"
-	depends on 460EX
-	select DW_DMAC
 	help
 	  This option enables support for the on-chip SATA controller of the
 	  AppliedMicro processor 460EX.
 
 	  If unsure, say N.
 
+config SATA_DWC_OLD_DMA
+	bool "Support old device trees"
+	depends on SATA_DWC && 460EX
+	select DW_DMAC
+	help
+	  This option enables support for old device trees without the
+	  "dmas" property.
+
 config SATA_DWC_DEBUG
 	bool "Debugging driver version"
 	depends on SATA_DWC
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 9020349..9985749 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -30,6 +30,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/device.h>
+#include <linux/dmaengine.h>
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
@@ -42,10 +43,6 @@
 #include <scsi/scsi_host.h>
 #include <scsi/scsi_cmnd.h>
 
-/* Supported DMA engine drivers */
-#include <linux/platform_data/dma-dw.h>
-#include <linux/dma/dw.h>
-
 /* These two are defined in "libata.h" */
 #undef	DRV_NAME
 #undef	DRV_VERSION
@@ -148,7 +145,9 @@ struct sata_dwc_device {
 	struct ata_host		*host;
 	u8 __iomem		*reg_base;
 	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
+#ifdef CONFIG_SATA_DWC_OLD_DMA
 	struct dw_dma_chip	*dma;
+#endif
 };
 
 #define SATA_DWC_QCMD_MAX	32
@@ -159,7 +158,6 @@ struct sata_dwc_device_port {
 	int			dma_pending[SATA_DWC_QCMD_MAX];
 
 	/* DMA info */
-	struct dw_dma_slave		*dws;
 	struct dma_chan			*chan;
 	struct dma_async_tx_descriptor	*desc[SATA_DWC_QCMD_MAX];
 	u32				dma_interrupt_count;
@@ -198,13 +196,6 @@ struct sata_dwc_host_priv {
 
 static struct sata_dwc_host_priv host_pvt;
 
-static struct dw_dma_slave sata_dwc_dma_dws = {
-	.src_id = 0,
-	.dst_id = 0,
-	.src_master = 0,
-	.dst_master = 1,
-};
-
 /*
  * Prototypes
  */
@@ -215,6 +206,90 @@ static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status);
 static void sata_dwc_port_stop(struct ata_port *ap);
 static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+
+#include <linux/platform_data/dma-dw.h>
+#include <linux/dma/dw.h>
+
+static struct dw_dma_slave sata_dwc_dma_dws = {
+	.src_id = 0,
+	.dst_id = 0,
+	.src_master = 0,
+	.dst_master = 1,
+};
+
+static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
+{
+	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
+
+	if (dws->dma_dev != chan->device->dev)
+		return false;
+
+	chan->private = dws;
+	return true;
+}
+
+static int sata_dwc_dma_get_channel_old(struct sata_dwc_device_port *hsdevp)
+{
+	struct sata_dwc_device *hsdev = hsdevp->hsdev;
+	struct dw_dma_slave *dws = &sata_dwc_dma_dws;
+	dma_cap_mask_t mask;
+
+	dws->dma_dev = hsdev->dev;
+
+	dma_cap_zero(mask);
+	dma_cap_set(DMA_SLAVE, mask);
+
+	/* Acquire DMA channel */
+	hsdevp->chan = dma_request_channel(mask, sata_dwc_dma_filter, hsdevp);
+	if (!hsdevp->chan) {
+		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
+			 __func__);
+		return -EAGAIN;
+	}
+
+	return 0;
+}
+
+static int sata_dwc_dma_init_old(struct platform_device *pdev,
+				 struct sata_dwc_device *hsdev)
+{
+	struct device_node *np = pdev->dev.of_node;
+	int err;
+
+	hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL);
+	if (!hsdev->dma)
+		return -ENOMEM;
+
+	hsdev->dma->dev = &pdev->dev;
+
+	/* Get SATA DMA interrupt number */
+	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
+	if (hsdev->dma->irq == NO_IRQ) {
+		dev_err(&pdev->dev, "no SATA DMA irq\n");
+		return -ENODEV;
+	}
+
+	/* Get physical SATA DMA register base address */
+	hsdev->dma->regs = of_iomap(np, 1);
+	if (!hsdev->dma->regs) {
+		dev_err(&pdev->dev,
+			"ioremap failed for AHBDMA register address\n");
+		return -ENODEV;
+	}
+
+	/* Initialize AHB DMAC */
+	err = dw_dma_probe(hsdev->dma, NULL);
+	if (err) {
+		iounmap(hsdev->dma->regs);
+		return err;
+	}
+
+	return 0;
+}
+
+#endif
+
 static const char *get_prot_descript(u8 protocol)
 {
 	switch ((enum ata_tf_protocols)protocol) {
@@ -783,18 +858,6 @@ static void sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev)
 		in_le32(&hsdev->sata_dwc_regs->errmr));
 }
 
-static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
-{
-	struct sata_dwc_device_port *hsdevp = param;
-	struct dw_dma_slave *dws = hsdevp->dws;
-
-	if (dws->dma_dev != chan->device->dev)
-		return false;
-
-	chan->private = dws;
-	return true;
-}
-
 static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
 {
 	port->cmd_addr = (void __iomem *)base + 0x00;
@@ -817,6 +880,26 @@ static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
 	port->ctl_addr = (void __iomem *)base + 0x20;
 }
 
+static int sata_dwc_dma_get_channel(struct sata_dwc_device_port *hsdevp)
+{
+	struct sata_dwc_device *hsdev = hsdevp->hsdev;
+	struct device *dev = hsdev->dev;
+
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+	if (!of_find_property(dev->of_node, "dmas", NULL))
+		return sata_dwc_dma_get_channel_old(hsdevp);
+#endif
+
+	hsdevp->chan = dma_request_slave_channel(dev, "sata-dma");
+	if (IS_ERR(hsdevp->chan)) {
+		dev_err(dev, "failed to allocate dma channel: %ld\n",
+			PTR_ERR(hsdevp->chan));
+		return PTR_ERR(hsdevp->chan);
+	}
+
+	return 0;
+}
+
 /*
  * Function : sata_dwc_port_start
  * arguments : struct ata_ioports *port
@@ -829,7 +912,6 @@ static int sata_dwc_port_start(struct ata_port *ap)
 	struct sata_dwc_device *hsdev;
 	struct sata_dwc_device_port *hsdevp = NULL;
 	struct device *pdev;
-	dma_cap_mask_t mask;
 	int i;
 
 	hsdev = HSDEV_FROM_AP(ap);
@@ -853,20 +935,9 @@ static int sata_dwc_port_start(struct ata_port *ap)
 	}
 	hsdevp->hsdev = hsdev;
 
-	hsdevp->dws = &sata_dwc_dma_dws;
-	hsdevp->dws->dma_dev = hsdev->dev;
-
-	dma_cap_zero(mask);
-	dma_cap_set(DMA_SLAVE, mask);
-
-	/* Acquire DMA channel */
-	hsdevp->chan = dma_request_channel(mask, sata_dwc_dma_filter, hsdevp);
-	if (!hsdevp->chan) {
-		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
-			 __func__);
-		err = -EAGAIN;
+	err = sata_dwc_dma_get_channel(hsdevp);
+	if (err)
 		goto CLEANUP_ALLOC;
-	}
 
 	for (i = 0; i < SATA_DWC_QCMD_MAX; i++)
 		hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT;
@@ -1225,33 +1296,9 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
 		   idr, ver[0], ver[1], ver[2]);
 
-	/* Get SATA DMA interrupt number */
-	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
-	if (hsdev->dma->irq == NO_IRQ) {
-		dev_err(&ofdev->dev, "no SATA DMA irq\n");
-		err = -ENODEV;
-		goto error_iomap;
-	}
-
-	/* Get physical SATA DMA register base address */
-	hsdev->dma->regs = of_iomap(np, 1);
-	if (!hsdev->dma->regs) {
-		dev_err(&ofdev->dev,
-			"ioremap failed for AHBDMA register address\n");
-		err = -ENODEV;
-		goto error_iomap;
-	}
-
 	/* Save dev for later use in dev_xxx() routines */
 	hsdev->dev = &ofdev->dev;
 
-	hsdev->dma->dev = &ofdev->dev;
-
-	/* Initialize AHB DMAC */
-	err = dw_dma_probe(hsdev->dma, NULL);
-	if (err)
-		goto error_dma_iomap;
-
 	/* Enable SATA Interrupts */
 	sata_dwc_enable_interrupts(hsdev);
 
@@ -1263,6 +1310,14 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 		goto error_out;
 	}
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
+	if (!of_find_property(np, "dmas", NULL)) {
+		err = sata_dwc_dma_init_old(ofdev, hsdev);
+		if (err)
+			goto error_out;
+	}
+#endif
+
 	/*
 	 * Now, register with libATA core, this will also initiate the
 	 * device discovery process, invoking our port_start() handler &
@@ -1276,11 +1331,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
 	return 0;
 
 error_out:
-	/* Free SATA DMA resources */
-	dw_dma_remove(hsdev->dma);
-error_dma_iomap:
-	iounmap(hsdev->dma->regs);
-error_iomap:
 	iounmap(base);
 	return err;
 }
@@ -1293,10 +1343,14 @@ static int sata_dwc_remove(struct platform_device *ofdev)
 
 	ata_host_detach(host);
 
+#ifdef CONFIG_SATA_DWC_OLD_DMA
 	/* Free SATA DMA resources */
-	dw_dma_remove(hsdev->dma);
+	if (hsdev->dma) {
+		dw_dma_remove(hsdev->dma);
+		iounmap(hsdev->dma->regs);
+	}
+#endif
 
-	iounmap(hsdev->dma->regs);
 	iounmap(hsdev->reg_base);
 	dev_dbg(&ofdev->dev, "done\n");
 	return 0;
-- 
2.6.3


[-- Attachment #3: .config --]
[-- Type: text/plain, Size: 60935 bytes --]

#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 4.4.0-rc5 Kernel Configuration
#
# CONFIG_PPC64 is not set

#
# Processor support
#
# CONFIG_PPC_BOOK3S_32 is not set
# CONFIG_PPC_85xx is not set
# CONFIG_PPC_8xx is not set
# CONFIG_40x is not set
CONFIG_44x=y
# CONFIG_E200 is not set
CONFIG_PPC_FPU=y
CONFIG_4xx=y
CONFIG_BOOKE=y
CONFIG_PTE_64BIT=y
CONFIG_PHYS_64BIT=y
CONFIG_PPC_MMU_NOHASH=y
# CONFIG_PPC_MM_SLICES is not set
CONFIG_NOT_COHERENT_CACHE=y
# CONFIG_PPC_DOORBELL is not set
CONFIG_VDSO32=y
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_PPC32=y
CONFIG_32BIT=y
CONFIG_WORD_SIZE=32
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_ARCH_DMA_ADDR_T_64BIT=y
CONFIG_MMU=y
# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set
# CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK is not set
CONFIG_NR_IRQS=512
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_ILOG2_U32=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_HAS_DMA_SET_COHERENT_MASK=y
CONFIG_PPC=y
# CONFIG_GENERIC_CSUM is not set
CONFIG_EARLY_PRINTK=y
CONFIG_PANIC_TIMEOUT=180
CONFIG_GENERIC_NVRAM=y
CONFIG_SCHED_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_PPC_UDBG_16550=y
# CONFIG_GENERIC_TBSYNC is not set
CONFIG_AUDIT_ARCH=y
CONFIG_GENERIC_BUG=y
# CONFIG_EPAPR_BOOT is not set
# CONFIG_DEFAULT_UIMAGE is not set
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_PPC_DCR_NATIVE=y
# CONFIG_PPC_DCR_MMIO is not set
CONFIG_PPC_DCR=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_PPC_ADV_DEBUG_REGS=y
CONFIG_PPC_ADV_DEBUG_IACS=4
CONFIG_PPC_ADV_DEBUG_DACS=2
CONFIG_PPC_ADV_DEBUG_DVCS=2
CONFIG_PPC_ADV_DEBUG_DAC_RANGE=y
CONFIG_PGTABLE_LEVELS=2
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_FHANDLE is not set
CONFIG_USELIB=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_ARCH_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
CONFIG_IRQ_DOMAIN=y
CONFIG_GENERIC_MSI_IRQ=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_GENERIC_TIME_VSYSCALL_OLD=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_EXPEDITE_BOOT is not set
# CONFIG_BUILD_BIN2C is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_SYSCTL_EXCEPTION_TRACE=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_MULTIUSER=y
CONFIG_SGETMASK_SYSCALL=y
CONFIG_SYSFS_SYSCALL=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
# CONFIG_BPF_SYSCALL is not set
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
# CONFIG_USERFAULTFD is not set
CONFIG_PCI_QUIRKS=y
CONFIG_MEMBARRIER=y
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y

#
# Kernel Performance Events And Counters
#
# CONFIG_PERF_EVENTS is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
CONFIG_COMPAT_BRK=y
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_SYSTEM_DATA_VERIFICATION is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_JUMP_LABEL is not set
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_HAVE_IOREMAP_PROT=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_OLD_SIGSUSPEND=y
CONFIG_OLD_SIGACTION=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
# CONFIG_MODULES is not set
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_CMDLINE_PARSER is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_FREEZER=y
CONFIG_PPC4xx_PCI_EXPRESS=y
# CONFIG_PPC4xx_HSTA_MSI is not set
CONFIG_PPC4xx_MSI=y
CONFIG_PPC_MSI_BITMAP=y
# CONFIG_PPC_XICS is not set
# CONFIG_PPC_ICP_NATIVE is not set
# CONFIG_PPC_ICP_HV is not set
# CONFIG_PPC_ICS_RTAS is not set
# CONFIG_GE_FPGA is not set

#
# Platform support
#
# CONFIG_PPC_CELL is not set
# CONFIG_PPC_CELL_NATIVE is not set
# CONFIG_PQ2ADS is not set
# CONFIG_PPC_47x is not set
# CONFIG_BAMBOO is not set
# CONFIG_BLUESTONE is not set
# CONFIG_EBONY is not set
# CONFIG_SAM440EP is not set
# CONFIG_SEQUOIA is not set
# CONFIG_TAISHAN is not set
# CONFIG_KATMAI is not set
# CONFIG_RAINIER is not set
# CONFIG_WARP is not set
# CONFIG_ARCHES is not set
CONFIG_CANYONLANDS=y
# CONFIG_GLACIER is not set
# CONFIG_REDWOOD is not set
# CONFIG_EIGER is not set
# CONFIG_YOSEMITE is not set
# CONFIG_ISS4xx is not set
# CONFIG_ICON is not set
# CONFIG_XILINX_VIRTEX440_GENERIC_BOARD is not set
# CONFIG_PPC44x_SIMPLE is not set
# CONFIG_PPC4xx_GPIO is not set
# CONFIG_PPC4xx_OCM is not set
CONFIG_460EX=y
# CONFIG_KVM_GUEST is not set
# CONFIG_EPAPR_PARAVIRT is not set
# CONFIG_IPIC is not set
# CONFIG_MPIC is not set
# CONFIG_PPC_EPAPR_HV_PIC is not set
# CONFIG_MPIC_WEIRD is not set
# CONFIG_PPC_I8259 is not set
# CONFIG_PPC_RTAS is not set
# CONFIG_MMIO_NVRAM is not set
# CONFIG_MPIC_U3_HT_IRQS is not set
# CONFIG_PPC_MPC106 is not set
# CONFIG_PPC_970_NAP is not set
# CONFIG_PPC_P7_NAP is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# CPUIdle driver
#

#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
# CONFIG_FSL_ULI1575 is not set
# CONFIG_SIMPLE_GPIO is not set

#
# Kernel options
#
# CONFIG_HIGHMEM is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
CONFIG_SCHED_HRTICK=y
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_BINFMT_ELF=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
CONFIG_COREDUMP=y
# CONFIG_MATH_EMULATION is not set
# CONFIG_IOMMU_HELPER is not set
# CONFIG_SWIOTLB is not set
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ARCH_HAS_WALK_MEMORY=y
CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
CONFIG_HAVE_GENERIC_RCU_GUP=y
CONFIG_NO_BOOTMEM=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_PHYS_ADDR_T_64BIT=y
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
# CONFIG_FRONTSWAP is not set
# CONFIG_CMA is not set
# CONFIG_ZPOOL is not set
# CONFIG_ZBUD is not set
# CONFIG_ZSMALLOC is not set
# CONFIG_IDLE_PAGE_TRACKING is not set
CONFIG_STDBINUTILS=y
CONFIG_PPC_4K_PAGES=y
# CONFIG_PPC_16K_PAGES is not set
# CONFIG_PPC_64K_PAGES is not set
CONFIG_FORCE_MAX_ZONEORDER=11
# CONFIG_PPC_COPRO_BASE is not set
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE=""
# CONFIG_CMDLINE_FORCE is not set
CONFIG_EXTRA_TARGETS=""
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set
# CONFIG_HIBERNATION is not set
CONFIG_PM_SLEEP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y

#
# Bus options
#
CONFIG_ZONE_DMA=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_PPC_INDIRECT_PCI=y
CONFIG_PPC4xx_CPM=y
CONFIG_4xx_SOC=y
CONFIG_PPC_PCI_CHOICE=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_SYSCALL=y
# CONFIG_PCIEPORTBUS is not set
CONFIG_PCI_BUS_ADDR_T_64BIT=y
CONFIG_PCI_MSI=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not set
# CONFIG_PCI_STUB is not set
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set

#
# PCI host controller drivers
#
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HAS_RAPIDIO is not set
# CONFIG_RAPIDIO is not set
# CONFIG_NONSTATIC_KERNEL is not set

#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set

#
# Default settings for advanced configuration options are used
#
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_PAGE_OFFSET=0xc0000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_PHYSICAL_START=0x00000000
CONFIG_TASK_SIZE=0xc0000000
CONFIG_CONSISTENT_SIZE=0x00200000
# CONFIG_ARCH_RANDOM is not set
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_NET_IP_TUNNEL is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_NET_UDP_TUNNEL is not set
# CONFIG_NET_FOU is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_LRO is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_INET_UDP_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IPV6 is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NET_PTP_CLASSIFY is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_MMAP is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
CONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
# CONFIG_LIB80211 is not set

#
# CFG80211 needs to be enabled for MAC80211
#
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_LWTUNNEL is not set
CONFIG_HAVE_BPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set

#
# Bus devices
#
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
CONFIG_MTD=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_AR7_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set
# CONFIG_MTD_PARTITIONED_MASTER is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PHYSMAP is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_INTEL_VR_NOR is not set
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND_ECC_SMC=y
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_ECC_BCH is not set
# CONFIG_MTD_SM_COMMON is not set
# CONFIG_MTD_NAND_DENALI_PCI is not set
# CONFIG_MTD_NAND_OMAP_BCH_BUILD is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_RICOH is not set
CONFIG_MTD_NAND_NDFC=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_DOCG4 is not set
# CONFIG_MTD_NAND_CAFE is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_NAND_FSL_ELBC is not set
# CONFIG_MTD_NAND_HISI504 is not set
# CONFIG_MTD_ONENAND is not set

#
# LPDDR & LPDDR2 PCM memory drivers
#
# CONFIG_MTD_LPDDR is not set
# CONFIG_MTD_SPI_NOR is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y
# CONFIG_OF_UNITTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_ADDRESS_PCI=y
CONFIG_OF_IRQ=y
CONFIG_OF_NET=y
CONFIG_OF_PCI=y
CONFIG_OF_PCI_IRQ=y
CONFIG_OF_MTD=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_OF_OVERLAY is not set
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_NULL_BLK is not set
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=35000
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_XILINX_SYSACE is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_BLK_DEV_RSXX is not set
# CONFIG_BLK_DEV_NVME is not set

#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_PHANTOM is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_BMP085_I2C is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set

#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_CB710_CORE is not set

#
# Texas Instruments shared transport line discipline
#

#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not set

#
# Intel MIC Bus Driver
#

#
# SCIF Bus Driver
#

#
# Intel MIC Host Driver
#

#
# Intel MIC Card Driver
#

#
# SCIF Driver
#

#
# Intel MIC Coprocessor State Management (COSM) Drivers
#
# CONFIG_ECHO is not set
# CONFIG_CXL_BASE is not set
# CONFIG_CXL_KERNEL_API is not set
# CONFIG_CXL_EEH is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_MQ_DEFAULT is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
# CONFIG_SATA_PMP is not set

#
# Controllers with non-SFF native interface
#
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_AHCI_CEVA is not set
# CONFIG_AHCI_QORIQ is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
# CONFIG_ATA_PIIX is not set
CONFIG_SATA_DWC=y
CONFIG_SATA_DWC_OLD_DMA=y
# CONFIG_SATA_DWC_DEBUG is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set

#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_PLATFORM is not set
# CONFIG_PATA_RZ1000 is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not set
CONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not set
CONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not set
CONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not set
CONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
CONFIG_NET_VENDOR_ARC=y
# CONFIG_ARC_EMAC is not set
CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
# CONFIG_NET_VENDOR_AURORA is not set
CONFIG_NET_CADENCE=y
# CONFIG_MACB is not set
CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not set
CONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set
CONFIG_NET_VENDOR_CAVIUM=y
CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not set
CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set
# CONFIG_DNET is not set
CONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not set
CONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not set
CONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set
CONFIG_NET_VENDOR_EZCHIP=y
# CONFIG_EZCHIP_NPS_MANAGEMENT_ENET is not set
CONFIG_NET_VENDOR_EXAR=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not set
CONFIG_NET_VENDOR_HP=y
# CONFIG_HP100 is not set
CONFIG_NET_VENDOR_IBM=y
CONFIG_IBM_EMAC=y
CONFIG_IBM_EMAC_RXB=256
CONFIG_IBM_EMAC_TXB=256
CONFIG_IBM_EMAC_POLL_WEIGHT=32
CONFIG_IBM_EMAC_RX_COPY_THRESHOLD=256
CONFIG_IBM_EMAC_RX_SKB_HEADROOM=0
# CONFIG_IBM_EMAC_DEBUG is not set
CONFIG_IBM_EMAC_ZMII=y
CONFIG_IBM_EMAC_RGMII=y
CONFIG_IBM_EMAC_TAH=y
CONFIG_IBM_EMAC_EMAC4=y
# CONFIG_IBM_EMAC_NO_FLOW_CTRL is not set
# CONFIG_IBM_EMAC_MAL_CLR_ICINTSTAT is not set
# CONFIG_IBM_EMAC_MAL_COMMON_ERR is not set
CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set
# CONFIG_E1000 is not set
# CONFIG_E1000E is not set
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not set
# CONFIG_I40E is not set
# CONFIG_I40EVF is not set
# CONFIG_FM10K is not set
CONFIG_NET_VENDOR_I825XX=y
# CONFIG_JME is not set
CONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MV643XX_ETH is not set
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX4_CORE is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not set
CONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not set
CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not set
CONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not set
CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not set
CONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not set
CONFIG_NET_PACKET_ENGINE=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
CONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_QLGE is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not set
CONFIG_NET_VENDOR_QUALCOMM=y
CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not set
CONFIG_NET_VENDOR_RENESAS=y
CONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not set
CONFIG_NET_VENDOR_ROCKER=y
CONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not set
CONFIG_NET_VENDOR_SEEQ=y
CONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not set
CONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not set
# CONFIG_SFC is not set
CONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set
CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set
CONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set
CONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_SYNOPSYS_DWC_ETH_QOS is not set
CONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not set
CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_ALE is not set
# CONFIG_TLAN is not set
CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not set
CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not set
CONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PHYLIB is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
CONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_LAN78XX is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_IPHETH is not set
CONFIG_WLAN=y
# CONFIG_PRISM54 is not set
# CONFIG_HOSTAP is not set
# CONFIG_WL_MEDIATEK is not set
# CONFIG_WL_TI is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_ISDN is not set
# CONFIG_NVM is not set

#
# Input device support
#
# CONFIG_INPUT is not set

#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
# CONFIG_VT is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_PPC_EPAPR_HV_BYTECHAN is not set
CONFIG_DEVMEM=y
CONFIG_DEVKMEM=y

#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_DMA=y
# CONFIG_SERIAL_8250_PCI is not set
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_RSA is not set
CONFIG_SERIAL_8250_FSL=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set
# CONFIG_SERIAL_8250_INGENIC is not set
# CONFIG_SERIAL_8250_MID is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_SERIAL_OF_PLATFORM=y
# CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_HVC_UDBG is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
CONFIG_DEVPORT=y
# CONFIG_XILLYBUS is not set

#
# I2C support
#
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not set
CONFIG_I2C_HELPER_AUTO=y

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
CONFIG_I2C_IBM_IIC=y
# CONFIG_I2C_MPC is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set

#
# PPS support
#
# CONFIG_PPS is not set

#
# PPS generators support
#

#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
CONFIG_HWMON=y
# CONFIG_HWMON_VID is not set
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Native drivers
#
CONFIG_SENSORS_AD7414=y
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set
# CONFIG_SENSORS_ADM1026 is not set
# CONFIG_SENSORS_ADM1029 is not set
# CONFIG_SENSORS_ADM1031 is not set
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set
# CONFIG_SENSORS_ADT7462 is not set
# CONFIG_SENSORS_ADT7470 is not set
# CONFIG_SENSORS_ADT7475 is not set
# CONFIG_SENSORS_ASC7621 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_G760A is not set
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC4151 is not set
# CONFIG_SENSORS_LTC4215 is not set
# CONFIG_SENSORS_LTC4222 is not set
# CONFIG_SENSORS_LTC4245 is not set
# CONFIG_SENSORS_LTC4260 is not set
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX1668 is not set
# CONFIG_SENSORS_MAX197 is not set
# CONFIG_SENSORS_MAX6639 is not set
# CONFIG_SENSORS_MAX6642 is not set
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_HTU21 is not set
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_NTC_THERMISTOR is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SHT21 is not set
# CONFIG_SENSORS_SHTC1 is not set
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_EMC1403 is not set
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC6W201 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SCH56XX_COMMON is not set
# CONFIG_SENSORS_SMM665 is not set
# CONFIG_SENSORS_ADC128D818 is not set
# CONFIG_SENSORS_ADS1015 is not set
# CONFIG_SENSORS_ADS7828 is not set
# CONFIG_SENSORS_AMC6821 is not set
# CONFIG_SENSORS_INA209 is not set
# CONFIG_SENSORS_INA2XX is not set
# CONFIG_SENSORS_TC74 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_TMP102 is not set
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP401 is not set
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83795 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83L786NG is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_AS3722 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_ATMEL_FLEXCOM is not set
# CONFIG_MFD_ATMEL_HLCDC is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_AXP20X is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_HI6421_PMIC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77686 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RTSX_PCI is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RTSX_USB is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_RK808 is not set
# CONFIG_MFD_RN5T618 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SMSC is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TPS65218 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_VX855 is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set

#
# Graphics support
#
# CONFIG_AGP is not set
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_DRM is not set

#
# Frame buffer Devices
#
# CONFIG_FB is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# CONFIG_VGASTATE is not set
# CONFIG_SOUND is not set
CONFIG_USB_OHCI_BIG_ENDIAN_DESC=y
CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_ULPI_BUS is not set
CONFIG_USB_MON=y
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not set
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=y
# CONFIG_XPS_USB_HCD_XILINX is not set
CONFIG_USB_EHCI_HCD_PPC_OF=y
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PPC_OF_BE=y
CONFIG_USB_OHCI_HCD_PPC_OF_LE=y
CONFIG_USB_OHCI_HCD_PPC_OF=y
CONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not set
# CONFIG_USB_UHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#

#
# also be needed; see USB_STORAGE Help for more info
#
# CONFIG_USB_STORAGE is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set

#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_ISP1301 is not set
# CONFIG_USB_GADGET is not set
# CONFIG_UWB is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABX80X is not set
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_HYM8563 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_ISL12057 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
CONFIG_RTC_DRV_M41T80=y
# CONFIG_RTC_DRV_M41T80_WDT is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
# CONFIG_RTC_DRV_RV8803 is not set

#
# SPI RTC drivers
#

#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_ZYNQMP is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_GENERIC is not set
# CONFIG_RTC_DRV_SNVS is not set

#
# HID Sensor RTC drivers
#
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y
# CONFIG_FSL_EDMA is not set
# CONFIG_INTEL_IDMA64 is not set
CONFIG_DW_DMAC_CORE=y
CONFIG_DW_DMAC=y
# CONFIG_DW_DMAC_PCI is not set

#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set

#
# Virtio drivers
#
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_MMIO is not set

#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set

#
# Hardware Spinlock drivers
#

#
# Clock Source drivers
#
# CONFIG_ATMEL_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_MAILBOX is not set
CONFIG_IOMMU_SUPPORT=y

#
# Generic IOMMU Pagetable Support
#

#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set

#
# Rpmsg drivers
#

#
# SOC (System On Chip) specific Drivers
#
# CONFIG_SUNXI_SRAM is not set
# CONFIG_SOC_TI is not set
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not set
# CONFIG_PWM is not set
CONFIG_IRQCHIP=y
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_FMC is not set

#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_BCM_KONA_USB2_PHY is not set
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set

#
# Performance monitor support
#
# CONFIG_RAS is not set
# CONFIG_THUNDERBOLT is not set

#
# Android
#
# CONFIG_ANDROID is not set
# CONFIG_LIBNVDIMM is not set
# CONFIG_NVMEM is not set
# CONFIG_STM is not set
# CONFIG_STM_DUMMY is not set
# CONFIG_STM_SOURCE_CONSOLE is not set
# CONFIG_INTEL_TH is not set

#
# FPGA Configuration Support
#
# CONFIG_FPGA is not set

#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_EXT4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_F2FS_FS is not set
# CONFIG_FS_DAX is not set
# CONFIG_FS_POSIX_ACL is not set
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
# CONFIG_OVERLAY_FS is not set

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
# CONFIG_PROC_CHILDREN is not set
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS2_FS is not set
# CONFIG_LOGFS is not set
CONFIG_CRAMFS=y
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_SWAP is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
CONFIG_GRACE_PERIOD=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
# CONFIG_NLS_ISO8859_1 is not set
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_BINARY_PRINTF is not set

#
# Library routines
#
CONFIG_BITREVERSE=y
# CONFIG_HAVE_ARCH_BITREVERSE is not set
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IO=y
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
# CONFIG_RANDOM32_SELFTEST is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_XZ_DEC=y
CONFIG_XZ_DEC_X86=y
CONFIG_XZ_DEC_POWERPC=y
CONFIG_XZ_DEC_IA64=y
CONFIG_XZ_DEC_ARM=y
CONFIG_XZ_DEC_ARMTHUMB=y
CONFIG_XZ_DEC_SPARC=y
CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_DECOMPRESS_LZMA=y
CONFIG_DECOMPRESS_XZ=y
CONFIG_DECOMPRESS_LZO=y
CONFIG_DECOMPRESS_LZ4=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DQL=y
CONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set
CONFIG_NLATTR=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
CONFIG_LIBFDT=y
# CONFIG_SG_SPLIT is not set
CONFIG_ARCH_HAS_SG_CHAIN=y

#
# Kernel hacking
#

#
# printk and dmesg options
#
# CONFIG_PRINTK_TIME is not set
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
# CONFIG_DYNAMIC_DEBUG is not set

#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_PAGE_OWNER is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
# CONFIG_PAGE_EXTENSION is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
# CONFIG_LOCKUP_DETECTOR is not set
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_SCHED_DEBUG=y
# CONFIG_SCHED_INFO is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_SCHED_STACK_END_CHECK is not set
# CONFIG_DEBUG_TIMEKEEPING is not set
# CONFIG_TIMER_STATS is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_STACKTRACE is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set

#
# RCU Debugging
#
# CONFIG_PROVE_RCU is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_RCU_EQS_DEBUG is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_ENABLE_DEFAULT_TRACERS is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_PROBE_EVENTS is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_HEXDUMP is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_TEST_PRINTF is not set
# CONFIG_TEST_RHASHTABLE is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_TEST_FIRMWARE is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_MEMTEST is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_PPC_DISABLE_WERROR is not set
CONFIG_PPC_WERROR=y
# CONFIG_STRICT_MM_TYPECHECKS is not set
CONFIG_PRINT_STACK_DEPTH=64
# CONFIG_PPC_EMULATED_STATS is not set
# CONFIG_CODE_PATCHING_SELFTEST is not set
# CONFIG_FTR_FIXUP_SELFTEST is not set
# CONFIG_MSI_BITMAP_SELFTEST is not set
# CONFIG_XMON is not set
# CONFIG_BDI_SWITCH is not set
# CONFIG_PPC_EARLY_DEBUG is not set
CONFIG_STRICT_DEVMEM=y

#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=y
CONFIG_CRYPTO_PCOMP2=y
CONFIG_CRYPTO_AKCIPHER2=y
# CONFIG_CRYPTO_RSA is not set
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
# CONFIG_CRYPTO_GF128MUL is not set
CONFIG_CRYPTO_NULL=y
CONFIG_CRYPTO_NULL2=y
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_MCRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set
# CONFIG_CRYPTO_SEQIV is not set
CONFIG_CRYPTO_ECHAINIV=y

#
# Block modes
#
# CONFIG_CRYPTO_CBC is not set
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
# CONFIG_CRYPTO_ECB is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
# CONFIG_CRYPTO_XTS is not set
# CONFIG_CRYPTO_KEYWRAP is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_CRC32 is not set
# CONFIG_CRYPTO_CRCT10DIF is not set
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_POLY1305 is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MD5_PPC is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA1_PPC is not set
CONFIG_CRYPTO_SHA256=y
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_CHACHA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set

#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_ZLIB is not set
# CONFIG_CRYPTO_LZO is not set
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
CONFIG_CRYPTO_DRBG_MENU=y
CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not set
# CONFIG_CRYPTO_DRBG_CTR is not set
CONFIG_CRYPTO_DRBG=y
CONFIG_CRYPTO_JITTERENTROPY=y
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_USER_API_RNG is not set
# CONFIG_CRYPTO_USER_API_AEAD is not set
CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_PPC4XX is not set

#
# Certificates for signature checking
#
# CONFIG_VIRTUALIZATION is not set

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18  0:06                           ` Måns Rullgård
@ 2015-12-18  0:59                             ` Julian Margetson
  2015-12-18  1:38                               ` Måns Rullgård
  2015-12-18 11:48                             ` Julian Margetson
  1 sibling, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-18  0:59 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/17/2015 8:06 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>
>>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>>> the sata_dwc disabled.
>>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>>> I will try to give more detailed info over this weekend .
>>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>>> as a side-effect.
>>>>>>>
>>>>>> patching file drivers/ata/Kconfig
>>>>>>
>>>>>> Hunk #1 FAILED at 296.
>>>>> [...]
>>>>>
>>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>>> The patch is against 4.4-rc5.
>>>>>
>>>>    CC      drivers/ata/sata_dwc_460ex.o
>>>>
>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>
>>>>    static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>                  ^
>>> It builds, albeit with an unrelated warning, using the attached config.
>>> Maybe there's a missing config dependency somewhere.
>>>
>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>> with your .config.
>> 4.4.0-rc5 builds ok with no patches applied .
>> Once your patch is applied it fails to build .
>>
>> CC      drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>                 ^
> Bizarre.  This is what it looks like here:
>
> mru@unicorn:/tmp/linux-sata$ git status
> On branch sata-dwc
> nothing to commit, working directory clean
> mru@unicorn:/tmp/linux-sata$ git describe
> v4.4-rc5
> mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
> mru@unicorn:/tmp/linux-sata$ sha1sum .config
> 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
>    HOSTCC  scripts/basic/fixdep
>    HOSTCC  scripts/kconfig/conf.o
>    SHIPPED scripts/kconfig/zconf.tab.c
>    SHIPPED scripts/kconfig/zconf.lex.c
>    SHIPPED scripts/kconfig/zconf.hash.c
>    HOSTCC  scripts/kconfig/zconf.tab.o
>    HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf  --oldconfig Kconfig
> #
> # configuration written to .config
> #
> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
> scripts/kconfig/conf  --silentoldconfig Kconfig
>    CHK     include/config/kernel.release
>    UPD     include/config/kernel.release
>    WRAP    arch/powerpc/include/generated/asm/clkdev.h
>    WRAP    arch/powerpc/include/generated/asm/div64.h
>    WRAP    arch/powerpc/include/generated/asm/irq_regs.h
>    WRAP    arch/powerpc/include/generated/asm/irq_work.h
>    WRAP    arch/powerpc/include/generated/asm/local64.h
>    WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
>    WRAP    arch/powerpc/include/generated/asm/preempt.h
>    WRAP    arch/powerpc/include/generated/asm/rwsem.h
>    WRAP    arch/powerpc/include/generated/asm/vtime.h
>    CHK     include/generated/uapi/linux/version.h
>    UPD     include/generated/uapi/linux/version.h
>    CHK     include/generated/utsrelease.h
>    UPD     include/generated/utsrelease.h
>    CC      kernel/bounds.s
>    CHK     include/generated/bounds.h
>    UPD     include/generated/bounds.h
>    CHK     include/generated/timeconst.h
>    UPD     include/generated/timeconst.h
>    CC      arch/powerpc/kernel/asm-offsets.s
>    CHK     include/generated/asm-offsets.h
>    UPD     include/generated/asm-offsets.h
>    CALL    scripts/checksyscalls.sh
>    HOSTCC  scripts/dtc/dtc.o
>    HOSTCC  scripts/dtc/flattree.o
>    HOSTCC  scripts/dtc/fstree.o
>    HOSTCC  scripts/dtc/data.o
>    HOSTCC  scripts/dtc/livetree.o
>    HOSTCC  scripts/dtc/treesource.o
>    HOSTCC  scripts/dtc/srcpos.o
>    HOSTCC  scripts/dtc/checks.o
>    HOSTCC  scripts/dtc/util.o
>    SHIPPED scripts/dtc/dtc-lexer.lex.c
>    SHIPPED scripts/dtc/dtc-parser.tab.h
>    HOSTCC  scripts/dtc/dtc-lexer.lex.o
>    SHIPPED scripts/dtc/dtc-parser.tab.c
>    HOSTCC  scripts/dtc/dtc-parser.tab.o
>    HOSTLD  scripts/dtc/dtc
>    CC      scripts/mod/empty.o
>    HOSTCC  scripts/mod/mk_elfconfig
>    MKELF   scripts/mod/elfconfig.h
>    HOSTCC  scripts/mod/modpost.o
>    CC      scripts/mod/devicetable-offsets.s
>    GEN     scripts/mod/devicetable-offsets.h
>    HOSTCC  scripts/mod/file2alias.o
>    HOSTCC  scripts/mod/sumversion.o
>    HOSTLD  scripts/mod/modpost
>    HOSTCC  scripts/kallsyms
>    CC      drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
> drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>    dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>                      ^
> mru@unicorn:/tmp/linux-sata$
>
> Patch file and .config attached.
>
> Looking into that warning, I doubt it works as is, but that's not caused
> by my patch.  I can try to come up with a fix, but again, I can't test it.
>
I am using

make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18  0:59                             ` Julian Margetson
@ 2015-12-18  1:38                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18  1:38 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/17/2015 8:06 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>
>>>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>>
>>>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>>>> the sata_dwc disabled.
>>>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>>>> I will try to give more detailed info over this weekend .
>>>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>>>> as a side-effect.
>>>>>>>>
>>>>>>> patching file drivers/ata/Kconfig
>>>>>>>
>>>>>>> Hunk #1 FAILED at 296.
>>>>>> [...]
>>>>>>
>>>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>>>> The patch is against 4.4-rc5.
>>>>>>
>>>>>    CC      drivers/ata/sata_dwc_460ex.o
>>>>>
>>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>>
>>>>>    static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>>                  ^
>>>> It builds, albeit with an unrelated warning, using the attached config.
>>>> Maybe there's a missing config dependency somewhere.
>>>>
>>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>>> with your .config.
>>> 4.4.0-rc5 builds ok with no patches applied .
>>> Once your patch is applied it fails to build .
>>>
>>> CC      drivers/ata/sata_dwc_460ex.o
>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>>                 ^
>> Bizarre.  This is what it looks like here:
>>
>> mru@unicorn:/tmp/linux-sata$ git status
>> On branch sata-dwc
>> nothing to commit, working directory clean
>> mru@unicorn:/tmp/linux-sata$ git describe
>> v4.4-rc5
>> mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
>> mru@unicorn:/tmp/linux-sata$ sha1sum .config
>> 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
>>    HOSTCC  scripts/basic/fixdep
>>    HOSTCC  scripts/kconfig/conf.o
>>    SHIPPED scripts/kconfig/zconf.tab.c
>>    SHIPPED scripts/kconfig/zconf.lex.c
>>    SHIPPED scripts/kconfig/zconf.hash.c
>>    HOSTCC  scripts/kconfig/zconf.tab.o
>>    HOSTLD  scripts/kconfig/conf
>> scripts/kconfig/conf  --oldconfig Kconfig
>> #
>> # configuration written to .config
>> #
>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
>> scripts/kconfig/conf  --silentoldconfig Kconfig

[...]

>>    CC      drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
>> drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>>    dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>>                      ^
>> mru@unicorn:/tmp/linux-sata$
>>
>> Patch file and .config attached.
>>
>> Looking into that warning, I doubt it works as is, but that's not caused
>> by my patch.  I can try to come up with a fix, but again, I can't test it.
>>
> I am using
>
> make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-

Shouldn't matter since the compiler flags include -m32, and I only had a
powerpc64 toolchain built.  Anyhow, I built a 32-bit toolchain and it
still builds.

Just to make sure you applied the patch correctly:

mru@unicorn:/tmp/linux-sata$ sha1sum drivers/ata/sata_dwc_460ex.c 
c8a7927840aade75ac62b04a2c9acc8335a34d6f  drivers/ata/sata_dwc_460ex.c

Digging deeper into that warning, it is clearly a bug which has always
been there.  The reason it ever worked appears to be that the 460EX has
a dedicated DMA unit hard-wired to the SATA controller ignoring that
address.  The situation is similar on my hardware.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                         ` <56732C04.9040100@candw.ms>
  2015-12-18  0:06                           ` Måns Rullgård
@ 2015-12-18 10:08                           ` Andy Shevchenko
  2015-12-18 11:24                             ` Måns Rullgård
  1 sibling, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-18 10:08 UTC (permalink / raw)
  To: Julian Margetson, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

On Thu, 2015-12-17 at 17:41 -0400, Julian Margetson wrote:
> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
> > Julian Margetson <runaway@candw.ms> writes:
> > 
> > > On 12/17/2015 2:51 PM, Måns Rullgård wrote:
> > > > Julian Margetson <runaway@candw.ms> writes:
> > > > 
> > > > > On 12/17/2015 1:59 PM, Måns Rullgård wrote:
> > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > 
> > > > > > > I have been running my machine mostly configured for
> > > > > > > pciex1  thus with
> > > > > > > the sata_dwc disabled.
> > > > > > > The changes to sata_dwc-460ex do cause an oops.
> > > > > > > I will try to give more detailed info over this weekend .
> > > > > > The driver as is upstream would do that since it
> > > > > > unconditionally
> > > > > > dereferences a null pointer in the probe function.  My
> > > > > > patch fixes that
> > > > > > as a side-effect.
> > > > > > 
> > > > > patching file drivers/ata/Kconfig
> > > > > 
> > > > > Hunk #1 FAILED at 296.
> > > > [...]
> > > > 
> > > > > root@julian-VirtualBox:/usr/src/linux-3.18.25#
> > > > The patch is against 4.4-rc5.
> > > > 
> > >  CC      drivers/ata/sata_dwc_460ex.o
> > > 
> > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> > > ‘sata_dwc_dma_dws’ has initializer but incomplete type
> > > 
> > >  static struct dw_dma_slave sata_dwc_dma_dws = {
> > >                ^
> > It builds, albeit with an unrelated warning, using the attached
> > config.
> > Maybe there's a missing config dependency somewhere.
> > 
> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
> with your .config.
> 4.4.0-rc5 builds ok with no patches applied .
> Once your patch is applied it fails to build .
> CC      drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> ‘sata_dwc_dma_dws’ has initializer but incomplete type
>  static struct dw_dma_slave sata_dwc_dma_dws = {
>                ^
> drivers/ata/sata_dwc_460ex.c:199:2: error: unknown field ‘src_id’
> specified in initializer
>   .src_id = 0,

This clearly means that header file that defines the struct
dw_dma_slave is not included.

After the patch it seems you have to explicitly enable DW_DMAC, so,
either via make nconfig, or by adding
CONFIG_DW_DMAC=y


>   ^
> drivers/ata/sata_dwc_460ex.c:199:2: warning: excess elements in
> struct initializer [enabled by default]
> drivers/ata/sata_dwc_460ex.c:199:2: warning: (near initialization for
> ‘sata_dwc_dma_dws’) [enabled by default]
> drivers/ata/sata_dwc_460ex.c:200:2: error: unknown field ‘dst_id’
> specified in initializer
>   .dst_id = 0,
>   ^
> drivers/ata/sata_dwc_460ex.c:200:2: warning: excess elements in
> struct initializer [enabled by default]
> drivers/ata/sata_dwc_460ex.c:200:2: warning: (near initialization for
> ‘sata_dwc_dma_dws’) [enabled by default]
> drivers/ata/sata_dwc_460ex.c:201:2: error: unknown field ‘src_master’
> specified in initializer
>   .src_master = 0,
>   ^
> drivers/ata/sata_dwc_460ex.c:201:2: warning: excess elements in
> struct initializer [enabled by default]
> drivers/ata/sata_dwc_460ex.c:201:2: warning: (near initialization for
> ‘sata_dwc_dma_dws’) [enabled by default]
> drivers/ata/sata_dwc_460ex.c:202:2: error: unknown field ‘dst_master’
> specified in initializer
>   .dst_master = 1,
>   ^
> drivers/ata/sata_dwc_460ex.c:202:2: warning: excess elements in
> struct initializer [enabled by default]
> drivers/ata/sata_dwc_460ex.c:202:2: warning: (near initialization for
> ‘sata_dwc_dma_dws’) [enabled by default]
> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
> drivers/ata/sata_dwc_460ex.c:389:20: warning: cast from pointer to
> integer of different size [-Wpointer-to-int-cast]
>   dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>                     ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
> drivers/ata/sata_dwc_460ex.c:872:9: error: dereferencing pointer to
> incomplete type
>   if (dws->dma_dev != chan->device->dev)
>          ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
> drivers/ata/sata_dwc_460ex.c:958:13: error: dereferencing pointer to
> incomplete type
>   hsdevp->dws->dma_dev = hsdev->dev;
>              ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_probe’:
> drivers/ata/sata_dwc_460ex.c:1330:12: error: dereferencing pointer to
> incomplete type
>   hsdev->dma->irq = irq_of_parse_and_map(np, 1);
>             ^
> drivers/ata/sata_dwc_460ex.c:1331:16: error: dereferencing pointer to
> incomplete type
>   if (hsdev->dma->irq == NO_IRQ) {
>                 ^
> drivers/ata/sata_dwc_460ex.c:1338:12: error: dereferencing pointer to
> incomplete type
>   hsdev->dma->regs = of_iomap(np, 1);
>             ^
> drivers/ata/sata_dwc_460ex.c:1339:17: error: dereferencing pointer to
> incomplete type
>   if (!hsdev->dma->regs) {
>                  ^
> drivers/ata/sata_dwc_460ex.c:1349:12: error: dereferencing pointer to
> incomplete type
>   hsdev->dma->dev = &ofdev->dev;
>             ^
> drivers/ata/sata_dwc_460ex.c:1352:2: error: implicit declaration of
> function ‘dw_dma_probe’ [-Werror=implicit-function-declaration]
>   err = dw_dma_probe(hsdev->dma, NULL);
>   ^
> drivers/ata/sata_dwc_460ex.c:1381:2: error: implicit declaration of
> function ‘dw_dma_remove’ [-Werror=implicit-function-declaration]
>   dw_dma_remove(hsdev->dma);
>   ^
> drivers/ata/sata_dwc_460ex.c:1383:20: error: dereferencing pointer to
> incomplete type
>   iounmap(hsdev->dma->regs);
>                     ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_remove’:
> drivers/ata/sata_dwc_460ex.c:1400:20: error: dereferencing pointer to
> incomplete type
>   iounmap(hsdev->dma->regs);
>                     ^
> drivers/ata/sata_dwc_460ex.c: At top level:
> drivers/ata/sata_dwc_460ex.c:901:12: warning:
> ‘sata_dwc_dma_get_channel’ defined but not used [-Wunused-function]
>  static int sata_dwc_dma_get_channel(struct sata_dwc_device_port
> *hsdevp)
>             ^
> cc1: some warnings being treated as errors
> make[2]: *** [drivers/ata/sata_dwc_460ex.o] Error 1
> make[1]: *** [drivers/ata] Error 2
> make: *** [drivers] Error 2
> root@julian-VirtualBox:/usr/src/linux-4.4-rc5# 
> 
> 
> 
> 

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 10:08                           ` Andy Shevchenko
@ 2015-12-18 11:24                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 11:24 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Thu, 2015-12-17 at 17:41 -0400, Julian Margetson wrote:
>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>> > Julian Margetson <runaway@candw.ms> writes:
>> > 
>> > > On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>> > > > Julian Margetson <runaway@candw.ms> writes:
>> > > > 
>> > > > > On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>> > > > > > Julian Margetson <runaway@candw.ms> writes:
>> > > > > > 
>> > > > > > > I have been running my machine mostly configured for
>> > > > > > > pciex1  thus with
>> > > > > > > the sata_dwc disabled.
>> > > > > > > The changes to sata_dwc-460ex do cause an oops.
>> > > > > > > I will try to give more detailed info over this weekend .
>> > > > > > The driver as is upstream would do that since it
>> > > > > > unconditionally
>> > > > > > dereferences a null pointer in the probe function.  My
>> > > > > > patch fixes that
>> > > > > > as a side-effect.
>> > > > > > 
>> > > > > patching file drivers/ata/Kconfig
>> > > > > 
>> > > > > Hunk #1 FAILED at 296.
>> > > > [...]
>> > > > 
>> > > > > root@julian-VirtualBox:/usr/src/linux-3.18.25#
>> > > > The patch is against 4.4-rc5.
>> > > > 
>> > >  CC      drivers/ata/sata_dwc_460ex.o
>> > > 
>> > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
>> > > ‘sata_dwc_dma_dws’ has initializer but incomplete type
>> > > 
>> > >  static struct dw_dma_slave sata_dwc_dma_dws = {
>> > >                ^
>> > It builds, albeit with an unrelated warning, using the attached
>> > config.
>> > Maybe there's a missing config dependency somewhere.
>> > 
>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>> with your .config.
>> 4.4.0-rc5 builds ok with no patches applied .
>> Once your patch is applied it fails to build .
>> CC      drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable
>> ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>  static struct dw_dma_slave sata_dwc_dma_dws = {
>>                ^
>> drivers/ata/sata_dwc_460ex.c:199:2: error: unknown field ‘src_id’
>> specified in initializer
>>   .src_id = 0,
>
> This clearly means that header file that defines the struct
> dw_dma_slave is not included.

And yet two lines above there's this:

#include <linux/platform_data/dma-dw.h>

This unconditionally defines struct dw_dma_slave.

Moreover, the line number in the error message above does not match any
version of the file with my patches applied.  I suspect something went
wrong when Julian patched his tree.

> After the patch it seems you have to explicitly enable DW_DMAC, so,
> either via make nconfig, or by adding
> CONFIG_DW_DMAC=y

The option for enabling the compatibility code selects DW_DMAC.  There
is a missing select DMA_ENGINE, but that won't make any difference here,
and my .config has it enabled anyhow.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18  0:06                           ` Måns Rullgård
  2015-12-18  0:59                             ` Julian Margetson
@ 2015-12-18 11:48                             ` Julian Margetson
  2015-12-18 12:04                               ` Måns Rullgård
  1 sibling, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-18 11:48 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/17/2015 8:06 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>
>>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>>> the sata_dwc disabled.
>>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>>> I will try to give more detailed info over this weekend .
>>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>>> as a side-effect.
>>>>>>>
>>>>>> patching file drivers/ata/Kconfig
>>>>>>
>>>>>> Hunk #1 FAILED at 296.
>>>>> [...]
>>>>>
>>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>>> The patch is against 4.4-rc5.
>>>>>
>>>>    CC      drivers/ata/sata_dwc_460ex.o
>>>>
>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>
>>>>    static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>                  ^
>>> It builds, albeit with an unrelated warning, using the attached config.
>>> Maybe there's a missing config dependency somewhere.
>>>
>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>> with your .config.
>> 4.4.0-rc5 builds ok with no patches applied .
>> Once your patch is applied it fails to build .
>>
>> CC      drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>                 ^
> Bizarre.  This is what it looks like here:
>
> mru@unicorn:/tmp/linux-sata$ git status
> On branch sata-dwc
> nothing to commit, working directory clean
> mru@unicorn:/tmp/linux-sata$ git describe
> v4.4-rc5
> mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
> mru@unicorn:/tmp/linux-sata$ sha1sum .config
> 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
>    HOSTCC  scripts/basic/fixdep
>    HOSTCC  scripts/kconfig/conf.o
>    SHIPPED scripts/kconfig/zconf.tab.c
>    SHIPPED scripts/kconfig/zconf.lex.c
>    SHIPPED scripts/kconfig/zconf.hash.c
>    HOSTCC  scripts/kconfig/zconf.tab.o
>    HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf  --oldconfig Kconfig
> #
> # configuration written to .config
> #
> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
> scripts/kconfig/conf  --silentoldconfig Kconfig
>    CHK     include/config/kernel.release
>    UPD     include/config/kernel.release
>    WRAP    arch/powerpc/include/generated/asm/clkdev.h
>    WRAP    arch/powerpc/include/generated/asm/div64.h
>    WRAP    arch/powerpc/include/generated/asm/irq_regs.h
>    WRAP    arch/powerpc/include/generated/asm/irq_work.h
>    WRAP    arch/powerpc/include/generated/asm/local64.h
>    WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
>    WRAP    arch/powerpc/include/generated/asm/preempt.h
>    WRAP    arch/powerpc/include/generated/asm/rwsem.h
>    WRAP    arch/powerpc/include/generated/asm/vtime.h
>    CHK     include/generated/uapi/linux/version.h
>    UPD     include/generated/uapi/linux/version.h
>    CHK     include/generated/utsrelease.h
>    UPD     include/generated/utsrelease.h
>    CC      kernel/bounds.s
>    CHK     include/generated/bounds.h
>    UPD     include/generated/bounds.h
>    CHK     include/generated/timeconst.h
>    UPD     include/generated/timeconst.h
>    CC      arch/powerpc/kernel/asm-offsets.s
>    CHK     include/generated/asm-offsets.h
>    UPD     include/generated/asm-offsets.h
>    CALL    scripts/checksyscalls.sh
>    HOSTCC  scripts/dtc/dtc.o
>    HOSTCC  scripts/dtc/flattree.o
>    HOSTCC  scripts/dtc/fstree.o
>    HOSTCC  scripts/dtc/data.o
>    HOSTCC  scripts/dtc/livetree.o
>    HOSTCC  scripts/dtc/treesource.o
>    HOSTCC  scripts/dtc/srcpos.o
>    HOSTCC  scripts/dtc/checks.o
>    HOSTCC  scripts/dtc/util.o
>    SHIPPED scripts/dtc/dtc-lexer.lex.c
>    SHIPPED scripts/dtc/dtc-parser.tab.h
>    HOSTCC  scripts/dtc/dtc-lexer.lex.o
>    SHIPPED scripts/dtc/dtc-parser.tab.c
>    HOSTCC  scripts/dtc/dtc-parser.tab.o
>    HOSTLD  scripts/dtc/dtc
>    CC      scripts/mod/empty.o
>    HOSTCC  scripts/mod/mk_elfconfig
>    MKELF   scripts/mod/elfconfig.h
>    HOSTCC  scripts/mod/modpost.o
>    CC      scripts/mod/devicetable-offsets.s
>    GEN     scripts/mod/devicetable-offsets.h
>    HOSTCC  scripts/mod/file2alias.o
>    HOSTCC  scripts/mod/sumversion.o
>    HOSTLD  scripts/mod/modpost
>    HOSTCC  scripts/kallsyms
>    CC      drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
> drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>    dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>                      ^
> mru@unicorn:/tmp/linux-sata$
>
> Patch file and .config attached.
>
> Looking into that warning, I doubt it works as is, but that's not caused
> by my patch.  I can try to come up with a fix, but again, I can't test it.
>
Builds now. Using my own .config.

[    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[    4.791186] scsi host0: sata-dwc
[    4.794830] ata1: SATA max UDMA/133 irq 36
[    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS 
errata fix
[    4.807959] scsi host1: sata_sil
[    4.811662] scsi host2: sata_sil
[    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 
0xd84280080 irq 21
[    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf 
0xd842800c0 irq 21

[    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.206125] Unable to handle kernel paging request for data at 
address 0x00000000
[    5.228546] Faulting instruction address: 0xc043a2c8
[    5.248577] Vector: 300 (Data Access) at [eddafae0]
[    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
[    5.289439]     lr: c0427c34: ata_qc_issue+0x338/0x3a0
[    5.309708]     sp: eddafb90
[    5.327573]    msr: 21000
[    5.345108]    dar: 0
[    5.362242]  dsisr: 0
[    5.379257]   current = 0xedda85c0
[    5.397452]     pid   = 81, comm = scsi_eh_0
[    5.416599] enter ? for help
[    5.434346] [eddafbe0] c0427c34 ata_qc_issue+0x338/0x3a0
[    5.454892] [eddafc10] c0427f0c ata_exec_internal_sg+0x270/0x47c
[    5.476090] [eddafc80] c042818c ata_exec_internal+0x74/0x7c
[    5.496645] [eddafcc0] c042839c ata_dev_read_id+0x150/0x4e0
[    5.517001] [eddafd40] c0434b4c ata_eh_recover+0xfac/0x1088
[    5.537210] [eddafdd0] c043516c ata_do_eh+0x4c/0x9c
[    5.556724] [eddafe00] c0434e10 ata_scsi_port_error_handler+0x148/0x3a4
[    5.578026] [eddafe30] c04350f0 ata_scsi_error+0x84/0xb4
[    5.597878] [eddafe60] c0410844 scsi_error_handler+0xa4/0x44c
[    5.618242] [eddafed0] c0038938 kthread+0xc8/0xcc
[    5.637383] [eddaff40] c000ad90 ret_from_kernel_thread+0x5c/0x64
[    5.657798] mon>  <no input ...>
[    7.675523] Oops: Kernel access of bad area, sig: 11 [#1]
[    7.695357] PREEMPT Canyonlands
[    7.712998] Modules linked in:
[    7.730338] CPU: 0 PID: 81 Comm: scsi_eh_0 Not tainted 
4.4.0-rc5-Sam460ex #2
[    7.751933] task: edda85c0 ti: eddae000 task.ti: eddae000
[    7.771844] NIP: c043a2c8 LR: c0427c34 CTR: c043a210
[    7.791229] REGS: eddafae0 TRAP: 0300   Not tainted (4.4.0-rc5-Sam460ex)
[    7.812519] MSR: 00021000 <CE,ME>  CR: 24000022  XER: 20000000
[    7.833197] DEAR: 00000000 ESR: 00000000
GPR00: c0427c34 eddafb90 edda85c0 00000000 00000000 00000000 ee3c1724 
00000000
GPR08: ffffffff 00000004 00000002 eddafc10 22000022 00000000 00000001 
c09314dc
GPR16: fafbfcfd 00000000 00000001 00000000 00000000 00029000 00000200 
eddafc18
GPR24: 000000ec 00000000 00000000 edcba7d0 edcae200 00000000 ee3c0000 
ee3c1700
[    7.939668] NIP [c043a2c8] sata_dwc_qc_issue+0xb8/0x204
[    7.959417] LR [c0427c34] ata_qc_issue+0x338/0x3a0
[    7.978735] Call Trace:
[    7.995605] [eddafb90] [00000006] 0x6 (unreliable)
[    8.015009] [eddafbe0] [c0427c34] ata_qc_issue+0x338/0x3a0
[    8.035078] [eddafc10] [c0427f0c] ata_exec_internal_sg+0x270/0x47c
[    8.055763] [eddafc80] [c042818c] ata_exec_internal+0x74/0x7c
[    8.075824] [eddafcc0] [c042839c] ata_dev_read_id+0x150/0x4e0
[    8.095822] [eddafd40] [c0434b4c] ata_eh_recover+0xfac/0x1088
[    8.115762] [eddafdd0] [c043516c] ata_do_eh+0x4c/0x9c
[    8.134973] [eddafe00] [c0434e10] ata_scsi_port_error_handler+0x148/0x3a4
[    8.155945] [eddafe30] [c04350f0] ata_scsi_error+0x84/0xb4
[    8.175503] [eddafe60] [c0410844] scsi_error_handler+0xa4/0x44c
[    8.195428] [eddafed0] [c0038938] kthread+0xc8/0xcc
[    8.214218] [eddaff40] [c000ad90] ret_from_kernel_thread+0x5c/0x64
[    8.234351] Instruction dump:
[    8.251202] 91010018 9121001c 39200000 99210030 39200040 807c0104 
91210028 9121002c
[    8.273517] 39200004 91410008 91210020 91210024 <81230000> 81290084 
2f890000 419e0010
[    8.296123] ---[ end trace 63c0d319677b6964 ]---
[    8.315133]
[    8.330746] note: scsi_eh_0[81] exited with preempt_count 1
[    8.402946] ata2.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    8.444867] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.474873] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    8.521159] ata2.00: configured for UDMA/100


[   11.324174] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[   11.351056] scsi host3: usb-storage 1-1.7:1.0
[   12.377078] scsi 3:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   
1.98 PQ: 0 ANSI: 0
[   12.406742] sd 3:0:0:0: Attached scsi generic sg0 type 0
[   12.434765] sd 3:0:0:0: [sda] Attached SCSI removable disk

Boot ends here and wont go any further.



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 11:48                             ` Julian Margetson
@ 2015-12-18 12:04                               ` Måns Rullgård
  2015-12-18 12:23                                 ` Andy Shevchenko
  2015-12-18 12:33                                 ` Julian Margetson
  0 siblings, 2 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 12:04 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/17/2015 8:06 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>
>>>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>>
>>>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>>>> the sata_dwc disabled.
>>>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>>>> I will try to give more detailed info over this weekend .
>>>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>>>> as a side-effect.
>>>>>>>>
>>>>>>> patching file drivers/ata/Kconfig
>>>>>>>
>>>>>>> Hunk #1 FAILED at 296.
>>>>>> [...]
>>>>>>
>>>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>>>> The patch is against 4.4-rc5.
>>>>>>
>>>>>    CC      drivers/ata/sata_dwc_460ex.o
>>>>>
>>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>>
>>>>>    static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>>                  ^
>>>> It builds, albeit with an unrelated warning, using the attached config.
>>>> Maybe there's a missing config dependency somewhere.
>>>>
>>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>>> with your .config.
>>> 4.4.0-rc5 builds ok with no patches applied .
>>> Once your patch is applied it fails to build .
>>>
>>> CC      drivers/ata/sata_dwc_460ex.o
>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>>                 ^
>> Bizarre.  This is what it looks like here:
>>
>> mru@unicorn:/tmp/linux-sata$ git status
>> On branch sata-dwc
>> nothing to commit, working directory clean
>> mru@unicorn:/tmp/linux-sata$ git describe
>> v4.4-rc5
>> mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>> Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
>> mru@unicorn:/tmp/linux-sata$ sha1sum .config
>> 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
>>    HOSTCC  scripts/basic/fixdep
>>    HOSTCC  scripts/kconfig/conf.o
>>    SHIPPED scripts/kconfig/zconf.tab.c
>>    SHIPPED scripts/kconfig/zconf.lex.c
>>    SHIPPED scripts/kconfig/zconf.hash.c
>>    HOSTCC  scripts/kconfig/zconf.tab.o
>>    HOSTLD  scripts/kconfig/conf
>> scripts/kconfig/conf  --oldconfig Kconfig
>> #
>> # configuration written to .config
>> #
>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
>> scripts/kconfig/conf  --silentoldconfig Kconfig
>>    CHK     include/config/kernel.release
>>    UPD     include/config/kernel.release
>>    WRAP    arch/powerpc/include/generated/asm/clkdev.h
>>    WRAP    arch/powerpc/include/generated/asm/div64.h
>>    WRAP    arch/powerpc/include/generated/asm/irq_regs.h
>>    WRAP    arch/powerpc/include/generated/asm/irq_work.h
>>    WRAP    arch/powerpc/include/generated/asm/local64.h
>>    WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
>>    WRAP    arch/powerpc/include/generated/asm/preempt.h
>>    WRAP    arch/powerpc/include/generated/asm/rwsem.h
>>    WRAP    arch/powerpc/include/generated/asm/vtime.h
>>    CHK     include/generated/uapi/linux/version.h
>>    UPD     include/generated/uapi/linux/version.h
>>    CHK     include/generated/utsrelease.h
>>    UPD     include/generated/utsrelease.h
>>    CC      kernel/bounds.s
>>    CHK     include/generated/bounds.h
>>    UPD     include/generated/bounds.h
>>    CHK     include/generated/timeconst.h
>>    UPD     include/generated/timeconst.h
>>    CC      arch/powerpc/kernel/asm-offsets.s
>>    CHK     include/generated/asm-offsets.h
>>    UPD     include/generated/asm-offsets.h
>>    CALL    scripts/checksyscalls.sh
>>    HOSTCC  scripts/dtc/dtc.o
>>    HOSTCC  scripts/dtc/flattree.o
>>    HOSTCC  scripts/dtc/fstree.o
>>    HOSTCC  scripts/dtc/data.o
>>    HOSTCC  scripts/dtc/livetree.o
>>    HOSTCC  scripts/dtc/treesource.o
>>    HOSTCC  scripts/dtc/srcpos.o
>>    HOSTCC  scripts/dtc/checks.o
>>    HOSTCC  scripts/dtc/util.o
>>    SHIPPED scripts/dtc/dtc-lexer.lex.c
>>    SHIPPED scripts/dtc/dtc-parser.tab.h
>>    HOSTCC  scripts/dtc/dtc-lexer.lex.o
>>    SHIPPED scripts/dtc/dtc-parser.tab.c
>>    HOSTCC  scripts/dtc/dtc-parser.tab.o
>>    HOSTLD  scripts/dtc/dtc
>>    CC      scripts/mod/empty.o
>>    HOSTCC  scripts/mod/mk_elfconfig
>>    MKELF   scripts/mod/elfconfig.h
>>    HOSTCC  scripts/mod/modpost.o
>>    CC      scripts/mod/devicetable-offsets.s
>>    GEN     scripts/mod/devicetable-offsets.h
>>    HOSTCC  scripts/mod/file2alias.o
>>    HOSTCC  scripts/mod/sumversion.o
>>    HOSTLD  scripts/mod/modpost
>>    HOSTCC  scripts/kallsyms
>>    CC      drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
>> drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>>    dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>>                      ^
>> mru@unicorn:/tmp/linux-sata$
>>
>> Patch file and .config attached.
>>
>> Looking into that warning, I doubt it works as is, but that's not caused
>> by my patch.  I can try to come up with a fix, but again, I can't test it.
>>
> Builds now. Using my own .config.

What changed?

> [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
> [    4.791186] scsi host0: sata-dwc
> [    4.794830] ata1: SATA max UDMA/133 irq 36
> [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
> [    4.807959] scsi host1: sata_sil
> [    4.811662] scsi host2: sata_sil
> [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
> [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
>
> [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
> [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
> [    5.206125] Unable to handle kernel paging request for data at address 0x00000000
> [    5.228546] Faulting instruction address: 0xc043a2c8
> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204

Well, that's not good.  Can you translate that address to a line of code?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 12:04                               ` Måns Rullgård
@ 2015-12-18 12:23                                 ` Andy Shevchenko
  2015-12-18 12:49                                   ` Måns Rullgård
  2015-12-18 12:33                                 ` Julian Margetson
  1 sibling, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-18 12:23 UTC (permalink / raw)
  To: Måns Rullgård, Julian Margetson
  Cc: Tejun Heo, linux-ide, linux-kernel

On Fri, 2015-12-18 at 12:04 +0000, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
> 
> > On 12/17/2015 8:06 PM, Måns Rullgård wrote:
> > > Julian Margetson <runaway@candw.ms> writes:
> > > 
> > > > On 12/17/2015 3:53 PM, Måns Rullgård wrote:
> > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > 
> > > > > > On 12/17/2015 2:51 PM, Måns Rullgård wrote:
> > > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > > 
> > > > > > > > On 12/17/2015 1:59 PM, Måns Rullgård wrote:
> > > > > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > > > > 
> > > > > > > > > > I have been running my machine mostly configured
> > > > > > > > > > for pciex1  thus with
> > > > > > > > > > the sata_dwc disabled.
> > > > > > > > > > The changes to sata_dwc-460ex do cause an oops.
> > > > > > > > > > I will try to give more detailed info over this
> > > > > > > > > > weekend .
> > > > > > > > > The driver as is upstream would do that since it
> > > > > > > > > unconditionally
> > > > > > > > > dereferences a null pointer in the probe
> > > > > > > > > function.  My patch fixes that
> > > > > > > > > as a side-effect.
> > > > > > > > > 
> > > > > > > > patching file drivers/ata/Kconfig
> > > > > > > > 
> > > > > > > > Hunk #1 FAILED at 296.
> > > > > > > [...]
> > > > > > > 
> > > > > > > > root@julian-VirtualBox:/usr/src/linux-3.18.25#
> > > > > > > The patch is against 4.4-rc5.
> > > > > > > 
> > > > > >    CC      drivers/ata/sata_dwc_460ex.o
> > > > > > 
> > > > > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> > > > > > ‘sata_dwc_dma_dws’ has initializer but incomplete type
> > > > > > 
> > > > > >    static struct dw_dma_slave sata_dwc_dma_dws = {
> > > > > >                  ^
> > > > > It builds, albeit with an unrelated warning, using the
> > > > > attached config.
> > > > > Maybe there's a missing config dependency somewhere.
> > > > > 
> > > > I am attempting to cross compile under Ubuntu 14.04 X86 in
> > > > Virtualbox
> > > > with your .config.
> > > > 4.4.0-rc5 builds ok with no patches applied .
> > > > Once your patch is applied it fails to build .
> > > > 
> > > > CC      drivers/ata/sata_dwc_460ex.o
> > > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> > > > ‘sata_dwc_dma_dws’ has initializer but incomplete type
> > > >   static struct dw_dma_slave sata_dwc_dma_dws = {
> > > >                 ^
> > > Bizarre.  This is what it looks like here:
> > > 
> > > mru@unicorn:/tmp/linux-sata$ git status
> > > On branch sata-dwc
> > > nothing to commit, working directory clean
> > > mru@unicorn:/tmp/linux-sata$ git describe
> > > v4.4-rc5
> > > mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-
> > > sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> > > e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-
> > > sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> > > mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-
> > > use-dmas-DT-property-to-find-dma-.patch
> > > Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma
> > > channel
> > > mru@unicorn:/tmp/linux-sata$ sha1sum .config
> > > 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
> > > mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc
> > > CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
> > >    HOSTCC  scripts/basic/fixdep
> > >    HOSTCC  scripts/kconfig/conf.o
> > >    SHIPPED scripts/kconfig/zconf.tab.c
> > >    SHIPPED scripts/kconfig/zconf.lex.c
> > >    SHIPPED scripts/kconfig/zconf.hash.c
> > >    HOSTCC  scripts/kconfig/zconf.tab.o
> > >    HOSTLD  scripts/kconfig/conf
> > > scripts/kconfig/conf  --oldconfig Kconfig
> > > #
> > > # configuration written to .config
> > > #
> > > mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc
> > > CROSS_COMPILE=powerpc64-none-linux-gnu-
> > > drivers/ata/sata_dwc_460ex.o
> > > scripts/kconfig/conf  --silentoldconfig Kconfig
> > >    CHK     include/config/kernel.release
> > >    UPD     include/config/kernel.release
> > >    WRAP    arch/powerpc/include/generated/asm/clkdev.h
> > >    WRAP    arch/powerpc/include/generated/asm/div64.h
> > >    WRAP    arch/powerpc/include/generated/asm/irq_regs.h
> > >    WRAP    arch/powerpc/include/generated/asm/irq_work.h
> > >    WRAP    arch/powerpc/include/generated/asm/local64.h
> > >    WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
> > >    WRAP    arch/powerpc/include/generated/asm/preempt.h
> > >    WRAP    arch/powerpc/include/generated/asm/rwsem.h
> > >    WRAP    arch/powerpc/include/generated/asm/vtime.h
> > >    CHK     include/generated/uapi/linux/version.h
> > >    UPD     include/generated/uapi/linux/version.h
> > >    CHK     include/generated/utsrelease.h
> > >    UPD     include/generated/utsrelease.h
> > >    CC      kernel/bounds.s
> > >    CHK     include/generated/bounds.h
> > >    UPD     include/generated/bounds.h
> > >    CHK     include/generated/timeconst.h
> > >    UPD     include/generated/timeconst.h
> > >    CC      arch/powerpc/kernel/asm-offsets.s
> > >    CHK     include/generated/asm-offsets.h
> > >    UPD     include/generated/asm-offsets.h
> > >    CALL    scripts/checksyscalls.sh
> > >    HOSTCC  scripts/dtc/dtc.o
> > >    HOSTCC  scripts/dtc/flattree.o
> > >    HOSTCC  scripts/dtc/fstree.o
> > >    HOSTCC  scripts/dtc/data.o
> > >    HOSTCC  scripts/dtc/livetree.o
> > >    HOSTCC  scripts/dtc/treesource.o
> > >    HOSTCC  scripts/dtc/srcpos.o
> > >    HOSTCC  scripts/dtc/checks.o
> > >    HOSTCC  scripts/dtc/util.o
> > >    SHIPPED scripts/dtc/dtc-lexer.lex.c
> > >    SHIPPED scripts/dtc/dtc-parser.tab.h
> > >    HOSTCC  scripts/dtc/dtc-lexer.lex.o
> > >    SHIPPED scripts/dtc/dtc-parser.tab.c
> > >    HOSTCC  scripts/dtc/dtc-parser.tab.o
> > >    HOSTLD  scripts/dtc/dtc
> > >    CC      scripts/mod/empty.o
> > >    HOSTCC  scripts/mod/mk_elfconfig
> > >    MKELF   scripts/mod/elfconfig.h
> > >    HOSTCC  scripts/mod/modpost.o
> > >    CC      scripts/mod/devicetable-offsets.s
> > >    GEN     scripts/mod/devicetable-offsets.h
> > >    HOSTCC  scripts/mod/file2alias.o
> > >    HOSTCC  scripts/mod/sumversion.o
> > >    HOSTLD  scripts/mod/modpost
> > >    HOSTCC  scripts/kallsyms
> > >    CC      drivers/ata/sata_dwc_460ex.o
> > > drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
> > > drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer
> > > to integer of different size [-Wpointer-to-int-cast]
> > >    dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
> > >                      ^
> > > mru@unicorn:/tmp/linux-sata$
> > > 
> > > Patch file and .config attached.
> > > 
> > > Looking into that warning, I doubt it works as is, but that's not
> > > caused
> > > by my patch.  I can try to come up with a fix, but again, I can't
> > > test it.
> > > 
> > Builds now. Using my own .config.
> 
> What changed?

(Just in case a hint: diffconfig helps to do the job)

> 
> > [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version
> > 1.82
> > [    4.791186] scsi host0: sata-dwc
> > [    4.794830] ata1: SATA max UDMA/133 irq 36
> > [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA
> > activate FIS errata fix
> > [    4.807959] scsi host1: sata_sil
> > [    4.811662] scsi host2: sata_sil
> > [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf
> > 0xd84280080 irq 21
> > [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf
> > 0xd842800c0 irq 21
> > 
> > [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl
> > 300)
> > [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl
> > 310)
> > [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem
> > 0x4bffd0000
> > [    5.206125] Unable to handle kernel paging request for data at
> > address 0x00000000
> > [    5.228546] Faulting instruction address: 0xc043a2c8
> > [    5.248577] Vector: 300 (Data Access) at [eddafae0]
> > [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
> 
> Well, that's not good.  Can you translate that address to a line of
> code?

Besides that, can you enable DYNAMIC_DEBUG in the config and append
'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 12:04                               ` Måns Rullgård
  2015-12-18 12:23                                 ` Andy Shevchenko
@ 2015-12-18 12:33                                 ` Julian Margetson
  2015-12-18 12:38                                   ` Andy Shevchenko
  2015-12-18 12:45                                   ` Måns Rullgård
  1 sibling, 2 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-18 12:33 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/18/2015 8:04 AM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/17/2015 8:06 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/17/2015 3:53 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/17/2015 2:51 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>
>>>>>>>> On 12/17/2015 1:59 PM, Måns Rullgård wrote:
>>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>>>
>>>>>>>>>> I have been running my machine mostly configured for pciex1  thus with
>>>>>>>>>> the sata_dwc disabled.
>>>>>>>>>> The changes to sata_dwc-460ex do cause an oops.
>>>>>>>>>> I will try to give more detailed info over this weekend .
>>>>>>>>> The driver as is upstream would do that since it unconditionally
>>>>>>>>> dereferences a null pointer in the probe function.  My patch fixes that
>>>>>>>>> as a side-effect.
>>>>>>>>>
>>>>>>>> patching file drivers/ata/Kconfig
>>>>>>>>
>>>>>>>> Hunk #1 FAILED at 296.
>>>>>>> [...]
>>>>>>>
>>>>>>>> root@julian-VirtualBox:/usr/src/linux-3.18.25#
>>>>>>> The patch is against 4.4-rc5.
>>>>>>>
>>>>>>     CC      drivers/ata/sata_dwc_460ex.o
>>>>>>
>>>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>>>
>>>>>>     static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>>>                   ^
>>>>> It builds, albeit with an unrelated warning, using the attached config.
>>>>> Maybe there's a missing config dependency somewhere.
>>>>>
>>>> I am attempting to cross compile under Ubuntu 14.04 X86 in Virtualbox
>>>> with your .config.
>>>> 4.4.0-rc5 builds ok with no patches applied .
>>>> Once your patch is applied it fails to build .
>>>>
>>>> CC      drivers/ata/sata_dwc_460ex.o
>>>> drivers/ata/sata_dwc_460ex.c:198:15: error: variable ‘sata_dwc_dma_dws’ has initializer but incomplete type
>>>>    static struct dw_dma_slave sata_dwc_dma_dws = {
>>>>                  ^
>>> Bizarre.  This is what it looks like here:
>>>
>>> mru@unicorn:/tmp/linux-sata$ git status
>>> On branch sata-dwc
>>> nothing to commit, working directory clean
>>> mru@unicorn:/tmp/linux-sata$ git describe
>>> v4.4-rc5
>>> mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>>> e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>>> mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
>>> Applying: ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
>>> mru@unicorn:/tmp/linux-sata$ sha1sum .config
>>> 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
>>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
>>>     HOSTCC  scripts/basic/fixdep
>>>     HOSTCC  scripts/kconfig/conf.o
>>>     SHIPPED scripts/kconfig/zconf.tab.c
>>>     SHIPPED scripts/kconfig/zconf.lex.c
>>>     SHIPPED scripts/kconfig/zconf.hash.c
>>>     HOSTCC  scripts/kconfig/zconf.tab.o
>>>     HOSTLD  scripts/kconfig/conf
>>> scripts/kconfig/conf  --oldconfig Kconfig
>>> #
>>> # configuration written to .config
>>> #
>>> mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc CROSS_COMPILE=powerpc64-none-linux-gnu- drivers/ata/sata_dwc_460ex.o
>>> scripts/kconfig/conf  --silentoldconfig Kconfig
>>>     CHK     include/config/kernel.release
>>>     UPD     include/config/kernel.release
>>>     WRAP    arch/powerpc/include/generated/asm/clkdev.h
>>>     WRAP    arch/powerpc/include/generated/asm/div64.h
>>>     WRAP    arch/powerpc/include/generated/asm/irq_regs.h
>>>     WRAP    arch/powerpc/include/generated/asm/irq_work.h
>>>     WRAP    arch/powerpc/include/generated/asm/local64.h
>>>     WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
>>>     WRAP    arch/powerpc/include/generated/asm/preempt.h
>>>     WRAP    arch/powerpc/include/generated/asm/rwsem.h
>>>     WRAP    arch/powerpc/include/generated/asm/vtime.h
>>>     CHK     include/generated/uapi/linux/version.h
>>>     UPD     include/generated/uapi/linux/version.h
>>>     CHK     include/generated/utsrelease.h
>>>     UPD     include/generated/utsrelease.h
>>>     CC      kernel/bounds.s
>>>     CHK     include/generated/bounds.h
>>>     UPD     include/generated/bounds.h
>>>     CHK     include/generated/timeconst.h
>>>     UPD     include/generated/timeconst.h
>>>     CC      arch/powerpc/kernel/asm-offsets.s
>>>     CHK     include/generated/asm-offsets.h
>>>     UPD     include/generated/asm-offsets.h
>>>     CALL    scripts/checksyscalls.sh
>>>     HOSTCC  scripts/dtc/dtc.o
>>>     HOSTCC  scripts/dtc/flattree.o
>>>     HOSTCC  scripts/dtc/fstree.o
>>>     HOSTCC  scripts/dtc/data.o
>>>     HOSTCC  scripts/dtc/livetree.o
>>>     HOSTCC  scripts/dtc/treesource.o
>>>     HOSTCC  scripts/dtc/srcpos.o
>>>     HOSTCC  scripts/dtc/checks.o
>>>     HOSTCC  scripts/dtc/util.o
>>>     SHIPPED scripts/dtc/dtc-lexer.lex.c
>>>     SHIPPED scripts/dtc/dtc-parser.tab.h
>>>     HOSTCC  scripts/dtc/dtc-lexer.lex.o
>>>     SHIPPED scripts/dtc/dtc-parser.tab.c
>>>     HOSTCC  scripts/dtc/dtc-parser.tab.o
>>>     HOSTLD  scripts/dtc/dtc
>>>     CC      scripts/mod/empty.o
>>>     HOSTCC  scripts/mod/mk_elfconfig
>>>     MKELF   scripts/mod/elfconfig.h
>>>     HOSTCC  scripts/mod/modpost.o
>>>     CC      scripts/mod/devicetable-offsets.s
>>>     GEN     scripts/mod/devicetable-offsets.h
>>>     HOSTCC  scripts/mod/file2alias.o
>>>     HOSTCC  scripts/mod/sumversion.o
>>>     HOSTLD  scripts/mod/modpost
>>>     HOSTCC  scripts/kallsyms
>>>     CC      drivers/ata/sata_dwc_460ex.o
>>> drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
>>> drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>>>     dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
>>>                       ^
>>> mru@unicorn:/tmp/linux-sata$
>>>
>>> Patch file and .config attached.
>>>
>>> Looking into that warning, I doubt it works as is, but that's not caused
>>> by my patch.  I can try to come up with a fix, but again, I can't test it.
>>>
>> Builds now. Using my own .config.
> What changed?
I may have messed up the patch initially .
>
>> [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
>> [    4.791186] scsi host0: sata-dwc
>> [    4.794830] ata1: SATA max UDMA/133 irq 36
>> [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
>> [    4.807959] scsi host1: sata_sil
>> [    4.811662] scsi host2: sata_sil
>> [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
>> [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
>>
>> [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>> [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
>> [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
>> [    5.206125] Unable to handle kernel paging request for data at address 0x00000000
>> [    5.228546] Faulting instruction address: 0xc043a2c8
>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
> Well, that's not good.  Can you translate that address to a line of code?
>
need some guidance on method .


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 12:33                                 ` Julian Margetson
@ 2015-12-18 12:38                                   ` Andy Shevchenko
  2015-12-18 12:45                                   ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-18 12:38 UTC (permalink / raw)
  To: Julian Margetson, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

On Fri, 2015-12-18 at 08:33 -0400, Julian Margetson wrote:
> On 12/18/2015 8:04 AM, Måns Rullgård wrote:
> > Julian Margetson <runaway@candw.ms> writes:
> > 
> > > On 12/17/2015 8:06 PM, Måns Rullgård wrote:
> > > > Julian Margetson <runaway@candw.ms> writes:
> > > > 
> > > > > On 12/17/2015 3:53 PM, Måns Rullgård wrote:
> > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > 
> > > > > > > On 12/17/2015 2:51 PM, Måns Rullgård wrote:
> > > > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > > > 
> > > > > > > > > On 12/17/2015 1:59 PM, Måns Rullgård wrote:
> > > > > > > > > > Julian Margetson <runaway@candw.ms> writes:
> > > > > > > > > > 
> > > > > > > > > > > I have been running my machine mostly configured
> > > > > > > > > > > for pciex1  thus with
> > > > > > > > > > > the sata_dwc disabled.
> > > > > > > > > > > The changes to sata_dwc-460ex do cause an oops.
> > > > > > > > > > > I will try to give more detailed info over this
> > > > > > > > > > > weekend .
> > > > > > > > > > The driver as is upstream would do that since it
> > > > > > > > > > unconditionally
> > > > > > > > > > dereferences a null pointer in the probe
> > > > > > > > > > function.  My patch fixes that
> > > > > > > > > > as a side-effect.
> > > > > > > > > > 
> > > > > > > > > patching file drivers/ata/Kconfig
> > > > > > > > > 
> > > > > > > > > Hunk #1 FAILED at 296.
> > > > > > > > [...]
> > > > > > > > 
> > > > > > > > > root@julian-VirtualBox:/usr/src/linux-3.18.25#
> > > > > > > > The patch is against 4.4-rc5.
> > > > > > > > 
> > > > > > >     CC      drivers/ata/sata_dwc_460ex.o
> > > > > > > 
> > > > > > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> > > > > > > ‘sata_dwc_dma_dws’ has initializer but incomplete
> > > > > > > type
> > > > > > > 
> > > > > > >     static struct dw_dma_slave sata_dwc_dma_dws = {
> > > > > > >                   ^
> > > > > > It builds, albeit with an unrelated warning, using the
> > > > > > attached config.
> > > > > > Maybe there's a missing config dependency somewhere.
> > > > > > 
> > > > > I am attempting to cross compile under Ubuntu 14.04 X86 in
> > > > > Virtualbox
> > > > > with your .config.
> > > > > 4.4.0-rc5 builds ok with no patches applied .
> > > > > Once your patch is applied it fails to build .
> > > > > 
> > > > > CC      drivers/ata/sata_dwc_460ex.o
> > > > > drivers/ata/sata_dwc_460ex.c:198:15: error: variable
> > > > > ‘sata_dwc_dma_dws’ has initializer but incomplete type
> > > > >    static struct dw_dma_slave sata_dwc_dma_dws = {
> > > > >                  ^
> > > > Bizarre.  This is what it looks like here:
> > > > 
> > > > mru@unicorn:/tmp/linux-sata$ git status
> > > > On branch sata-dwc
> > > > nothing to commit, working directory clean
> > > > mru@unicorn:/tmp/linux-sata$ git describe
> > > > v4.4-rc5
> > > > mru@unicorn:/tmp/linux-sata$ sha1sum /tmp/0001-ata-
> > > > sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> > > > e300971aa483390f82de2e9120dc16e460e74feb  /tmp/0001-ata-
> > > > sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> > > > mru@unicorn:/tmp/linux-sata$ git am /tmp/0001-ata-
> > > > sata_dwc_460ex-use-dmas-DT-property-to-find-dma-.patch
> > > > Applying: ata: sata_dwc_460ex: use "dmas" DT property to find
> > > > dma channel
> > > > mru@unicorn:/tmp/linux-sata$ sha1sum .config
> > > > 4e7615b8d2fa9a1c4b4ae9ffc363aefcaf3789ca  .config
> > > > mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc
> > > > CROSS_COMPILE=powerpc64-none-linux-gnu- oldconfig
> > > >     HOSTCC  scripts/basic/fixdep
> > > >     HOSTCC  scripts/kconfig/conf.o
> > > >     SHIPPED scripts/kconfig/zconf.tab.c
> > > >     SHIPPED scripts/kconfig/zconf.lex.c
> > > >     SHIPPED scripts/kconfig/zconf.hash.c
> > > >     HOSTCC  scripts/kconfig/zconf.tab.o
> > > >     HOSTLD  scripts/kconfig/conf
> > > > scripts/kconfig/conf  --oldconfig Kconfig
> > > > #
> > > > # configuration written to .config
> > > > #
> > > > mru@unicorn:/tmp/linux-sata$ make ARCH=powerpc
> > > > CROSS_COMPILE=powerpc64-none-linux-gnu-
> > > > drivers/ata/sata_dwc_460ex.o
> > > > scripts/kconfig/conf  --silentoldconfig Kconfig
> > > >     CHK     include/config/kernel.release
> > > >     UPD     include/config/kernel.release
> > > >     WRAP    arch/powerpc/include/generated/asm/clkdev.h
> > > >     WRAP    arch/powerpc/include/generated/asm/div64.h
> > > >     WRAP    arch/powerpc/include/generated/asm/irq_regs.h
> > > >     WRAP    arch/powerpc/include/generated/asm/irq_work.h
> > > >     WRAP    arch/powerpc/include/generated/asm/local64.h
> > > >     WRAP    arch/powerpc/include/generated/asm/mcs_spinlock.h
> > > >     WRAP    arch/powerpc/include/generated/asm/preempt.h
> > > >     WRAP    arch/powerpc/include/generated/asm/rwsem.h
> > > >     WRAP    arch/powerpc/include/generated/asm/vtime.h
> > > >     CHK     include/generated/uapi/linux/version.h
> > > >     UPD     include/generated/uapi/linux/version.h
> > > >     CHK     include/generated/utsrelease.h
> > > >     UPD     include/generated/utsrelease.h
> > > >     CC      kernel/bounds.s
> > > >     CHK     include/generated/bounds.h
> > > >     UPD     include/generated/bounds.h
> > > >     CHK     include/generated/timeconst.h
> > > >     UPD     include/generated/timeconst.h
> > > >     CC      arch/powerpc/kernel/asm-offsets.s
> > > >     CHK     include/generated/asm-offsets.h
> > > >     UPD     include/generated/asm-offsets.h
> > > >     CALL    scripts/checksyscalls.sh
> > > >     HOSTCC  scripts/dtc/dtc.o
> > > >     HOSTCC  scripts/dtc/flattree.o
> > > >     HOSTCC  scripts/dtc/fstree.o
> > > >     HOSTCC  scripts/dtc/data.o
> > > >     HOSTCC  scripts/dtc/livetree.o
> > > >     HOSTCC  scripts/dtc/treesource.o
> > > >     HOSTCC  scripts/dtc/srcpos.o
> > > >     HOSTCC  scripts/dtc/checks.o
> > > >     HOSTCC  scripts/dtc/util.o
> > > >     SHIPPED scripts/dtc/dtc-lexer.lex.c
> > > >     SHIPPED scripts/dtc/dtc-parser.tab.h
> > > >     HOSTCC  scripts/dtc/dtc-lexer.lex.o
> > > >     SHIPPED scripts/dtc/dtc-parser.tab.c
> > > >     HOSTCC  scripts/dtc/dtc-parser.tab.o
> > > >     HOSTLD  scripts/dtc/dtc
> > > >     CC      scripts/mod/empty.o
> > > >     HOSTCC  scripts/mod/mk_elfconfig
> > > >     MKELF   scripts/mod/elfconfig.h
> > > >     HOSTCC  scripts/mod/modpost.o
> > > >     CC      scripts/mod/devicetable-offsets.s
> > > >     GEN     scripts/mod/devicetable-offsets.h
> > > >     HOSTCC  scripts/mod/file2alias.o
> > > >     HOSTCC  scripts/mod/sumversion.o
> > > >     HOSTLD  scripts/mod/modpost
> > > >     HOSTCC  scripts/kallsyms
> > > >     CC      drivers/ata/sata_dwc_460ex.o
> > > > drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
> > > > drivers/ata/sata_dwc_460ex.c:383:20: warning: cast from pointer
> > > > to integer of different size [-Wpointer-to-int-cast]
> > > >     dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
> > > >                       ^
> > > > mru@unicorn:/tmp/linux-sata$
> > > > 
> > > > Patch file and .config attached.
> > > > 
> > > > Looking into that warning, I doubt it works as is, but that's
> > > > not caused
> > > > by my patch.  I can try to come up with a fix, but again, I
> > > > can't test it.
> > > > 
> > > Builds now. Using my own .config.
> > What changed?
> I may have messed up the patch initially .
> > 
> > > [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version
> > > 1.82
> > > [    4.791186] scsi host0: sata-dwc
> > > [    4.794830] ata1: SATA max UDMA/133 irq 36
> > > [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA
> > > activate FIS errata fix
> > > [    4.807959] scsi host1: sata_sil
> > > [    4.811662] scsi host2: sata_sil
> > > [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf
> > > 0xd84280080 irq 21
> > > [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf
> > > 0xd842800c0 irq 21
> > > 
> > > [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl
> > > 300)
> > > [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl
> > > 310)
> > > [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem
> > > 0x4bffd0000
> > > [    5.206125] Unable to handle kernel paging request for data at
> > > address 0x00000000
> > > [    5.228546] Faulting instruction address: 0xc043a2c8
> > > [    5.248577] Vector: 300 (Data Access) at [eddafae0]
> > > [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
> > Well, that's not good.  Can you translate that address to a line of
> > code?
> > 
> need some guidance on method .

Your toolchain has to have addr2line binary. It does a job if you
compile kernel with enough debug information (you may try to use make
CONFIG_DEBUG_INFO=y IIRC and then your specific addr2line binary).


-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 12:33                                 ` Julian Margetson
  2015-12-18 12:38                                   ` Andy Shevchenko
@ 2015-12-18 12:45                                   ` Måns Rullgård
       [not found]                                     ` <56740F9F.5020500@candw.ms>
  1 sibling, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 12:45 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

>>> Builds now. Using my own .config.
>> What changed?
> I may have messed up the patch initially .

Probably.  Let's pretend it never happened.

>>> [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
>>> [    4.791186] scsi host0: sata-dwc
>>> [    4.794830] ata1: SATA max UDMA/133 irq 36
>>> [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
>>> [    4.807959] scsi host1: sata_sil
>>> [    4.811662] scsi host2: sata_sil
>>> [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
>>> [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
>>>
>>> [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>>> [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
>>> [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
>>> [    5.206125] Unable to handle kernel paging request for data at address 0x00000000
>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>> Well, that's not good.  Can you translate that address to a line of code?
>>
> need some guidance on method .

Enable CONFIG_DEBUG_INFO, then use this command:

$ addr2line -e vmlinux 0xc043a2c8

Obviously substitute the actual crashing address if it changes.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 12:23                                 ` Andy Shevchenko
@ 2015-12-18 12:49                                   ` Måns Rullgård
       [not found]                                     ` <5674271B.9090308@candw.ms>
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 12:49 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

>> > [    5.206125] Unable to handle kernel paging request for data at
>> > address 0x00000000
>> > [    5.228546] Faulting instruction address: 0xc043a2c8
>> > [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>> > [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>> 
>> Well, that's not good.  Can you translate that address to a line of
>> code?
>
> Besides that, can you enable DYNAMIC_DEBUG in the config and append
> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?

Enabling debug messages in the sata_dwc driver might also be informative.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                     ` <56740F9F.5020500@candw.ms>
@ 2015-12-18 14:24                                       ` Andy Shevchenko
  2015-12-18 14:27                                       ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-18 14:24 UTC (permalink / raw)
  To: Julian Margetson, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

On Fri, 2015-12-18 at 09:52 -0400, Julian Margetson wrote:
> On 12/18/2015 8:45 AM, Måns Rullgård wrote:
> > Julian Margetson <runaway@candw.ms> writes:

> > > > > [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller
> > > > > version 1.82
> > > > > [    4.791186] scsi host0: sata-dwc
> > > > > [    4.794830] ata1: SATA max UDMA/133 irq 36
> > > > > [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA
> > > > > activate FIS errata fix
> > > > > [    4.807959] scsi host1: sata_sil
> > > > > [    4.811662] scsi host2: sata_sil
> > > > > [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000
> > > > > tf 0xd84280080 irq 21
> > > > > [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000
> > > > > tf 0xd842800c0 irq 21
> > > > > 
> > > > > [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123
> > > > > SControl 300)
> > > > > [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113
> > > > > SControl 310)
> > > > > [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem
> > > > > 0x4bffd0000
> > > > > [    5.206125] Unable to handle kernel paging request for
> > > > > data at address 0x00000000
> > > > > [    5.228546] Faulting instruction address: 0xc043a2c8
> > > > > [    5.248577] Vector: 300 (Data Access) at [eddafae0]
> > > > > [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
> > > > Well, that's not good.  Can you translate that address to a
> > > > line of code?
> > > > 
> > > need some guidance on method .
> > Enable CONFIG_DEBUG_INFO, then use this command:
> > 
> > $ addr2line -e vmlinux 0xc043a2c8
> > 
> > Obviously substitute the actual crashing address if it changes.
> > 
> addr2line -e vmlinux 0xc044b41c
> arch/powerpc/lib/copy_32.S:?

memcpy I suppose. Might be copy to unmapped memory.

Anyway, can you enable debug options as I suggested including debug for
sata driver ('dw_dmac_core.dyndbg dw_dmac.dyndbg sata_dwc_460ex.dydbg'
to the cmdline and CONFIG_DYNAMIC_DEBUG=y)?


-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                     ` <56740F9F.5020500@candw.ms>
  2015-12-18 14:24                                       ` Andy Shevchenko
@ 2015-12-18 14:27                                       ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 14:27 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 8:45 AM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>>> Builds now. Using my own .config.
>>>> What changed?
>>> I may have messed up the patch initially .
>> Probably.  Let's pretend it never happened.
>>
>>>>> [    4.784199] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
>>>>> [    4.791186] scsi host0: sata-dwc
>>>>> [    4.794830] ata1: SATA max UDMA/133 irq 36
>>>>> [    4.799463] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
>>>>> [    4.807959] scsi host1: sata_sil
>>>>> [    4.811662] scsi host2: sata_sil
>>>>> [    4.815242] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
>>>>> [    4.822990] ata3: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
>>>>>
>>>>> [    5.143502] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
>>>>> [    5.164367] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
>>>>> [    5.185174] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
>>>>> [    5.206125] Unable to handle kernel paging request for data at address 0x00000000
>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>> Well, that's not good.  Can you translate that address to a line of code?
>>>>
>>> need some guidance on method .
>> Enable CONFIG_DEBUG_INFO, then use this command:
>>
>> $ addr2line -e vmlinux 0xc043a2c8
>>
>> Obviously substitute the actual crashing address if it changes.
>>
> addr2line -e vmlinux 0xc044b41c
> arch/powerpc/lib/copy_32.S:?

There's obviously a mismatch somewhere since we know that
sata_dwc_qc_issue isn't in copy_32.S.  Please post the full crash report
you got this address from.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                     ` <5674271B.9090308@candw.ms>
@ 2015-12-18 17:18                                       ` Måns Rullgård
  2015-12-18 18:48                                         ` Andy Shevchenko
       [not found]                                         ` <56745BA4.1090607@candw.ms>
  0 siblings, 2 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 17:18 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>
>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>> address 0x00000000
>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>> Well, that's not good.  Can you translate that address to a line of
>>>> code?
>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>> Enabling debug messages in the sata_dwc driver might also be informative.
>>
> Changed the sata-dwc to a module .
>
> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

That's strange.  The only way that can happen is if
dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
happening.  Did you turn on debug messages in dw_dma?  You can enable
some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
of drivers/dma/dw/core.c

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 17:18                                       ` Måns Rullgård
@ 2015-12-18 18:48                                         ` Andy Shevchenko
       [not found]                                         ` <56745BA4.1090607@candw.ms>
  1 sibling, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-18 18:48 UTC (permalink / raw)
  To: Måns Rullgård, Julian Margetson
  Cc: Tejun Heo, linux-ide, linux-kernel

On Fri, 2015-12-18 at 17:18 +0000, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
> 
> > On 12/18/2015 8:49 AM, Måns Rullgård wrote:
> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > > 
> > > > > > [    5.206125] Unable to handle kernel paging request for
> > > > > > data at
> > > > > > address 0x00000000
> > > > > > [    5.228546] Faulting instruction address: 0xc043a2c8
> > > > > > [    5.248577] Vector: 300 (Data Access) at [eddafae0]
> > > > > > [    5.268658]     pc: c043a2c8:
> > > > > > sata_dwc_qc_issue+0xb8/0x204
> > > > > Well, that's not good.  Can you translate that address to a
> > > > > line of
> > > > > code?
> > > > Besides that, can you enable DYNAMIC_DEBUG in the config and
> > > > append
> > > > 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
> > > Enabling debug messages in the sata_dwc driver might also be
> > > informative.
> > > 
> > Changed the sata-dwc to a module .
> > 
> > [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag:
> > dma_dwc_xfer_setup returns NULL
> > [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag:
> > dma_dwc_xfer_setup returns NULL
> 
> That's strange.  The only way that can happen is if
> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
> happening.  Did you turn on debug messages in dw_dma?  You can enable
> some extra debug messages by adding "#define VERBOSE_DEBUG" at the
> top
> of drivers/dma/dw/core.c

There are options also for DMA Engine such as CONFIG_DMADEVICES_DEBUG

> 

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                         ` <56745BA4.1090607@candw.ms>
@ 2015-12-18 22:33                                           ` Måns Rullgård
  2015-12-18 22:49                                             ` Julian Margetson
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 22:33 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>
>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>> address 0x00000000
>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>> code?
>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>
>>> Changed the sata-dwc to a module .
>>>
>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> That's strange.  The only way that can happen is if
>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>> of drivers/dma/dw/core.c
>>
>
> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

Could you post the entire kernel log?  There might be important
information before the errors start.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 22:33                                           ` Måns Rullgård
@ 2015-12-18 22:49                                             ` Julian Margetson
  2015-12-18 23:16                                               ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-18 22:49 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/18/2015 6:33 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>
>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>> address 0x00000000
>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>> code?
>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>
>>>> Changed the sata-dwc to a module .
>>>>
>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> That's strange.  The only way that can happen is if
>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>> of drivers/dma/dw/core.c
>>>
>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> Could you post the entire kernel log?  There might be important
> information before the errors start.
>


[-- Attachment #2: Kernel_Log.log --]
[-- Type: text/plain, Size: 176672 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000712] console [tty0] enabled
[    0.000749] pid_max: default: 32768 minimum: 301
[    0.000859] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000886] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004722] devtmpfs: initialized
[    0.007452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007891] xor: measuring software checksum speed
[    0.017379]    8regs     :   856.000 MB/sec
[    0.027386]    8regs_prefetch:   784.000 MB/sec
[    0.037420]    32regs    :  1120.000 MB/sec
[    0.047456]    32regs_prefetch:   996.000 MB/sec
[    0.047476] xor: using function: 32regs (1120.000 MB/sec)
[    0.047525] prandom: seed boundary self test passed
[    0.049987] prandom: 100 self tests passed
[    0.050597] NET: Registered protocol family 16
[    0.053576] cpuidle: using governor ladder
[    0.056611] cpuidle: using governor menu
[    0.057024] 256k L2-cache enabled
[    0.057143] PCIE0: Port disabled via device-tree
[    0.057205] PCIE1: Checking link...
[    0.057222] PCIE1: Device detected, waiting for link...
[    0.057241] PCIE1: link is up !
[    0.159444] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.159494]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.159530]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.159562]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.159600] 4xx PCI DMA offset set to 0x00000000
[    0.159618] 4xx PCI DMA window base to 0x0000000000000000
[    0.159637] DMA window size 0x0000000080000000
[    0.159672] PCIE1: successfully set as root-complex
[    0.159748] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.159777]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.159812]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.159843]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.159872] 4xx PCI DMA offset set to 0x00000000
[    0.159890] 4xx PCI DMA window base to 0x0000000000000000
[    0.159908] DMA window size 0x0000000080000000
[    0.160395] PCI: Probing PCI hardware
[    0.160514] PCI host bridge to bus 0000:80
[    0.160544] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.160582] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.160619] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.160658] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.160794] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.161682] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161912] PCI host bridge to bus 0001:00
[    0.161939] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.161965] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.162018] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.162056] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.162684] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162726] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.162752] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.162783] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162826] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.162865] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.162898] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.162937] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.162965] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162988] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.163035] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.163062] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.163166] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.163196] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.163225] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.163257] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.163284] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.163309] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.163335] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.163360] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.163386] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.190310] raid6: int32x1  gen()   300 MB/s
[    0.207464] raid6: int32x1  xor()   173 MB/s
[    0.224490] raid6: int32x2  gen()   433 MB/s
[    0.241539] raid6: int32x2  xor()   240 MB/s
[    0.258633] raid6: int32x4  gen()   476 MB/s
[    0.275711] raid6: int32x4  xor()   267 MB/s
[    0.292768] raid6: int32x8  gen()   234 MB/s
[    0.309940] raid6: int32x8  xor()   218 MB/s
[    0.309964] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.309983] raid6: .... xor() 267 MB/s, rmw enabled
[    0.310002] raid6: using intx1 recovery algorithm
[    0.310317] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.310361] vgaarb: loaded
[    0.310376] vgaarb: bridge control possible 0000:81:00.0
[    0.310653] SCSI subsystem initialized
[    0.311053] usbcore: registered new interface driver usbfs
[    0.311125] usbcore: registered new interface driver hub
[    0.311190] usbcore: registered new device driver usb
[    0.311302] pps_core: LinuxPPS API ver. 1 registered
[    0.311322] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.311373] PTP clock support registered
[    0.311533] EDAC MC: Ver: 3.0.0
[    0.311933] Advanced Linux Sound Architecture Driver Initialized.
[    0.331845] DMA-API: preallocated 65536 debug entries
[    0.331887] DMA-API: debugging enabled by kernel config
[    0.331945] clocksource: Switched to clocksource timebase
[    0.338562] NET: Registered protocol family 2
[    0.339176] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.339296] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.339621] TCP: Hash tables configured (established 8192 bind 8192)
[    0.339755] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.339837] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.340198] NET: Registered protocol family 1
[    0.340535] RPC: Registered named UNIX socket transport module.
[    0.340566] RPC: Registered udp transport module.
[    0.340584] RPC: Registered tcp transport module.
[    0.340603] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.341367] Could not remap bcsr
[    0.344558] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.347392] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.357570] ntfs: driver 2.1.32 [Flags: R/W].
[    0.358147] fuse init (API version 7.23)
[    0.362347] async_tx: api initialized (async)
[    0.362472] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.362510] io scheduler noop registered
[    0.362664] io scheduler cfq registered (default)
[    0.364655] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.364684] crc32: self tests passed, processed 225944 bytes in 891693 nsec
[    0.365718] crc32c: CRC_LE_BITS = 64
[    0.365740] crc32c: self tests passed, processed 225944 bytes in 446640 nsec
[    0.432172] crc32_combine: 8373 self tests passed
[    0.498793] crc32c_combine: 8373 self tests passed
[    0.498861] glob: 64 self-tests passed, 0 failed
[    0.537122] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.537920] console [ttyS0] disabled
[    0.558119] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.492770] console [ttyS0] enabled
[    1.516892] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.526768] console [ttyS0] disabled
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000712] console [tty0] enabled
[    0.000749] pid_max: default: 32768 minimum: 301
[    0.000859] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000886] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004722] devtmpfs: initialized
[    0.007452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007891] xor: measuring software checksum speed
[    0.017379]    8regs     :   856.000 MB/sec
[    0.027386]    8regs_prefetch:   784.000 MB/sec
[    0.037420]    32regs    :  1120.000 MB/sec
[    0.047456]    32regs_prefetch:   996.000 MB/sec
[    0.047476] xor: using function: 32regs (1120.000 MB/sec)
[    0.047525] prandom: seed boundary self test passed
[    0.049987] prandom: 100 self tests passed
[    0.050597] NET: Registered protocol family 16
[    0.053576] cpuidle: using governor ladder
[    0.056611] cpuidle: using governor menu
[    0.057024] 256k L2-cache enabled
[    0.057143] PCIE0: Port disabled via device-tree
[    0.057205] PCIE1: Checking link...
[    0.057222] PCIE1: Device detected, waiting for link...
[    0.057241] PCIE1: link is up !
[    0.159444] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.159494]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.159530]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.159562]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.159600] 4xx PCI DMA offset set to 0x00000000
[    0.159618] 4xx PCI DMA window base to 0x0000000000000000
[    0.159637] DMA window size 0x0000000080000000
[    0.159672] PCIE1: successfully set as root-complex
[    0.159748] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.159777]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.159812]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.159843]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.159872] 4xx PCI DMA offset set to 0x00000000
[    0.159890] 4xx PCI DMA window base to 0x0000000000000000
[    0.159908] DMA window size 0x0000000080000000
[    0.160395] PCI: Probing PCI hardware
[    0.160514] PCI host bridge to bus 0000:80
[    0.160544] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.160582] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.160619] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.160658] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.160794] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.161682] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161912] PCI host bridge to bus 0001:00
[    0.161939] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.161965] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.162018] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.162056] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.162684] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162726] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.162752] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.162783] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162826] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.162865] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.162898] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.162937] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.162965] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162988] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.163035] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.163062] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.163166] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.163196] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.163225] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.163257] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.163284] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.163309] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.163335] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.163360] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.163386] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.190310] raid6: int32x1  gen()   300 MB/s
[    0.207464] raid6: int32x1  xor()   173 MB/s
[    0.224490] raid6: int32x2  gen()   433 MB/s
[    0.241539] raid6: int32x2  xor()   240 MB/s
[    0.258633] raid6: int32x4  gen()   476 MB/s
[    0.275711] raid6: int32x4  xor()   267 MB/s
[    0.292768] raid6: int32x8  gen()   234 MB/s
[    0.309940] raid6: int32x8  xor()   218 MB/s
[    0.309964] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.309983] raid6: .... xor() 267 MB/s, rmw enabled
[    0.310002] raid6: using intx1 recovery algorithm
[    0.310317] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.310361] vgaarb: loaded
[    0.310376] vgaarb: bridge control possible 0000:81:00.0
[    0.310653] SCSI subsystem initialized
[    0.311053] usbcore: registered new interface driver usbfs
[    0.311125] usbcore: registered new interface driver hub
[    0.311190] usbcore: registered new device driver usb
[    0.311302] pps_core: LinuxPPS API ver. 1 registered
[    0.311322] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.311373] PTP clock support registered
[    0.311533] EDAC MC: Ver: 3.0.0
[    0.311933] Advanced Linux Sound Architecture Driver Initialized.
[    0.331845] DMA-API: preallocated 65536 debug entries
[    0.331887] DMA-API: debugging enabled by kernel config
[    0.331945] clocksource: Switched to clocksource timebase
[    0.338562] NET: Registered protocol family 2
[    0.339176] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.339296] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.339621] TCP: Hash tables configured (established 8192 bind 8192)
[    0.339755] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.339837] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.340198] NET: Registered protocol family 1
[    0.340535] RPC: Registered named UNIX socket transport module.
[    0.340566] RPC: Registered udp transport module.
[    0.340584] RPC: Registered tcp transport module.
[    0.340603] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.341367] Could not remap bcsr
[    0.344558] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.347392] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.357570] ntfs: driver 2.1.32 [Flags: R/W].
[    0.358147] fuse init (API version 7.23)
[    0.362347] async_tx: api initialized (async)
[    0.362472] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.362510] io scheduler noop registered
[    0.362664] io scheduler cfq registered (default)
[    0.364655] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.364684] crc32: self tests passed, processed 225944 bytes in 891693 nsec
[    0.365718] crc32c: CRC_LE_BITS = 64
[    0.365740] crc32c: self tests passed, processed 225944 bytes in 446640 nsec
[    0.432172] crc32_combine: 8373 self tests passed
[    0.498793] crc32c_combine: 8373 self tests passed
[    0.498861] glob: 64 self-tests passed, 0 failed
[    0.537122] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.537920] console [ttyS0] disabled
[    0.558119] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.492770] console [ttyS0] enabled
[    1.516892] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.526768] console [ttyS0] disabled
[    1.530457] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    2.489950] console [ttyS0] enabled
[    2.494121] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    2.503488] Generic non-volatile memory driver v1.1
[    2.508674] [drm] Initialized drm 1.1.0 20060810
[    2.513406] [drm] radeon kernel modesetting enabled.
[    2.519148] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    2.527166] [drm] register mmio base: 0xe90000000
[    2.531913] [drm] register mmio size: 262144
[    2.867989] ATOM BIOS: C44501
[    2.871326] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    2.880256] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    2.887945] [drm] Detected VRAM RAM=1024M, BAR=256M
[    2.892844] [drm] RAM width 128bits DDR
[    2.896882] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    2.903371] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    2.909921] [TTM] Initializing pool allocator
[    2.914384] [drm] radeon: 1024M of VRAM memory ready
[    2.919392] [drm] radeon: 2048M of GTT memory ready.
[    2.924436] [drm] Loading verde Microcode
[    2.928504] [drm] Internal thermal controller with fan control
[    2.934582] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    2.941131] [drm:radeon_pm_init] *ERROR* radeon: dpm initialization failed
[    2.948228] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    2.957448] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    2.965622] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    2.982377] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.043979] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.051334] radeon 0000:81:00.0: WB enabled
[    3.055562] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.065687] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.075808] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.085930] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.096051] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.136587] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.146729] radeon 0000:81:00.0: VCE init error (-22).
[    3.151902] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.158543] [drm] Driver supports precise vblank timestamp query.
[    3.164662] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.170591] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.178860] radeon 0000:81:00.0: radeon: using MSI.
[    3.183820] [drm] radeon: irq initialized.
[    3.756528] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    3.765377] radeon 0000:81:00.0: disabling GPU acceleration
[    3.973890] [drm] Radeon Display Connectors
[    3.978173] [drm] Connector 0:
[    3.981273] [drm]   HDMI-A-1
[    3.984180] [drm]   HPD4
[    3.986735] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    3.994153] [drm]   Encoders:
[    3.997141] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.001429] [drm] Connector 1:
[    4.004502] [drm]   DVI-I-1
[    4.007313] [drm]   HPD2
[    4.009868] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.017287] [drm]   Encoders:
[    4.020273] [drm]     DFP2: INTERNAL_UNIPHY
[    4.024475] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    4.140753] [drm] fb mappable at 0x80678000
[    4.144971] [drm] vram apper at 0x80000000
[    4.149084] [drm] size 8294400
[    4.152157] [drm] fb depth is 24
[    4.155403] [drm]    pitch is 7680
[    4.246716] Console: switching to colour frame buffer device 240x67
[    4.324952] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    4.333963] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    4.351179] brd: module loaded
[    4.358887] loop: module loaded
[    4.362608] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    4.371071] scsi host0: sata_sil
[    4.374795] scsi host1: sata_sil
[    4.378383] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    4.386132] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    4.394503] PPC 4xx OCP EMAC driver, version 3.54
[    4.400074] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    4.406281] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    4.412024] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    4.419598] TAH /plb/opb/emac-tah@ef601350 initialized
[    4.425084] TAH /plb/opb/emac-tah@ef601450 initialized
[    4.430804] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    4.438299] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    4.445594] eth0: found Generic MII PHY (0x00)
[    4.450488] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    4.457926] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    4.465222] eth1: found Generic MII PHY (0x01)
[    4.469988] PPP generic driver version 2.4.2
[    4.474691] PPP BSD Compression module registered
[    4.479694] PPP Deflate Compression module registered
[    4.485052] NET: Registered protocol family 24
[    4.489976] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.497060] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    4.502045] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    4.511029] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    4.522962] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    4.529708] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.536907] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.544552] usb usb1: Product: OF EHCI
[    4.548527] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    4.555342] usb usb1: SerialNumber: PPC-OF USB
[    4.560462] hub 1-0:1.0: USB hub found
[    4.564529] hub 1-0:1.0: 1 port detected
[    4.582979] ehci-pci: EHCI PCI platform driver
[    4.601490] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.621863] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    4.640451] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    4.662481] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    4.723972] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.751239] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    4.791949] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    4.840608] ata1.00: configured for UDMA/100
[    4.883959] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    4.908224] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    4.955702] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.976382] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.019198] sd 0:0:0:0: [sda] Write Protect is off
[    5.059073] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.084111] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    5.125954] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.177048] hub 1-1:1.0: USB hub found
[    5.197280]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    5.252980] hub 1-1:1.0: 7 ports detected
[    5.296596] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.335973] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.400084] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    5.453069] ata2.00: configured for UDMA/100
[    5.501886] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    5.582155] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    5.608851] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    5.657966] cdrom: Uniform CD-ROM driver Revision: 3.20
[    5.707980] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    5.744578] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    5.791955] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.832730] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    5.857851] usb 1-1.1: Product: USB 2.0 Hub
[    5.880460] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.906573] usb usb2: Product: OF OHCI
[    5.928909] hub 1-1.1:1.0: USB hub found
[    5.951177] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    5.976138] usb usb2: SerialNumber: PPC-OF USB
[    5.998871] hub 1-1.1:1.0: 4 ports detected
[    6.021875] hub 2-0:1.0: USB hub found
[    6.044028] hub 2-0:1.0: 1 port detected
[    6.066815] ohci-pci: OHCI PCI platform driver
[    6.089621] usbcore: registered new interface driver usblp
[    6.113468] usbcore: registered new interface driver usb-storage
[    6.137437] usbcore: registered new interface driver usbserial
[    6.160923] usbcore: registered new interface driver usbserial_generic
[    6.184999] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.209562] usbserial: USB Serial support registered for generic
[    6.233987] mousedev: PS/2 mouse device common for all mice
[    6.257492] i2c /dev entries driver
[    6.281089] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.305988] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.330107] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.353975] md: linear personality registered for level -1
[    6.377153] md: raid0 personality registered for level 0
[    6.400156] md: raid1 personality registered for level 1
[    6.422968] md: raid10 personality registered for level 10
[    6.445791] usb 1-1.2: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 32
[    6.474210] md: raid6 personality registered for level 6
[    6.497297] md: raid5 personality registered for level 5
[    6.520241] md: raid4 personality registered for level 4
[    6.543174] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.568576] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.595098] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.620100] EDAC PPC4xx MC: v1.0.0
[    6.641545] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.667187] EDAC PPC4xx MC: Reporting type: interrupt
[    6.690532] usb 1-1.2: Product: USB Keyboard
[    6.713123] hidraw: raw HID events driver (C) Jiri Kosina
[    6.736651] usb 1-1.2: Manufacturer: CHICONY
[    6.759556] usbcore: registered new interface driver usbhid
[    6.783586] usbhid: USB HID core driver
[    6.806166] usbcore: registered new interface driver snd-usb-audio
[    6.832176] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    6.857407] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.888454] usbcore: registered new interface driver snd-ua101
[    6.912864] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.939008] usbcore: registered new interface driver snd-usb-usx2y
[    6.963843] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    6.988341] ipip: IPv4 over IPv4 tunneling driver
[    7.011395] Initializing XFRM netlink socket
[    7.033097] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    7.065191] NET: Registered protocol family 10
[    7.089472] sit: IPv6 over IPv4 tunneling driver
[    7.112706] NET: Registered protocol family 17
[    7.134964] NET: Registered protocol family 15
[    7.159397] Key type encrypted registered
[    7.180695] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    7.206888] rtc-m41t80 8-0068: setting system clock to 2015-12-18 19:01:48 UTC (1450465308)
[    7.233094] ALSA device list:
[    7.253284]   No soundcards found.
[    7.285428] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    7.321269] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    7.346206] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.371782] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    7.403024] usb 1-1.6: Product: USB Receiver
[    7.425636] usb 1-1.6: Manufacturer: Logitech
[    7.448478] md: Waiting for all devices to be available before autodetect
[    7.474174] md: If you don't use raid, use raid=noautodetect
[    7.501598] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    7.584213] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    7.621847] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    7.705319] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    7.743275] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    7.776545] md: Autodetecting RAID arrays.
[    7.801613] md: Scanned 0 and added 0 devices.
[    7.827019] md: autorun ...
[    7.850839] md: ... autorun DONE.
[    7.900143] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    7.936985] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    7.975748] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    8.004885] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    8.049631] devtmpfs: mounted
[    8.074394] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    8.120616] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    8.149386] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.178878] usb 1-1.7: Product: Ultra Fast Media 
[    8.205472] usb 1-1.7: Manufacturer: Generic
[    8.231525] usb 1-1.7: SerialNumber: 000000225001
[    8.259049] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    8.287090] scsi host2: usb-storage 1-1.7:1.0
[    8.645084] random: nonblocking pool is initialized
[    9.303547] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    9.336787] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    9.369339] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    9.398103] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.490619] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    9.531791] systemd[1]: Detected architecture ppc.
[    9.655829] systemd[1]: Set hostname to <Sam460ex>.
[    9.904905] systemd-fstab-generator[118]: Mount point  is not a valid path, ignoring.
[   10.690232] systemd[112]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[   11.065098] systemd[1]: Created slice User and Session Slice.
[   11.116773] systemd[1]: Reached target Remote File Systems (Pre).
[   11.167331] systemd[1]: Reached target Remote File Systems.
[   11.217432] systemd[1]: Created slice System Slice.
[   11.266919] systemd[1]: Listening on Syslog Socket.
[   11.315273] systemd[1]: Reached target User and Group Name Lookups.
[   11.454320] systemd[1]: Reached target Encrypted Volumes.
[   11.504457] systemd[1]: Listening on udev Control Socket.
[   11.554445] systemd[1]: Created slice system-getty.slice.
[   11.604221] systemd[1]: Listening on Journal Socket.
[   11.654522] systemd[1]: Mounting Debug File System...
[   11.708667] systemd[1]: Starting Uncomplicated firewall...
[   11.767773] systemd[1]: Started Read required files in advance.
[   11.877792] systemd[1]: Starting Load Kernel Modules...
[   11.931061] systemd[1]: Mounting POSIX Message Queue File System...
[   11.990461] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   12.046789] systemd[1]: Reached target Slices.
[   12.092535] systemd[1]: Reached target Swap.
[   12.138101] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   12.190714] systemd[1]: Listening on udev Kernel Socket.
[   12.245923] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   12.313045] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   12.393861] systemd[1]: Listening on Journal Socket (/dev/log).
[   12.446707] systemd[1]: Starting Journal Service...
[   12.501660] systemd[1]: Listening on fsck to fsckd communication Socket.
[   12.552721] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   12.607518] systemd[1]: Mounted Debug File System.
[   12.657084] systemd[1]: Mounted POSIX Message Queue File System.
[   12.708480] systemd[1]: Started Uncomplicated firewall.
[   12.756647] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   12.788102] systemd[1]: Failed to start Load Kernel Modules.
[   12.857880] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   12.885592] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   12.916844] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   13.069296] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[   13.133825] systemd[1]: ureadahead.service: Unit entered failed state.
[   13.189080] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[   13.279873] systemd[1]: Starting Create Static Device Nodes in /dev...
[   13.386134] systemd[1]: Mounting Configuration File System...
[   13.453516] systemd[1]: Starting Apply Kernel Variables...
[   13.516706] systemd[1]: Mounting FUSE Control File System...
[   13.588808] systemd[1]: Mounted FUSE Control File System.
[   13.643415] systemd[1]: Mounted Configuration File System.
[   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   17.740920] BUG: spinlock recursion on CPU#0, kworker/u2:1/85
[   17.764338]  lock: 0xed0d3a90, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   17.790004] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex #8
[   17.815013] Workqueue: events_unbound async_run_entry_fn
[   17.838003] Call Trace:
[   17.857940] [ee3cf8f0] [c0049238] do_raw_spin_lock+0x4c/0x100 (unreliable)
[   17.882584] [ee3cf910] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   17.906406] [ee3cf920] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   17.933475] [ee3cf950] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   17.958606] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   17.981758] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   18.005300] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   18.028693] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   18.051855] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   18.074815] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   18.097499] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   18.119866] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   18.142617] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   18.164377] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   18.187123] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   18.209615] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   18.231879] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   18.253598] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   18.275107] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   18.296348] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   18.317603] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   18.338529] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   18.359094] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   18.379414] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   18.400047] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   18.420967] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   18.441695] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   18.462057] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   18.481569] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   38.502397] BUG: spinlock lockup suspected on CPU#0, kworker/u2:1/85
[   38.523431]  lock: 0xed0d3a90, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   38.546305] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex #8
[   38.568544] Workqueue: events_unbound async_run_entry_fn
[   38.588749] Call Trace:
[   38.605995] [ee3cf8f0] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   38.628171] [ee3cf910] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   38.649690] [ee3cf920] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   38.674577] [ee3cf950] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   38.697644] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   38.718761] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   38.740247] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   38.761765] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   38.783112] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   38.804231] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   38.825091] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   38.845820] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   38.867130] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   38.887470] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   38.908868] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   38.930203] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   38.951313] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   38.972086] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   38.992867] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   39.013580] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   39.034146] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   39.054510] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   39.074728] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   39.094630] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   39.114778] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   39.135115] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   39.155211] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   39.174978] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   39.193866] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   39.214128] INFO: rcu_preempt self-detected stall on CPU
[   39.233368] 0-...: (1 ticks this GP) idle=613/140000000000001/0 softirq=5887/5887 fqs=0 
[   39.255640]  (t=21474 jiffies g=3526 c=3525 q=12)
[   39.274431] rcu_preempt kthread starved for 21474 jiffies! g3526 c3525 f0x0 s3 ->state=0x1
[   39.297067] Task dump for CPU 0:
[   39.314609] kworker/u2:1    R running      0    85      2 0x00000800
[   39.335555] Workqueue: events_unbound async_run_entry_fn
[   39.355485] Call Trace:
[   39.372445] [ee3cf7c0] [c00543a0] rcu_dump_cpu_stacks+0x90/0xb4 (unreliable)
[   39.394450] [ee3cf7e0] [c0057470] rcu_check_callbacks+0x240/0x6b8
[   39.415400] [ee3cf840] [c0059b94] update_process_times+0x30/0x60
[   39.436239] [ee3cf850] [c0067638] tick_sched_timer+0x54/0xa4
[   39.456725] [ee3cf880] [c005a60c] __hrtimer_run_queues.constprop.27+0xcc/0x170
[   39.478919] [ee3cf8c0] [c005aaa4] hrtimer_interrupt+0xc0/0x230
[   39.499689] [ee3cf910] [c0006d84] __timer_interrupt+0xcc/0x138
[   39.520344] [ee3cf930] [c0006fc8] timer_interrupt+0x7c/0x9c
[   39.540759] [ee3cf950] [c000b644] ret_from_except+0x0/0x18
[   39.561109] --- interrupt: 901 at _raw_spin_unlock_irqrestore+0x1c/0x5c
[   39.561109]     LR = _raw_spin_unlock_irqrestore+0x18/0x5c
[   39.603250] [ee3cfa20] [c04440c4] ata_scsi_queuecmd+0x22c/0x238
[   39.624360] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   39.645378] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   39.666289] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   39.687001] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   39.707704] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   39.728989] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   39.749388] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   39.770846] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   39.792104] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   39.812945] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   39.833223] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   39.853414] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   39.873580] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   39.893695] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   39.913382] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   39.932584] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   39.951532] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   39.970820] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   39.990490] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   40.010124] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   40.029504] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   40.048155] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   40.068299] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   40.090476] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   40.110346] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   40.136342] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   40.159727] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   40.182739] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   40.207731] dma dma0chan0: dwc_tx_submit: queued 2
[   40.227392] dma dma0chan0: dwc_dostart_first_queued: started 2
[   46.486229] eth0: link is up, 1000 FDX, pause enabled
[   48.748998] ata3: lost interrupt (Status 0x40)
[   48.768588] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   48.796105] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   48.820533] ata3.00: failed command: READ FPDMA QUEUED
[   48.844192] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   48.844192]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   48.889583] ata3.00: status: { DRDY }
[   48.908848] ata3: hard resetting link
[   48.927873] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   48.952190] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   48.975535] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   49.000471] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   49.030029] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   49.053338] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   49.278982] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   49.302139] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.331966] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.359968] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.387967] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.415967] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.438373] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   49.466029] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   49.491105] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.513537] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   49.539263] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.561795] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.585712] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.607936] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   49.631711] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   49.654650] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.676531] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   49.703146] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.727496] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   49.747216] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.769732] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.790901] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   49.818626] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.841091] dma dma0chan0: dwc_prep_slave_sg
[   49.858798] dma dma0chan0: scanned 1 descriptors on freelist
[   49.877942] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[   49.906061] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.936459] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.959397] dma dma0chan0: dwc_prep_slave_sg
[   49.978363] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   50.002235] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   50.024589] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   50.048069] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   50.069553] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   50.104340] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   50.134368] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   50.158199] dma dma0chan0: dwc_prep_slave_sg
[   50.177991] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   50.206429] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   50.237379] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   50.262896] dma dma0chan0: dwc_prep_slave_sg
[   50.283730] dma dma0chan0: scanned 1 descriptors on freelist
[   50.306040] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[   50.341072] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   50.374550] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   50.400559] dma dma0chan0: dwc_prep_slave_sg
[   50.422478] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   50.449153] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   50.474548] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   50.501081] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   50.525465] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   50.565436] ata3.00: configured for UDMA/133
[   50.587519] ata3.00: device reported invalid CHS sector 0
[   50.611110] ata3: EH complete
[   50.632057] ------------[ cut here ]------------
[   50.654298] WARNING: at drivers/ata/libata-core.c:5051
[   50.676874] Modules linked in: input_leds led_class sata_dwc_460ex
[   50.700910] CPU: 0 PID: 191 Comm: scsi_eh_3 Not tainted 4.4.0-rc5-Sam460ex #8
[   50.726010] task: ede1f980 ti: ed212000 task.ti: ed212000
[   50.749410] NIP: c043bb0c LR: c0440c84 CTR: c0442b00
[   50.772553] REGS: ed213c70 TRAP: 0700   Not tainted  (4.4.0-rc5-Sam460ex)
[   50.797742] MSR: 00021000 <CE,ME>  CR: 22000048  XER: 00000000
[   50.822161] 
GPR00: c0440c84 ed213d20 ede1f980 ed2180b8 ed219a48 00000000 00000000 00000000 
GPR08: 00000006 00000004 00000001 ed213d50 24000022 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ede8d01c 0000001e 00000000 
GPR24: ed1370e0 ed204a80 edeaadd0 c0442b00 ed218000 ed2197c8 ed218000 ed2180b8 
[   50.948405] NIP [c043bb0c] ata_qc_issue+0x4c/0x3a0
[   50.973042] LR [c0440c84] ata_scsi_translate+0xf4/0x150
[   50.998159] Call Trace:
[   51.020388] [ed213d20] [c0442c98] ata_scsi_rw_xlat+0x198/0x1e4 (unreliable)
[   51.047495] [ed213d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   51.073415] [ed213d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   51.099440] [ed213d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   51.125501] [ed213da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   51.151586] [ed213df0] [c024cd34] __blk_run_queue+0x44/0x58
[   51.177495] [ed213e00] [c024cf30] blk_run_queue+0x28/0x44
[   51.203189] [ed213e10] [c0425c78] scsi_run_queue+0x240/0x268
[   51.229301] [ed213e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   51.255862] [ed213e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   51.282225] [ed213ed0] [c0039798] kthread+0xc8/0xcc
[   51.307246] [ed213f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   51.333819] Instruction dump:
[   51.356763] 815e0004 83a90000 89230014 814a0058 2f8a0000 419e0038 815d0120 2b8a001f 
[   51.384755] 419d002c 3d40c0a3 894a575b 694a0001 <0f0a0000> 2f8a0000 41be0014 3d40c0a3 
[   51.412813] ---[ end trace edd5594837b7dac7 ]---
[   51.437400] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   51.466421] dma dma0chan0: dwc_prep_slave_sg
[   51.490336] dma dma0chan0: scanned 1 descriptors on freelist
[   51.515328] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede03000, count: 1 addr: 0xfffffffff6a18400
[   51.544511] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   51.574127] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   71.602876] BUG: spinlock lockup suspected on CPU#0, scsi_eh_3/191
[   71.628719]  lock: 0xed0d3a90, .magic: dead4ead, .owner: scsi_eh_3/191, .owner_cpu: 0
[   71.656444] CPU: 0 PID: 191 Comm: scsi_eh_3 Tainted: G        W       4.4.0-rc5-Sam460ex #8
[   71.684851] Call Trace:
[   71.706768] [ed213c40] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   71.733216] [ed213c60] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   71.758803] [ed213c70] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   71.787572] [ed213ca0] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   71.814217] [ed213d20] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   71.838640] [ed213d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   71.863277] [ed213d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   71.887877] [ed213d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   71.912096] [ed213da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   71.935749] [ed213df0] [c024cd34] __blk_run_queue+0x44/0x58
[   71.958822] [ed213e00] [c024cf30] blk_run_queue+0x28/0x44
[   71.981505] [ed213e10] [c0425c78] scsi_run_queue+0x240/0x268
[   72.004257] [ed213e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   72.027295] [ed213e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   72.050269] [ed213ed0] [c0039798] kthread+0xc8/0xcc
[   72.072009] [ed213f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   72.095160] INFO: rcu_preempt self-detected stall on CPU
[   72.117301] 0-...: (1 ticks this GP) idle=c61/140000000000002/0 softirq=13985/13985 fqs=0 
[   72.142802]  (t=21464 jiffies g=7142 c=7141 q=2)
[   72.164656] rcu_preempt kthread starved for 21464 jiffies! g7142 c7141 f0x0 s3 ->state=0x1
[   72.190408] Task dump for CPU 0:
[   72.210989] scsi_eh_3       R running      0   191      2 0x00000800
[   72.234842] Call Trace:
[   72.254394] [effefd30] [c00543a0] rcu_dump_cpu_stacks+0x90/0xb4 (unreliable)
[   72.278833] [effefd50] [c0057470] rcu_check_callbacks+0x240/0x6b8
[   72.302204] [effefdb0] [c0059b94] update_process_times+0x30/0x60
[   72.325362] [effefdc0] [c0067638] tick_sched_timer+0x54/0xa4
[   72.348046] [effefdf0] [c005a60c] __hrtimer_run_queues.constprop.27+0xcc/0x170
[   72.372401] [effefe30] [c005aaa4] hrtimer_interrupt+0xc0/0x230
[   72.395217] [effefe80] [c0006d84] __timer_interrupt+0xcc/0x138
[   72.417921] [effefea0] [c0006fc8] timer_interrupt+0x7c/0x9c
[   72.440290] [effefec0] [c000b644] ret_from_except+0x0/0x18
[   72.462459] --- interrupt: 901 at __do_softirq+0x9c/0x1f0
[   72.462459]     LR = __do_softirq+0x90/0x1f0
[   72.505065] [effeff80] [c0023b8c] __do_softirq+0x48/0x1f0 (unreliable)
[   72.528286] [effeffe0] [c0023f68] irq_exit+0x58/0xa0
[   72.549722] [effefff0] [c000a0f4] call_do_irq+0x24/0x3c
[   72.571392] [ed213c70] [c0003528] do_IRQ+0x94/0xd4
[   72.592634] [ed213ca0] [c000b644] ret_from_except+0x0/0x18
[   72.614615] --- interrupt: 501 at _raw_spin_unlock_irqrestore+0x1c/0x5c
[   72.614615]     LR = _raw_spin_unlock_irqrestore+0x18/0x5c
[   72.660083] [ed213d70] [c04440c4] ata_scsi_queuecmd+0x22c/0x238
[   72.682877] [ed213d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   72.705559] [ed213da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   72.728162] [ed213df0] [c024cd34] __blk_run_queue+0x44/0x58
[   72.750603] [ed213e00] [c024cf30] blk_run_queue+0x28/0x44
[   72.772807] [ed213e10] [c0425c78] scsi_run_queue+0x240/0x268
[   72.795255] [ed213e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   72.817937] [ed213e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   72.840443] [ed213ed0] [c0039798] kthread+0xc8/0xcc
[   72.861670] [ed213f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   72.884234] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=0
[   72.907819] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   72.929599] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   72.957522] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   72.982574] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   73.007115] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   73.033529] dma dma0chan0: dwc_tx_submit: queued 3
[   80.732990] ata3: lost interrupt (Status 0x40)
[   80.754529] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   80.780172] ata3.00: NCQ disabled due to excessive errors
[   80.803226] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   80.827641] ata3.00: failed command: READ FPDMA QUEUED
[   80.853108] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   80.853108]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   80.902186] ata3.00: status: { DRDY }
[   80.926045] ata3: hard resetting link
[   80.948405] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   80.975234] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   81.000804] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   81.029104] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   81.057029] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   81.084625] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   81.316980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   81.352030] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.388979] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.422271] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.456977] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.489486] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   81.515191] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   81.546173] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.572910] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   81.609067] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.639227] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.667484] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.693436] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   81.721173] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   81.748842] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.776224] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   81.801565] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.830135] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   81.859068] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.888945] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   81.914747] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   81.946907] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   81.973608] dma dma0chan0: dwc_prep_slave_sg
[   81.995629] dma dma0chan0: scanned 1 descriptors on freelist
[   82.019139] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[   82.054164] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   82.108803] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   82.137087] dma dma0chan0: dwc_prep_slave_sg
[   82.161263] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   82.190303] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   82.218088] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   82.247183] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   82.274328] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   82.320268] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   82.356018] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   82.385638] dma dma0chan0: dwc_prep_slave_sg
[   82.411202] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   82.447480] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   82.484012] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   82.515135] dma dma0chan0: dwc_prep_slave_sg
[   82.541437] dma dma0chan0: scanned 1 descriptors on freelist
[   82.568974] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[   82.615103] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   82.676962] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   82.708729] dma dma0chan0: dwc_prep_slave_sg
[   82.736402] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   82.768725] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   82.799633] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   82.831767] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   82.861845] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   82.913577] ata3.00: configured for UDMA/133
[   82.941672] ata3.00: device reported invalid CHS sector 0
[   82.973869] ata3: EH complete
[   83.002278] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   83.035381] dma dma0chan0: dwc_prep_slave_sg
[   83.062913] dma dma0chan0: scanned 1 descriptors on freelist
[   83.091091] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede03000, count: 1 addr: 0xfffffffff6a18400
[   83.123884] ------------[ cut here ]------------
[   83.151640] WARNING: at drivers/ata/libata-sff.c:1493
[   83.179895] Modules linked in: input_leds led_class sata_dwc_460ex
[   83.209554] CPU: 0 PID: 191 Comm: scsi_eh_3 Tainted: G        W       4.4.0-rc5-Sam460ex #8
[   83.241729] task: ede1f980 ti: ed212000 task.ti: ed212000
[   83.271085] NIP: c044d734 LR: c044d5a4 CTR: c044a354
[   83.300192] REGS: ed213bd0 TRAP: 0700   Tainted: G        W        (4.4.0-rc5-Sam460ex)
[   83.332794] MSR: 00021000 <CE,ME>  CR: 24008044  XER: 20000000
[   83.362568] 
GPR00: c044d5a4 ed213c80 ede1f980 00000050 f6a18018 00000000 c02e1328 00000000 
GPR08: 00000000 00000001 e3b4724c ed213c80 c044d560 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ede8d01c c09fd770 00000000 
GPR24: ed13ef00 edd18a50 ffa0d510 ed218000 00000000 ed2197c8 ed218000 ed2180b8 
[   83.509173] NIP [c044d734] ata_sff_qc_issue+0x1d4/0x1fc
[   83.538139] LR [c044d5a4] ata_sff_qc_issue+0x44/0x1fc
[   83.567082] Call Trace:
[   83.593340] [ed213c80] [c044d5a4] ata_sff_qc_issue+0x44/0x1fc (unreliable)
[   83.624473] [ed213ca0] [f6a0f34c] sata_dwc_qc_issue+0x35c/0x370 [sata_dwc_460ex]
[   83.656359] [ed213d20] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   83.686453] [ed213d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   83.716784] [ed213d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   83.746888] [ed213d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   83.777019] [ed213da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   83.806709] [ed213df0] [c024cd34] __blk_run_queue+0x44/0x58
[   83.835889] [ed213e00] [c024cf30] blk_run_queue+0x28/0x44
[   83.864638] [ed213e10] [c0425c78] scsi_run_queue+0x240/0x268
[   83.893685] [ed213e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   83.922781] [ed213e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   83.951018] [ed213ed0] [c0039798] kthread+0xc8/0xcc
[   83.977245] [ed213f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   84.004608] Instruction dump:
[   84.028507] 7d2903a6 4e800421 39200001 913e2720 813f0004 8129000c 71280004 4082ff80 
[   84.057576] 4bffff88 3d20c0a3 89295769 69290001 <0f090000> 2f890000 38600040 41be0014 
[   84.086901] ---[ end trace edd5594837b7dac8 ]---
[  113.772979] ata3: lost interrupt (Status 0x50)
[  113.799726] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  113.829369] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[  113.860236] ata3: limiting SATA link speed to 1.5 Gbps
[  113.886650] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  113.915214] ata3.00: failed command: READ DMA
[  113.940265] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  113.940265]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  113.996469] ata3.00: status: { DRDY }
[  114.020749] ata3: hard resetting link
[  114.044134] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  114.071035] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  114.099169] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000304
[  114.125859] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000304
[  114.154034] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000314
[  114.180449] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000314
[  114.208415] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  114.237771] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  114.266006] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  114.293043] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  114.521971] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  114.548653] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.581963] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.612968] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.643967] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.674968] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.699872] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  114.728343] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  114.753618] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.780797] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  114.808079] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.835184] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.860423] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.886908] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  114.911682] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  114.937898] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  114.962475] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  114.988321] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  115.012399] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  115.035713] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  115.060003] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  115.085580] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  115.116465] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  115.141879] dma dma0chan0: dwc_prep_slave_sg
[  115.162547] dma dma0chan0: scanned 1 descriptors on freelist
[  115.184712] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  115.218065] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  115.270208] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  115.297400] dma dma0chan0: dwc_prep_slave_sg
[  115.320594] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  115.348630] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  115.375458] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  115.403606] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  115.429761] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  115.463555] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  115.498089] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  115.526376] dma dma0chan0: dwc_prep_slave_sg
[  115.550515] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  115.582408] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  115.617386] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  115.646828] dma dma0chan0: dwc_prep_slave_sg
[  115.671211] dma dma0chan0: scanned 1 descriptors on freelist
[  115.696629] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  115.733039] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  115.791345] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  115.821480] dma dma0chan0: dwc_prep_slave_sg
[  115.847494] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  115.878362] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  115.907836] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  115.938658] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  115.967331] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  115.997934] ata3.00: configured for UDMA/133
[  116.024738] ata3.00: device reported invalid CHS sector 0
[  116.052666] ata3: EH complete
[  116.078090] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  116.109719] dma dma0chan0: dwc_prep_slave_sg
[  116.136671] dma dma0chan0: scanned 1 descriptors on freelist
[  116.164486] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede03000, count: 1 addr: 0xfffffffff6a18400
[  146.796992] ata3: lost interrupt (Status 0x50)
[  146.824110] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  146.854809] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  146.887170] ata3.00: limiting speed to UDMA/100:PIO4
[  146.915244] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  146.946081] ata3.00: failed command: READ DMA
[  146.973930] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  146.973930]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  147.036667] ata3.00: status: { DRDY }
[  147.063899] ata3: hard resetting link
[  147.090461] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  147.122253] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  147.153816] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  147.184767] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  147.220980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  147.252790] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  147.486973] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  147.519274] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.558966] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.596967] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.633967] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.665596] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  147.698797] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  147.733423] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.765049] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  147.800275] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.832379] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.865645] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.896356] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  147.927583] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  147.957152] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  147.987995] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  148.016898] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  148.047195] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  148.074361] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  148.104366] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  148.133172] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  148.168460] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  148.198129] dma dma0chan0: dwc_prep_slave_sg
[  148.222956] dma dma0chan0: scanned 1 descriptors on freelist
[  148.249042] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  148.286077] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  148.344409] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  148.374578] dma dma0chan0: dwc_prep_slave_sg
[  148.400454] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  148.430313] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  148.458088] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  148.486922] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  148.513598] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  148.549338] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  148.584288] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  148.613076] dma dma0chan0: dwc_prep_slave_sg
[  148.637798] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  148.670350] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  148.705945] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  148.736167] dma dma0chan0: dwc_prep_slave_sg
[  148.761732] dma dma0chan0: scanned 1 descriptors on freelist
[  148.788540] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  148.826058] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  148.886649] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  148.917503] dma dma0chan0: dwc_prep_slave_sg
[  148.943909] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  148.975273] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  149.005224] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  149.036392] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  149.065508] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  149.102497] ata3.00: configured for UDMA/100
[  149.129429] ata3.00: device reported invalid CHS sector 0
[  149.157659] ata3: EH complete
[  149.183291] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  149.214858] dma dma0chan0: dwc_prep_slave_sg
[  149.241879] dma dma0chan0: scanned 1 descriptors on freelist
[  149.270363] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede03000, count: 1 addr: 0xfffffffff6a18400
[  167.861424] cgroup: new mount options do not match the existing superblock, will be ignored
[  171.155098] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  171.534870] IPv6: ADDRCONF(NETDEV_UP): tunl0: link is not ready
[  171.862585] IPv6: ADDRCONF(NETDEV_UP): sit0: link is not ready
[  179.757023] ata3: lost interrupt (Status 0x50)
[  179.770989] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  179.822982] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  179.869980] ata3.00: limiting speed to UDMA/33:PIO4
[  179.902997] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  179.944988] ata3.00: failed command: READ DMA
[  179.979999] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  179.979999]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  180.106952] ata3.00: status: { DRDY }
[  180.135998] ata3: hard resetting link
[  180.166659] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  180.238090] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  180.305472] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  180.366985] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  180.435989] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  180.474988] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  180.707980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  180.738032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  180.785966] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  180.828063] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  180.856980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  180.901960] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  180.953968] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  180.991986] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.037990] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  181.093983] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.138982] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.172988] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.205988] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  181.239955] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  181.274984] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.307954] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  181.341974] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.375594] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  181.403987] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  181.437982] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  181.469997] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  181.484185] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  181.493060] dma dma0chan0: dwc_prep_slave_sg
[  181.497340] dma dma0chan0: scanned 1 descriptors on freelist
[  181.503010] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  181.644627] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  181.660209] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  181.668477] dma dma0chan0: dwc_prep_slave_sg
[  181.672755] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  181.681412] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  181.688816] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  181.697434] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  181.704136] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  181.832035] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  181.846312] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  181.854579] dma dma0chan0: dwc_prep_slave_sg
[  181.858857] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  181.981987] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  181.996181] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  182.005057] dma dma0chan0: dwc_prep_slave_sg
[  182.009336] dma dma0chan0: scanned 1 descriptors on freelist
[  182.015006] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  182.211323] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  182.226902] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  182.235169] dma dma0chan0: dwc_prep_slave_sg
[  182.239439] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  182.248102] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  182.255508] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  182.264127] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  182.270829] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  182.351027] ata3.00: configured for UDMA/33
[  182.362954] ata3.00: device reported invalid CHS sector 0
[  182.374990] ata3: EH complete
[  182.381004] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  182.389895] dma dma0chan0: dwc_prep_slave_sg
[  182.394171] dma dma0chan0: scanned 1 descriptors on freelist
[  182.399841] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede03000, count: 1 addr: 0xfffffffff6a18400
[  212.780796] ata3: lost interrupt (Status 0x50)
[  212.786455] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  212.794375] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  212.804400] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  212.811518] ata3.00: failed command: READ DMA
[  212.816686] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  212.816686]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  212.831914] ata3.00: status: { DRDY }
[  212.835631] ata3: hard resetting link
[  212.840046] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  212.847912] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  212.857818] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  212.865789] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  212.876797] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  212.884659] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  213.095779] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  213.103636] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.118778] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.133777] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.146777] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.159776] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.172777] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.185777] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.198776] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.211776] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.221171] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  213.229167] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  213.239295] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.247214] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  213.258689] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.266597] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.276653] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.284587] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  213.294559] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  213.302555] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.312485] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  213.320557] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.330520] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  213.336806] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.346201] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  213.354113] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  213.368286] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  213.377167] dma dma0chan0: dwc_prep_slave_sg
[  213.381446] dma dma0chan0: scanned 1 descriptors on freelist
[  213.387116] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  213.400875] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  213.416449] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  213.424718] dma dma0chan0: dwc_prep_slave_sg
[  213.428996] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  213.437655] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  213.445058] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  213.453675] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  213.460378] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  213.478064] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  213.492334] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  213.500603] dma dma0chan0: dwc_prep_slave_sg
[  213.504882] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  213.517470] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  213.531658] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  213.540534] dma dma0chan0: dwc_prep_slave_sg
[  213.544814] dma dma0chan0: scanned 1 descriptors on freelist
[  213.550484] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  213.564909] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  213.580485] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  213.588754] dma dma0chan0: dwc_prep_slave_sg
[  213.593033] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  213.601702] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  213.609103] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  213.617721] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  213.624432] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  213.641238] ata3.00: configured for UDMA/33
[  213.645507] ata3.00: device reported invalid CHS sector 0
[  213.651832] sd 3:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  213.660070] sd 3:0:0:0: [sdc] tag#0 Sense Key : 0x5 [current] [descriptor] 
[  213.669241] sd 3:0:0:0: [sdc] tag#0 ASC=0x21 ASCQ=0x4 
[  213.674464] sd 3:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  213.684248] blk_update_request: I/O error, dev sdc, sector 0
[  213.689984] Buffer I/O error on dev sdc, logical block 0, async page read
[  213.697874] ata3: EH complete
[  213.701565] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  213.710449] dma dma0chan0: dwc_prep_slave_sg
[  213.714727] dma dma0chan0: scanned 1 descriptors on freelist
[  213.720397] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecee2e00, count: 1 addr: 0xfffffffff6a18400
[  243.756717] ata3: lost interrupt (Status 0x50)
[  243.768715] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  243.794692] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  243.821705] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  243.845703] ata3.00: failed command: READ DMA
[  243.860706] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  243.860706]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  243.910682] ata3.00: status: { DRDY }
[  243.923716] ata3: hard resetting link
[  243.936714] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  243.964708] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  243.993700] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  244.025672] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  244.054665] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  244.078702] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  244.305667] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  244.330665] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.368686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.390665] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.422895] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.451692] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.471681] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  244.498712] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  244.526689] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.555665] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  244.587669] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.613699] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.638677] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.667697] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  244.695328] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  244.724689] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.753695] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  244.778680] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.806667] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  244.829701] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.854683] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  244.886085] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  244.900278] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  244.909154] dma dma0chan0: dwc_prep_slave_sg
[  244.913434] dma dma0chan0: scanned 1 descriptors on freelist
[  244.919103] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  245.035527] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue a[  276.780527] ata3: lost interrupt (Status 0x50)
[  276.790506] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  276.806527] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  276.822509] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  276.837494] ata3.00: failed command: READ DMA
[  276.847511] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  276.847511]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  276.877494] ata3.00: status: { DRDY }
[  276.885506] ata3: hard resetting link
[  276.893504] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  276.911506] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  276.928498] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  276.946505] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  276.965511] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  276.980492] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  277.199513] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  277.214500] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.238507] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.259505] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.280507] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.303505] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.324508] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.340501] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  277.356496] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  277.374499] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.391502] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  277.411498] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.429502] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.446503] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.464508] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  277.481493] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  277.499494] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.516491] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  277.533493] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.551489] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  277.564506] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.581503] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  277.598510] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  277.612700] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  277.621575] dma dma0chan0: dwc_prep_slave_sg
[  277.625855] dma dma0chan0: scanned 1 descriptors on freelist
[  277.631525] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  277.689544] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  277.705121] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  277.713389] dma dma0chan0: dwc_prep_slave_sg
[  277.717668] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  277.726331] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  277.733737] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  277.742355] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  277.749058] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  277.803551] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  277.817830] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  277.826097] dma dma0chan0: dwc_prep_slave_sg
[  277.830377] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  277.878516] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  277.892709] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  277.901584] dma dma0chan0: dwc_prep_slave_sg
[  277.905863] dma dma0chan0: scanned 1 descriptors on freelist
[  277.911533] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  277.969541] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  277.985121] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  277.993389] dma dma0chan0: dwc_prep_slave_sg
[  277.997667] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  278.006326] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  278.013729] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  278.022347] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  278.029058] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  278.083528] ata3.00: configured for UDMA/33
[  278.093510] ata3.00: device reported invalid CHS sector 0
[  278.104533] ata3: EH complete
[  278.111546] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  278.120442] dma dma0chan0: dwc_prep_slave_sg
[  278.124718] dma dma0chan0: scanned 1 descriptors on freelist
[  278.130388] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecee2e00, count: 1 addr: 0xfffffffff6a18400
[  309.100335] ata3: lost interrupt (Status 0x50)
[  309.106017] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  309.113940] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.123986] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  309.131111] ata3.00: failed command: READ DMA
[  309.136462] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  309.136462]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  309.151096] ata3.00: status: { DRDY }
[  309.155543] ata3: hard resetting link
[  309.161796] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  309.175122] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  309.188444] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  309.202882] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  309.223358] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  309.242906] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  309.466338] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  309.478642] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.495339] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.513323] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.531394] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.550562] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.567333] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.585364] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.596044] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  309.606877] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  309.619112] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.629869] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  309.643516] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.651419] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.663187] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.671132] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  309.681405] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  309.689383] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.699485] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  309.707378] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.719005] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  309.725963] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.733870] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  309.746924] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  309.761111] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  309.769987] dma dma0chan0: dwc_prep_slave_sg
[  309.774266] dma dma0chan0: scanned 1 descriptors on freelist
[  309.779936] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  309.799418] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  309.814999] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  309.823267] dma dma0chan0: dwc_prep_slave_sg
[  309.827545] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  309.836272] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  309.843677] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  309.852295] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  309.859006] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  309.880670] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  309.894947] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  309.903216] dma dma0chan0: dwc_prep_slave_sg
[  309.907493] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  309.923385] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  309.937579] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  309.946454] dma dma0chan0: dwc_prep_slave_sg
[  309.950733] dma dma0chan0: scanned 1 descriptors on freelist
[  309.956403] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  309.971297] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  309.986874] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  309.995142] dma dma0chan0: dwc_prep_slave_sg
[  309.999421] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  310.008081] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  310.015482] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  310.024100] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  310.030802] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  310.052031] ata3.00: configured for UDMA/33
[  310.058518] ata3.00: device reported invalid CHS sector 0
[  310.066060] ata3: EH complete
[  310.069874] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  310.078765] dma dma0chan0: dwc_prep_slave_sg
[  310.083042] dma dma0chan0: scanned 1 descriptors on freelist
[  310.088713] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecee2e00, count: 1 addr: 0xfffffffff6a18400
[  339.513940] systemd-fstab-generator[1564]: Mount point  is not a valid path, ignoring.
[  341.100220] ata3: lost interrupt (Status 0x50)
[  341.111206] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  341.122517] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.136254] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  341.144951] ata3.00: failed command: READ DMA
[  341.149559] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  341.149559]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  341.172196] ata3.00: status: { DRDY }
[  341.180194] ata3: hard resetting link
[  341.188185] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  341.204190] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  341.221185] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  341.239194] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  341.259197] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  341.275188] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  341.493177] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  341.509171] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.532202] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.553210] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.574210] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.595212] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.616210] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.631223] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  341.650233] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  341.668218] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.687235] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  341.709213] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.727224] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.745221] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.764235] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  341.783216] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  341.802234] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.823220] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  341.842204] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.862170] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  341.873218] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.890222] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  341.908226] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  341.922413] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  341.931288] dma dma0chan0: dwc_prep_slave_sg
[  341.935567] dma dma0chan0: scanned 1 descriptors on freelist
[  341.941237] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  342.001258] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  342.016840] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  342.025107] dma dma0chan0: dwc_prep_slave_sg
[  342.029386] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  342.038037] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  342.045438] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  342.054056] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  342.060767] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  342.117264] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  342.131544] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  342.139812] dma dma0chan0: dwc_prep_slave_sg
[  342.144091] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  342.195231] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  342.209417] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  342.218294] dma dma0chan0: dwc_prep_slave_sg
[  342.222573] dma dma0chan0: scanned 1 descriptors on freelist
[  342.228243] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  342.291254] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  342.306831] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  342.315099] dma dma0chan0: dwc_prep_slave_sg
[  342.319377] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  342.328033] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  342.335438] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  342.344056] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  342.350758] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  342.406204] ata3.00: configured for UDMA/33
[  342.415184] ata3.00: device reported invalid CHS sector 0
[  342.427212] ata3: EH complete
[  342.436218] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  342.445110] dma dma0chan0: dwc_prep_slave_sg
[  342.449387] dma dma0chan0: scanned 1 descriptors on freelist
[  342.455058] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecee2e00, count: 1 addr: 0xfffffffff6a18400
[  373.100056] ata3: lost interrupt (Status 0x50)
[  373.106340] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  373.114259] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.124374] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  373.131487] ata3.00: failed command: READ DMA
[  373.136705] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  373.136705]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  373.159046] ata3.00: status: { DRDY }
[  373.169410] ata3: hard resetting link
[  373.173658] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  373.183270] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  373.191160] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  373.201381] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  373.211461] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  373.219509] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  373.431042] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  373.438906] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.463577] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.482035] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.495020] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.508020] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.521019] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.534019] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.547020] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.564093] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  373.579506] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  373.587470] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.597855] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  373.607339] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.617404] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.625315] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.635381] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  373.643281] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  373.653411] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.671207] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  373.686278] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.694149] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  373.702077] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.709968] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  373.719982] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  373.734173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  373.743050] dma dma0chan0: dwc_prep_slave_sg
[  373.747330] dma dma0chan0: scanned 1 descriptors on freelist
[  373.752999] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  373.774093] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  373.789669] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  373.797937] dma dma0chan0: dwc_prep_slave_sg
[  373.802215] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  373.810875] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  373.818277] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  373.826894] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  373.833597] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  373.859143] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  373.873419] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  373.881686] dma dma0chan0: dwc_prep_slave_sg
[  373.885957] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  373.907119] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  373.921310] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  373.930185] dma dma0chan0: dwc_prep_slave_sg
[  373.934465] dma dma0chan0: scanned 1 descriptors on freelist
[  373.940135] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  373.961713] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  373.977291] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  373.985558] dma dma0chan0: dwc_prep_slave_sg
[  373.989836] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  373.998494] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  374.005897] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  374.014516] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  374.021218] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  374.042121] ata3.00: configured for UDMA/33
[  374.054089] ata3.00: device reported invalid CHS sector 0
[  374.060977] ata3: EH complete
[  374.064356] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  374.073241] dma dma0chan0: dwc_prep_slave_sg
[  374.077521] dma dma0chan0: scanned 1 descriptors on freelist
[  374.083191] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecee2e00, count: 1 addr: 0xfffffffff6a18400
[  405.099917] ata3: lost interrupt (Status 0x50)
[  405.105605] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  405.113535] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.123697] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  405.130826] ata3.00: failed command: READ DMA
[  405.136175] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  405.136175]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  405.150816] ata3.00: status: { DRDY }
[  405.155261] ata3: hard resetting link
[  405.158970] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  405.168326] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  405.186134] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  405.200604] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  405.210368] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  405.218279] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  405.428900] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  405.436762] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.452885] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.465881] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.488485] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.506907] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.519880] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.532879] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.545880] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.555322] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  405.563223] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  405.573331] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.591166] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  405.607135] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.615010] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.625248] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.633174] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  405.643206] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  405.651196] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.661401] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  405.669308] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.679347] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  405.694435] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.709120] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  405.717010] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  405.731183] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  405.740064] dma dma0chan0: dwc_prep_slave_sg
[  405.744344] dma dma0chan0: scanned 1 descriptors on freelist
[  405.750013] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  405.763989] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  405.779563] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  405.787832] dma dma0chan0: dwc_prep_slave_sg
[  405.792111] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  405.800768] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  405.808172] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  405.816789] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  405.823492] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  405.855859] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  405.870138] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  405.878405] dma dma0chan0: dwc_prep_slave_sg
[  405.882683] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  405.895640] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  405.909824] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  405.918701] dma dma0chan0: dwc_prep_slave_sg
[  405.922980] dma dma0chan0: scanned 1 descriptors on freelist
[  405.928651] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  405.951001] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  405.966579] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  405.974846] dma dma0chan0: dwc_prep_slave_sg
[  405.979124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  405.987787] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  405.995195] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  406.003813] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  406.010515] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  406.034848] ata3.00: configured for UDMA/33
[  406.039138] ata3.00: device reported invalid CHS sector 0
[  406.053672] sd 3:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  406.068497] sd 3:0:0:0: [sdc] tag#0 Sense Key : 0x5 [current] [descriptor] 
[  406.075513] sd 3:0:0:0: [sdc] tag#0 ASC=0x21 ASCQ=0x4 
[  406.083124] sd 3:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  406.090753] blk_update_request: I/O error, dev sdc, sector 0
[  406.098157] Buffer I/O error on dev sdc, logical block 0, async page read
[  406.105012] Dev sdc: unable to read RDB block 0
[  406.110515] ata3: EH complete
[  406.114135]  sdc: unable to read partition table
[  406.120579] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  406.129468] dma dma0chan0: dwc_prep_slave_sg
[  406.133744] dma dma0chan0: scanned 1 descriptors on freelist
[  406.139415] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  437.099776] ata3: lost interrupt (Status 0x50)
[  437.105566] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  437.113493] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.123635] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  437.130770] ata3.00: failed command: READ DMA EXT
[  437.136317] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  437.136317]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  437.150971] ata3.00: status: { DRDY }
[  437.155391] ata3: hard resetting link
[  437.159108] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  437.168466] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  437.186224] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  437.200773] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  437.211753] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  437.219643] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  437.430766] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  437.438626] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.454746] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.467740] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.487285] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.507768] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.520740] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.533740] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.546740] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.556204] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  437.564100] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  437.574239] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.592060] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  437.608026] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.615903] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.626107] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.634020] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  437.644100] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  437.652091] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.662362] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  437.670275] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.680417] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  437.695278] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.710232] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  437.718124] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  437.732294] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  437.741175] dma dma0chan0: dwc_prep_slave_sg
[  437.745454] dma dma0chan0: scanned 1 descriptors on freelist
[  437.751125] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  437.764845] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  437.780423] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  437.788690] dma dma0chan0: dwc_prep_slave_sg
[  437.792961] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  437.801618] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  437.809023] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  437.817641] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  437.824352] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  437.857083] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  437.871362] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  437.879629] dma dma0chan0: dwc_prep_slave_sg
[  437.883908] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  437.896846] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  437.911030] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  437.919907] dma dma0chan0: dwc_prep_slave_sg
[  437.924187] dma dma0chan0: scanned 1 descriptors on freelist
[  437.929857] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  437.952854] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  437.968437] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  437.976703] dma dma0chan0: dwc_prep_slave_sg
[  437.980974] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  437.989640] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  437.997044] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  438.005662] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  438.012373] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  438.035909] ata3.00: configured for UDMA/33
[  438.040151] ata3.00: device reported invalid CHS sector 0
[  438.053849] ata3: EH complete
[  438.061582] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  438.070475] dma dma0chan0: dwc_prep_slave_sg
[  438.074752] dma dma0chan0: scanned 1 descriptors on freelist
[  438.080422] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  469.099640] ata3: lost interrupt (Status 0x50)
[  469.105906] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  469.113811] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.123963] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  469.131081] ata3.00: failed command: READ DMA EXT
[  469.136678] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  469.136678]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  469.151338] ata3.00: status: { DRDY }
[  469.155802] ata3: hard resetting link
[  469.159513] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  469.168868] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  469.186711] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  469.201244] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  469.211094] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  469.218996] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  469.429625] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  469.437490] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.453617] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.466600] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.487350] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.507627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.520600] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.533599] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.546600] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.556060] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  469.563960] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  469.574223] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.592059] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  469.607971] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.615843] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.626162] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.634089] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  469.644149] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  469.652151] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.662367] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  469.670276] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.680345] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  469.695124] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.710080] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  469.717966] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  469.732138] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  469.741018] dma dma0chan0: dwc_prep_slave_sg
[  469.745298] dma dma0chan0: scanned 1 descriptors on freelist
[  469.750967] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  469.764704] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  469.780283] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  469.788552] dma dma0chan0: dwc_prep_slave_sg
[  469.792831] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  469.801491] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  469.808892] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  469.817510] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  469.824213] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  469.857032] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  469.871310] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  469.879577] dma dma0chan0: dwc_prep_slave_sg
[  469.883856] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  469.896676] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  469.910866] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  469.919742] dma dma0chan0: dwc_prep_slave_sg
[  469.924022] dma dma0chan0: scanned 1 descriptors on freelist
[  469.929692] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  469.959892] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  469.975467] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  469.983734] dma dma0chan0: dwc_prep_slave_sg
[  469.988013] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  469.996671] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  470.004075] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  470.012693] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  470.019404] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  470.031684] ata3.00: configured for UDMA/33
[  470.038761] ata3.00: device reported invalid CHS sector 0
[  470.051709] ata3: EH complete
[  470.059042] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  470.067940] dma dma0chan0: dwc_prep_slave_sg
[  470.072216] dma dma0chan0: scanned 1 descriptors on freelist
[  470.077886] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  501.099526] ata3: lost interrupt (Status 0x50)
[  501.105373] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  501.119350] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.127253] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  501.136130] ata3.00: failed command: READ DMA EXT
[  501.140918] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  501.140918]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  501.156506] ata3.00: status: { DRDY }
[  501.160214] ata3: hard resetting link
[  501.164840] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  501.172730] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  501.182726] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  501.190709] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  501.210507] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  501.224230] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  501.432484] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  501.440361] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.456468] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.469460] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.482460] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.495460] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.518498] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.531461] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.544459] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.553900] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  501.561798] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  501.571928] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.579845] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  501.591418] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.599329] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.616546] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.632061] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  501.639938] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  501.650238] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.658335] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  501.668374] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.676291] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  501.684064] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.691970] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  501.702025] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  501.716212] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  501.725089] dma dma0chan0: dwc_prep_slave_sg
[  501.729369] dma dma0chan0: scanned 1 descriptors on freelist
[  501.735039] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  501.757141] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  501.772724] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  501.780991] dma dma0chan0: dwc_prep_slave_sg
[  501.785269] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  501.793936] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  501.801340] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  501.809958] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  501.816668] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  501.840290] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  501.854564] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  501.862832] dma dma0chan0: dwc_prep_slave_sg
[  501.867110] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  501.887543] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  501.901734] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  501.910610] dma dma0chan0: dwc_prep_slave_sg
[  501.914889] dma dma0chan0: scanned 1 descriptors on freelist
[  501.920559] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  501.943200] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  501.958783] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  501.967050] dma dma0chan0: dwc_prep_slave_sg
[  501.971329] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  501.979988] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  501.987390] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  501.996008] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  502.002719] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  502.022570] ata3.00: configured for UDMA/33
[  502.035525] ata3.00: device reported invalid CHS sector 0
[  502.042428] ata3: EH complete
[  502.045766] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  502.054647] dma dma0chan0: dwc_prep_slave_sg
[  502.058925] dma dma0chan0: scanned 1 descriptors on freelist
[  502.064596] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  533.099356] ata3: lost interrupt (Status 0x50)
[  533.104804] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  533.112690] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.122917] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  533.130049] ata3.00: failed command: READ DMA EXT
[  533.135721] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  533.135721]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  533.150381] ata3.00: status: { DRDY }
[  533.155044] ata3: hard resetting link
[  533.158759] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  533.168405] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  533.186252] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  533.200680] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  533.210826] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  533.218727] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  533.429335] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  533.437194] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.453325] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.466320] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.488903] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.507347] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.520320] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.533321] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.546320] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.555769] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  533.563663] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  533.573788] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.591624] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  533.607598] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.615468] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.625665] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.633590] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  533.643633] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  533.651618] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.661905] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  533.669812] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.679884] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  533.694853] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.709624] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  533.717512] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  533.731686] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  533.740566] dma dma0chan0: dwc_prep_slave_sg
[  533.744846] dma dma0chan0: scanned 1 descriptors on freelist
[  533.750515] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  533.765418] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  533.780996] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  533.789264] dma dma0chan0: dwc_prep_slave_sg
[  533.793542] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  533.802216] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  533.809620] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  533.818238] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  533.824941] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  533.857470] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  533.871743] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  533.880010] dma dma0chan0: dwc_prep_slave_sg
[  533.884289] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  533.897273] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  533.911464] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  533.920341] dma dma0chan0: dwc_prep_slave_sg
[  533.924620] dma dma0chan0: scanned 1 descriptors on freelist
[  533.930290] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  533.952441] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  533.968019] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  533.976286] dma dma0chan0: dwc_prep_slave_sg
[  533.980564] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  533.989221] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  533.996626] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  534.005244] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  534.011954] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  534.036587] ata3.00: configured for UDMA/33
[  534.040856] ata3.00: device reported invalid CHS sector 0
[  534.055422] ata3: EH complete
[  534.062072] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  534.070969] dma dma0chan0: dwc_prep_slave_sg
[  534.075245] dma dma0chan0: scanned 1 descriptors on freelist
[  534.080915] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  565.099237] ata3: lost interrupt (Status 0x50)
[  565.105522] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  565.113431] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.123701] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  565.130826] ata3.00: failed command: READ DMA EXT
[  565.136537] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  565.136537]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  565.151207] ata3.00: status: { DRDY }
[  565.155661] ata3: hard resetting link
[  565.159378] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  565.168741] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  565.176643] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  565.194246] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  565.211221] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  565.219087] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  565.430206] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  565.438070] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.454200] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.468182] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.481180] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.504219] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.517180] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.530180] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.543180] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.552628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  565.560542] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  565.570672] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.578586] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  565.597256] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.612905] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.620791] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.631007] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  565.638924] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  565.649036] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.657128] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  565.667356] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.675246] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  565.683024] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.690934] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  565.709268] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  565.723461] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  565.732337] dma dma0chan0: dwc_prep_slave_sg
[  565.736617] dma dma0chan0: scanned 1 descriptors on freelist
[  565.742286] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  565.763448] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  565.779025] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  565.787292] dma dma0chan0: dwc_prep_slave_sg
[  565.791572] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  565.800224] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  565.807632] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  565.816250] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  565.822953] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  565.842312] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  565.856586] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  565.864853] dma dma0chan0: dwc_prep_slave_sg
[  565.869123] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  565.894502] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  565.908695] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  565.917570] dma dma0chan0: dwc_prep_slave_sg
[  565.921850] dma dma0chan0: scanned 1 descriptors on freelist
[  565.927520] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  565.949278] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  565.964859] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  565.973126] dma dma0chan0: dwc_prep_slave_sg
[  565.977404] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  565.986056] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  565.993457] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  566.002075] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  566.008777] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  566.033344] ata3.00: configured for UDMA/33
[  566.037589] ata3.00: device reported invalid CHS sector 0
[  566.051290] ata3: EH complete
[  566.058919] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  566.067818] dma dma0chan0: dwc_prep_slave_sg
[  566.072094] dma dma0chan0: scanned 1 descriptors on freelist
[  566.077764] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeccbc100, count: 1 addr: 0xfffffffff6a18400
[  597.099114] ata3: lost interrupt (Status 0x50)
[  597.107091] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  597.129662] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.150165] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  597.172706] ata3.00: failed command: READ DMA EXT
[  597.182999] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  597.182999]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  597.220078] ata3.00: status: { DRDY }
[  597.230758] ata3: hard resetting link
[  597.242107] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  597.266104] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  597.290050] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  597.309051] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  597.327051] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  597.343050] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  597.561081] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  597.578597] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.605875] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.622748] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.636040] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.649039] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.662040] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.685082] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.702080] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.713677] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  597.725996] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  597.737806] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.750167] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  597.763976] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.781071] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.806121] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.828706] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  597.844923] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  597.857980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.865895] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  597.886700] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.899237] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  597.905472] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.915084] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  597.922970] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  597.937145] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  597.946025] dma dma0chan0: dwc_prep_slave_sg
[  597.950305] dma dma0chan0: scanned 1 descriptors on freelist
[  597.955975] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213c48, count: 1 addr: 0xfffffffff6a18400
[  597.970160] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  597.985734] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  597.994002] dma dma0chan0: dwc_prep_slave_sg
[  597.998281] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  598.006942] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  598.014342] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  598.022960] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  598.029662] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  598.061846] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  598.076117] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  598.084385] dma dma0chan0: dwc_prep_slave_sg
[  598.088662] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  598.101307] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  598.115490] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  598.124368] dma dma0chan0: dwc_prep_slave_sg
[  598.128648] dma dma0chan0: scanned 1 descriptors on freelist
[  598.134317] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed213bb8, count: 1 addr: 0xfffffffff6a18400
[  598.157366] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  598.172948] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  598.181216] dma dma0chan0: dwc_prep_slave_sg
[  598.185495] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  598.194160] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  598.201565] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  598.210182] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  598.216885] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  598.241946] ata3.00: configured for UDMA/33
[  598.246234] ata3.00: device reported invalid CHS sector 0
[  598.260358] sd 3:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  598.276747] sd 3:0:0:0: [sdc] tag#0 Sense Key : 0x5 [current] [descriptor] 
[  598.283767] sd 3:0:0:0: [sdc] tag#0 ASC=0x21 ASCQ=0x4 
[  598.291467] sd 3:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 3a 38 5f 80 00 00 08 00
[  598.299112] blk_update_request: I/O error, dev sdc, sector 976772992
[  598.307321] ata3: EH complete
[  598.311192] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  598.320082] dma dma0chan0: dwc_prep_slave_sg
[  598.324359] dma dma0chan0: scanned 1 descriptors on freelist
[  598.330029] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecd3d000, count: 1 addr: 0xfffffffff6a18400

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 22:49                                             ` Julian Margetson
@ 2015-12-18 23:16                                               ` Måns Rullgård
  2015-12-19  2:34                                                 ` Andy Shevchenko
  0 siblings, 1 reply; 154+ messages in thread
From: Måns Rullgård @ 2015-12-18 23:16 UTC (permalink / raw)
  To: Julian Margetson; +Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 6:33 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>>
>>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>>> address 0x00000000
>>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>>> code?
>>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>>
>>>>> Changed the sata-dwc to a module .
>>>>>
>>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> That's strange.  The only way that can happen is if
>>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>>> of drivers/dma/dw/core.c
>>>>
>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> Could you post the entire kernel log?  There might be important
>> information before the errors start.
>>
>
>
> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
> [    0.000000] Using Canyonlands machine description
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
> [    0.000000]   Normal   empty
> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg

[...]

> [   13.643415] systemd[1]: Mounted Configuration File System.
> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

This log is weird.  The sata_dwc_probe() function prints several things
(one using dev_notice()), for instance this:

	/* Read the ID and Version Registers */
	idr = in_le32(&hsdev->sata_dwc_regs->idr);
	versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
	dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
		   idr, ver[0], ver[1], ver[2]);

The dw_dma_probe() function also prints a line:

	dev_info(chip->dev, "DesignWare DMA Controller, %d channels\n",
		 pdata->nr_channels);

These messages are nowhere to be seen in your log, nor are numerous
others that really must appear before before sata_dwc_qc_prep_by_tag()
can be called.

I'd like to note that the driver works on my Sigma Designs based system
using a different DMA controller, so it's not completely broken.  The
DMA driver could still be faulty, but that still doesn't explain the
missing kernel messages.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-18 23:16                                               ` Måns Rullgård
@ 2015-12-19  2:34                                                 ` Andy Shevchenko
  2015-12-19 11:39                                                   ` Julian Margetson
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-19  2:34 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Sat, Dec 19, 2015 at 1:16 AM, Måns Rullgård <mans@mansr.com> wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/18/2015 6:33 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>>>
>>>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>>>> address 0x00000000
>>>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>>>> code?
>>>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>>>
>>>>>> Changed the sata-dwc to a module .
>>>>>>
>>>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> That's strange.  The only way that can happen is if
>>>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>>>> of drivers/dma/dw/core.c
>>>>>
>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> Could you post the entire kernel log?  There might be important
>>> information before the errors start.
>>>
>>
>>
>> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
>> [    0.000000] Using Canyonlands machine description
>> [    0.000000] Initializing cgroup subsys cpu
>> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
>> [    0.000000] Zone ranges:
>> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
>> [    0.000000]   Normal   empty
>> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
>> [    0.000000] Movable zone start for each node
>> [    0.000000] Early memory node ranges
>> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
>> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
>> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg

I would suggest to use console=tty1 instead of console=tty0.

>
> [...]
>
>> [   13.643415] systemd[1]: Mounted Configuration File System.
>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>
> This log is weird.  The sata_dwc_probe() function prints several things
> (one using dev_notice()), for instance this:
>
>         /* Read the ID and Version Registers */
>         idr = in_le32(&hsdev->sata_dwc_regs->idr);
>         versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
>         dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
>                    idr, ver[0], ver[1], ver[2]);
>
> The dw_dma_probe() function also prints a line:
>
>         dev_info(chip->dev, "DesignWare DMA Controller, %d channels\n",
>                  pdata->nr_channels);
>
> These messages are nowhere to be seen in your log, nor are numerous
> others that really must appear before before sata_dwc_qc_prep_by_tag()
> can be called.
>

It would be better to add 'ignore_loglevel' to the cmdline as well.

> I'd like to note that the driver works on my Sigma Designs based system
> using a different DMA controller, so it's not completely broken.  The
> DMA driver could still be faulty, but that still doesn't explain the
> missing kernel messages.
>
> --
> Måns Rullgård
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19  2:34                                                 ` Andy Shevchenko
@ 2015-12-19 11:39                                                   ` Julian Margetson
  2015-12-19 15:40                                                       ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 11:39 UTC (permalink / raw)
  To: Andy Shevchenko, Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/18/2015 10:34 PM, Andy Shevchenko wrote:
> On Sat, Dec 19, 2015 at 1:16 AM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/18/2015 6:33 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>
>>>>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>>>>
>>>>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>>>>> address 0x00000000
>>>>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>>>>> code?
>>>>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>>>>
>>>>>>> Changed the sata-dwc to a module .
>>>>>>>
>>>>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> That's strange.  The only way that can happen is if
>>>>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>>>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>>>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>>>>> of drivers/dma/dw/core.c
>>>>>>
>>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> Could you post the entire kernel log?  There might be important
>>>> information before the errors start.
>>>>
>>>
>>> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
>>> [    0.000000] Using Canyonlands machine description
>>> [    0.000000] Initializing cgroup subsys cpu
>>> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
>>> [    0.000000] Zone ranges:
>>> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
>>> [    0.000000]   Normal   empty
>>> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
>>> [    0.000000] Movable zone start for each node
>>> [    0.000000] Early memory node ranges
>>> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
>>> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
>>> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
>>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg
> I would suggest to use console=tty1 instead of console=tty0.
>
>> [...]
>>
>>> [   13.643415] systemd[1]: Mounted Configuration File System.
>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>> This log is weird.  The sata_dwc_probe() function prints several things
>> (one using dev_notice()), for instance this:
>>
>>          /* Read the ID and Version Registers */
>>          idr = in_le32(&hsdev->sata_dwc_regs->idr);
>>          versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
>>          dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
>>                     idr, ver[0], ver[1], ver[2]);
>>
>> The dw_dma_probe() function also prints a line:
>>
>>          dev_info(chip->dev, "DesignWare DMA Controller, %d channels\n",
>>                   pdata->nr_channels);
>>
>> These messages are nowhere to be seen in your log, nor are numerous
>> others that really must appear before before sata_dwc_qc_prep_by_tag()
>> can be called.
>>
> It would be better to add 'ignore_loglevel' to the cmdline as well.
>
>> I'd like to note that the driver works on my Sigma Designs based system
>> using a different DMA controller, so it's not completely broken.  The
>> DMA driver could still be faulty, but that still doesn't explain the
>> missing kernel messages.
>>
>> --
>> Måns Rullgård
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>
>


[-- Attachment #2: Kernel_Log2.log --]
[-- Type: text/plain, Size: 112700 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 07:30:22 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #9 PREEMPT Sat Dec 19 07:16:30 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000024] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000952] console [tty1] enabled
[    0.000991] pid_max: default: 32768 minimum: 301
[    0.001149] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001190] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.005048] devtmpfs: initialized
[    0.007832] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.008272] xor: measuring software checksum speed
[    0.018381]    8regs     :   856.000 MB/sec
[    0.028392]    8regs_prefetch:   784.000 MB/sec
[    0.038423]    32regs    :  1120.000 MB/sec
[    0.048462]    32regs_prefetch:   996.000 MB/sec
[    0.048481] xor: using function: 32regs (1120.000 MB/sec)
[    0.048528] prandom: seed boundary self test passed
[    0.050984] prandom: 100 self tests passed
[    0.051601] NET: Registered protocol family 16
[    0.054582] cpuidle: using governor ladder
[    0.057616] cpuidle: using governor menu
[    0.058050] 256k L2-cache enabled
[    0.058168] PCIE0: Port disabled via device-tree
[    0.058230] PCIE1: Checking link...
[    0.058247] PCIE1: Device detected, waiting for link...
[    0.058266] PCIE1: link is up !
[    0.160449] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.160499]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.160535]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.160566]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.160605] 4xx PCI DMA offset set to 0x00000000
[    0.160623] 4xx PCI DMA window base to 0x0000000000000000
[    0.160642] DMA window size 0x0000000080000000
[    0.160677] PCIE1: successfully set as root-complex
[    0.160752] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.160781]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.160816]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.160848]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.160877] 4xx PCI DMA offset set to 0x00000000
[    0.160894] 4xx PCI DMA window base to 0x0000000000000000
[    0.160913] DMA window size 0x0000000080000000
[    0.161421] PCI: Probing PCI hardware
[    0.161540] PCI host bridge to bus 0000:80
[    0.161570] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.161608] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.161645] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.161683] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.161710] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.161763] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.161817] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.161863] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.162177] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.162250] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.162291] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.162322] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.162359] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.162437] pci 0000:81:00.0: supports D1 D2
[    0.162459] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.162607] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.162671] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.162771] pci 0000:81:00.1: supports D1 D2
[    0.162908] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162941] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.162967] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.163086] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.163203] PCI host bridge to bus 0001:00
[    0.163229] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.163256] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.163294] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.163329] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.163353] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.163396] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.163433] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.163458] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.163484] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.163509] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.163535] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.163560] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.163588] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.163631] pci 0001:00:04.0: supports D1 D2
[    0.163763] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.163808] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.163834] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.163884] pci 0001:00:06.0: supports D1 D2
[    0.164072] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.164183] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164218] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.164244] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.164275] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164318] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.164357] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.164391] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.164430] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.164458] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.164481] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.164507] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.164534] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164569] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.164593] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.164617] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.164641] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.164665] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.164689] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164727] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.164755] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.164783] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.164816] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.164842] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.164868] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.164893] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.164919] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.164944] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.164971] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.164995] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.165019] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.192330] raid6: int32x1  gen()   300 MB/s
[    0.209486] raid6: int32x1  xor()   173 MB/s
[    0.226514] raid6: int32x2  gen()   433 MB/s
[    0.243562] raid6: int32x2  xor()   240 MB/s
[    0.260656] raid6: int32x4  gen()   476 MB/s
[    0.277733] raid6: int32x4  xor()   267 MB/s
[    0.294790] raid6: int32x8  gen()   234 MB/s
[    0.311962] raid6: int32x8  xor()   218 MB/s
[    0.311987] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.312006] raid6: .... xor() 267 MB/s, rmw enabled
[    0.312025] raid6: using intx1 recovery algorithm
[    0.312340] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.312383] vgaarb: loaded
[    0.312398] vgaarb: bridge control possible 0000:81:00.0
[    0.312677] SCSI subsystem initialized
[    0.312871] libata version 3.00 loaded.
[    0.313094] usbcore: registered new interface driver usbfs
[    0.313160] usbcore: registered new interface driver hub
[    0.313225] usbcore: registered new device driver usb
[    0.313338] pps_core: LinuxPPS API ver. 1 registered
[    0.313360] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.313411] PTP clock support registered
[    0.313569] EDAC MC: Ver: 3.0.0
[    0.313968] Advanced Linux Sound Architecture Driver Initialized.
[    0.333908] DMA-API: preallocated 65536 debug entries
[    0.333950] DMA-API: debugging enabled by kernel config
[    0.334008] clocksource: Switched to clocksource timebase
[    0.340625] NET: Registered protocol family 2
[    0.341237] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.341358] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.341682] TCP: Hash tables configured (established 8192 bind 8192)
[    0.341815] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.341897] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.342260] NET: Registered protocol family 1
[    0.342598] RPC: Registered named UNIX socket transport module.
[    0.342629] RPC: Registered udp transport module.
[    0.342647] RPC: Registered tcp transport module.
[    0.342665] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.342749] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.343462] Could not remap bcsr
[    0.346666] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.349455] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.359627] ntfs: driver 2.1.32 [Flags: R/W].
[    0.360204] fuse init (API version 7.23)
[    0.364400] async_tx: api initialized (async)
[    0.364525] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.364563] io scheduler noop registered
[    0.364717] io scheduler cfq registered (default)
[    0.366709] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.366738] crc32: self tests passed, processed 225944 bytes in 891727 nsec
[    0.367772] crc32c: CRC_LE_BITS = 64
[    0.367794] crc32c: self tests passed, processed 225944 bytes in 446743 nsec
[    0.434226] crc32_combine: 8373 self tests passed
[    0.500847] crc32c_combine: 8373 self tests passed
[    0.500914] glob: 64 self-tests passed, 0 failed
[    0.539171] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.539969] console [ttyS0] disabled
[    0.560168] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.846794] console [ttyS0] enabled
[    1.870919] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.880804] console [ttyS0] disabled
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #9 PREEMPT Sat Dec 19 07:16:30 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000024] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000952] console [tty1] enabled
[    0.000991] pid_max: default: 32768 minimum: 301
[    0.001149] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001190] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.005048] devtmpfs: initialized
[    0.007832] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.008272] xor: measuring software checksum speed
[    0.018381]    8regs     :   856.000 MB/sec
[    0.028392]    8regs_prefetch:   784.000 MB/sec
[    0.038423]    32regs    :  1120.000 MB/sec
[    0.048462]    32regs_prefetch:   996.000 MB/sec
[    0.048481] xor: using function: 32regs (1120.000 MB/sec)
[    0.048528] prandom: seed boundary self test passed
[    0.050984] prandom: 100 self tests passed
[    0.051601] NET: Registered protocol family 16
[    0.054582] cpuidle: using governor ladder
[    0.057616] cpuidle: using governor menu
[    0.058050] 256k L2-cache enabled
[    0.058168] PCIE0: Port disabled via device-tree
[    0.058230] PCIE1: Checking link...
[    0.058247] PCIE1: Device detected, waiting for link...
[    0.058266] PCIE1: link is up !
[    0.160449] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.160499]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.160535]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.160566]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.160605] 4xx PCI DMA offset set to 0x00000000
[    0.160623] 4xx PCI DMA window base to 0x0000000000000000
[    0.160642] DMA window size 0x0000000080000000
[    0.160677] PCIE1: successfully set as root-complex
[    0.160752] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.160781]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.160816]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.160848]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.160877] 4xx PCI DMA offset set to 0x00000000
[    0.160894] 4xx PCI DMA window base to 0x0000000000000000
[    0.160913] DMA window size 0x0000000080000000
[    0.161421] PCI: Probing PCI hardware
[    0.161540] PCI host bridge to bus 0000:80
[    0.161570] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.161608] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.161645] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.161683] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.161710] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.161763] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.161817] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.161863] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.162177] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.162250] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.162291] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.162322] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.162359] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.162437] pci 0000:81:00.0: supports D1 D2
[    0.162459] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.162607] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.162671] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.162771] pci 0000:81:00.1: supports D1 D2
[    0.162908] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162941] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.162967] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.163086] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.163203] PCI host bridge to bus 0001:00
[    0.163229] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.163256] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.163294] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.163329] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.163353] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.163396] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.163433] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.163458] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.163484] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.163509] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.163535] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.163560] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.163588] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.163631] pci 0001:00:04.0: supports D1 D2
[    0.163763] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.163808] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.163834] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.163884] pci 0001:00:06.0: supports D1 D2
[    0.164072] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.164183] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164218] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.164244] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.164275] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164318] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.164357] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.164391] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.164430] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.164458] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.164481] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.164507] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.164534] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164569] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.164593] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.164617] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.164641] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.164665] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.164689] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.164727] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.164755] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.164783] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.164816] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.164842] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.164868] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.164893] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.164919] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.164944] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.164971] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.164995] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.165019] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.192330] raid6: int32x1  gen()   300 MB/s
[    0.209486] raid6: int32x1  xor()   173 MB/s
[    0.226514] raid6: int32x2  gen()   433 MB/s
[    0.243562] raid6: int32x2  xor()   240 MB/s
[    0.260656] raid6: int32x4  gen()   476 MB/s
[    0.277733] raid6: int32x4  xor()   267 MB/s
[    0.294790] raid6: int32x8  gen()   234 MB/s
[    0.311962] raid6: int32x8  xor()   218 MB/s
[    0.311987] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.312006] raid6: .... xor() 267 MB/s, rmw enabled
[    0.312025] raid6: using intx1 recovery algorithm
[    0.312340] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.312383] vgaarb: loaded
[    0.312398] vgaarb: bridge control possible 0000:81:00.0
[    0.312677] SCSI subsystem initialized
[    0.312871] libata version 3.00 loaded.
[    0.313094] usbcore: registered new interface driver usbfs
[    0.313160] usbcore: registered new interface driver hub
[    0.313225] usbcore: registered new device driver usb
[    0.313338] pps_core: LinuxPPS API ver. 1 registered
[    0.313360] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.313411] PTP clock support registered
[    0.313569] EDAC MC: Ver: 3.0.0
[    0.313968] Advanced Linux Sound Architecture Driver Initialized.
[    0.333908] DMA-API: preallocated 65536 debug entries
[    0.333950] DMA-API: debugging enabled by kernel config
[    0.334008] clocksource: Switched to clocksource timebase
[    0.340625] NET: Registered protocol family 2
[    0.341237] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.341358] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.341682] TCP: Hash tables configured (established 8192 bind 8192)
[    0.341815] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.341897] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.342260] NET: Registered protocol family 1
[    0.342598] RPC: Registered named UNIX socket transport module.
[    0.342629] RPC: Registered udp transport module.
[    0.342647] RPC: Registered tcp transport module.
[    0.342665] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.342749] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.343462] Could not remap bcsr
[    0.346666] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.349455] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.359627] ntfs: driver 2.1.32 [Flags: R/W].
[    0.360204] fuse init (API version 7.23)
[    0.364400] async_tx: api initialized (async)
[    0.364525] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.364563] io scheduler noop registered
[    0.364717] io scheduler cfq registered (default)
[    0.366709] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.366738] crc32: self tests passed, processed 225944 bytes in 891727 nsec
[    0.367772] crc32c: CRC_LE_BITS = 64
[    0.367794] crc32c: self tests passed, processed 225944 bytes in 446743 nsec
[    0.434226] crc32_combine: 8373 self tests passed
[    0.500847] crc32c_combine: 8373 self tests passed
[    0.500914] glob: 64 self-tests passed, 0 failed
[    0.539171] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.539969] console [ttyS0] disabled
[    0.560168] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.846794] console [ttyS0] enabled
[    1.870919] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.880804] console [ttyS0] disabled
[    1.884490] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    3.195928] console [ttyS0] enabled
[    3.200119] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    3.209491] Generic non-volatile memory driver v1.1
[    3.214667] [drm] Initialized drm 1.1.0 20060810
[    3.219396] [drm] radeon kernel modesetting enabled.
[    3.225162] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.233176] [drm] register mmio base: 0xe90000000
[    3.237925] [drm] register mmio size: 262144
[    3.573996] ATOM BIOS: C44501
[    3.577260] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.586182] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.593867] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.598761] [drm] RAM width 128bits DDR
[    3.602801] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    3.609288] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    3.615838] [TTM] Initializing pool allocator
[    3.620300] [drm] radeon: 1024M of VRAM memory ready
[    3.625309] [drm] radeon: 2048M of GTT memory ready.
[    3.630363] [drm] Loading verde Microcode
[    3.634429] [drm] Internal thermal controller with fan control
[    3.640508] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.694186] [drm] radeon: dpm initialized
[    3.698438] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.707661] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.715837] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.732597] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.789439] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.796787] radeon 0000:81:00.0: WB enabled
[    3.801032] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.811153] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.821273] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.831396] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.841516] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.882058] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.892203] radeon 0000:81:00.0: VCE init error (-22).
[    3.897373] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.904018] [drm] Driver supports precise vblank timestamp query.
[    3.910136] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.916068] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.924345] radeon 0000:81:00.0: radeon: using MSI.
[    3.929305] [drm] radeon: irq initialized.
[    4.687638] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.696493] radeon 0000:81:00.0: disabling GPU acceleration
[    4.905058] [drm] Radeon Display Connectors
[    4.909328] [drm] Connector 0:
[    4.912432] [drm]   HDMI-A-1
[    4.915340] [drm]   HPD4
[    4.917895] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.925313] [drm]   Encoders:
[    4.928301] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.932588] [drm] Connector 1:
[    4.935660] [drm]   DVI-I-1
[    4.938474] [drm]   HPD2
[    4.941029] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.948447] [drm]   Encoders:
[    4.951433] [drm]     DFP2: INTERNAL_UNIPHY
[    4.955634] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.072716] [drm] fb mappable at 0x80678000
[    5.076938] [drm] vram apper at 0x80000000
[    5.081052] [drm] size 8294400
[    5.084124] [drm] fb depth is 24
[    5.087371] [drm]    pitch is 7680
[    5.365235] Console: switching to colour frame buffer device 240x67
[    5.443459] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    5.453074] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    5.470305] brd: module loaded
[    5.478052] loop: module loaded
[    5.481628] sata_sil 0001:00:04.0: version 2.4
[    5.486452] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    5.494919] scsi host0: sata_sil
[    5.498653] scsi host1: sata_sil
[    5.502241] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    5.509991] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    5.518372] PPC 4xx OCP EMAC driver, version 3.54
[    5.523910] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    5.530126] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    5.535861] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    5.543433] TAH /plb/opb/emac-tah@ef601350 initialized
[    5.548926] TAH /plb/opb/emac-tah@ef601450 initialized
[    5.554639] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    5.562145] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    5.569434] eth0: found Generic MII PHY (0x00)
[    5.574321] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    5.581758] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    5.589055] eth1: found Generic MII PHY (0x01)
[    5.593817] PPP generic driver version 2.4.2
[    5.598517] PPP BSD Compression module registered
[    5.603519] PPP Deflate Compression module registered
[    5.608877] NET: Registered protocol family 24
[    5.613783] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.620861] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    5.625840] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    5.634894] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    5.647026] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    5.653756] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.660955] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.668594] usb usb1: Product: OF EHCI
[    5.672571] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    5.679383] usb usb1: SerialNumber: PPC-OF USB
[    5.684495] hub 1-0:1.0: USB hub found
[    5.702491] hub 1-0:1.0: 1 port detected
[    5.720561] ehci-pci: EHCI PCI platform driver
[    5.738898] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.759100] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.777616] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.799630] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.844036] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.896404] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.936012] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.986286] ata1.00: configured for UDMA/100
[    6.022023] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    6.046282] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    6.093756] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.114436] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    6.156271] sd 0:0:0:0: [sda] Write Protect is off
[    6.196021] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    6.216599] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    6.258017] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.283125] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.331112] hub 1-1:1.0: USB hub found
[    6.361793]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    6.409217] hub 1-1:1.0: 7 ports detected
[    6.461702] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.501036] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    6.565154] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    6.617130] ata2.00: configured for UDMA/100
[    6.670101] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    6.747026] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.771907] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.823029] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.870652] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    6.909687] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.942250] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.974992] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    7.000436] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.026583] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.052571] usb 1-1.1: Product: USB 2.0 Hub
[    7.075377] usb usb2: Product: OF OHCI
[    7.097886] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    7.123059] hub 1-1.1:1.0: USB hub found
[    7.145651] usb usb2: SerialNumber: PPC-OF USB
[    7.168929] hub 1-1.1:1.0: 4 ports detected
[    7.191892] hub 2-0:1.0: USB hub found
[    7.214110] hub 2-0:1.0: 1 port detected
[    7.236758] ohci-pci: OHCI PCI platform driver
[    7.259745] usbcore: registered new interface driver usblp
[    7.283678] usbcore: registered new interface driver usb-storage
[    7.307945] usbcore: registered new interface driver usbserial
[    7.331720] usbcore: registered new interface driver usbserial_generic
[    7.356069] usbserial: USB Serial support registered for generic
[    7.379912] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    7.404927] mousedev: PS/2 mouse device common for all mice
[    7.428570] i2c /dev entries driver
[    7.452495] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    7.477700] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    7.502081] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    7.525938] md: linear personality registered for level -1
[    7.549276] md: raid0 personality registered for level 0
[    7.572442] md: raid1 personality registered for level 1
[    7.595349] md: raid10 personality registered for level 10
[    7.618605] md: raid6 personality registered for level 6
[    7.641650] md: raid5 personality registered for level 5
[    7.664544] md: raid4 personality registered for level 4
[    7.687751] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    7.713983] EDAC PPC4xx MC: v1.0.0
[    7.734972] EDAC PPC4xx MC: Reporting type: interrupt
[    7.757576] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    7.782194] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    7.807330] hidraw: raw HID events driver (C) Jiri Kosina
[    7.830421] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.856237] usbcore: registered new interface driver usbhid
[    7.879712] usb 1-1.2: Product: USB Keyboard
[    7.901729] usbhid: USB HID core driver
[    7.923228] usb 1-1.2: Manufacturer: CHICONY
[    7.945102] usbcore: registered new interface driver snd-usb-audio
[    7.969185] usbcore: registered new interface driver snd-ua101
[    7.992668] usbcore: registered new interface driver snd-usb-usx2y
[    8.016309] ipip: IPv4 over IPv4 tunneling driver
[    8.039919] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    8.070724] Initializing XFRM netlink socket
[    8.093892] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    8.118740] NET: Registered protocol family 10
[    8.140643] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.165418] sit: IPv6 over IPv4 tunneling driver
[    8.187198] NET: Registered protocol family 17
[    8.208448] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    8.237748] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    8.260676] NET: Registered protocol family 15
[    8.283570] Running MSI bitmap self-tests ...
[    8.307582] Key type encrypted registered
[    8.329925] rtc-m41t80 8-0068: setting system clock to 2015-12-19 07:29:40 UTC (1450510180)
[    8.355420] ALSA device list:
[    8.375164] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    8.399022]   No soundcards found.
[    8.435074] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    8.517388] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    8.548185] md: Waiting for all devices to be available before autodetect
[    8.572939] md: If you don't use raid, use raid=noautodetect
[    8.597300] md: Autodetecting RAID arrays.
[    8.619298] md: Scanned 0 and added 0 devices.
[    8.641444] md: autorun ...
[    8.661759] md: ... autorun DONE.
[    8.683505] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    8.708264] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    8.733596] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.759346] usb 1-1.6: Product: USB Receiver
[    8.781959] usb 1-1.6: Manufacturer: Logitech
[    8.808952] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    8.850499] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    8.877588] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    8.903971] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    8.942852] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    8.982723] devtmpfs: mounted
[    9.006561] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    9.033908] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    9.073153] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    9.179033] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    9.301106] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    9.329948] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.359054] usb 1-1.7: Product: Ultra Fast Media 
[    9.385502] usb 1-1.7: Manufacturer: Generic
[    9.411517] usb 1-1.7: SerialNumber: 000000225001
[    9.438648] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    9.467371] scsi host2: usb-storage 1-1.7:1.0
[    9.612318] random: nonblocking pool is initialized
[   10.378304] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[   10.490351] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[   10.532351] systemd[1]: Detected architecture ppc.
[   10.561217] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[   10.593813] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   10.624201] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   10.738888] systemd[1]: Set hostname to <Sam460ex>.
[   11.013157] systemd-fstab-generator[118]: Mount point  is not a valid path, ignoring.
[   11.731680] systemd[112]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[   12.114434] systemd[1]: Listening on udev Kernel Socket.
[   12.167872] systemd[1]: Created slice User and Session Slice.
[   12.219976] systemd[1]: Reached target Encrypted Volumes.
[   12.271988] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   12.328330] systemd[1]: Listening on Syslog Socket.
[   12.454329] systemd[1]: Created slice System Slice.
[   12.505243] systemd[1]: Created slice system-getty.slice.
[   12.556622] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   12.610451] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   12.663766] systemd[1]: Listening on fsck to fsckd communication Socket.
[   12.715996] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   12.766688] systemd[1]: Reached target Swap.
[   12.815423] systemd[1]: Listening on Journal Socket.
[   12.867949] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   12.960359] systemd[1]: Mounting Debug File System...
[   13.021582] systemd[1]: Started Read required files in advance.
[   13.091685] systemd[1]: Mounting POSIX Message Queue File System...
[   13.153885] systemd[1]: Reached target User and Group Name Lookups.
[   13.235485] systemd[1]: Starting Load Kernel Modules...
[   13.291532] systemd[1]: Starting Uncomplicated firewall...
[   13.345257] systemd[1]: Reached target Slices.
[   13.393394] systemd[1]: Listening on Journal Socket (/dev/log).
[   13.446868] systemd[1]: Starting Journal Service...
[   13.499488] systemd[1]: Reached target Remote File Systems (Pre).
[   13.551527] systemd[1]: Reached target Remote File Systems.
[   13.601668] systemd[1]: Listening on udev Control Socket.
[   13.677119] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   13.728651] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   13.759817] systemd[1]: Failed to start Load Kernel Modules.
[   13.833762] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   13.862567] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   13.892677] systemd[1]: Started Uncomplicated firewall.
[   13.958779] systemd[1]: Mounted Debug File System.
[   14.008093] systemd[1]: Mounted POSIX Message Queue File System.
[   14.135897] systemd[1]: Starting Apply Kernel Variables...
[   14.192177] systemd[1]: Mounting FUSE Control File System...
[   14.291816] systemd[1]: Mounting Configuration File System...
[   14.436150] systemd[1]: Starting Create Static Device Nodes in /dev...
[   14.550470] systemd[1]: Mounted FUSE Control File System.
[   14.632354] systemd[1]: Mounted Configuration File System.
[   14.694905] systemd[1]: Started Journal Service.
[   16.665999] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   16.694612] systemd-remount[153]: unhandled signal 11 at 0000000c nip 1ff849a4 lr 1ff8471c code 30001
[   17.035478] systemd-journald[133]: Received request to flush runtime journal from PID 1
[   18.459275] sata-dwc 4bffd1000.sata: ioremap done for SATA register address
[   18.756140] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[   18.902080] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   19.029117] sata-dwc 4bffd1000.sata: DW_PARAMS: 0x10800804
[   19.092107] sata-dwc 4bffd1000.sata: DWC_PARAMS[0]: 0x49230b1b
[   19.163182] sata-dwc 4bffd1000.sata: DesignWare DMA Controller, 1 channels
[   19.218044] sata-dwc 4bffd1000.sata: sata_dwc_port_start: port_no=0
[   19.266038] dma dma0chan0: dwc_alloc_chan_resources
[   19.316079] dma dma0chan0: moving desc ffa0c000 to freelist
[   19.416053] dma dma0chan0: moving desc ffa0c060 to freelist
[   19.468040] dma dma0chan0: moving desc ffa0c0c0 to freelist
[   19.517055] dma dma0chan0: moving desc ffa0c120 to freelist
[   19.583093] dma dma0chan0: moving desc ffa0c180 to freelist
[   19.640058] dma dma0chan0: moving desc ffa0c1e0 to freelist
[   19.686040] dma dma0chan0: moving desc ffa0c240 to freelist
[   19.734041] dma dma0chan0: moving desc ffa0c2a0 to freelist
[   19.780057] dma dma0chan0: moving desc ffa0c300 to freelist
[   19.868081] dma dma0chan0: moving desc ffa0c360 to freelist
[   19.971129] dma dma0chan0: moving desc ffa0c3c0 to freelist
[   20.040190] dma dma0chan0: moving desc ffa0c420 to freelist
[   20.099058] dma dma0chan0: moving desc ffa0c480 to freelist
[   20.163051] dma dma0chan0: moving desc ffa0c4e0 to freelist
[   20.226040] dma dma0chan0: moving desc ffa0c540 to freelist
[   20.278575] dma dma0chan0: moving desc ffa0c5a0 to freelist
[   20.544075] dma dma0chan0: moving desc ffa0c600 to freelist
[   20.889108] dma dma0chan0: moving desc ffa0c660 to freelist
[   21.342067] dma dma0chan0: moving desc ffa0c6c0 to freelist
[   21.769148] dma dma0chan0: moving desc ffa0c720 to freelist
[   22.239110] dma dma0chan0: moving desc ffa0c780 to freelist
[   22.394895] dma dma0chan0: moving desc ffa0c7e0 to freelist
[   22.677075] dma dma0chan0: moving desc ffa0c840 to freelist
[   22.910882] dma dma0chan0: moving desc ffa0c8a0 to freelist
[   23.098565] dma dma0chan0: moving desc ffa0c900 to freelist
[   23.259305] dma dma0chan0: moving desc ffa0c960 to freelist
[   23.381851] dma dma0chan0: moving desc ffa0c9c0 to freelist
[   23.602287] dma dma0chan0: moving desc ffa0ca20 to freelist
[   23.793080] dma dma0chan0: moving desc ffa0ca80 to freelist
[   23.836677] eth0: link is up, 1000 FDX, pause enabled
[   24.016333] dma dma0chan0: moving desc ffa0cae0 to freelist
[   24.253258] dma dma0chan0: moving desc ffa0cb40 to freelist
[   24.507605] dma dma0chan0: moving desc ffa0cba0 to freelist
[   24.767302] dma dma0chan0: moving desc ffa0cc00 to freelist
[   25.034931] dma dma0chan0: moving desc ffa0cc60 to freelist
[   25.303172] dma dma0chan0: moving desc ffa0ccc0 to freelist
[   25.577937] dma dma0chan0: moving desc ffa0cd20 to freelist
[   25.798059] dma dma0chan0: moving desc ffa0cd80 to freelist
[   25.997066] dma dma0chan0: moving desc ffa0cde0 to freelist
[   26.144287] dma dma0chan0: moving desc ffa0ce40 to freelist
[   26.162475] dma dma0chan0: moving desc ffa0cea0 to freelist
[   26.184114] dma dma0chan0: moving desc ffa0cf00 to freelist
[   26.205612] dma dma0chan0: moving desc ffa0cf60 to freelist
[   26.224809] dma dma0chan0: moving desc ffa0d000 to freelist
[   26.243487] dma dma0chan0: moving desc ffa0d060 to freelist
[   26.264979] dma dma0chan0: moving desc ffa0d0c0 to freelist
[   26.285699] dma dma0chan0: moving desc ffa0d120 to freelist
[   26.306114] dma dma0chan0: moving desc ffa0d180 to freelist
[   26.324913] dma dma0chan0: moving desc ffa0d1e0 to freelist
[   26.342691] dma dma0chan0: moving desc ffa0d240 to freelist
[   26.360248] dma dma0chan0: moving desc ffa0d2a0 to freelist
[   26.378519] dma dma0chan0: moving desc ffa0d300 to freelist
[   26.395843] dma dma0chan0: moving desc ffa0d360 to freelist
[   26.417101] dma dma0chan0: moving desc ffa0d3c0 to freelist
[   26.437374] dma dma0chan0: moving desc ffa0d420 to freelist
[   26.454728] dma dma0chan0: moving desc ffa0d480 to freelist
[   26.476097] dma dma0chan0: moving desc ffa0d4e0 to freelist
[   26.494200] dma dma0chan0: moving desc ffa0d540 to freelist
[   26.511617] dma dma0chan0: moving desc ffa0d5a0 to freelist
[   26.528439] dma dma0chan0: moving desc ffa0d600 to freelist
[   26.545577] dma dma0chan0: moving desc ffa0d660 to freelist
[   26.562763] dma dma0chan0: moving desc ffa0d6c0 to freelist
[   26.579306] dma dma0chan0: moving desc ffa0d720 to freelist
[   26.595282] dma dma0chan0: moving desc ffa0d780 to freelist
[   26.611132] dma dma0chan0: moving desc ffa0d7e0 to freelist
[   26.627336] dma dma0chan0: dwc_alloc_chan_resources: allocated 64 descriptors
[   26.648107] dmaengine: __dma_request_channel: success (dma0chan0)
[   26.664477] sata-dwc 4bffd1000.sata: sata_dwc_port_start: clearing TXCHEN, RXCHEN in DMAC
[   26.681633] sata-dwc 4bffd1000.sata: sata_dwc_port_start: setting burst size in DBTSR
[   26.700399] sata-dwc 4bffd1000.sata: sata_dwc_port_start: done
[   26.717407] scsi host3: sata-dwc
[   26.730519] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   26.747776] ata3: SATA max UDMA/133 irq 36
[   26.762881] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   26.783728] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   26.800638] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   26.820690] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   26.839256] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   26.857262] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   27.079049] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   27.101265] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.123035] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.146038] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.167117] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.190038] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.211039] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.226680] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   27.244384] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   27.260647] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.278815] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   27.298630] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.319121] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.337376] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.353723] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   27.371590] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   27.389398] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.405495] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   27.423448] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.441133] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   27.455855] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   27.473654] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   27.497003] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   27.515116] dma dma0chan0: dwc_prep_slave_sg
[   27.528735] dma dma0chan0: scanned 1 descriptors on freelist
[   27.543962] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c88, count: 1 addr: 0xfffffffff6a18400
[   27.573150] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   27.599964] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   27.619472] dma dma0chan0: dwc_prep_slave_sg
[   27.635097] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   27.661574] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   27.681196] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   27.702137] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   27.721261] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   27.742694] ata3.00: ATA-8: WDC WD5000AAKS-00UU3A0, 01.03B01, max UDMA/133
[   27.768517] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 1/32)
[   27.789390] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   27.817993] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   27.840644] dma dma0chan0: dwc_prep_slave_sg
[   27.859411] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   27.891131] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   27.921309] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   27.946217] dma dma0chan0: dwc_prep_slave_sg
[   27.966634] dma dma0chan0: scanned 1 descriptors on freelist
[   27.988649] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[   28.020704] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   28.054322] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   28.080635] dma dma0chan0: dwc_prep_slave_sg
[   28.102865] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   28.129844] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   28.155368] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   28.182198] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   28.207085] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   28.244838] ata3.00: configured for UDMA/133
[   28.279436] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
[   28.308915] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   28.337770] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   28.364583] sd 3:0:0:0: [sdc] Write Protect is off
[   28.390294] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   28.415545] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.452506] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   28.480518] dma dma0chan0: dwc_prep_slave_sg
[   28.503735] dma dma0chan0: scanned 1 descriptors on freelist
[   28.528546] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400
[   28.557894] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   28.588047] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   28.617552] BUG: spinlock recursion on CPU#0, kworker/u2:1/85
[   28.643875]  lock: 0xed491110, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   28.672927] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex #9
[   28.701565] Workqueue: events_unbound async_run_entry_fn
[   28.728261] Call Trace:
[   28.751964] [ee3cf8f0] [c0049238] do_raw_spin_lock+0x4c/0x100 (unreliable)
[   28.780427] [ee3cf910] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   28.808148] [ee3cf920] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   28.839409] [ee3cf950] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   28.869038] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   28.896875] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   28.925159] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   28.953413] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   28.981695] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   29.009994] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   29.037929] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   29.065653] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   29.093621] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   29.120372] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   29.147988] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   29.175541] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   29.202595] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   29.228829] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   29.254739] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   29.280477] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   29.306098] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   29.331313] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   29.356209] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   29.380947] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   29.406059] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   29.431372] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   29.456510] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   29.480892] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   29.504196] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   49.528714] BUG: spinlock lockup suspected on CPU#0, kworker/u2:1/85
[   49.553298]  lock: 0xed491110, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   49.579477] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex #9
[   49.604799] Workqueue: events_unbound async_run_entry_fn
[   49.627972] Call Trace:
[   49.648162] [ee3cf8f0] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   49.672951] [ee3cf910] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   49.696589] [ee3cf920] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   49.723246] [ee3cf950] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   49.747919] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   49.770468] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   49.793411] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   49.816258] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   49.838968] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   49.861485] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   49.883647] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   49.905651] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   49.928081] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   49.949516] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   49.972050] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   49.994557] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   50.016666] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   50.038203] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   50.059591] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   50.080997] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   50.102233] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   50.122962] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   50.143249] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   50.163185] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   50.183377] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   50.203749] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   50.223880] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   50.243673] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   50.262587] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   50.282937] INFO: rcu_preempt self-detected stall on CPU
[   50.302201] 0-...: (1 ticks this GP) idle=89b/140000000000002/0 softirq=13852/13852 fqs=0 
[   50.324674]  (t=21830 jiffies g=6606 c=6605 q=17)
[   50.343507] rcu_preempt kthread starved for 21830 jiffies! g6606 c6605 f0x0 s3 ->state=0x1
[   50.366187] Task dump for CPU 0:
[   50.383773] kworker/u2:1    R running      0    85      2 0x00000800
[   50.404755] Workqueue: events_unbound async_run_entry_fn
[   50.424718] Call Trace:
[   50.441696] [effefd30] [c00543a0] rcu_dump_cpu_stacks+0x90/0xb4 (unreliable)
[   50.463726] [effefd50] [c0057470] rcu_check_callbacks+0x240/0x6b8
[   50.484719] [effefdb0] [c0059b94] update_process_times+0x30/0x60
[   50.505593] [effefdc0] [c0067638] tick_sched_timer+0x54/0xa4
[   50.526114] [effefdf0] [c005a60c] __hrtimer_run_queues.constprop.27+0xcc/0x170
[   50.548343] [effefe30] [c005aaa4] hrtimer_interrupt+0xc0/0x230
[   50.569164] [effefe80] [c0006d84] __timer_interrupt+0xcc/0x138
[   50.589871] [effefea0] [c0006fc8] timer_interrupt+0x7c/0x9c
[   50.610322] [effefec0] [c000b644] ret_from_except+0x0/0x18
[   50.630729] --- interrupt: 901 at __do_softirq+0x9c/0x1f0
[   50.630729]     LR = __do_softirq+0x90/0x1f0
[   50.670192] [effeff80] [c0023b8c] __do_softirq+0x48/0x1f0 (unreliable)
[   50.691901] [effeffe0] [c0023f68] irq_exit+0x58/0xa0
[   50.712003] [effefff0] [c000a0f4] call_do_irq+0x24/0x3c
[   50.732353] [ee3cf920] [c0003528] do_IRQ+0x94/0xd4
[   50.752197] [ee3cf950] [c000b644] ret_from_except+0x0/0x18
[   50.772755] --- interrupt: 501 at _raw_spin_unlock_irqrestore+0x1c/0x5c
[   50.772755]     LR = _raw_spin_unlock_irqrestore+0x18/0x5c
[   50.815340] [ee3cfa20] [c04440c4] ata_scsi_queuecmd+0x22c/0x238
[   50.836641] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   50.857719] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   50.878491] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   50.898882] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   50.919099] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   50.939845] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   50.959561] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   50.980297] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   51.000765] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   51.020850] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   51.040468] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   51.060164] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   51.079930] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   51.099794] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   51.119333] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   51.138580] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   51.157736] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   51.177310] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   51.197248] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   51.217091] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   51.236637] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   51.255408] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   51.275664] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   51.297963] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   51.318025] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed61c0b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   51.344246] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   51.367841] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   51.391105] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   51.416399] dma dma0chan0: dwc_tx_submit: queued 2
[   51.436391] dma dma0chan0: dwc_dostart_first_queued: started 2
[   58.733110] ata3: lost interrupt (Status 0x40)
[   58.759105] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   58.782909] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   58.807125] ata3.00: failed command: READ FPDMA QUEUED
[   58.828167] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   58.828167]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   58.881038] ata3.00: status: { DRDY }
[   58.881062] ata3: hard resetting link
[   58.881078] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   58.881086] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   58.881093] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   58.881100] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   58.883021] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   58.883029] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   59.084086] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   59.120405] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.149036] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.177033] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.205033] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.233033] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.255246] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   59.278858] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   59.300932] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.324557] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   59.348318] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.372062] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.394105] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.417416] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   59.438972] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   59.462112] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.483964] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   59.507121] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.528445] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   59.549268] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.571002] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   59.594123] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   59.622443] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   59.645453] dma dma0chan0: dwc_prep_slave_sg
[   59.663778] dma dma0chan0: scanned 1 descriptors on freelist
[   59.683563] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c48, count: 1 addr: 0xfffffffff6a18400
[   59.711822] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   59.742992] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   59.766745] dma dma0chan0: dwc_prep_slave_sg
[   59.786458] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   59.811022] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   59.834353] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   59.858995] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   59.881659] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   59.911867] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   59.943063] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   59.968170] dma dma0chan0: dwc_prep_slave_sg
[   59.989210] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   60.018111] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   60.050068] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   60.076452] dma dma0chan0: dwc_prep_slave_sg
[   60.097962] dma dma0chan0: scanned 1 descriptors on freelist
[   60.120820] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[   60.151986] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   60.185665] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   60.211954] dma dma0chan0: dwc_prep_slave_sg
[   60.234106] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   60.261006] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   60.286471] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   60.313057] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   60.337588] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   60.369787] ata3.00: configured for UDMA/133
[   60.392151] ata3.00: device reported invalid CHS sector 0
[   60.415867] ata3: EH complete
[   60.436752] ------------[ cut here ]------------
[   60.458925] WARNING: at drivers/ata/libata-core.c:5051
[   60.481445] Modules linked in: input_leds led_class sata_dwc_460ex
[   60.505436] CPU: 0 PID: 408 Comm: scsi_eh_3 Not tainted 4.4.0-rc5-Sam460ex #9
[   60.530504] task: ed7fcb80 ti: ed672000 task.ti: ed672000
[   60.553886] NIP: c043bb0c LR: c0440c84 CTR: c0442b00
[   60.577029] REGS: ed673c70 TRAP: 0700   Not tainted  (4.4.0-rc5-Sam460ex)
[   60.602235] MSR: 00021000 <CE,ME>  CR: 22000048  XER: 00000000
[   60.626697] 
GPR00: c0440c84 ed673d20 ed7fcb80 ed61c0b8 ed61da48 00000000 00000000 00000000 
GPR08: 00000006 00000004 00000001 ed673d50 24000022 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ed4eb41c 0000001e 00000000 
GPR24: ed4eace0 ed5e7e00 ede061a0 c0442b00 ed61c000 ed61d7c8 ed61c000 ed61c0b8 
[   60.753124] NIP [c043bb0c] ata_qc_issue+0x4c/0x3a0
[   60.777804] LR [c0440c84] ata_scsi_translate+0xf4/0x150
[   60.802965] Call Trace:
[   60.825237] [ed673d20] [c0442c98] ata_scsi_rw_xlat+0x198/0x1e4 (unreliable)
[   60.852378] [ed673d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   60.878334] [ed673d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   60.904384] [ed673d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   60.930480] [ed673da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   60.956591] [ed673df0] [c024cd34] __blk_run_queue+0x44/0x58
[   60.982527] [ed673e00] [c024cf30] blk_run_queue+0x28/0x44
[   61.008255] [ed673e10] [c0425c78] scsi_run_queue+0x240/0x268
[   61.034402] [ed673e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   61.060998] [ed673e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   61.087395] [ed673ed0] [c0039798] kthread+0xc8/0xcc
[   61.112434] [ed673f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   61.139023] Instruction dump:
[   61.161985] 815e0004 83a90000 89230014 814a0058 2f8a0000 419e0038 815d0120 2b8a001f 
[   61.190004] 419d002c 3d40c0a3 894a575b 694a0001 <0f0a0000> 2f8a0000 41be0014 3d40c0a3 
[   61.218114] ---[ end trace c4f4eb32724d9e3a ]---
[   61.242736] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   61.271791] dma dma0chan0: dwc_prep_slave_sg
[   61.295740] dma dma0chan0: scanned 1 descriptors on freelist
[   61.320759] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400
[   61.349968] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   61.379609] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   81.408393] BUG: spinlock lockup suspected on CPU#0, scsi_eh_3/408
[   81.434271]  lock: 0xed491110, .magic: dead4ead, .owner: scsi_eh_3/408, .owner_cpu: 0
[   81.462022] CPU: 0 PID: 408 Comm: scsi_eh_3 Tainted: G        W       4.4.0-rc5-Sam460ex #9
[   81.490464] Call Trace:
[   81.512424] [ed673c40] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   81.538899] [ed673c60] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   81.564511] [ed673c70] [f6a0ec24] sata_dwc_exec_command_by_tag.constprop.8+0x80/0xb4 [sata_dwc_460ex]
[   81.593306] [ed673ca0] [f6a0f340] sata_dwc_qc_issue+0x350/0x370 [sata_dwc_460ex]
[   81.619967] [ed673d20] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   81.644409] [ed673d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   81.669063] [ed673d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   81.693680] [ed673d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   81.717926] [ed673da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   81.741598] [ed673df0] [c024cd34] __blk_run_queue+0x44/0x58
[   81.764687] [ed673e00] [c024cf30] blk_run_queue+0x28/0x44
[   81.787378] [ed673e10] [c0425c78] scsi_run_queue+0x240/0x268
[   81.810139] [ed673e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   81.833184] [ed673e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   81.856178] [ed673ed0] [c0039798] kthread+0xc8/0xcc
[   81.877935] [ed673f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   81.901100] INFO: rcu_preempt self-detected stall on CPU
[   81.923260] 0-...: (1 ticks this GP) idle=05d/140000000000002/0 softirq=17796/17796 fqs=0 
[   81.948771]  (t=21465 jiffies g=9412 c=9411 q=3)
[   81.970634] rcu_preempt kthread starved for 21465 jiffies! g9412 c9411 f0x0 s3 ->state=0x1
[   81.996403] Task dump for CPU 0:
[   82.016992] scsi_eh_3       R running      0   408      2 0x00000800
[   82.040863] Call Trace:
[   82.060440] [effefd30] [c00543a0] rcu_dump_cpu_stacks+0x90/0xb4 (unreliable)
[   82.084897] [effefd50] [c0057470] rcu_check_callbacks+0x240/0x6b8
[   82.108277] [effefdb0] [c0059b94] update_process_times+0x30/0x60
[   82.131435] [effefdc0] [c0067638] tick_sched_timer+0x54/0xa4
[   82.154109] [effefdf0] [c005a60c] __hrtimer_run_queues.constprop.27+0xcc/0x170
[   82.178465] [effefe30] [c005aaa4] hrtimer_interrupt+0xc0/0x230
[   82.201274] [effefe80] [c0006d84] __timer_interrupt+0xcc/0x138
[   82.223968] [effefea0] [c0006fc8] timer_interrupt+0x7c/0x9c
[   82.246320] [effefec0] [c000b644] ret_from_except+0x0/0x18
[   82.268471] --- interrupt: 901 at __do_softirq+0x9c/0x1f0
[   82.268471]     LR = __do_softirq+0x90/0x1f0
[   82.311051] [effeff80] [c0023b8c] __do_softirq+0x48/0x1f0 (unreliable)
[   82.334254] [effeffe0] [c0023f68] irq_exit+0x58/0xa0
[   82.355673] [effefff0] [c000a0f4] call_do_irq+0x24/0x3c
[   82.377326] [ed673c70] [c0003528] do_IRQ+0x94/0xd4
[   82.398559] [ed673ca0] [c000b644] ret_from_except+0x0/0x18
[   82.420533] --- interrupt: 501 at _raw_spin_unlock_irqrestore+0x1c/0x5c
[   82.420533]     LR = _raw_spin_unlock_irqrestore+0x18/0x5c
[   82.465982] [ed673d70] [c04440c4] ata_scsi_queuecmd+0x22c/0x238
[   82.488767] [ed673d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   82.511442] [ed673da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   82.534045] [ed673df0] [c024cd34] __blk_run_queue+0x44/0x58
[   82.556467] [ed673e00] [c024cf30] blk_run_queue+0x28/0x44
[   82.578663] [ed673e10] [c0425c78] scsi_run_queue+0x240/0x268
[   82.601102] [ed673e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   82.623766] [ed673e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   82.646264] [ed673ed0] [c0039798] kthread+0xc8/0xcc
[   82.667474] [ed673f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   82.690018] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=0
[   82.713579] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   82.735334] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed61c0b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   82.763239] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   82.788274] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   82.812806] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   82.839202] dma dma0chan0: dwc_tx_submit: queued 3
[   90.733042] ata3: lost interrupt (Status 0x40)
[   90.754234] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   90.778814] ata3.00: NCQ disabled due to excessive errors
[   90.801931] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   90.828229] ata3.00: failed command: READ FPDMA QUEUED
[   90.850412] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   90.850412]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   90.900282] ata3.00: status: { DRDY }
[   90.921168] ata3: hard resetting link
[   90.942370] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   90.967745] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   90.994655] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   91.019989] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   91.048048] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   91.073115] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   91.300031] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   91.328265] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.360031] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.392032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.424032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.455032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.480505] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   91.507291] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   91.532396] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.558759] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   91.585314] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.611764] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.636450] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.662496] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   91.686880] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   91.712845] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.737111] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   91.762711] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.786735] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   91.812318] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.837129] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   91.864017] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   91.896291] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   91.923074] dma dma0chan0: dwc_prep_slave_sg
[   91.945192] dma dma0chan0: scanned 1 descriptors on freelist
[   91.968806] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c48, count: 1 addr: 0xfffffffff6a18400
[   92.035153] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   92.070084] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   92.097475] dma dma0chan0: dwc_prep_slave_sg
[   92.120738] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   92.148759] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   92.175541] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   92.203647] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   92.229784] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   92.257433] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   92.292034] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   92.320650] dma dma0chan0: dwc_prep_slave_sg
[   92.345269] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   92.385864] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   92.443861] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   92.475296] dma dma0chan0: dwc_prep_slave_sg
[   92.501903] dma dma0chan0: scanned 1 descriptors on freelist
[   92.529752] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[   92.565987] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   92.604824] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   92.635973] dma dma0chan0: dwc_prep_slave_sg
[   92.662692] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   92.693828] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   92.723554] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   92.754498] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   92.783022] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   92.821204] ata3.00: configured for UDMA/133
[   92.847418] ata3.00: device reported invalid CHS sector 0
[   92.875398] ata3: EH complete
[   92.900751] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   92.932009] dma dma0chan0: dwc_prep_slave_sg
[   92.958725] dma dma0chan0: scanned 1 descriptors on freelist
[   92.986913] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400
[   93.019696] ------------[ cut here ]------------
[   93.047444] WARNING: at drivers/ata/libata-sff.c:1493
[   93.075690] Modules linked in: input_leds led_class sata_dwc_460ex
[   93.105332] CPU: 0 PID: 408 Comm: scsi_eh_3 Tainted: G        W       4.4.0-rc5-Sam460ex #9
[   93.136769] task: ed7fcb80 ti: ed672000 task.ti: ed672000
[   93.164633] NIP: c044d734 LR: c044d5a4 CTR: c044a354
[   93.192264] REGS: ed673bd0 TRAP: 0700   Tainted: G        W        (4.4.0-rc5-Sam460ex)
[   93.223381] MSR: 00021000 <CE,ME>  CR: 24008044  XER: 20000000
[   93.252669] 
GPR00: c044d5a4 ed673c80 ed7fcb80 00000050 f6a18018 00000000 c02e1328 00000000 
GPR08: 00000000 00000001 10912d85 ed673c80 c044d560 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ed4eb41c c09fd770 00000000 
GPR24: ed53b900 ede97ad0 ffa0d510 ed61c000 00000000 ed61d7c8 ed61c000 ed61c0b8 
[   93.401513] NIP [c044d734] ata_sff_qc_issue+0x1d4/0x1fc
[   93.430765] LR [c044d5a4] ata_sff_qc_issue+0x44/0x1fc
[   93.460012] Call Trace:
[   93.486696] [ed673c80] [c044d5a4] ata_sff_qc_issue+0x44/0x1fc (unreliable)
[   93.518271] [ed673ca0] [f6a0f34c] sata_dwc_qc_issue+0x35c/0x370 [sata_dwc_460ex]
[   93.550461] [ed673d20] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   93.580860] [ed673d50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   93.611832] [ed673d70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   93.642570] [ed673d90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   93.672624] [ed673da0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   93.701973] [ed673df0] [c024cd34] __blk_run_queue+0x44/0x58
[   93.730799] [ed673e00] [c024cf30] blk_run_queue+0x28/0x44
[   93.759096] [ed673e10] [c0425c78] scsi_run_queue+0x240/0x268
[   93.787440] [ed673e50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   93.816120] [ed673e60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   93.844522] [ed673ed0] [c0039798] kthread+0xc8/0xcc
[   93.871278] [ed673f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   93.899040] Instruction dump:
[   93.923330] 7d2903a6 4e800421 39200001 913e2720 813f0004 8129000c 71280004 4082ff80 
[   93.952782] 4bffff88 3d20c0a3 89295769 69290001 <0f090000> 2f890000 38600040 41be0014 
[   93.982497] ---[ end trace c4f4eb32724d9e3b ]---
[  123.757041] ata3: lost interrupt (Status 0x50)
[  123.784377] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  123.814857] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[  123.846362] ata3: limiting SATA link speed to 1.5 Gbps
[  123.873279] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  123.902436] ata3.00: failed command: READ DMA
[  123.928477] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  123.928477]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  123.984036] ata3.00: status: { DRDY }
[  124.007382] ata3: hard resetting link
[  124.031093] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  124.062562] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  124.090763] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000304
[  124.120737] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000304
[  124.148586] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000314
[  124.177848] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000314
[  124.205293] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  124.234321] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  124.263065] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  124.290181] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  124.519032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  124.545678] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.581030] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.613033] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.646032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.678033] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.704609] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  124.732334] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  124.758405] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.785862] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  124.813451] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.840951] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.866462] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.893297] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  124.918324] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  124.944752] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  124.969556] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  124.995561] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  125.019874] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  125.043635] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  125.071341] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  125.096330] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  125.128405] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  125.155167] dma dma0chan0: dwc_prep_slave_sg
[  125.177154] dma dma0chan0: scanned 1 descriptors on freelist
[  125.200489] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c48, count: 1 addr: 0xfffffffff6a18400
[  125.232134] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  125.266681] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  125.293863] dma dma0chan0: dwc_prep_slave_sg
[  125.317031] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  125.345061] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  125.371834] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  125.399931] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  125.426052] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  125.460639] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  125.495353] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  125.523942] dma dma0chan0: dwc_prep_slave_sg
[  125.548481] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  125.583176] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  125.640657] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  125.671668] dma dma0chan0: dwc_prep_slave_sg
[  125.697640] dma dma0chan0: scanned 1 descriptors on freelist
[  125.724655] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[  125.760152] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  125.798408] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  125.829141] dma dma0chan0: dwc_prep_slave_sg
[  125.855773] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  125.887155] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  125.887163] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  125.887170] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  125.887177] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  126.015109] ata3.00: configured for UDMA/133
[  126.041639] ata3.00: device reported invalid CHS sector 0
[  126.071209] ata3: EH complete
[  126.096636] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  126.127869] dma dma0chan0: dwc_prep_slave_sg
[  126.154394] dma dma0chan0: scanned 1 descriptors on freelist
[  126.182373] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400
[  144.853669] cgroup: new mount options do not match the existing superblock, will be ignored
[  149.562973] IPv6: ADDRCONF(NETDEV_UP): sit0: link is not ready
[  149.751626] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  149.875449] IPv6: ADDRCONF(NETDEV_UP): tunl0: link is not ready
[  156.781119] ata3: lost interrupt (Status 0x50)
[  156.794072] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  156.839113] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  156.881060] ata3.00: limiting speed to UDMA/100:PIO4
[  156.908123] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  156.941086] ata3.00: failed command: READ DMA
[  156.961099] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  156.961099]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  157.030081] ata3.00: status: { DRDY }
[  157.044105] ata3: hard resetting link
[  157.059094] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  157.091056] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  157.128084] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  157.162071] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  157.216617] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  157.259084] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  157.509089] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  157.538087] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.586073] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.624146] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.675085] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.712085] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  157.755049] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  157.795063] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.837087] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  157.886080] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  157.936052] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.021403] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.084104] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  158.147278] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  158.216803] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.292058] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  158.342043] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.374047] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  158.390075] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.414075] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  158.436076] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  158.450266] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  158.459142] dma dma0chan0: dwc_prep_slave_sg
[  158.463422] dma dma0chan0: scanned 1 descriptors on freelist
[  158.469091] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c48, count: 1 addr: 0xfffffffff6a18400
[  158.574136] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  158.589719] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  158.597988] dma dma0chan0: dwc_prep_slave_sg
[  158.602265] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  158.610938] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  158.618344] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  158.626962] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  158.633664] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  158.828093] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  158.842367] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  158.850634] dma dma0chan0: dwc_prep_slave_sg
[  158.854913] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  158.929082] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  158.943269] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  158.952146] dma dma0chan0: dwc_prep_slave_sg
[  158.956424] dma dma0chan0: scanned 1 descriptors on freelist
[  158.962094] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[  158.985723] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  159.001299] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  159.009567] dma dma0chan0: dwc_prep_slave_sg
[  159.013845] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  159.022521] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  159.029923] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  159.038542] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  159.045245] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  159.097260] ata3.00: configured for UDMA/100
[  159.101800] ata3.00: device reported invalid CHS sector 0
[  159.109299] ata3: EH complete
[  159.113116] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  159.122001] dma dma0chan0: dwc_prep_slave_sg
[  159.126277] dma dma0chan0: scanned 1 descriptors on freelist
[  159.131948] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  189.804846] ata3: lost interrupt (Status 0x50)
[  189.810492] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  189.818411] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  189.828549] ata3.00: limiting speed to UDMA/33:PIO4
[  189.833511] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  189.841544] ata3.00: failed command: READ DMA
[  189.845959] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  189.845959]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  189.861345] ata3.00: status: { DRDY }
[  189.865068] ata3: hard resetting link
[  189.869476] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  189.877356] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  189.887245] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  189.895232] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  189.906843] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  189.916256] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  190.124849] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  190.132705] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.147834] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.160833] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.173886] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.186835] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.199834] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.212834] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.225834] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.238836] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.248318] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  190.256226] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  190.266379] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.274335] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  190.286073] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.294054] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.304067] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.311970] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  190.321909] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  190.329887] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.339868] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  190.349275] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.357169] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  190.365051] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.372955] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  190.382908] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  190.397097] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  190.405973] dma dma0chan0: dwc_prep_slave_sg
[  190.410253] dma dma0chan0: scanned 1 descriptors on freelist
[  190.415922] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673c48, count: 1 addr: 0xfffffffff6a18400
[  190.429929] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  190.445509] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  190.453776] dma dma0chan0: dwc_prep_slave_sg
[  190.458055] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  190.466712] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  190.474116] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  190.482734] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  190.489436] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  190.506311] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  190.520587] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  190.528855] dma dma0chan0: dwc_prep_slave_sg
[  190.533134] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  190.545620] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  190.559805] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  190.568681] dma dma0chan0: dwc_prep_slave_sg
[  190.572961] dma dma0chan0: scanned 1 descriptors on freelist
[  190.578631] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed673bb8, count: 1 addr: 0xfffffffff6a18400
[  190.592927] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  190.608503] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  190.616771] dma dma0chan0: dwc_prep_slave_sg
[  190.621050] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  190.629706] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  190.637111] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  190.645730] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  190.652440] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  190.669423] ata3.00: configured for UDMA/33
[  190.673693] ata3.00: device reported invalid CHS sector 0
[  190.680063] ata3: EH complete
[  190.683708] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  190.692599] dma dma0chan0: dwc_prep_slave_sg
[  190.696876] dma dma0chan0: scanned 1 descriptors on freelist
[  190.702546] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed55de00, count: 1 addr: 0xfffffffff6a18400

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 11:39                                                   ` Julian Margetson
@ 2015-12-19 15:40                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 15:40 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 10:34 PM, Andy Shevchenko wrote:
>> On Sat, Dec 19, 2015 at 1:16 AM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/18/2015 6:33 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>
>>>>>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>>>>>
>>>>>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>>>>>> address 0x00000000
>>>>>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>>>>>> code?
>>>>>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>>>>>
>>>>>>>> Changed the sata-dwc to a module .
>>>>>>>>
>>>>>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>>> That's strange.  The only way that can happen is if
>>>>>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>>>>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>>>>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>>>>>> of drivers/dma/dw/core.c
>>>>>>>
>>>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> Could you post the entire kernel log?  There might be important
>>>>> information before the errors start.
>>>>>
>>>>
>>>> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
>>>> [    0.000000] Using Canyonlands machine description
>>>> [    0.000000] Initializing cgroup subsys cpu
>>>> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
>>>> [    0.000000] Zone ranges:
>>>> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
>>>> [    0.000000]   Normal   empty
>>>> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
>>>> [    0.000000] Movable zone start for each node
>>>> [    0.000000] Early memory node ranges
>>>> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
>>>> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
>>>> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
>>>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg
>> I would suggest to use console=tty1 instead of console=tty0.
>>
>>> [...]
>>>
>>>> [   13.643415] systemd[1]: Mounted Configuration File System.
>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> This log is weird.  The sata_dwc_probe() function prints several things
>>> (one using dev_notice()), for instance this:
>>>
>>>          /* Read the ID and Version Registers */
>>>          idr = in_le32(&hsdev->sata_dwc_regs->idr);
>>>          versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
>>>          dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
>>>                     idr, ver[0], ver[1], ver[2]);
>>>
>>> The dw_dma_probe() function also prints a line:
>>>
>>>          dev_info(chip->dev, "DesignWare DMA Controller, %d channels\n",
>>>                   pdata->nr_channels);
>>>
>>> These messages are nowhere to be seen in your log, nor are numerous
>>> others that really must appear before before sata_dwc_qc_prep_by_tag()
>>> can be called.
>>>
>> It would be better to add 'ignore_loglevel' to the cmdline as well.

OK, I've found something.  The dma setup errors are benign, caused by
the driver calling dmaengine_prep_slave_sg() even for non-dma
operations.  The real error is the lock recursion that's reported
later.  I wasn't seeing it since I was running a UP non-preempt kernel.
With lock debugging enabled, I get the same error.  This patch should
fix it.

---8<---
From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 799df86..5696f39 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 15:40                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 15:40 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/18/2015 10:34 PM, Andy Shevchenko wrote:
>> On Sat, Dec 19, 2015 at 1:16 AM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/18/2015 6:33 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>> On 12/18/2015 1:18 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>
>>>>>>>> On 12/18/2015 8:49 AM, Måns Rullgård wrote:
>>>>>>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>>>>>>
>>>>>>>>>>>> [    5.206125] Unable to handle kernel paging request for data at
>>>>>>>>>>>> address 0x00000000
>>>>>>>>>>>> [    5.228546] Faulting instruction address: 0xc043a2c8
>>>>>>>>>>>> [    5.248577] Vector: 300 (Data Access) at [eddafae0]
>>>>>>>>>>>> [    5.268658]     pc: c043a2c8: sata_dwc_qc_issue+0xb8/0x204
>>>>>>>>>>> Well, that's not good.  Can you translate that address to a line of
>>>>>>>>>>> code?
>>>>>>>>>> Besides that, can you enable DYNAMIC_DEBUG in the config and append
>>>>>>>>>> 'dw_dmac_core.dyndbg dw_dmac.dyndbg' to the kernel cmdline?
>>>>>>>>> Enabling debug messages in the sata_dwc driver might also be informative.
>>>>>>>>>
>>>>>>>> Changed the sata-dwc to a module .
>>>>>>>>
>>>>>>>> [   18.475140] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>>>> [   18.535698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>>> That's strange.  The only way that can happen is if
>>>>>>> dmaengine_prep_slave_sg() return NULL, and that really shouldn't be
>>>>>>> happening.  Did you turn on debug messages in dw_dma?  You can enable
>>>>>>> some extra debug messages by adding "#define VERBOSE_DEBUG" at the top
>>>>>>> of drivers/dma/dw/core.c
>>>>>>>
>>>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>>> Could you post the entire kernel log?  There might be important
>>>>> information before the errors start.
>>>>>
>>>>
>>>> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.18 15:01:48 =~=~=~=~=~=~=~=~=~=~=~=
>>>> [    0.000000] Using Canyonlands machine description
>>>> [    0.000000] Initializing cgroup subsys cpu
>>>> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #8 PREEMPT Fri Dec 18 13:36:34 AST 2015
>>>> [    0.000000] Zone ranges:
>>>> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
>>>> [    0.000000]   Normal   empty
>>>> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
>>>> [    0.000000] Movable zone start for each node
>>>> [    0.000000] Early memory node ranges
>>>> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
>>>> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
>>>> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
>>>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty0 dw_dmac_core.dyndbg dw_dmac.dyndbg
>> I would suggest to use console=tty1 instead of console=tty0.
>>
>>> [...]
>>>
>>>> [   13.643415] systemd[1]: Mounted Configuration File System.
>>>> [   17.526173] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.600124] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>>> [   17.662978] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
>>> This log is weird.  The sata_dwc_probe() function prints several things
>>> (one using dev_notice()), for instance this:
>>>
>>>          /* Read the ID and Version Registers */
>>>          idr = in_le32(&hsdev->sata_dwc_regs->idr);
>>>          versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
>>>          dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
>>>                     idr, ver[0], ver[1], ver[2]);
>>>
>>> The dw_dma_probe() function also prints a line:
>>>
>>>          dev_info(chip->dev, "DesignWare DMA Controller, %d channels\n",
>>>                   pdata->nr_channels);
>>>
>>> These messages are nowhere to be seen in your log, nor are numerous
>>> others that really must appear before before sata_dwc_qc_prep_by_tag()
>>> can be called.
>>>
>> It would be better to add 'ignore_loglevel' to the cmdline as well.

OK, I've found something.  The dma setup errors are benign, caused by
the driver calling dmaengine_prep_slave_sg() even for non-dma
operations.  The real error is the lock recursion that's reported
later.  I wasn't seeing it since I was running a UP non-preempt kernel.
With lock debugging enabled, I get the same error.  This patch should
fix it.

---8<---
>From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 799df86..5696f39 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                                       ` <567585CD.9080105@candw.ms>
@ 2015-12-19 16:39                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 16:39 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 11:40 AM, Måns Rullgård wrote:
>> OK, I've found something.  The dma setup errors are benign, caused by
>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>> operations.  The real error is the lock recursion that's reported
>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>> With lock debugging enabled, I get the same error.  This patch should
>> fix it.
>>
>> ---8<---
>> >From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
>> From: Mans Rullgard<mans@mansr.com>
>> Date: Sat, 19 Dec 2015 15:26:23 +0000
>> Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking
>>
>> This lock is already taken in ata_scsi_queuecmd() a few levels up the
>> call stack so attempting to take it here is an error.  Moreover, it is
>> pointless in the first place since it only protects a single, atomic
>> assignment.
>>
>> Signed-off-by: Mans Rullgard<mans@mansr.com>
>> ---
>>   drivers/ata/sata_dwc_460ex.c | 4 +---
>>   1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
>> index 799df86..5696f39 100644
>> --- a/drivers/ata/sata_dwc_460ex.c
>> +++ b/drivers/ata/sata_dwc_460ex.c
>> @@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
>>   					 struct ata_taskfile *tf,
>>   					 u8 tag, u32 cmd_issued)
>>   {
>> -	unsigned long flags;
>>   	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
>>   	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
>>     	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__,
>> tf->command,
>>   		ata_get_cmd_descript(tf->command), tag);
>>   -	spin_lock_irqsave(&ap->host->lock, flags);
>>   	hsdevp->cmd_issued[tag] = cmd_issued;
>> -	spin_unlock_irqrestore(&ap->host->lock, flags);
>> +
>>   	/*
>>   	 * Clear SError before executing a new command.
>>   	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
> having a problem applying the patch .
>
> patching file drivers/ata/sata_dwc_460ex.c
> Hunk #1 FAILED at 1001 (different line endings).

OK, attaching it instead.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1428 bytes --]

>From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 799df86..5696f39 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 16:39                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 16:39 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 11:40 AM, Måns Rullgård wrote:
>> OK, I've found something.  The dma setup errors are benign, caused by
>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>> operations.  The real error is the lock recursion that's reported
>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>> With lock debugging enabled, I get the same error.  This patch should
>> fix it.
>>
>> ---8<---
>> >From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
>> From: Mans Rullgard<mans@mansr.com>
>> Date: Sat, 19 Dec 2015 15:26:23 +0000
>> Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking
>>
>> This lock is already taken in ata_scsi_queuecmd() a few levels up the
>> call stack so attempting to take it here is an error.  Moreover, it is
>> pointless in the first place since it only protects a single, atomic
>> assignment.
>>
>> Signed-off-by: Mans Rullgard<mans@mansr.com>
>> ---
>>   drivers/ata/sata_dwc_460ex.c | 4 +---
>>   1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
>> index 799df86..5696f39 100644
>> --- a/drivers/ata/sata_dwc_460ex.c
>> +++ b/drivers/ata/sata_dwc_460ex.c
>> @@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
>>   					 struct ata_taskfile *tf,
>>   					 u8 tag, u32 cmd_issued)
>>   {
>> -	unsigned long flags;
>>   	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
>>   	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
>>     	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__,
>> tf->command,
>>   		ata_get_cmd_descript(tf->command), tag);
>>   -	spin_lock_irqsave(&ap->host->lock, flags);
>>   	hsdevp->cmd_issued[tag] = cmd_issued;
>> -	spin_unlock_irqrestore(&ap->host->lock, flags);
>> +
>>   	/*
>>   	 * Clear SError before executing a new command.
>>   	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
> having a problem applying the patch .
>
> patching file drivers/ata/sata_dwc_460ex.c
> Hunk #1 FAILED at 1001 (different line endings).

OK, attaching it instead.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1428 bytes --]

>From 94c4769d2171ce66079fd486a45e09dd64db62c0 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 799df86..5696f39 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1001,16 +1001,14 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 15:40                                                       ` Måns Rullgård
  (?)
  (?)
@ 2015-12-19 16:56                                                       ` Andy Shevchenko
  2015-12-19 17:05                                                           ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-19 16:56 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:

> OK, I've found something.  The dma setup errors are benign, caused by
> the driver calling dmaengine_prep_slave_sg() even for non-dma
> operations.

I suppose the following is a quick fix to avoid preparing descriptor
for non-DMA operations (not tested anyhow)

a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
ata_queued_cmd *qc, u8 tag)
                __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
                 qc->n_elem);

+       if (!is_slave_direction(qc->dma_dir))
+               return;
+
        desc = dma_dwc_xfer_setup(qc);
        if (!desc) {
                dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",

> The real error is the lock recursion that's reported
> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
> With lock debugging enabled, I get the same error.  This patch should
> fix it.

> -       spin_lock_irqsave(&ap->host->lock, flags);
>         hsdevp->cmd_issued[tag] = cmd_issued;
> -       spin_unlock_irqrestore(&ap->host->lock, flags);

> +

This will create a second empty line, though I don't care it is so minor.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 16:56                                                       ` Andy Shevchenko
@ 2015-12-19 17:05                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 17:05 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>
>> OK, I've found something.  The dma setup errors are benign, caused by
>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>> operations.
>
> I suppose the following is a quick fix to avoid preparing descriptor
> for non-DMA operations (not tested anyhow)
>
> a/drivers/ata/sata_dwc_460ex.c
> +++ b/drivers/ata/sata_dwc_460ex.c
> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
> ata_queued_cmd *qc, u8 tag)
>                 __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>                  qc->n_elem);
>
> +       if (!is_slave_direction(qc->dma_dir))
> +               return;
> +
>         desc = dma_dwc_xfer_setup(qc);
>         if (!desc) {
>                 dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",

I already have a better patch sitting here.

>> The real error is the lock recursion that's reported
>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>> With lock debugging enabled, I get the same error.  This patch should
>> fix it.
>
>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>         hsdevp->cmd_issued[tag] = cmd_issued;
>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>
>> +
>
> This will create a second empty line, though I don't care it is so minor.

The patch leaves one blank line before the following block comment.  I
think it looks better that way.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 17:05                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 17:05 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>
>> OK, I've found something.  The dma setup errors are benign, caused by
>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>> operations.
>
> I suppose the following is a quick fix to avoid preparing descriptor
> for non-DMA operations (not tested anyhow)
>
> a/drivers/ata/sata_dwc_460ex.c
> +++ b/drivers/ata/sata_dwc_460ex.c
> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
> ata_queued_cmd *qc, u8 tag)
>                 __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>                  qc->n_elem);
>
> +       if (!is_slave_direction(qc->dma_dir))
> +               return;
> +
>         desc = dma_dwc_xfer_setup(qc);
>         if (!desc) {
>                 dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",

I already have a better patch sitting here.

>> The real error is the lock recursion that's reported
>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>> With lock debugging enabled, I get the same error.  This patch should
>> fix it.
>
>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>         hsdevp->cmd_issued[tag] = cmd_issued;
>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>
>> +
>
> This will create a second empty line, though I don't care it is so minor.

The patch leaves one blank line before the following block comment.  I
think it looks better that way.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 17:05                                                           ` Måns Rullgård
  (?)
@ 2015-12-19 17:09                                                           ` Julian Margetson
  2015-12-19 17:11                                                             ` Andy Shevchenko
  2015-12-19 17:19                                                               ` Måns Rullgård
  -1 siblings, 2 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 17:09 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/19/2015 1:05 PM, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>
>>> OK, I've found something.  The dma setup errors are benign, caused by
>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>> operations.
>> I suppose the following is a quick fix to avoid preparing descriptor
>> for non-DMA operations (not tested anyhow)
>>
>> a/drivers/ata/sata_dwc_460ex.c
>> +++ b/drivers/ata/sata_dwc_460ex.c
>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>> ata_queued_cmd *qc, u8 tag)
>>                  __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>                   qc->n_elem);
>>
>> +       if (!is_slave_direction(qc->dma_dir))
>> +               return;
>> +
>>          desc = dma_dwc_xfer_setup(qc);
>>          if (!desc) {
>>                  dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
> I already have a better patch sitting here.
>
>>> The real error is the lock recursion that's reported
>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>> With lock debugging enabled, I get the same error.  This patch should
>>> fix it.
>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>          hsdevp->cmd_issued[tag] = cmd_issued;
>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>> +
>> This will create a second empty line, though I don't care it is so minor.
> The patch leaves one blank line before the following block comment.  I
> think it looks better that way.
>

Still can't get the patch applied .


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 17:09                                                           ` Julian Margetson
@ 2015-12-19 17:11                                                             ` Andy Shevchenko
  2015-12-19 17:19                                                               ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-19 17:11 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Måns Rullgård, Andy Shevchenko, Tejun Heo, linux-ide,
	linux-kernel

On Sat, Dec 19, 2015 at 7:09 PM, Julian Margetson <runaway@candw.ms> wrote:
> Still can't get the patch applied .

It might be faster if you just edit (remove 3 lines) directly in the file.


-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 17:09                                                           ` Julian Margetson
@ 2015-12-19 17:19                                                               ` Måns Rullgård
  2015-12-19 17:19                                                               ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 17:19 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>
>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>> operations.
>>> I suppose the following is a quick fix to avoid preparing descriptor
>>> for non-DMA operations (not tested anyhow)
>>>
>>> a/drivers/ata/sata_dwc_460ex.c
>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>> ata_queued_cmd *qc, u8 tag)
>>>                  __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>                   qc->n_elem);
>>>
>>> +       if (!is_slave_direction(qc->dma_dir))
>>> +               return;
>>> +
>>>          desc = dma_dwc_xfer_setup(qc);
>>>          if (!desc) {
>>>                  dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>> I already have a better patch sitting here.
>>
>>>> The real error is the lock recursion that's reported
>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>> With lock debugging enabled, I get the same error.  This patch should
>>>> fix it.
>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>          hsdevp->cmd_issued[tag] = cmd_issued;
>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>> +
>>> This will create a second empty line, though I don't care it is so minor.
>> The patch leaves one blank line before the following block comment.  I
>> think it looks better that way.
>>
>
> Still can't get the patch applied .

Sorry, didn't realise it conflicted with an intervening patch I had in
my tree.  Try this one.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1373 bytes --]

>From 97c1cdb8a6b933bad2c35b9461c2c15935f2a514 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 9985749..19d1c5e 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -995,15 +995,13 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 17:19                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 17:19 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>
>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>> operations.
>>> I suppose the following is a quick fix to avoid preparing descriptor
>>> for non-DMA operations (not tested anyhow)
>>>
>>> a/drivers/ata/sata_dwc_460ex.c
>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>> ata_queued_cmd *qc, u8 tag)
>>>                  __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>                   qc->n_elem);
>>>
>>> +       if (!is_slave_direction(qc->dma_dir))
>>> +               return;
>>> +
>>>          desc = dma_dwc_xfer_setup(qc);
>>>          if (!desc) {
>>>                  dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>> I already have a better patch sitting here.
>>
>>>> The real error is the lock recursion that's reported
>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>> With lock debugging enabled, I get the same error.  This patch should
>>>> fix it.
>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>          hsdevp->cmd_issued[tag] = cmd_issued;
>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>> +
>>> This will create a second empty line, though I don't care it is so minor.
>> The patch leaves one blank line before the following block comment.  I
>> think it looks better that way.
>>
>
> Still can't get the patch applied .

Sorry, didn't realise it conflicted with an intervening patch I had in
my tree.  Try this one.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1373 bytes --]

>From 97c1cdb8a6b933bad2c35b9461c2c15935f2a514 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 9985749..19d1c5e 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -995,15 +995,13 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 17:19                                                               ` Måns Rullgård
  (?)
@ 2015-12-19 18:56                                                               ` Julian Margetson
  2015-12-19 19:07                                                                   ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 18:56 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/19/2015 1:19 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>
>>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>>> operations.
>>>> I suppose the following is a quick fix to avoid preparing descriptor
>>>> for non-DMA operations (not tested anyhow)
>>>>
>>>> a/drivers/ata/sata_dwc_460ex.c
>>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>>> ata_queued_cmd *qc, u8 tag)
>>>>                   __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>>                    qc->n_elem);
>>>>
>>>> +       if (!is_slave_direction(qc->dma_dir))
>>>> +               return;
>>>> +
>>>>           desc = dma_dwc_xfer_setup(qc);
>>>>           if (!desc) {
>>>>                   dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>>> I already have a better patch sitting here.
>>>
>>>>> The real error is the lock recursion that's reported
>>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>>> With lock debugging enabled, I get the same error.  This patch should
>>>>> fix it.
>>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>>           hsdevp->cmd_issued[tag] = cmd_issued;
>>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>>> +
>>>> This will create a second empty line, though I don't care it is so minor.
>>> The patch leaves one blank line before the following block comment.  I
>>> think it looks better that way.
>>>
>> Still can't get the patch applied .
> Sorry, didn't realise it conflicted with an intervening patch I had in
> my tree.  Try this one.
>


[-- Attachment #2: Log5.log --]
[-- Type: text/plain, Size: 48488 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 14:44:52 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000712] console [tty1] enabled
[    0.000749] pid_max: default: 32768 minimum: 301
[    0.000859] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000886] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004722] devtmpfs: initialized
[    0.007452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007891] xor: measuring software checksum speed
[    0.017379]    8regs     :   856.000 MB/sec
[    0.027386]    8regs_prefetch:   784.000 MB/sec
[    0.037420]    32regs    :  1120.000 MB/sec
[    0.047456]    32regs_prefetch:   996.000 MB/sec
[    0.047476] xor: using function: 32regs (1120.000 MB/sec)
[    0.047525] prandom: seed boundary self test passed
[    0.049987] prandom: 100 self tests passed
[    0.050597] NET: Registered protocol family 16
[    0.053577] cpuidle: using governor ladder
[    0.056611] cpuidle: using governor menu
[    0.057024] 256k L2-cache enabled
[    0.057143] PCIE0: Port disabled via device-tree
[    0.057205] PCIE1: Checking link...
[    0.057222] PCIE1: Device detected, waiting for link...
[    0.057241] PCIE1: link is up !
[    0.159445] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.159496]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.159531]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.159563]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.159602] 4xx PCI DMA offset set to 0x00000000
[    0.159620] 4xx PCI DMA window base to 0x0000000000000000
[    0.159638] DMA window size 0x0000000080000000
[    0.159674] PCIE1: successfully set as root-complex
[    0.159750] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.159779]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.159814]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.159845]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.159875] 4xx PCI DMA offset set to 0x00000000
[    0.159892] 4xx PCI DMA window base to 0x0000000000000000
[    0.159911] DMA window size 0x0000000080000000
[    0.160397] PCI: Probing PCI hardware
[    0.160515] PCI host bridge to bus 0000:80
[    0.160545] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.160583] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.160620] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.160659] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.160795] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.161683] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161913] PCI host bridge to bus 0001:00
[    0.161939] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.161965] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.162018] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.162057] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.162684] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162727] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.162752] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.162783] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162826] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.162865] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.162899] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.162937] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.162965] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162989] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.163035] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.163063] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.163166] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.163197] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.163225] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.163257] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.163284] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.163310] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.163335] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.163361] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.163386] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.190311] raid6: int32x1  gen()   300 MB/s
[    0.207465] raid6: int32x1  xor()   173 MB/s
[    0.224491] raid6: int32x2  gen()   433 MB/s
[    0.241540] raid6: int32x2  xor()   240 MB/s
[    0.258633] raid6: int32x4  gen()   476 MB/s
[    0.275712] raid6: int32x4  xor()   267 MB/s
[    0.292769] raid6: int32x8  gen()   234 MB/s
[    0.309941] raid6: int32x8  xor()   218 MB/s
[    0.309965] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.309984] raid6: .... xor() 267 MB/s, rmw enabled
[    0.310003] raid6: using intx1 recovery algorithm
[    0.310317] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.310361] vgaarb: loaded
[    0.310376] vgaarb: bridge control possible 0000:81:00.0
[    0.310654] SCSI subsystem initialized
[    0.311053] usbcore: registered new interface driver usbfs
[    0.311124] usbcore: registered new interface driver hub
[    0.311189] usbcore: registered new device driver usb
[    0.311301] pps_core: LinuxPPS API ver. 1 registered
[    0.311321] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.311372] PTP clock support registered
[    0.311531] EDAC MC: Ver: 3.0.0
[    0.311931] Advanced Linux Sound Architecture Driver Initialized.
[    0.331842] DMA-API: preallocated 65536 debug entries
[    0.331884] DMA-API: debugging enabled by kernel config
[    0.331942] clocksource: Switched to clocksource timebase
[    0.338558] NET: Registered protocol family 2
[    0.339172] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.339292] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.339616] TCP: Hash tables configured (established 8192 bind 8192)
[    0.339750] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.339832] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.340194] NET: Registered protocol family 1
[    0.340530] RPC: Registered named UNIX socket transport module.
[    0.340561] RPC: Registered udp transport module.
[    0.340579] RPC: Registered tcp transport module.
[    0.340597] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.341360] Could not remap bcsr
[    0.344557] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.347390] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.357568] ntfs: driver 2.1.32 [Flags: R/W].
[    0.358144] fuse init (API version 7.23)
[    0.362340] async_tx: api initialized (async)
[    0.362465] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.362503] io scheduler noop registered
[    0.362657] io scheduler cfq registered (default)
[    0.364648] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.364677] crc32: self tests passed, processed 225944 bytes in 891710 nsec
[    0.365711] crc32c: CRC_LE_BITS = 64
[    0.365733] crc32c: self tests passed, processed 225944 bytes in 446662 nsec
[    0.432164] crc32_combine: 8373 self tests passed
[    0.498786] crc32c_combine: 8373 self tests passed
[    0.498853] glob: 64 self-tests passed, 0 failed
[    0.537119] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.537917] console [ttyS0] disabled
[    0.558115] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.492787] console [ttyS0] enabled
[    1.516911] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.526796] console [ttyS0] disabled
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000712] console [tty1] enabled
[    0.000749] pid_max: default: 32768 minimum: 301
[    0.000859] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000886] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004722] devtmpfs: initialized
[    0.007452] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007891] xor: measuring software checksum speed
[    0.017379]    8regs     :   856.000 MB/sec
[    0.027386]    8regs_prefetch:   784.000 MB/sec
[    0.037420]    32regs    :  1120.000 MB/sec
[    0.047456]    32regs_prefetch:   996.000 MB/sec
[    0.047476] xor: using function: 32regs (1120.000 MB/sec)
[    0.047525] prandom: seed boundary self test passed
[    0.049987] prandom: 100 self tests passed
[    0.050597] NET: Registered protocol family 16
[    0.053577] cpuidle: using governor ladder
[    0.056611] cpuidle: using governor menu
[    0.057024] 256k L2-cache enabled
[    0.057143] PCIE0: Port disabled via device-tree
[    0.057205] PCIE1: Checking link...
[    0.057222] PCIE1: Device detected, waiting for link...
[    0.057241] PCIE1: link is up !
[    0.159445] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.159496]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.159531]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.159563]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.159602] 4xx PCI DMA offset set to 0x00000000
[    0.159620] 4xx PCI DMA window base to 0x0000000000000000
[    0.159638] DMA window size 0x0000000080000000
[    0.159674] PCIE1: successfully set as root-complex
[    0.159750] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.159779]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.159814]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.159845]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.159875] 4xx PCI DMA offset set to 0x00000000
[    0.159892] 4xx PCI DMA window base to 0x0000000000000000
[    0.159911] DMA window size 0x0000000080000000
[    0.160397] PCI: Probing PCI hardware
[    0.160515] PCI host bridge to bus 0000:80
[    0.160545] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.160583] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.160620] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.160659] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.160795] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.161683] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161913] PCI host bridge to bus 0001:00
[    0.161939] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.161965] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.162018] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.162057] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.162684] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162727] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.162752] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.162783] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.162826] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.162865] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.162899] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.162937] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.162965] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.162989] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.163035] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.163063] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.163166] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.163197] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.163225] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.163257] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.163284] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.163310] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.163335] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.163361] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.163386] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.190311] raid6: int32x1  gen()   300 MB/s
[    0.207465] raid6: int32x1  xor()   173 MB/s
[    0.224491] raid6: int32x2  gen()   433 MB/s
[    0.241540] raid6: int32x2  xor()   240 MB/s
[    0.258633] raid6: int32x4  gen()   476 MB/s
[    0.275712] raid6: int32x4  xor()   267 MB/s
[    0.292769] raid6: int32x8  gen()   234 MB/s
[    0.309941] raid6: int32x8  xor()   218 MB/s
[    0.309965] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.309984] raid6: .... xor() 267 MB/s, rmw enabled
[    0.310003] raid6: using intx1 recovery algorithm
[    0.310317] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.310361] vgaarb: loaded
[    0.310376] vgaarb: bridge control possible 0000:81:00.0
[    0.310654] SCSI subsystem initialized
[    0.311053] usbcore: registered new interface driver usbfs
[    0.311124] usbcore: registered new interface driver hub
[    0.311189] usbcore: registered new device driver usb
[    0.311301] pps_core: LinuxPPS API ver. 1 registered
[    0.311321] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.311372] PTP clock support registered
[    0.311531] EDAC MC: Ver: 3.0.0
[    0.311931] Advanced Linux Sound Architecture Driver Initialized.
[    0.331842] DMA-API: preallocated 65536 debug entries
[    0.331884] DMA-API: debugging enabled by kernel config
[    0.331942] clocksource: Switched to clocksource timebase
[    0.338558] NET: Registered protocol family 2
[    0.339172] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.339292] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.339616] TCP: Hash tables configured (established 8192 bind 8192)
[    0.339750] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.339832] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.340194] NET: Registered protocol family 1
[    0.340530] RPC: Registered named UNIX socket transport module.
[    0.340561] RPC: Registered udp transport module.
[    0.340579] RPC: Registered tcp transport module.
[    0.340597] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.341360] Could not remap bcsr
[    0.344557] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.347390] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.357568] ntfs: driver 2.1.32 [Flags: R/W].
[    0.358144] fuse init (API version 7.23)
[    0.362340] async_tx: api initialized (async)
[    0.362465] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.362503] io scheduler noop registered
[    0.362657] io scheduler cfq registered (default)
[    0.364648] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.364677] crc32: self tests passed, processed 225944 bytes in 891710 nsec
[    0.365711] crc32c: CRC_LE_BITS = 64
[    0.365733] crc32c: self tests passed, processed 225944 bytes in 446662 nsec
[    0.432164] crc32_combine: 8373 self tests passed
[    0.498786] crc32c_combine: 8373 self tests passed
[    0.498853] glob: 64 self-tests passed, 0 failed
[    0.537119] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.537917] console [ttyS0] disabled
[    0.558115] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.492787] console [ttyS0] enabled
[    1.516911] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.526796] console [ttyS0] disabled
[    1.530484] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    2.489954] console [ttyS0] enabled
[    2.494119] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    2.503487] Generic non-volatile memory driver v1.1
[    2.508673] [drm] Initialized drm 1.1.0 20060810
[    2.513408] [drm] radeon kernel modesetting enabled.
[    2.519148] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    2.527166] [drm] register mmio base: 0xe90000000
[    2.531913] [drm] register mmio size: 262144
[    2.867988] ATOM BIOS: C44501
[    2.871252] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    2.880177] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    2.887863] [drm] Detected VRAM RAM=1024M, BAR=256M
[    2.892757] [drm] RAM width 128bits DDR
[    2.896796] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    2.903284] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    2.909836] [TTM] Initializing pool allocator
[    2.914306] [drm] radeon: 1024M of VRAM memory ready
[    2.919314] [drm] radeon: 2048M of GTT memory ready.
[    2.924368] [drm] Loading verde Microcode
[    2.928434] [drm] Internal thermal controller with fan control
[    2.934512] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    2.988191] [drm] radeon: dpm initialized
[    2.992443] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.001666] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.009844] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.026592] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.096671] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.104050] radeon 0000:81:00.0: WB enabled
[    3.108278] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.118404] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.128525] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.138647] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.148768] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.189308] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.199454] radeon 0000:81:00.0: VCE init error (-22).
[    3.204623] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.211269] [drm] Driver supports precise vblank timestamp query.
[    3.217389] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.223320] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.231596] radeon 0000:81:00.0: radeon: using MSI.
[    3.236556] [drm] radeon: irq initialized.
[    3.994859] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.003713] radeon 0000:81:00.0: disabling GPU acceleration
[    4.212268] [drm] Radeon Display Connectors
[    4.216549] [drm] Connector 0:
[    4.219649] [drm]   HDMI-A-1
[    4.222555] [drm]   HPD4
[    4.225112] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.232531] [drm]   Encoders:
[    4.235517] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.239805] [drm] Connector 1:
[    4.242877] [drm]   DVI-I-1
[    4.245690] [drm]   HPD2
[    4.248246] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.255663] [drm]   Encoders:
[    4.258650] [drm]     DFP2: INTERNAL_UNIPHY
[    4.262852] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    4.379931] [drm] fb mappable at 0x80678000
[    4.384155] [drm] vram apper at 0x80000000
[    4.388268] [drm] size 8294400
[    4.391342] [drm] fb depth is 24
[    4.394588] [drm]    pitch is 7680
[    4.672176] Console: switching to colour frame buffer device 240x67
[    4.750398] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    4.760008] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    4.777246] brd: module loaded
[    4.784997] loop: module loaded
[    4.788683] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    4.797149] scsi host0: sata_sil
[    4.800896] scsi host1: sata_sil
[    4.804483] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    4.812234] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    4.820585] PPC 4xx OCP EMAC driver, version 3.54
[    4.826158] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    4.832370] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    4.838113] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    4.845684] TAH /plb/opb/emac-tah@ef601350 initialized
[    4.851177] TAH /plb/opb/emac-tah@ef601450 initialized
[    4.856890] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    4.864367] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    4.871663] eth0: found Generic MII PHY (0x00)
[    4.876557] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    4.884012] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    4.891302] eth1: found Generic MII PHY (0x01)
[    4.896062] PPP generic driver version 2.4.2
[    4.900761] PPP BSD Compression module registered
[    4.905762] PPP Deflate Compression module registered
[    4.911120] NET: Registered protocol family 24
[    4.916046] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.923119] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    4.928105] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    4.936964] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    4.948963] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    4.955692] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.962895] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.970533] usb usb1: Product: OF EHCI
[    4.974510] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    4.981323] usb usb1: SerialNumber: PPC-OF USB
[    4.986434] hub 1-0:1.0: USB hub found
[    4.990478] hub 1-0:1.0: 1 port detected
[    5.008916] ehci-pci: EHCI PCI platform driver
[    5.027442] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.047810] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.066389] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.088409] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.149970] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.205018] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.244946] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.295221] ata1.00: configured for UDMA/100
[    5.327957] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    5.366216] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.412147] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.432841] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.476206] sd 0:0:0:0: [sda] Write Protect is off
[    5.517072] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.542158] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    5.584951] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.620404]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    5.673046] hub 1-1:1.0: USB hub found
[    5.713974] hub 1-1:1.0: 7 ports detected
[    5.740586] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.797971] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.862084] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    5.915067] ata2.00: configured for UDMA/100
[    5.966291] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    6.045416] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.072004] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.120963] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.168804] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.207627] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.234663] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.259920] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.285565] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.311367] usb 1-1.1: Product: USB 2.0 Hub
[    6.333945] usb usb2: Product: OF OHCI
[    6.356279] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    6.381296] hub 1-1.1:1.0: USB hub found
[    6.403487] usb usb2: SerialNumber: PPC-OF USB
[    6.426252] hub 1-1.1:1.0: 4 ports detected
[    6.449129] hub 2-0:1.0: USB hub found
[    6.471142] hub 2-0:1.0: 1 port detected
[    6.493637] ohci-pci: OHCI PCI platform driver
[    6.516516] usbcore: registered new interface driver usblp
[    6.540181] usbcore: registered new interface driver usb-storage
[    6.564182] usbcore: registered new interface driver usbserial
[    6.587598] usbcore: registered new interface driver usbserial_generic
[    6.611586] usbserial: USB Serial support registered for generic
[    6.635634] mousedev: PS/2 mouse device common for all mice
[    6.658820] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.683462] i2c /dev entries driver
[    6.707001] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.731898] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.755876] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.779566] md: linear personality registered for level -1
[    6.802743] md: raid0 personality registered for level 0
[    6.825602] md: raid1 personality registered for level 1
[    6.848254] md: raid10 personality registered for level 10
[    6.871203] md: raid6 personality registered for level 6
[    6.893795] md: raid5 personality registered for level 5
[    6.916250] md: raid4 personality registered for level 4
[    6.938994] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.965000] EDAC PPC4xx MC: v1.0.0
[    6.985796] EDAC PPC4xx MC: Reporting type: interrupt
[    7.008501] hidraw: raw HID events driver (C) Jiri Kosina
[    7.031236] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    7.056117] usbcore: registered new interface driver usbhid
[    7.079177] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    7.103874] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.128754] usbhid: USB HID core driver
[    7.150544] usbcore: registered new interface driver snd-usb-audio
[    7.174386] usb 1-1.2: Product: USB Keyboard
[    7.196169] usb 1-1.2: Manufacturer: CHICONY
[    7.217767] usbcore: registered new interface driver snd-ua101
[    7.241275] usbcore: registered new interface driver snd-usb-usx2y
[    7.264985] ipip: IPv4 over IPv4 tunneling driver
[    7.287361] Initializing XFRM netlink socket
[    7.310406] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    7.341527] NET: Registered protocol family 10
[    7.363506] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    7.388596] sit: IPv6 over IPv4 tunneling driver
[    7.409658] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.434390] NET: Registered protocol family 17
[    7.455542] NET: Registered protocol family 15
[    7.476716] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    7.505967] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    7.532414] Key type encrypted registered
[    7.555617] rtc-m41t80 8-0068: setting system clock to 2015-12-19 14:44:56 UTC (1450536296)
[    7.581487] ALSA device list:
[    7.601317]   No soundcards found.
[    7.621469] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    7.663014] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    7.745229] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    7.776204] md: Waiting for all devices to be available before autodetect
[    7.801075] md: If you don't use raid, use raid=noautodetect
[    7.825267] md: Autodetecting RAID arrays.
[    7.847145] md: Scanned 0 and added 0 devices.
[    7.869366] md: autorun ...
[    7.889749] md: ... autorun DONE.
[    7.913439] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    7.938157] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    7.963391] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.989049] usb 1-1.6: Product: USB Receiver
[    8.011633] usb 1-1.6: Manufacturer: Logitech
[    8.034449] EXT4-fs (sda8): INFO: recovery required on readonly filesystem
[    8.059985] EXT4-fs (sda8): write access will be enabled during recovery
[    8.088434] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    8.171295] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    8.209081] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    8.259216] EXT4-fs (sda8): recovery complete
[    8.292334] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    8.325075] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    8.353890] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    8.386332] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    8.441310] devtmpfs: mounted
[    8.466464] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    8.516992] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    8.637540] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    8.666661] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.696348] usb 1-1.7: Product: Ultra Fast Media 
[    8.723062] usb 1-1.7: Manufacturer: Generic
[    8.749519] usb 1-1.7: SerialNumber: 000000225001
[    8.778007] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    8.807176] scsi host2: usb-storage 1-1.7:1.0
[    8.896160] random: nonblocking pool is initialized
[    9.771882] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    9.834197] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    9.866400] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    9.895894] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.948896] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    9.990635] systemd[1]: Detected architecture ppc.
[   10.114170] systemd[1]: Set hostname to <Sam460ex>.
[   10.430027] systemd-fstab-generator[118]: Mount point  is not a valid path, ignoring.
[   10.540161] systemd[112]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[   11.573296] systemd[1]: Listening on udev Kernel Socket.
[   11.626202] systemd[1]: Reached target Swap.
[   11.737606] systemd[1]: Listening on udev Control Socket.
[   11.788878] systemd[1]: Listening on Syslog Socket.
[   11.839318] systemd[1]: Listening on Journal Socket.
[   11.889173] systemd[1]: Listening on Journal Socket (/dev/log).
[   11.939675] systemd[1]: Listening on fsck to fsckd communication Socket.
[   11.991072] systemd[1]: Reached target User and Group Name Lookups.
[   12.041786] systemd[1]: Reached target Remote File Systems (Pre).
[   12.090896] systemd[1]: Reached target Remote File Systems.
[   12.140111] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   12.194126] systemd[1]: Created slice System Slice.
[   12.251816] systemd[1]: Mounting POSIX Message Queue File System...
[   12.313016] systemd[1]: Created slice system-getty.slice.
[   12.367311] systemd[1]: Mounting Debug File System...
[   12.444114] systemd[1]: Starting Load Kernel Modules...
[   12.499363] systemd[1]: Started Read required files in advance.
[   12.561905] systemd[1]: Reached target Encrypted Volumes.
[   12.621171] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   12.683372] systemd[1]: Starting Uncomplicated firewall...
[   12.738039] systemd[1]: Starting Journal Service...
[   12.789812] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   12.860133] systemd[1]: Created slice User and Session Slice.
[   12.909170] systemd[1]: Reached target Slices.
[   12.960588] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   13.018690] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   13.073877] systemd[1]: Mounted Debug File System.
[   13.122813] systemd[1]: Mounted POSIX Message Queue File System.
[   13.173066] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   13.204691] systemd[1]: Failed to start Load Kernel Modules.
[   13.279254] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   13.307514] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   13.337076] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   13.391116] systemd[1]: Started Uncomplicated firewall.
[   13.515688] systemd[1]: Starting Create Static Device Nodes in /dev...
[   13.576034] systemd[1]: Mounting FUSE Control File System...
[   13.678518] systemd[1]: Mounting Configuration File System...
[   13.826185] systemd[1]: Starting Apply Kernel Variables...
[   13.941289] systemd[1]: Mounted FUSE Control File System.
[   14.019401] systemd[1]: Mounted Configuration File System.
[   18.066162] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.140281] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.201170] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   48.749032] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   48.773172] ata3.00: failed command: READ FPDMA QUEUED
[   48.794325] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   48.794325]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   48.841107] ata3.00: status: { DRDY }
[   49.170183] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.213882] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.246675] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   79.725042] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   79.750800] ata3.00: failed command: READ FPDMA QUEUED
[   79.773537] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   79.773537]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   79.823712] ata3.00: status: { DRDY }
[   80.155178] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   80.200724] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   80.236592] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  110.765053] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  110.796325] ata3.00: failed command: READ DMA
[  110.820037] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  110.820037]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  110.874532] ata3.00: status: { DRDY }
[  111.208179] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  111.255494] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  111.290174] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  141.805055] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  141.834436] ata3.00: failed command: READ DMA
[  141.859342] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  141.859342]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  141.917879] ata3.00: status: { DRDY }
[  142.252179] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  142.301168] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  142.337181] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  172.781021] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  172.797974] ata3.00: failed command: READ DMA
[  172.810916] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  172.810916]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  172.842254] ata3.00: status: { DRDY }
[  173.166111] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  173.194004] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  173.226119] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  203.756840] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  203.772759] ata3.00: failed command: READ DMA
[  203.782755] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  203.782755]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  203.813751] ata3.00: status: { DRDY }
[  204.133166] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  204.156842] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  204.187917] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  204.213926] blk_update_request: I/O error, dev sdc, sector 0
[  204.232756] Buffer I/O error on dev sdc, logical block 0, async page read
[  234.732616] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  234.743829] ata3.00: failed command: READ DMA
[  234.750115] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  234.750115]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  234.772174] ata3.00: status: { DRDY }
[  235.091981] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  235.115781] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  235.148746] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  265.772472] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  265.786863] ata3.00: failed command: READ DMA
[  265.793886] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  265.793886]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  265.811814] ata3.00: status: { DRDY }
[  266.126563] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  266.142484] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  266.165588] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  296.812257] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  296.822343] ata3.00: failed command: READ DMA
[  296.826779] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  296.826779]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  296.842395] ata3.00: status: { DRDY }
[  297.166402] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  297.193327] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  297.218386] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  328.044081] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  328.054177] ata3.00: failed command: READ DMA
[  328.058614] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  328.058614]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  328.074088] ata3.00: status: { DRDY }
[  328.397217] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  328.418136] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  328.439213] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 18:56                                                               ` Julian Margetson
@ 2015-12-19 19:07                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 19:07 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 1:19 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>
>>>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>>>> operations.
>>>>> I suppose the following is a quick fix to avoid preparing descriptor
>>>>> for non-DMA operations (not tested anyhow)
>>>>>
>>>>> a/drivers/ata/sata_dwc_460ex.c
>>>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>>>> ata_queued_cmd *qc, u8 tag)
>>>>>                   __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>>>                    qc->n_elem);
>>>>>
>>>>> +       if (!is_slave_direction(qc->dma_dir))
>>>>> +               return;
>>>>> +
>>>>>           desc = dma_dwc_xfer_setup(qc);
>>>>>           if (!desc) {
>>>>>                   dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>>>> I already have a better patch sitting here.
>>>>
>>>>>> The real error is the lock recursion that's reported
>>>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>>>> With lock debugging enabled, I get the same error.  This patch should
>>>>>> fix it.
>>>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>>>           hsdevp->cmd_issued[tag] = cmd_issued;
>>>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>>>> +
>>>>> This will create a second empty line, though I don't care it is so minor.
>>>> The patch leaves one blank line before the following block comment.  I
>>>> think it looks better that way.
>>>>
>>> Still can't get the patch applied .
>> Sorry, didn't realise it conflicted with an intervening patch I had in
>> my tree.  Try this one.
>>
>
>
> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 14:44:52 =~=~=~=~=~=~=~=~=~=~=~=
>
> U-Boot 2015.a (May 16 2015 - 14:20:11)
>
> CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
>        No Security/Kasumi support
>        Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
>        Internal PCI arbiter enabled
>        32 kB I-Cache 32 kB D-Cache
> Board: Sam460ex/cr, PCIe 4x + SATA-2
> I2C:   ready
> DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
> PCI:   Bus Dev VenId DevId Class Int
>         00  04  1095  3512  0104  00
>         00  06  126f  0501  0380  00
> PCIE1: successfully set as root-complex
>         02  00  1002  683f  0300  ff
> Net:   ppc_4xx_eth0
> FPGA:  Revision 03 (2010-10-07)
> SM502: found
> PERMD2:not found
> VGA:   1
> VESA:  OK
> [    0.000000] Using Canyonlands machine description
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
> [    0.000000]   Normal   empty
> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg

Please add ignore_log_level.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 19:07                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 19:07 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 1:19 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>
>>>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>>>> operations.
>>>>> I suppose the following is a quick fix to avoid preparing descriptor
>>>>> for non-DMA operations (not tested anyhow)
>>>>>
>>>>> a/drivers/ata/sata_dwc_460ex.c
>>>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>>>> ata_queued_cmd *qc, u8 tag)
>>>>>                   __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>>>                    qc->n_elem);
>>>>>
>>>>> +       if (!is_slave_direction(qc->dma_dir))
>>>>> +               return;
>>>>> +
>>>>>           desc = dma_dwc_xfer_setup(qc);
>>>>>           if (!desc) {
>>>>>                   dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>>>> I already have a better patch sitting here.
>>>>
>>>>>> The real error is the lock recursion that's reported
>>>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>>>> With lock debugging enabled, I get the same error.  This patch should
>>>>>> fix it.
>>>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>>>           hsdevp->cmd_issued[tag] = cmd_issued;
>>>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>>>> +
>>>>> This will create a second empty line, though I don't care it is so minor.
>>>> The patch leaves one blank line before the following block comment.  I
>>>> think it looks better that way.
>>>>
>>> Still can't get the patch applied .
>> Sorry, didn't realise it conflicted with an intervening patch I had in
>> my tree.  Try this one.
>>
>
>
> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 14:44:52 =~=~=~=~=~=~=~=~=~=~=~=
>
> U-Boot 2015.a (May 16 2015 - 14:20:11)
>
> CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
>        No Security/Kasumi support
>        Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
>        Internal PCI arbiter enabled
>        32 kB I-Cache 32 kB D-Cache
> Board: Sam460ex/cr, PCIe 4x + SATA-2
> I2C:   ready
> DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
> PCI:   Bus Dev VenId DevId Class Int
>         00  04  1095  3512  0104  00
>         00  06  126f  0501  0380  00
> PCIE1: successfully set as root-complex
>         02  00  1002  683f  0300  ff
> Net:   ppc_4xx_eth0
> FPGA:  Revision 03 (2010-10-07)
> SM502: found
> PERMD2:not found
> VGA:   1
> VESA:  OK
> [    0.000000] Using Canyonlands machine description
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
> [    0.000000]   Normal   empty
> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg

Please add ignore_log_level.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 19:07                                                                   ` Måns Rullgård
  (?)
@ 2015-12-19 20:16                                                                   ` Julian Margetson
  2015-12-19 20:39                                                                     ` Andy Shevchenko
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 20:16 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/19/2015 3:07 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/19/2015 1:19 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/19/2015 1:05 PM, Måns Rullgård wrote:
>>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>>
>>>>>> On Sat, Dec 19, 2015 at 5:40 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>>
>>>>>>> OK, I've found something.  The dma setup errors are benign, caused by
>>>>>>> the driver calling dmaengine_prep_slave_sg() even for non-dma
>>>>>>> operations.
>>>>>> I suppose the following is a quick fix to avoid preparing descriptor
>>>>>> for non-DMA operations (not tested anyhow)
>>>>>>
>>>>>> a/drivers/ata/sata_dwc_460ex.c
>>>>>> +++ b/drivers/ata/sata_dwc_460ex.c
>>>>>> @@ -1041,6 +1041,9 @@ static void sata_dwc_qc_prep_by_tag(struct
>>>>>> ata_queued_cmd *qc, u8 tag)
>>>>>>                    __func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
>>>>>>                     qc->n_elem);
>>>>>>
>>>>>> +       if (!is_slave_direction(qc->dma_dir))
>>>>>> +               return;
>>>>>> +
>>>>>>            desc = dma_dwc_xfer_setup(qc);
>>>>>>            if (!desc) {
>>>>>>                    dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns NULL\n",
>>>>> I already have a better patch sitting here.
>>>>>
>>>>>>> The real error is the lock recursion that's reported
>>>>>>> later.  I wasn't seeing it since I was running a UP non-preempt kernel.
>>>>>>> With lock debugging enabled, I get the same error.  This patch should
>>>>>>> fix it.
>>>>>>> -       spin_lock_irqsave(&ap->host->lock, flags);
>>>>>>>            hsdevp->cmd_issued[tag] = cmd_issued;
>>>>>>> -       spin_unlock_irqrestore(&ap->host->lock, flags);
>>>>>>> +
>>>>>> This will create a second empty line, though I don't care it is so minor.
>>>>> The patch leaves one blank line before the following block comment.  I
>>>>> think it looks better that way.
>>>>>
>>>> Still can't get the patch applied .
>>> Sorry, didn't realise it conflicted with an intervening patch I had in
>>> my tree.  Try this one.
>>>
>>
>> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 14:44:52 =~=~=~=~=~=~=~=~=~=~=~=
>>
>> U-Boot 2015.a (May 16 2015 - 14:20:11)
>>
>> CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
>>         No Security/Kasumi support
>>         Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
>>         Internal PCI arbiter enabled
>>         32 kB I-Cache 32 kB D-Cache
>> Board: Sam460ex/cr, PCIe 4x + SATA-2
>> I2C:   ready
>> DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
>> PCI:   Bus Dev VenId DevId Class Int
>>          00  04  1095  3512  0104  00
>>          00  06  126f  0501  0380  00
>> PCIE1: successfully set as root-complex
>>          02  00  1002  683f  0300  ff
>> Net:   ppc_4xx_eth0
>> FPGA:  Revision 03 (2010-10-07)
>> SM502: found
>> PERMD2:not found
>> VGA:   1
>> VESA:  OK
>> [    0.000000] Using Canyonlands machine description
>> [    0.000000] Initializing cgroup subsys cpu
>> [    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
>> [    0.000000] Zone ranges:
>> [    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
>> [    0.000000]   Normal   empty
>> [    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
>> [    0.000000] Movable zone start for each node
>> [    0.000000] Early memory node ranges
>> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
>> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
>> [    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
>> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200 console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
> Please add ignore_log_level.
>
Had to truncate the kernel command line to add it.

[-- Attachment #2: log5.log.log --]
[-- Type: text/plain, Size: 53525 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 15:59:55 =~=~=~=~=~=~=~=~=~=~=~=

U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_log_level dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000175] pid_max: default: 32768 minimum: 301
[    0.000277] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000289] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004032] devtmpfs: initialized
[    0.006766] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007154] xor: measuring software checksum speed
[    0.016351]    8regs     :   856.000 MB/sec
[    0.026358]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046422]    32regs_prefetch:   996.000 MB/sec
[    0.046429] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048911] prandom: 100 self tests passed
[    0.049448] NET: Registered protocol family 16
[    0.052548] cpuidle: using governor ladder
[    0.055582] cpuidle: using governor menu
[    0.055982] 256k L2-cache enabled
[    0.056065] PCIE0: Port disabled via device-tree
[    0.056116] PCIE1: Checking link...
[    0.056122] PCIE1: Device detected, waiting for link...
[    0.056128] PCIE1: link is up !
[    0.158413] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158440]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158455]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158465]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158488] 4xx PCI DMA offset set to 0x00000000
[    0.158494] 4xx PCI DMA window base to 0x0000000000000000
[    0.158500] DMA window size 0x0000000080000000
[    0.158524] PCIE1: successfully set as root-complex
[    0.158589] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159241] PCI host bridge to bus 0000:80
[    0.159259] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159272] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159284] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159297] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159421] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.160285] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160491] PCI host bridge to bus 0001:00
[    0.160505] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160517] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160529] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160540] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.161162] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161174] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161185] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161201] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161221] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161238] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161251] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161268] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161281] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161292] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161303] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161314] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161392] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161405] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161417] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161429] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161440] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161452] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161463] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161475] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161487] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.188265] raid6: int32x1  gen()   300 MB/s
[    0.205419] raid6: int32x1  xor()   173 MB/s
[    0.222445] raid6: int32x2  gen()   433 MB/s
[    0.239493] raid6: int32x2  xor()   240 MB/s
[    0.256585] raid6: int32x4  gen()   476 MB/s
[    0.273663] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307892] raid6: int32x8  xor()   218 MB/s
[    0.307898] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307904] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307911] raid6: using intx1 recovery algorithm
[    0.308209] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308223] vgaarb: loaded
[    0.308228] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308867] usbcore: registered new interface driver usbfs
[    0.308911] usbcore: registered new interface driver hub
[    0.308964] usbcore: registered new device driver usb
[    0.309060] pps_core: LinuxPPS API ver. 1 registered
[    0.309068] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309096] PTP clock support registered
[    0.309240] EDAC MC: Ver: 3.0.0
[    0.309589] Advanced Linux Sound Architecture Driver Initialized.
[    0.329521] DMA-API: preallocated 65536 debug entries
[    0.329534] DMA-API: debugging enabled by kernel config
[    0.329580] clocksource: Switched to clocksource timebase
[    0.336185] NET: Registered protocol family 2
[    0.336769] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336863] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337204] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337315] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337380] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337725] NET: Registered protocol family 1
[    0.338039] RPC: Registered named UNIX socket transport module.
[    0.338048] RPC: Registered udp transport module.
[    0.338054] RPC: Registered tcp transport module.
[    0.338060] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338817] Could not remap bcsr
[    0.341969] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345025] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355166] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355700] fuse init (API version 7.23)
[    0.359889] async_tx: api initialized (async)
[    0.359989] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360006] io scheduler noop registered
[    0.360148] io scheduler cfq registered (default)
[    0.362207] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362217] crc32: self tests passed, processed 225944 bytes in 892377 nsec
[    0.363191] crc32c: CRC_LE_BITS = 64
[    0.363200] crc32c: self tests passed, processed 225944 bytes in 446237 nsec
[    0.429593] crc32_combine: 8373 self tests passed
[    0.496188] crc32c_combine: 8373 self tests passed
[    0.496240] glob: 64 self-tests passed, 0 failed
[    0.534469] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535260] console [ttyS0] disabled
[    0.555405] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.487085] console [ttyS0] enabled
[    1.511191] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.521036] console [ttyS0] disabled
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #1 PREEMPT Sat Dec 19 14:25:55 AST 2015
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_log_level dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000144] Console: colour dummy device 80x25
[    0.000175] pid_max: default: 32768 minimum: 301
[    0.000277] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000289] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004032] devtmpfs: initialized
[    0.006766] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007154] xor: measuring software checksum speed
[    0.016351]    8regs     :   856.000 MB/sec
[    0.026358]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046422]    32regs_prefetch:   996.000 MB/sec
[    0.046429] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048911] prandom: 100 self tests passed
[    0.049448] NET: Registered protocol family 16
[    0.052548] cpuidle: using governor ladder
[    0.055582] cpuidle: using governor menu
[    0.055982] 256k L2-cache enabled
[    0.056065] PCIE0: Port disabled via device-tree
[    0.056116] PCIE1: Checking link...
[    0.056122] PCIE1: Device detected, waiting for link...
[    0.056128] PCIE1: link is up !
[    0.158413] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158440]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158455]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158465]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158488] 4xx PCI DMA offset set to 0x00000000
[    0.158494] 4xx PCI DMA window base to 0x0000000000000000
[    0.158500] DMA window size 0x0000000080000000
[    0.158524] PCIE1: successfully set as root-complex
[    0.158589] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159241] PCI host bridge to bus 0000:80
[    0.159259] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159272] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159284] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159297] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159421] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.160285] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160491] PCI host bridge to bus 0001:00
[    0.160505] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160517] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160529] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160540] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.161162] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161174] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161185] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161201] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161221] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161238] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161251] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161268] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161281] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161292] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161303] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161314] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161392] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161405] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161417] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161429] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161440] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161452] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161463] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161475] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161487] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.188265] raid6: int32x1  gen()   300 MB/s
[    0.205419] raid6: int32x1  xor()   173 MB/s
[    0.222445] raid6: int32x2  gen()   433 MB/s
[    0.239493] raid6: int32x2  xor()   240 MB/s
[    0.256585] raid6: int32x4  gen()   476 MB/s
[    0.273663] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307892] raid6: int32x8  xor()   218 MB/s
[    0.307898] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307904] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307911] raid6: using intx1 recovery algorithm
[    0.308209] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308223] vgaarb: loaded
[    0.308228] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308867] usbcore: registered new interface driver usbfs
[    0.308911] usbcore: registered new interface driver hub
[    0.308964] usbcore: registered new device driver usb
[    0.309060] pps_core: LinuxPPS API ver. 1 registered
[    0.309068] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309096] PTP clock support registered
[    0.309240] EDAC MC: Ver: 3.0.0
[    0.309589] Advanced Linux Sound Architecture Driver Initialized.
[    0.329521] DMA-API: preallocated 65536 debug entries
[    0.329534] DMA-API: debugging enabled by kernel config
[    0.329580] clocksource: Switched to clocksource timebase
[    0.336185] NET: Registered protocol family 2
[    0.336769] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336863] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337204] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337315] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337380] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337725] NET: Registered protocol family 1
[    0.338039] RPC: Registered named UNIX socket transport module.
[    0.338048] RPC: Registered udp transport module.
[    0.338054] RPC: Registered tcp transport module.
[    0.338060] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338817] Could not remap bcsr
[    0.341969] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345025] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355166] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355700] fuse init (API version 7.23)
[    0.359889] async_tx: api initialized (async)
[    0.359989] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360006] io scheduler noop registered
[    0.360148] io scheduler cfq registered (default)
[    0.362207] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362217] crc32: self tests passed, processed 225944 bytes in 892377 nsec
[    0.363191] crc32c: CRC_LE_BITS = 64
[    0.363200] crc32c: self tests passed, processed 225944 bytes in 446237 nsec
[    0.429593] crc32_combine: 8373 self tests passed
[    0.496188] crc32c_combine: 8373 self tests passed
[    0.496240] glob: 64 self-tests passed, 0 failed
[    0.534469] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535260] console [ttyS0] disabled
[    0.555405] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.487085] console [ttyS0] enabled
[    1.511191] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.521036] console [ttyS0] disabled
[    1.524695] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    2.481174] console [ttyS0] enabled
[    2.485294] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    2.494676] Generic non-volatile memory driver v1.1
[    2.499834] [drm] Initialized drm 1.1.0 20060810
[    2.504522] [drm] radeon kernel modesetting enabled.
[    2.510206] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    2.518194] [drm] register mmio base: 0xe90000000
[    2.522930] [drm] register mmio size: 262144
[    2.859029] ATOM BIOS: C44501
[    2.862259] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    2.871169] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    2.878834] [drm] Detected VRAM RAM=1024M, BAR=256M
[    2.883720] [drm] RAM width 128bits DDR
[    2.887755] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    2.894229] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    2.900760] [TTM] Initializing pool allocator
[    2.905216] [drm] radeon: 1024M of VRAM memory ready
[    2.910200] [drm] radeon: 2048M of GTT memory ready.
[    2.915234] [drm] Loading verde Microcode
[    2.919284] [drm] Internal thermal controller with fan control
[    2.925353] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    2.978966] [drm] radeon: dpm initialized
[    2.983195] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    2.992385] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.000535] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.017262] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.072039] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.079320] radeon 0000:81:00.0: WB enabled
[    3.083555] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.093656] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.103751] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.113846] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.123941] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.164520] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.174619] radeon 0000:81:00.0: VCE init error (-22).
[    3.179768] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.186384] [drm] Driver supports precise vblank timestamp query.
[    3.192490] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.198403] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.206668] radeon 0000:81:00.0: radeon: using MSI.
[    3.211618] [drm] radeon: irq initialized.
[    3.971625] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    3.980432] radeon 0000:81:00.0: disabling GPU acceleration
[    4.189393] [drm] Radeon Display Connectors
[    4.193648] [drm] Connector 0:
[    4.196742] [drm]   HDMI-A-1
[    4.199638] [drm]   HPD4
[    4.202178] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.209579] [drm]   Encoders:
[    4.212556] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.216836] [drm] Connector 1:
[    4.219899] [drm]   DVI-I-1
[    4.222702] [drm]   HPD2
[    4.225241] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.232641] [drm]   Encoders:
[    4.235612] [drm]     DFP2: INTERNAL_UNIPHY
[    4.239804] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    4.358055] [drm] fb mappable at 0x80678000
[    4.362253] [drm] vram apper at 0x80000000
[    4.366358] [drm] size 8294400
[    4.369422] [drm] fb depth is 24
[    4.372660] [drm]    pitch is 7680
[    4.651943] Console: switching to colour frame buffer device 240x67
[    4.730862] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    4.739645] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    4.756405] brd: module loaded
[    4.763940] loop: module loaded
[    4.767432] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    4.775448] scsi host0: sata_sil
[    4.779018] scsi host1: sata_sil
[    4.782403] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    4.789730] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    4.797687] PPC 4xx OCP EMAC driver, version 3.54
[    4.802957] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    4.808829] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    4.814261] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    4.821419] TAH /plb/opb/emac-tah@ef601350 initialized
[    4.826620] TAH /plb/opb/emac-tah@ef601450 initialized
[    4.832028] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    4.839156] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    4.846052] eth0: found Generic MII PHY (0x00)
[    4.850690] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    4.857796] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    4.864694] eth1: found Generic MII PHY (0x01)
[    4.869194] PPP generic driver version 2.4.2
[    4.873666] PPP BSD Compression module registered
[    4.878395] PPP Deflate Compression module registered
[    4.883457] NET: Registered protocol family 24
[    4.888087] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.894780] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    4.899489] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    4.908098] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    4.919596] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    4.925980] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.932787] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.940016] usb usb1: Product: OF EHCI
[    4.943774] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    4.950223] usb usb1: SerialNumber: PPC-OF USB
[    4.955077] hub 1-0:1.0: USB hub found
[    4.958893] hub 1-0:1.0: 1 port detected
[    4.963122] ehci-pci: EHCI PCI platform driver
[    4.967675] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.973990] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    4.978647] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    4.986447] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.111605] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.152366] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.166582] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.183854] ata1.00: configured for UDMA/100
[    5.206848] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.220252] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.228697] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.239823] sd 0:0:0:0: [sda] Write Protect is off
[    5.249681] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.265591] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    5.284427]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    5.326820] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.394945] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    5.407584] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.423680] hub 1-1:1.0: USB hub found
[    5.430680] hub 1-1:1.0: 7 ports detected
[    5.547608] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.576718] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    5.609699] ata2.00: configured for UDMA/100
[    5.625517] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    5.668878] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    5.683583] cdrom: Uniform CD-ROM driver Revision: 3.20
[    5.695388] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    5.704861] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    5.711919] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.719186] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    5.726158] usb usb2: Product: OF OHCI
[    5.729925] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    5.736432] usb usb2: SerialNumber: PPC-OF USB
[    5.741400] hub 2-0:1.0: USB hub found
[    5.745219] hub 2-0:1.0: 1 port detected
[    5.749482] ohci-pci: OHCI PCI platform driver
[    5.754227] usbcore: registered new interface driver usblp
[    5.759874] usbcore: registered new interface driver usb-storage
[    5.766108] usbcore: registered new interface driver usbserial
[    5.772035] usbcore: registered new interface driver usbserial_generic
[    5.778625] usbserial: USB Serial support registered for generic
[    5.784961] mousedev: PS/2 mouse device common for all mice
[    5.790655] i2c /dev entries driver
[    5.796536] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    5.803706] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    5.809967] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    5.816065] md: linear personality registered for level -1
[    5.821578] md: raid0 personality registered for level 0
[    5.826953] md: raid1 personality registered for level 1
[    5.832338] md: raid10 personality registered for level 10
[    5.838046] md: raid6 personality registered for level 6
[    5.843408] md: raid5 personality registered for level 5
[    5.848737] md: raid4 personality registered for level 4
[    5.854675] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    5.861749] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    5.870236] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.877610] EDAC PPC4xx MC: v1.0.0
[    5.881056] usb 1-1.1: Product: USB 2.0 Hub
[    5.885258] EDAC PPC4xx MC: Reporting type: interrupt
[    5.890901] hub 1-1.1:1.0: USB hub found
[    5.894940] hidraw: raw HID events driver (C) Jiri Kosina
[    5.900674] hub 1-1.1:1.0: 4 ports detected
[    5.905185] usbcore: registered new interface driver usbhid
[    5.910834] usbhid: USB HID core driver
[    5.915341] usbcore: registered new interface driver snd-usb-audio
[    5.921731] usbcore: registered new interface driver snd-ua101
[    5.927843] usbcore: registered new interface driver snd-usb-usx2y
[    5.934407] ipip: IPv4 over IPv4 tunneling driver
[    5.939646] Initializing XFRM netlink socket
[    5.944809] NET: Registered protocol family 10
[    5.950263] sit: IPv6 over IPv4 tunneling driver
[    5.955402] NET: Registered protocol family 17
[    5.959950] NET: Registered protocol family 15
[    5.966421] Key type encrypted registered
[    5.972009] rtc-m41t80 8-0068: setting system clock to 2015-12-19 16:06:54 UTC (1450541214)
[    5.980625] ALSA device list:
[    5.983625]   No soundcards found.
[    5.987635] md: Waiting for all devices to be available before autodetect
[    5.994463] md: If you don't use raid, use raid=noautodetect
[    6.000794] md: Autodetecting RAID arrays.
[    6.004927] md: Scanned 0 and added 0 devices.
[    6.009379] md: autorun ...
[    6.012183] md: ... autorun DONE.
[    6.015612] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.047473] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    6.081467] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    6.089223] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    6.116407] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.123456] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.130926] usb 1-1.2: Product: USB Keyboard
[    6.135247] usb 1-1.2: Manufacturer: CHICONY
[    6.139715] devtmpfs: mounted
[    6.143527] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    6.156461] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.220061] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    6.232359] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.325782] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    6.332879] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.340745] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    6.370063] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    6.397609] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    6.434891] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    6.493278] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    6.500693] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.508405] usb 1-1.6: Product: USB Receiver
[    6.512956] usb 1-1.6: Manufacturer: Logitech
[    6.522084] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    6.585896] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    6.598174] random: nonblocking pool is initialized
[    6.609505] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    6.672996] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    6.690714] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    6.775607] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    6.875265] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    6.882558] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.890159] usb 1-1.7: Product: Ultra Fast Media 
[    6.895002] usb 1-1.7: Manufacturer: Generic
[    6.899314] usb 1-1.7: SerialNumber: 000000225001
[    6.906743] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    6.913312] scsi host2: usb-storage 1-1.7:1.0
[    7.294300] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    7.388418] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    7.406999] systemd[1]: Detected architecture ppc.

Welcome to Ubuntu 16.04!

[    7.444895] systemd[1]: Set hostname to <Sam460ex>.
[    7.644195] systemd-fstab-generator[116]: Mount point  is not a valid path, ignoring.
[    7.747303] systemd[110]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[    7.918808] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    7.928760] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    7.937131] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    8.703965] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    8.716950] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    8.731931] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    8.746753] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[    8.761026] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    8.773692] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[    8.792987] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    8.805802] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    8.816042] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    8.829139] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[    9.041561] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    9.056466] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    9.070204] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    9.083066] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    9.099834] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[    9.113830] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[    9.127319] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    9.145719] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    9.165781] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    9.191042] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    9.204064] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    9.241313] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    9.259212] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    9.276965] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    9.291925] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    9.309897] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[    9.339866] systemd[1]: Started Uncomplicated firewall.
[  OK  ] Started Uncomplicated firewall.
[    9.523413] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[    9.540458] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[    9.561751] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[    9.569450] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[    9.592917] systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[    9.624225] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[    9.645485] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[    9.681739] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[    9.693091] systemd[1]: ureadahead.service: Unit entered failed state.
[    9.699745] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[    9.753528] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    9.777165] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[    9.797560] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    9.822354] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[    9.850252] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[    9.864937] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Journal Service.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting File System Check on Root Device...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems (Pre).
         Starting Load/Save Random Seed...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Found device /dev/ttyS0.
[   13.798794] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   13.821775] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   13.852881] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  OK  ] Reached target Sound Card.
[  OK  ] Created slice system-ifup.slice.
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Found device WDC_WD5000AAKS-00V1A0 NTFS.
         Mounting /media/NTFS...
[  OK  ] Mounted /media/NTFS.
[  OK  ] Reached target Local File Systems.
         Starting LSB: AppArmor initialization...
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Wait for all "auto" /etc/n... up for network-online.target...
         Starting Clean up any mess left by 0dns-up...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Clean up any mess left by 0dns-up.
[  OK  ] Started LSB: AppArmor initialization.
[  OK  ] Started ifup for eth0.
         Starting Nameserver information manager...
[  OK  ] Started Nameserver information manager.
         Starting LSB: Raise network interfaces....
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[  OK  ] Started LSB: start Samba SMB/CIFS daemon (smbd).
[  OK  ] Started Wait for all "auto" /etc/ne...be up for network-online.target.

[   44.789143] ata3.00: failed command: READ FPDMA QUEUED
[   44.794376] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   44.794376]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   44.809351] ata3.00: status: { DRDY }

[   45.137778] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   45.158850] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
r LSB: Rai...ork interfaces. (44s / no limit)
[   75.765297] ata3.00: failed command: READ FPDMA QUEUED
[   75.770531] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   75.770531]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   75.785501] ata3.00: status: { DRDY }
[   76.098849] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
    *] A start job is running for LSB: Rai...interfa[   76.115178] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
ces. (1min 7s / no limit)[   76.136847] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
n 31s / no limit)
[  106.742527] ata3.00: failed command: READ DMA
[  106.746991] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  106.746991]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  106.762046] ata3.00: status: { DRDY }
[  107.076848] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  107.091773] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

nning for LSB: Rai...nterfaces. (1min 38s / no limit)    ] A start job is running for LSB: Rai...nterfaces. (1min 53s / no limit)
[  137.782048] ata3.00: failed command: READ DMA
[  137.786491] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  137.786491]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  137.801484] ata3.00: status: { DRDY }

 for LSB: Rai...interfaces. (2min 9s / no limit)[  138.130785] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  138.151845] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL

[  OK  ] Reached target System Initialization.
[  OK  ] Started Trigger resolvconf update for networkd DNS.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
         Starting Console System Startup Logging...
[  OK  ] Listening on CUPS Scheduler.
         Starting Restore Sound Card State...
[  OK  ] Started CUPS Scheduler.
[  OK  ] Reached target Paths.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Modem Manager...
         Starting Restore /etc/resolv.conf i...e the ppp link was shut down....
         Starting LSB: start and stop timidity...
[  OK  ] Started Regular background program processing daemon.
         Starting Accounts Service...
         Starting LSB: handle special hotkeys of Apple computers...
[  OK  ] Started CUPS Scheduler.
         Starting LSB: daemon to balance interrupts for SMP systems...
         Starting Login Service...
[  OK  ] Started crash report submission daemon.
         Starting Network Manager...
         Starting Initialize hardware monitoring sensors...
         Starting System Logging Service...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Cgroup management daemon.
         Starting LSB: automatic crash report generation...
         Starting Permit User Sessions...
[  OK  ] Started Run anacron jobs.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: start Samba daemons for the AD DC...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: Start NTP daemon...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Make remote CUPS printers available locally.
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: Start xrdp and sesman daemons...
         Starting LSB: Tool to automatically...ubmit kernel crash signatures...
[  OK  ] Started System Logging Service.
[  OK  ] Started Console System Startup Logging.
[  OK  ] Started Restore Sound Card State.
[  OK  ] Started Restore /etc/resolv.conf if...ore the ppp link was shut down..
[  OK  ] Started LSB: start and stop timidity.
[  OK  ] Started LSB: handle special hotkeys of Apple computers.
[  OK  ] Started LSB: daemon to balance interrupts for SMP systems.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started LSB: Tool to automatically ... submit kernel crash signatures.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started LSB: Start xrdp and sesman daemons.
[  OK  ] Started Login Service.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting Manage, Install and Generate Color Profiles...
         Starting LSB: set CPUFreq kernel parameters...
         Starting Light Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
         Starting WPA supplicant...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Manage, Install and Generate Color Profiles.
[  OK  ] Started Modem Manager.
[  OK  ] Started Light Display Manager.
[  OK  ] Started WPA supplicant.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  168.812924] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  168.830521] ata3.00: failed command: READ DMA
[  168.841530] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  168.841530]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  168.870535] ata3.00: status: { DRDY }
[  169.190057] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  169.215664] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  169.246746] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  199.788475] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  199.803744] ata3.00: failed command: READ DMA
[  199.814375] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  199.814375]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  199.845340] ata3.00: status: { DRDY }
[  200.165795] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  200.194458] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  200.224548] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  200.251506] blk_update_request: I/O error, dev sdc, sector 0
[  200.272350] Buffer I/O error on dev sdc, logical block 0, async page read

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 20:16                                                                   ` Julian Margetson
@ 2015-12-19 20:39                                                                     ` Andy Shevchenko
  2015-12-19 20:41                                                                         ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-19 20:39 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Måns Rullgård, Andy Shevchenko, Tejun Heo, linux-ide,
	linux-kernel

On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:

>>> Total pages: 522752
>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>
>> Please add ignore_log_level.
>>
> Had to truncate the kernel command line to add it.

I guess Måns meant 'ignore_loglevel'

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 20:39                                                                     ` Andy Shevchenko
@ 2015-12-19 20:41                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 20:41 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>
>>>> Total pages: 522752
>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>
>>> Please add ignore_log_level.
>>>
>> Had to truncate the kernel command line to add it.
>
> I guess Måns meant 'ignore_loglevel'

Obviously.  I can never remember where the underscores go.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-19 20:41                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-19 20:41 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>
>>>> Total pages: 522752
>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>
>>> Please add ignore_log_level.
>>>
>> Had to truncate the kernel command line to add it.
>
> I guess Måns meant 'ignore_loglevel'

Obviously.  I can never remember where the underscores go.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 20:41                                                                         ` Måns Rullgård
  (?)
@ 2015-12-19 20:48                                                                         ` Julian Margetson
  -1 siblings, 0 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 20:48 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/19/2015 4:41 PM, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>> Total pages: 522752
>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>> Please add ignore_log_level.
>>>>
>>> Had to truncate the kernel command line to add it.
>> I guess Måns meant 'ignore_loglevel'
> Obviously.  I can never remember where the underscores go.
>
:-)



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 20:41                                                                         ` Måns Rullgård
  (?)
  (?)
@ 2015-12-19 20:55                                                                         ` Julian Margetson
  2015-12-20 17:11                                                                             ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-19 20:55 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/19/2015 4:41 PM, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>> Total pages: 522752
>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>> Please add ignore_log_level.
>>>>
>>> Had to truncate the kernel command line to add it.
>> I guess Måns meant 'ignore_loglevel'
> Obviously.  I can never remember where the underscores go.
>


[-- Attachment #2: log6.log --]
[-- Type: text/plain, Size: 126988 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.19 16:49:31 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #2 PREEMPT Sat Dec 19 16:34:08 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000174] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004031] devtmpfs: initialized
[    0.006763] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007151] xor: measuring software checksum speed
[    0.016350]    8regs     :   856.000 MB/sec
[    0.026357]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046421]    32regs_prefetch:   996.000 MB/sec
[    0.046428] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048910] prandom: 100 self tests passed
[    0.049446] NET: Registered protocol family 16
[    0.052547] cpuidle: using governor ladder
[    0.055582] cpuidle: using governor menu
[    0.055980] 256k L2-cache enabled
[    0.056064] PCIE0: Port disabled via device-tree
[    0.056115] PCIE1: Checking link...
[    0.056121] PCIE1: Device detected, waiting for link...
[    0.056127] PCIE1: link is up !
[    0.158412] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158440]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158455]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158465]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158488] 4xx PCI DMA offset set to 0x00000000
[    0.158494] 4xx PCI DMA window base to 0x0000000000000000
[    0.158500] DMA window size 0x0000000080000000
[    0.158524] PCIE1: successfully set as root-complex
[    0.158589] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159240] PCI host bridge to bus 0000:80
[    0.159258] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159272] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159284] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159297] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159311] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159348] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159388] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159420] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159695] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159745] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159766] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159781] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159804] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159867] pci 0000:81:00.0: supports D1 D2
[    0.159877] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160027] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160076] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160159] pci 0000:81:00.1: supports D1 D2
[    0.160284] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160300] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160311] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160398] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160489] PCI host bridge to bus 0001:00
[    0.160503] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160516] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160528] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160538] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160549] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160600] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160612] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160625] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160637] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160650] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160662] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160676] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160702] pci 0001:00:04.0: supports D1 D2
[    0.160823] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160847] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160859] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160895] pci 0001:00:06.0: supports D1 D2
[    0.161069] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161160] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161172] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161183] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161199] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161219] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161237] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161249] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161267] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161280] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161290] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161301] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161312] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161325] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161335] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161345] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161355] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161364] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161374] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161390] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161402] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161415] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161426] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161438] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161449] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161461] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161472] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161484] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161497] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161506] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161516] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188263] raid6: int32x1  gen()   300 MB/s
[    0.205417] raid6: int32x1  xor()   173 MB/s
[    0.222444] raid6: int32x2  gen()   433 MB/s
[    0.239492] raid6: int32x2  xor()   240 MB/s
[    0.256584] raid6: int32x4  gen()   476 MB/s
[    0.273663] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307891] raid6: int32x8  xor()   218 MB/s
[    0.307898] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307904] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307910] raid6: using intx1 recovery algorithm
[    0.308208] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308222] vgaarb: loaded
[    0.308228] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308632] libata version 3.00 loaded.
[    0.308866] usbcore: registered new interface driver usbfs
[    0.308909] usbcore: registered new interface driver hub
[    0.308963] usbcore: registered new device driver usb
[    0.309058] pps_core: LinuxPPS API ver. 1 registered
[    0.309066] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309093] PTP clock support registered
[    0.309238] EDAC MC: Ver: 3.0.0
[    0.309587] Advanced Linux Sound Architecture Driver Initialized.
[    0.329517] DMA-API: preallocated 65536 debug entries
[    0.329531] DMA-API: debugging enabled by kernel config
[    0.329577] clocksource: Switched to clocksource timebase
[    0.336184] NET: Registered protocol family 2
[    0.336770] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336864] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337204] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337315] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337380] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337725] NET: Registered protocol family 1
[    0.338039] RPC: Registered named UNIX socket transport module.
[    0.338048] RPC: Registered udp transport module.
[    0.338054] RPC: Registered tcp transport module.
[    0.338060] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338130] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338818] Could not remap bcsr
[    0.341973] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345022] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355171] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355707] fuse init (API version 7.23)
[    0.359871] async_tx: api initialized (async)
[    0.359971] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.359988] io scheduler noop registered
[    0.360130] io scheduler cfq registered (default)
[    0.362192] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362202] crc32: self tests passed, processed 225944 bytes in 892398 nsec
[    0.363176] crc32c: CRC_LE_BITS = 64
[    0.363184] crc32c: self tests passed, processed 225944 bytes in 446238 nsec
[    0.429578] crc32_combine: 8373 self tests passed
[    0.496173] crc32c_combine: 8373 self tests passed
[    0.496226] glob: 64 self-tests passed, 0 failed
[    0.534453] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535240] console [ttyS0] disabled
[    0.555385] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.837567] console [ttyS0] enabled
[    1.861715] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871524] console [ttyS0] disabled
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #2 PREEMPT Sat Dec 19 16:34:08 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000174] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004031] devtmpfs: initialized
[    0.006763] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007151] xor: measuring software checksum speed
[    0.016350]    8regs     :   856.000 MB/sec
[    0.026357]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046421]    32regs_prefetch:   996.000 MB/sec
[    0.046428] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048910] prandom: 100 self tests passed
[    0.049446] NET: Registered protocol family 16
[    0.052547] cpuidle: using governor ladder
[    0.055582] cpuidle: using governor menu
[    0.055980] 256k L2-cache enabled
[    0.056064] PCIE0: Port disabled via device-tree
[    0.056115] PCIE1: Checking link...
[    0.056121] PCIE1: Device detected, waiting for link...
[    0.056127] PCIE1: link is up !
[    0.158412] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158440]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158455]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158465]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158488] 4xx PCI DMA offset set to 0x00000000
[    0.158494] 4xx PCI DMA window base to 0x0000000000000000
[    0.158500] DMA window size 0x0000000080000000
[    0.158524] PCIE1: successfully set as root-complex
[    0.158589] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159240] PCI host bridge to bus 0000:80
[    0.159258] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159272] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159284] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159297] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159311] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159348] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159388] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159420] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159695] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159745] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159766] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159781] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159804] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159867] pci 0000:81:00.0: supports D1 D2
[    0.159877] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160027] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160076] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160159] pci 0000:81:00.1: supports D1 D2
[    0.160284] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160300] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160311] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160398] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160489] PCI host bridge to bus 0001:00
[    0.160503] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160516] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160528] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160538] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160549] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160600] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160612] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160625] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160637] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160650] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160662] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160676] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160702] pci 0001:00:04.0: supports D1 D2
[    0.160823] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160847] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160859] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160895] pci 0001:00:06.0: supports D1 D2
[    0.161069] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161160] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161172] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161183] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161199] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161219] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161237] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161249] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161267] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161280] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161290] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161301] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161312] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161325] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161335] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161345] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161355] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161364] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161374] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161390] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161402] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161415] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161426] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161438] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161449] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161461] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161472] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161484] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161497] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161506] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161516] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188263] raid6: int32x1  gen()   300 MB/s
[    0.205417] raid6: int32x1  xor()   173 MB/s
[    0.222444] raid6: int32x2  gen()   433 MB/s
[    0.239492] raid6: int32x2  xor()   240 MB/s
[    0.256584] raid6: int32x4  gen()   476 MB/s
[    0.273663] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307891] raid6: int32x8  xor()   218 MB/s
[    0.307898] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307904] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307910] raid6: using intx1 recovery algorithm
[    0.308208] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308222] vgaarb: loaded
[    0.308228] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308632] libata version 3.00 loaded.
[    0.308866] usbcore: registered new interface driver usbfs
[    0.308909] usbcore: registered new interface driver hub
[    0.308963] usbcore: registered new device driver usb
[    0.309058] pps_core: LinuxPPS API ver. 1 registered
[    0.309066] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309093] PTP clock support registered
[    0.309238] EDAC MC: Ver: 3.0.0
[    0.309587] Advanced Linux Sound Architecture Driver Initialized.
[    0.329517] DMA-API: preallocated 65536 debug entries
[    0.329531] DMA-API: debugging enabled by kernel config
[    0.329577] clocksource: Switched to clocksource timebase
[    0.336184] NET: Registered protocol family 2
[    0.336770] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336864] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337204] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337315] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337380] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337725] NET: Registered protocol family 1
[    0.338039] RPC: Registered named UNIX socket transport module.
[    0.338048] RPC: Registered udp transport module.
[    0.338054] RPC: Registered tcp transport module.
[    0.338060] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338130] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338818] Could not remap bcsr
[    0.341973] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345022] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355171] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355707] fuse init (API version 7.23)
[    0.359871] async_tx: api initialized (async)
[    0.359971] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.359988] io scheduler noop registered
[    0.360130] io scheduler cfq registered (default)
[    0.362192] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362202] crc32: self tests passed, processed 225944 bytes in 892398 nsec
[    0.363176] crc32c: CRC_LE_BITS = 64
[    0.363184] crc32c: self tests passed, processed 225944 bytes in 446238 nsec
[    0.429578] crc32_combine: 8373 self tests passed
[    0.496173] crc32c_combine: 8373 self tests passed
[    0.496226] glob: 64 self-tests passed, 0 failed
[    0.534453] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535240] console [ttyS0] disabled
[    0.555385] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.837567] console [ttyS0] enabled
[    1.861715] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871524] console [ttyS0] disabled
[    1.875191] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    3.182167] console [ttyS0] enabled
[    3.186289] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    3.195672] Generic non-volatile memory driver v1.1
[    3.200819] [drm] Initialized drm 1.1.0 20060810
[    3.205519] [drm] radeon kernel modesetting enabled.
[    3.211211] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.219206] [drm] register mmio base: 0xe90000000
[    3.223942] [drm] register mmio size: 262144
[    3.560041] ATOM BIOS: C44501
[    3.563271] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.572180] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.579846] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.584731] [drm] RAM width 128bits DDR
[    3.588760] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    3.595232] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    3.601763] [TTM] Initializing pool allocator
[    3.606217] [drm] radeon: 1024M of VRAM memory ready
[    3.611202] [drm] radeon: 2048M of GTT memory ready.
[    3.616235] [drm] Loading verde Microcode
[    3.620286] [drm] Internal thermal controller with fan control
[    3.626357] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.680010] [drm] radeon: dpm initialized
[    3.684241] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.693440] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.701605] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.718303] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.782794] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.790084] radeon 0000:81:00.0: WB enabled
[    3.794320] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.804414] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.814510] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.824605] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.834700] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.875282] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.885390] radeon 0000:81:00.0: VCE init error (-22).
[    3.890546] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.897171] [drm] Driver supports precise vblank timestamp query.
[    3.903275] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.909188] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.917453] radeon 0000:81:00.0: radeon: using MSI.
[    3.922399] [drm] radeon: irq initialized.
[    4.682405] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.691220] radeon 0000:81:00.0: disabling GPU acceleration
[    4.900183] [drm] Radeon Display Connectors
[    4.904433] [drm] Connector 0:
[    4.907527] [drm]   HDMI-A-1
[    4.910425] [drm]   HPD4
[    4.912972] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.920373] [drm]   Encoders:
[    4.923350] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.927630] [drm] Connector 1:
[    4.930694] [drm]   DVI-I-1
[    4.933496] [drm]   HPD2
[    4.936036] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.943436] [drm]   Encoders:
[    4.946405] [drm]     DFP2: INTERNAL_UNIPHY
[    4.950598] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.068808] [drm] fb mappable at 0x80678000
[    5.073003] [drm] vram apper at 0x80000000
[    5.077108] [drm] size 8294400
[    5.080173] [drm] fb depth is 24
[    5.083410] [drm]    pitch is 7680
[    5.361935] Console: switching to colour frame buffer device 240x67
[    5.440848] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    5.449642] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    5.466393] brd: module loaded
[    5.473932] loop: module loaded
[    5.477312] sata_sil 0001:00:04.0: version 2.4
[    5.481873] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    5.489961] scsi host0: sata_sil
[    5.493494] scsi host1: sata_sil
[    5.496886] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    5.504215] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    5.512167] PPC 4xx OCP EMAC driver, version 3.54
[    5.517433] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    5.523305] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    5.528736] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    5.535894] TAH /plb/opb/emac-tah@ef601350 initialized
[    5.541090] TAH /plb/opb/emac-tah@ef601450 initialized
[    5.546504] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    5.553649] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    5.560540] eth0: found Generic MII PHY (0x00)
[    5.565168] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    5.572254] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    5.579156] eth1: found Generic MII PHY (0x01)
[    5.583652] PPP generic driver version 2.4.2
[    5.588105] PPP BSD Compression module registered
[    5.592835] PPP Deflate Compression module registered
[    5.597896] NET: Registered protocol family 24
[    5.602528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.609222] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    5.613938] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    5.622273] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    5.633594] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    5.639977] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.646785] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.654014] usb usb1: Product: OF EHCI
[    5.657772] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    5.664221] usb usb1: SerialNumber: PPC-OF USB
[    5.669073] hub 1-0:1.0: USB hub found
[    5.672890] hub 1-0:1.0: 1 port detected
[    5.677120] ehci-pci: EHCI PCI platform driver
[    5.681673] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.687987] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.692650] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.700443] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.825602] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.865600] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.876644] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.895863] ata1.00: configured for UDMA/100
[    5.918847] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.932249] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.940694] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.951819] sd 0:0:0:0: [sda] Write Protect is off
[    5.961582] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.971659] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.980737] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    6.005987]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    6.049223] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.107000] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    6.119581] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.135678] hub 1-1:1.0: USB hub found
[    6.142736] hub 1-1:1.0: 7 ports detected
[    6.259607] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    6.288715] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    6.305695] ata2.00: configured for UDMA/100
[    6.318482] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    6.361763] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.376578] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.388184] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    6.399782] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.421593] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.435739] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.442586] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.449867] usb usb2: Product: OF OHCI
[    6.453648] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    6.460108] usb usb2: SerialNumber: PPC-OF USB
[    6.465065] hub 2-0:1.0: USB hub found
[    6.468882] hub 2-0:1.0: 1 port detected
[    6.473117] ohci-pci: OHCI PCI platform driver
[    6.477772] usbcore: registered new interface driver usblp
[    6.483420] usbcore: registered new interface driver usb-storage
[    6.489560] usbcore: registered new interface driver usbserial
[    6.495487] usbcore: registered new interface driver usbserial_generic
[    6.502068] usbserial: USB Serial support registered for generic
[    6.508336] mousedev: PS/2 mouse device common for all mice
[    6.514012] i2c /dev entries driver
[    6.520068] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.527235] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.533747] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.539939] md: linear personality registered for level -1
[    6.545545] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.552477] md: raid0 personality registered for level 0
[    6.557828] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.565183] md: raid1 personality registered for level 1
[    6.570531] md: raid10 personality registered for level 10
[    6.576047] usb 1-1.1: Product: USB 2.0 Hub
[    6.580761] hub 1-1.1:1.0: USB hub found
[    6.584783] md: raid6 personality registered for level 6
[    6.590180] md: raid5 personality registered for level 5
[    6.595525] md: raid4 personality registered for level 4
[    6.600976] hub 1-1.1:1.0: 4 ports detected
[    6.605473] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.614009] EDAC PPC4xx MC: v1.0.0
[    6.617463] EDAC PPC4xx MC: Reporting type: interrupt
[    6.623044] hidraw: raw HID events driver (C) Jiri Kosina
[    6.629415] usbcore: registered new interface driver usbhid
[    6.635035] usbhid: USB HID core driver
[    6.639225] usbcore: registered new interface driver snd-usb-audio
[    6.645646] usbcore: registered new interface driver snd-ua101
[    6.651635] usbcore: registered new interface driver snd-usb-usx2y
[    6.658033] ipip: IPv4 over IPv4 tunneling driver
[    6.663277] Initializing XFRM netlink socket
[    6.668300] NET: Registered protocol family 10
[    6.673748] sit: IPv6 over IPv4 tunneling driver
[    6.678887] NET: Registered protocol family 17
[    6.683381] NET: Registered protocol family 15
[    6.688055] Running MSI bitmap self-tests ...
[    6.694075] Key type encrypted registered
[    6.699727] rtc-m41t80 8-0068: setting system clock to 2015-12-19 16:49:57 UTC (1450543797)
[    6.708125] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.715205] ALSA device list:
[    6.718215]   No soundcards found.
[    6.722225] md: Waiting for all devices to be available before autodetect
[    6.729209] md: If you don't use raid, use raid=noautodetect
[    6.735853] md: Autodetecting RAID arrays.
[    6.740045] md: Scanned 0 and added 0 devices.
[    6.744565] md: autorun ...
[    6.747386] md: ... autorun DONE.
[    6.777439] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    6.811373] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    6.819188] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    6.832465] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.839388] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.847294] usb 1-1.2: Product: USB Keyboard
[    6.851608] usb 1-1.2: Manufacturer: CHICONY
[    6.863173] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.875789] devtmpfs: mounted
[    6.879684] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    6.929612] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.937098] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    7.035965] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    7.043326] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.050890] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    7.081371] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    7.107646] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    7.146878] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    7.203336] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    7.210755] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.218118] usb 1-1.6: Product: USB Receiver
[    7.222445] usb 1-1.6: Manufacturer: Logitech
[    7.230769] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    7.294883] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    7.312935] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    7.360321] random: nonblocking pool is initialized
[    7.376970] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    7.395243] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    7.480604] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    7.579440] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    7.586367] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.594077] usb 1-1.7: Product: Ultra Fast Media 
[    7.598834] usb 1-1.7: Manufacturer: Generic
[    7.603355] usb 1-1.7: SerialNumber: 000000225001
[    7.608849] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    7.616023] scsi host2: usb-storage 1-1.7:1.0
[    8.057560] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    8.159973] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    8.178457] systemd[1]: Detected architecture ppc.

Welcome to Ubuntu 16.04!

[    8.216476] systemd[1]: Set hostname to <Sam460ex>.
[    8.423929] systemd-fstab-generator[116]: Mount point  is not a valid path, ignoring.
[    8.621863] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    8.632161] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    8.639180] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.083549] systemd[110]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[    9.425800] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    9.437970] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    9.452766] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    9.466962] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    9.479007] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    9.492571] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[    9.511968] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    9.527779] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[    9.541773] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    9.554905] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    9.566757] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[    9.578740] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    9.588892] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    9.599922] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    9.613023] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    9.626081] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[    9.815266] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    9.871414] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    9.885948] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    9.899079] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    9.918813] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[    9.937572] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    9.952414] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    9.985539] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   10.012130] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   10.028225] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[   10.178136] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   10.190984] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[   10.213787] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   10.221652] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   10.232335] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   10.250143] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[   10.273192] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   10.311847] systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[   10.339362] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[   10.367686] systemd[1]: Started Apply Kernel Variables.
[  OK  ] Started Apply Kernel Variables.
[   10.384043] systemd[1]: Started Uncomplicated firewall.
[  OK  ] Started Uncomplicated firewall.
[   10.474048] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[   10.510764] systemd[1]: ureadahead.service: Unit entered failed state.
[   10.523386] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[   10.543734] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   10.575908] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[   10.588462] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[   10.602522] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[   10.932486] systemd[1]: Started Create Static Device Nodes in /dev.
[  OK  ] Started Create Static Device Nodes in /dev.
[   10.954729] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting File System Check on Root Device...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[   12.651977] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   12.662120] systemd-remount[154]: unhandled signal 11 at 0000000c nip 203819a4 lr 2038171c code 30001
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
         Starting udev Coldplug all Devices...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems (Pre).
         Starting Load/Save Random Seed...
[   12.859269] systemd-journald[131]: Received request to flush runtime journal from PID 1
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   14.256280] sata-dwc 4bffd1000.sata: ioremap done for SATA register address
[  OK  ] Found device /dev/ttyS0.
[   14.340628] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[   14.406660] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   14.509757] sata-dwc 4bffd1000.sata: DW_PARAMS: 0x10800804
[   14.541716] sata-dwc 4bffd1000.sata: DWC_PARAMS[0]: 0x49230b1b
[   14.573792] sata-dwc 4bffd1000.sata: DesignWare DMA Controller, 1 channels
[   14.611736] sata-dwc 4bffd1000.sata: sata_dwc_port_start: port_no=0
[   14.656654] dma dma0chan0: dwc_alloc_chan_resources
[   14.690676] dma dma0chan0: moving desc ffa0c000 to freelist
[   14.718664] dma dma0chan0: moving desc ffa0c060 to freelist
[   14.741662] dma dma0chan0: moving desc ffa0c0c0 to freelist
[   14.825654] dma dma0chan0: moving desc ffa0c120 to freelist
[   14.918679] dma dma0chan0: moving desc ffa0c180 to freelist
[   14.946872] dma dma0chan0: moving desc ffa0c1e0 to freelist
[   14.966640] dma dma0chan0: moving desc ffa0c240 to freelist
[   14.992640] dma dma0chan0: moving desc ffa0c2a0 to freelist
[   15.010430] dma dma0chan0: moving desc ffa0c300 to freelist
[   15.030462] dma dma0chan0: moving desc ffa0c360 to freelist
[   15.060659] dma dma0chan0: moving desc ffa0c3c0 to freelist
[   15.079642] dma dma0chan0: moving desc ffa0c420 to freelist
[  OK  ] Reached target Sound C[   15.100715] dma dma0chan0: moving desc ffa0c480 to freelist
ard.
[   15.125019] dma dma0chan0: moving desc ffa0c4e0 to freelist
[   15.168677] dma dma0chan0: moving desc ffa0c540 to freelist
[   15.197640] dma dma0chan0: moving desc ffa0c5a0 to freelist
[   15.222639] dma dma0chan0: moving desc ffa0c600 to freelist
[   15.248642] dma dma0chan0: moving desc ffa0c660 to freelist
[   15.272679] dma dma0chan0: moving desc ffa0c6c0 to freelist
[   15.295620] dma dma0chan0: moving desc ffa0c720 to freelist
[   15.322046] dma dma0chan0: moving desc ffa0c780 to freelist
[   15.349651] dma dma0chan0: moving desc ffa0c7e0 to freelist
[   15.369621] dma dma0chan0: moving desc ffa0c840 to freelist
[   15.383623] dma dma0chan0: moving desc ffa0c8a0 to freelist
[   15.396622] dma dma0chan0: moving desc ffa0c900 to freelist
[   15.409622] dma dma0chan0: moving desc ffa0c960 to freelist
[   15.420646] dma dma0chan0: moving desc ffa0c9c0 to freelist
[   15.432602] dma dma0chan0: moving desc ffa0ca20 to freelist
[   15.447642] dma dma0chan0: moving desc ffa0ca80 to freelist
[   15.464620] dma dma0chan0: moving desc ffa0cae0 to freelist
[   15.473633] dma dma0chan0: moving desc ffa0cb40 to freelist
[   15.487622] dma dma0chan0: moving desc ffa0cba0 to freelist
[   15.500602] dma dma0chan0: moving desc ffa0cc00 to freelist
[   15.513618] dma dma0chan0: moving desc ffa0cc60 to freelist
[   15.528624] dma dma0chan0: moving desc ffa0ccc0 to freelist
[   15.541606] dma dma0chan0: moving desc ffa0cd20 to freelist
[   15.550626] dma dma0chan0: moving desc ffa0cd80 to freelist
[   15.566826] dma dma0chan0: moving desc ffa0cde0 to freelist
[   15.580604] dma dma0chan0: moving desc ffa0ce40 to freelist
[   15.595619] dma dma0chan0: moving desc ffa0cea0 to freelist
[   15.608619] dma dma0chan0: moving desc ffa0cf00 to freelist
[   15.620606] dma dma0chan0: moving desc ffa0cf60 to freelist
[   15.633626] dma dma0chan0: moving desc ffa0d000 to freelist
[   15.651659] dma dma0chan0: moving desc ffa0d060 to freelist
[   15.672637] dma dma0chan0: moving desc ffa0d0c0 to freelist
[   15.691639] dma dma0chan0: moving desc ffa0d120 to freelist
[   15.708617] dma dma0chan0: moving desc ffa0d180 to freelist
[   15.727625] dma dma0chan0: moving desc ffa0d1e0 to freelist
[   15.749643] dma dma0chan0: moving desc ffa0d240 to freelist
[   15.775664] dma dma0chan0: moving desc ffa0d2a0 to freelist
[   15.801652] dma dma0chan0: moving desc ffa0d300 to freelist
[   15.827621] dma dma0chan0: moving desc ffa0d360 to freelist
[   15.861617] dma dma0chan0: moving desc ffa0d3c0 to freelist
[   15.904653] dma dma0chan0: moving desc ffa0d420 to freelist
[   15.958653] dma dma0chan0: moving desc ffa0d480 to freelist
[   16.000618] dma dma0chan0: moving desc ffa0d4e0 to freelist
[  OK  ] Created slice system-ifup.slice.
[   16.063712] dma dma0chan0: moving desc ffa0d540 to freelist
[  OK  ] Found device /sys[   16.100587] dma dma0chan0: moving desc ffa0d5a0 to freelist
/subsystem/net/devices/eth0.
[   16.161637] dma dma0chan0: moving desc ffa0d600 to freelist
[   16.195615] dma dma0chan0: moving desc ffa0d660 to freelist
[   16.257654] dma dma0chan0: moving desc ffa0d6c0 to freelist
[  OK  ] Found device WDC_WD5000AAKS-00V1A0 NTFS.
[   16.324669] dma dma0chan0: moving desc ffa0d720 to freelist
         Mounting /media/NTFS...
[   16.416635] dma dma0chan0: moving desc ffa0d780 to freelist
[   16.468657] dma dma0chan0: moving desc ffa0d7e0 to freelist
[   16.513999] dma dma0chan0: dwc_alloc_chan_resources: allocated 64 descriptors
[   16.563609] dmaengine: __dma_request_channel: success (dma0chan0)
[   16.607220] sata-dwc 4bffd1000.sata: sata_dwc_port_start: clearing TXCHEN, RXCHEN in DMAC
[   16.650660] sata-dwc 4bffd1000.sata: sata_dwc_port_start: setting burst size in DBTSR
[   16.712980] sata-dwc 4bffd1000.sata: sata_dwc_port_start: done
[   16.784673] scsi host3: sata-dwc
[   16.798339] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   16.843350] ata3: SATA max UDMA/133 irq 36
[   16.867876] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   16.883638] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   16.900942] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   16.918469] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   16.937631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   16.952354] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   17.170631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   17.185642] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.215643] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.242648] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.263659] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.286631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.309653] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.327628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   17.346655] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   17.365666] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.382692] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   17.403679] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.428654] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.448636] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.464739] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   17.483484] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   17.499684] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.516636] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   17.533626] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.550651] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   17.566651] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   17.593667] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   17.607855] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   17.616731] dma dma0chan0: dwc_prep_slave_sg
[   17.621010] dma dma0chan0: scanned 1 descriptors on freelist
[   17.626679] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc88, count: 1 addr: 0xfffffffff6a14400
[  OK  ] Mounted /media/NTFS.
[   17.731686] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   17.747265] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   17.755533] dma dma0chan0: dwc_prep_slave_sg
[   17.759812] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  OK  ] Reached target Local File Systems.
[   17.781148] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   17.788566] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   17.797182] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   17.803884] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting LSB: AppArmor initialization...
[   17.891660] ata3.00: ATA-8: WDC WD5000AAKS-00UU3A0, 01.03B01, max UDMA/133
    [   17.919655] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 1/32)
     Starting Clean up any mess left by 0dns-up...
         Starting Wait for all "auto" /etc/n... up for network-online.target...
[   17.956259] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   17.970531] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   17.978799] dma dma0chan0: dwc_prep_slave_sg
[   17.983078] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.045667] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   18.059854] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   18.068730] dma dma0chan0: dwc_prep_slave_sg
[   18.073009] dma dma0chan0: scanned 1 descriptors on freelist
[   18.078670] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
[   18.152668] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   18.168249] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   18.176516] dma dma0chan0: dwc_prep_slave_sg
[   18.180795] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.189462] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   18.196863] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   18.205474] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   18.212176] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   18.301681] ata3.00: configured for UDMA/133
[  OK  ] Started Tell Plymouth To Write Out R[   18.327923] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
untime Data.
[   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
[  OK  ] Started Create Volatile Files and[   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
 Directories.
[   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   18.511807] dma dma0chan0: dwc_prep_slave_sg
[   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
[   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
[   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
[   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
[  OK  ] Started Clean up any mess left by 0dns-up.
         Starting Nameserver information manager...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started LSB: AppArmor initialization.
[  OK  ] Started Nameserver information manager.
         Starting LSB: Raise network interfaces....
[  OK  ] Started ifup for eth0.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[   20.014334] eth0: link is up, 1000 FDX, pause enabled
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[  OK  ] Started LSB: start Samba SMB/CIFS daemon (smbd).
[  OK  ] Started Wait for all "auto" /etc/ne...be up for network-online.target.
\r\r[   ***] A start job is running for LSB: Rai...ork interfaces. (32s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (33s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (33s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (34s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (34s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (35s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (35s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (36s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (36s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (37s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (37s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (38s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (38s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (39s / no limit)[   48.748614] ata3: lost interrupt (Status 0x40)
[   48.753433] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   48.761350] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   48.769514] ata3.00: failed command: READ FPDMA QUEUED
[   48.774750] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   48.774750]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   48.789734] ata3.00: status: { DRDY }
[   48.793470] ata3: hard resetting link
[   48.797491] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   48.806193] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   48.814113] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   48.823658] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   48.832653] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   48.840538] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   49.050613] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   49.058497] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.073612] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.086611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.099611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.112611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.125611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.138611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.151611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.164611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.172509] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   49.181941] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   49.189940] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.199336] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
\r   49.209525] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
K[   **[   49.219766] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
   49.227765] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
0;31m*] A start jo[   49.237504] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
b [   49.245523] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
is running for LSB: Rai...[   49.255693] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
or[   49.263681] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
k interfaces. (39s / n[   49.273426] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
o [   49.281441] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
limit)[   49.288983] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.296898] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.306353] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   49.320532] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.329410] dma dma0chan0: dwc_prep_slave_sg
[   49.333688] dma dma0chan0: scanned 1 descriptors on freelist
[   49.339358] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc48, count: 1 addr: 0xfffffffff6a14400
[   49.352773] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.368344] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.376614] dma dma0chan0: dwc_prep_slave_sg
[   49.380893] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.389550] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   49.396953] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   49.405572] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   49.412274] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   49.426747] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.441018] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.449288] dma dma0chan0: dwc_prep_slave_sg
[   49.453566] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.465489] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   49.479672] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.488549] dma dma0chan0: dwc_prep_slave_sg
[   49.492821] dma dma0chan0: scanned 1 descriptors on freelist
[   49.498490] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
[   49.511734] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.527303] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.535572] dma dma0chan0: dwc_prep_slave_sg
[   49.539842] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.548496] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   49.548503] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   49.548510] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   49.548517] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   49.585795] ata3.00: configured for UDMA/133
[   49.590336] ata3.00: device reported invalid CHS sector 0
[   49.596039] ata3: EH complete
[   49.599474] ------------[ cut here ]------------
[   49.604103] WARNING: at drivers/ata/libata-core.c:5051
[   49.609239] Modules linked in: input_leds led_class sata_dwc_460ex
[   49.615495] CPU: 0 PID: 244 Comm: scsi_eh_3 Not tainted 4.4.0-rc5-Sam460ex #2
[   49.622636] task: edeb5700 ti: ed2ae000 task.ti: ed2ae000
[   49.628034] NIP: c043bb0c LR: c0440c84 CTR: c0442b00
[   49.632999] REGS: ed2afc70 TRAP: 0700   Not tainted  (4.4.0-rc5-Sam460ex)
[   49.639785] MSR: 00021000 <CE,ME>  CR: 22ffff48  XER: 00000000
[   49.645698] 
GPR00: c0440c84 ed2afd20 edeb5700 ed2340b8 ed235a48 00000000 00000000 00000000 
GPR08: 00000006 00000004 00000001 ed2afd50 28ffff22 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ed1bd01c 0000001e 00000000 
GPR24: ede1fce0 ed110000 edd12000 c0442b00 ed234000 ed2357c8 ed234000 ed2340b8 
[   49.675917] NIP [c043bb0c] ata_qc_issue+0x4c/0x3a0
[   49.680710] LR [c0440c84] ata_scsi_translate+0xf4/0x150
[   49.685932] Call Trace:
[   49.688386] [ed2afd20] [c0442c98] ata_scsi_rw_xlat+0x198/0x1e4 (unreliable)
[   49.695361] [ed2afd50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   49.701300] [ed2afd70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   49.707229] [ed2afd90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   49.713080] [ed2afda0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   49.718846] [ed2afdf0] [c024cd34] __blk_run_queue+0x44/0x58
[   49.724442] [ed2afe00] [c024cf30] blk_run_queue+0x28/0x44
[   49.729849] [ed2afe10] [c0425c78] scsi_run_queue+0x240/0x268
[   49.735518] [ed2afe50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   49.741534] [ed2afe60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   49.747566] [ed2afed0] [c0039798] kthread+0xc8/0xcc
[   49.752465] [ed2aff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   49.758648] Instruction dump:
[   49.761637] 815e0004 83a90000 89230014 814a0058 2f8a0000 419e0038 815d0120 2b8a001f 
[   49.769516] 419d002c 3d40c0a3 894a575b 694a0001 <0f0a0000> 2f8a0000 41be0014 3d40c0a3 
[   49.777574] ---[ end trace 049e7ff71a174e96 ]---
[   49.782219] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.791094] dma dma0chan0: dwc_prep_slave_sg
[   49.795373] dma dma0chan0: scanned 1 descriptors on freelist
[   49.801042] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
[   49.810616] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   49.820647] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
\r[  *** ] A start job [   49.836053] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=0
[   49.843439] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   49.849283] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   49.860764] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   49.869557] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   49.877918] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   49.888013] dma dma0chan0: dwc_tx_submit: queued 3
is running for LSB: Rai...ork interfaces. (40s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (41s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (41s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (42s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (42s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (43s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (43s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (44s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (44s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (45s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (45s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (46s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (46s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (47s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (47s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (48s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (48s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (49s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (49s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (50s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (50s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (51s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (51s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (52s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (52s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (53s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (53s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (54s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (54s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (55s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (55s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (56s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (56s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (57s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (57s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (58s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (58s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (59s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (59s / no limit)\r[     *] A start job is running for LSB: Rai...rk interfaces. (1min / no limit)\r[    **] A start job is running for LSB: Rai...rk interfaces. (1min / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (1min 1s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (1min 1s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 2s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 2s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (1min 3s / no limit)\r[*     ] A start job is running for LSB: Rai...interfaces. (1min 3s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (1min 4s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 4s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 5s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (1min 5s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (1min 6s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (1min 6s / no limit)\r[     *] A start job is running for LSB: Rai...interfaces. (1min 7s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (1min 7s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (1min 8s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (1min 8s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 9s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 9s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 10s / no limit)[   79.724614] ata3: lost interrupt (Status 0x40)
[   79.729449] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   79.737354] ata3.00: NCQ disabled due to excessive errors
[   79.743890] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   79.751011] ata3.00: failed command: READ FPDMA QUEUED
[   79.756521] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   79.756521]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   79.771340] ata3.00: status: { DRDY }
[   79.775222] ata3: hard resetting link
[   79.779099] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   79.787805] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   79.795707] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   79.805190] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   79.814652] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   79.822537] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 10s / no limit)[   80.032617] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   80.040513] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.055611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.068610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.081611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.094611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.107611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.120611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.133611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.146611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.154496] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   80.163915] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   80.171910] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.181312] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   80.190795] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.200212] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.208136] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.217535] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   80.225454] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   80.234997] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.242921] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   80.252328] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.260244] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   80.267454] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.275383] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.284811] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   80.298988] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   80.307867] dma dma0chan0: dwc_prep_slave_sg
[   80.312146] dma dma0chan0: scanned 1 descriptors on freelist
[   80.317815] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc48, count: 1 addr: 0xfffffffff6a14400
[   80.331561] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   80.347131] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   80.355400] dma dma0chan0: dwc_prep_slave_sg
[   80.359671] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   80.368334] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   80.375740] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   80.384359] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   80.391061] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   80.405408] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   80.419683] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   80.427953] dma dma0chan0: dwc_prep_slave_sg
[   80.432231] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   80.444007] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   80.458191] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   80.467068] dma dma0chan0: dwc_prep_slave_sg
[   80.471347] dma dma0chan0: scanned 1 descriptors on freelist
[   80.477016] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
\r[*   80.491145] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   80.506785] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   80.515054] dma dma0chan0: dwc_prep_slave_sg
[   80.519324] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
31[   80.527974] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   80.535455] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   80.544072] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   80.550775] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
m*    ] A start job is running for LSB: Rai...nterfaces. (1min 11s / no limit)[   80.568189] ata3.00: configured for UDMA/133
[   80.572584] ata3.00: device reported invalid CHS sector 0
[   80.578470] ata3: EH complete
[   80.581774] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   80.590655] dma dma0chan0: dwc_prep_slave_sg
[   80.594932] dma dma0chan0: scanned 1 descriptors on freelist
[   80.600602] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
[   80.610398] ------------[ cut here ]------------
[   80.615015] WARNING: at drivers/ata/libata-sff.c:1493
[   80.620067] Modules linked in: input_leds led_class sata_dwc_460ex
[   80.626322] CPU: 0 PID: 244 Comm: scsi_eh_3 Tainted: G        W       4.4.0-rc5-Sam460ex #2
[   80.634678] task: edeb5700 ti: ed2ae000 task.ti: ed2ae000
[   80.640076] NIP: c044d734 LR: c044d5a4 CTR: c044a354
[   80.645042] REGS: ed2afbd0 TRAP: 0700   Tainted: G        W        (4.4.0-rc5-Sam460ex)
[   80.653044] MSR: 00021000 <CE,ME>  CR: 28ff8f44  XER: 20000000
[   80.658964] 
GPR00: c044d5a4 ed2afc80 edeb5700 00000050 f6a14018 00000000 c02e1328 00000000 
GPR08: 00000000 00000001 46b6315b ed2afc80 c044d560 00000000 00000005 00002710 
GPR16: c04263e0 c0944a03 c08fb4b8 c094492f c09020db ed1bd01c c09fd770 00000000 
GPR24: ed19eb00 edf76990 ffa0d510 ed234000 00000000 ed2357c8 ed234000 ed2340b8 
[   80.689205] NIP [c044d734] ata_sff_qc_issue+0x1d4/0x1fc
[   80.694436] LR [c044d5a4] ata_sff_qc_issue+0x44/0x1fc
[   80.699485] Call Trace:
[   80.701938] [ed2afc80] [c044d5a4] ata_sff_qc_issue+0x44/0x1fc (unreliable)
[   80.708860] [ed2afca0] [f6a0b338] sata_dwc_qc_issue+0x35c/0x370 [sata_dwc_460ex]
[   80.716277] [ed2afd20] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   80.721771] [ed2afd50] [c0440c84] ata_scsi_translate+0xf4/0x150
[   80.727708] [ed2afd70] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   80.733638] [ed2afd90] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   80.739489] [ed2afda0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   80.745247] [ed2afdf0] [c024cd34] __blk_run_queue+0x44/0x58
[   80.750843] [ed2afe00] [c024cf30] blk_run_queue+0x28/0x44
[   80.756259] [ed2afe10] [c0425c78] scsi_run_queue+0x240/0x268
[   80.761927] [ed2afe50] [c0427b04] scsi_run_host_queues+0x30/0x44
[   80.767951] [ed2afe60] [c0424d44] scsi_error_handler+0x3e0/0x44c
[   80.773975] [ed2afed0] [c0039798] kthread+0xc8/0xcc
[   80.778874] [ed2aff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   80.785066] Instruction dump:
[   80.788044] 7d2903a6 4e800421 39200001 913e2720 813f0004 8129000c 71280004 4082ff80 
[   80.795926] 4bffff88 3d20c0a3 89295769 69290001 <0f090000> 2f890000 38600040 41be0014 
[   80.803974] ---[ end trace 049e7ff71a174e97 ]---
\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 11s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 12s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 12s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 13s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 13s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 14s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 14s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 15s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 15s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 16s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 16s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 17s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 17s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 18s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 18s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 19s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 19s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 20s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 20s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 21s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 21s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 22s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 22s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 23s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 23s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 24s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 24s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 25s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 25s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 26s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 26s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 27s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 27s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 28s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 28s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 29s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 29s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 30s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 30s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 31s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 31s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 32s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 32s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 33s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 33s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 34s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 34s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 35s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 35s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 36s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 36s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 37s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 37s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 38s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 38s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 39s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 39s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 40s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 40s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 41s / no limit)[  110.764612] ata3: lost interrupt (Status 0x50)
[  110.769944] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  110.777864] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[  110.787370] ata3: limiting SATA link speed to 1.5 Gbps
[  110.792611] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  110.800059] ata3.00: failed command: READ DMA
[  110.804661] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  110.804661]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  110.819412] ata3.00: status: { DRDY }
[  110.823538] ata3: hard resetting link
[  110.827499] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  110.836434] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[  110.844431] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000304
[  110.854036] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000304
[  110.861982] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000314
[  110.871651] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000314
[  110.879557] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  110.889140] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  110.898661] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  110.906563] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 41s / no limit)[  111.116615] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  111.124502] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.139610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.152610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.165611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.178610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.191610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.204610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.217610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.230610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.238491] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  111.247906] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  111.255905] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.265307] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  111.274790] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.284242] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.292166] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.301675] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  111.310424] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  111.318432] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.327865] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  111.335771] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.345213] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  111.351490] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.360358] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  111.368290] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  111.382461] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  111.391341] dma dma0chan0: dwc_prep_slave_sg
[  111.395621] dma dma0chan0: scanned 1 descriptors on freelist
[  111.401290] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc48, count: 1 addr: 0xfffffffff6a14400
[  111.414741] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  111.430311] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  111.438580] dma dma0chan0: dwc_prep_slave_sg
[  111.442859] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  111.451515] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  111.458920] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  111.467538] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  111.474240] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 42s [  111.489998] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  111.504323] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  111.512591] dma dma0chan0: dwc_prep_slave_sg
[  111.516870] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
/ no limit)[  111.531859] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  111.546040] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  111.554918] dma dma0chan0: dwc_prep_slave_sg
[  111.559197] dma dma0chan0: scanned 1 descriptors on freelist
[  111.564866] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
[  111.578422] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  111.593992] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  111.602261] dma dma0chan0: dwc_prep_slave_sg
[  111.606531] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  111.615186] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  111.622592] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  111.631209] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  111.637912] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  111.645962] ata3.00: configured for UDMA/133
[  111.650307] ata3.00: device reported invalid CHS sector 0
[  111.655800] ata3: EH complete
[  111.658864] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  111.667746] dma dma0chan0: dwc_prep_slave_sg
[  111.672019] dma dma0chan0: scanned 1 descriptors on freelist
[  111.677687] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 42s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 43s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 43s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 44s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 44s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 45s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 45s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 46s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 46s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 47s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 47s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 48s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 48s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 49s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 49s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 50s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 50s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 51s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 51s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 52s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 52s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 53s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 53s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 54s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 54s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 55s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 55s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 56s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 56s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 57s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 57s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 58s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 58s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 59s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 59s / no limit)\r[**    ] A start job is running for LSB: Rai...rk interfaces. (2min / no limit)\r[***   ] A start job is running for LSB: Rai...rk interfaces. (2min / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (2min 1s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (2min 1s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (2min 2s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (2min 2s / no limit)\r[     *] A start job is running for LSB: Rai...interfaces. (2min 3s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (2min 3s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (2min 4s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (2min 4s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (2min 5s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (2min 5s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (2min 6s / no limit)\r[*     ] A start job is running for LSB: Rai...interfaces. (2min 6s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (2min 7s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (2min 7s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (2min 8s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (2min 8s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (2min 9s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (2min 9s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (2min 10s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (2min 10s / no limit)\r[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Started Trigger resolvconf update for networkd DNS.
         Starting Restore Sound Card State...
         Starting Console System Startup Logging...
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
         Starting Network Manager...
         Starting Accounts Service...
         Starting LSB: start and stop timidity...
[  OK  ] Started Cgroup management daemon.
         Starting LSB: daemon to balance interrupts for SMP systems...
         Starting Permit User Sessions...
[  OK  ] Started D-Bus System Message Bus.
[  140.747865] cgroup: new mount options do not match the existing superblock, will be ignored
[  141.805657] ata3: lost interrupt (Status 0x50)
[  141.813652] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  141.830251] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  141.839672] ata3.00: limiting speed to UDMA/100:PIO4
[  141.844709] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  141.853146] ata3.00: failed command: READ DMA
[  141.857860] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  141.857860]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  141.875904] ata3.00: status: { DRDY }
[  141.883673] ata3: hard resetting link
[  141.888666] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  141.899126] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  141.908922] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  141.918878] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  141.928662] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  141.937064] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  142.149611] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  142.158076] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.176619] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.190617] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.204616] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.222224] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.237615] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.254618] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.268616] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.279912] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  142.287843] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  142.297995] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.306166] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  142.323171] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.331561] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.341824] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.349761] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  142.359940] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  142.368257] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.379992] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  142.387910] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.400889] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  142.407995] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.417915] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  142.425847] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  142.440022] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  142.448902] dma dma0chan0: dwc_prep_slave_sg
[  142.453182] dma dma0chan0: scanned 1 descriptors on freelist
[  142.458852] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc48, count: 1 addr: 0xfffffffff6a14400
[  142.472749] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  142.488324] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  142.496593] dma dma0chan0: dwc_prep_slave_sg
[  142.500871] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  142.509532] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  142.516932] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  142.525550] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  142.532253] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  142.549424] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  142.563698] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  142.571967] dma dma0chan0: dwc_prep_slave_sg
[  142.576244] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  142.588920] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  142.603107] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  142.611984] dma dma0chan0: dwc_prep_slave_sg
[  142.616263] dma dma0chan0: scanned 1 descriptors on freelist
[  142.621932] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
[  142.636702] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  142.652273] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  142.660543] dma dma0chan0: dwc_prep_slave_sg
[  142.664821] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  142.673473] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  142.680873] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  142.689492] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  142.696202] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  142.711535] ata3.00: configured for UDMA/100
[  142.715946] ata3.00: device reported invalid CHS sector 0
[  142.722269] ata3: EH complete
[  142.725594] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  142.734477] dma dma0chan0: dwc_prep_slave_sg
[  142.738755] dma dma0chan0: scanned 1 descriptors on freelist
[  142.744424] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
[  OK  ] Started Network Manager.
         Starting Modem Manager...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
[  OK  ] Started Run anacron jobs.
         Starting Restore /etc/resolv.conf i...e the ppp link was shut down....
         Starting LSB: automatic crash report generation...
[  OK  ] Started Regular background program processing daemon.
         Starting System Logging Service...
         Starting Initialize hardware monitoring sensors...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Login Service...
         Starting LSB: handle special hotkeys of Apple computers...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Started crash report submission daemon.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: Tool to automatically...ubmit kernel crash signatures...
         Starting LSB: Start xrdp and sesman daemons...
         Starting LSB: Start NTP daemon...
         Starting LSB: start Samba daemons for the AD DC...
[  OK  ] Started Restore Sound Card State.
[  OK  ] Started Console System Startup Logging.
[  OK  ] Started LSB: daemon to balance interrupts for SMP systems.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started Restore /etc/resolv.conf if...ore the ppp link was shut down..
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started LSB: handle special hotkeys of Apple computers.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started LSB: start and stop timidity.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: Tool to automatically ... submit kernel crash signatures.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started Make remote CUPS printers available locally.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting LSB: set CPUFreq kernel parameters...
         Starting Hold until boot process finishes up...
         Starting Light Display Manager...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started LSB: Start xrdp and sesman daemons.
[  OK  ] Started Serial Getty on ttyS0.
[  147.416159] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
[  147.732949] IPv6: ADDRCONF(NETDEV_UP): tunl0: link is not ready
         Starting Manage, Install and Generate Color Profiles...
[  147.900178] IPv6: ADDRCONF(NETDEV_UP): sit0: link is not ready
[  OK  ] Started Light Display Manager.
         Starting WPA supplicant...
[  OK  ] Started Modem Manager.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Manage, Install and Generate Color Profiles.

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  173.804485] ata3: lost interrupt (Status 0x50)
[  173.809894] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  173.817783] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  173.827758] ata3.00: limiting speed to UDMA/33:PIO4
[  173.832710] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  173.840637] ata3.00: failed command: READ DMA
[  173.845059] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  173.845059]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  173.860726] ata3.00: status: { DRDY }
[  173.864450] ata3: hard resetting link
[  173.869032] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  173.876906] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  173.886875] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  173.894877] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  173.906466] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  173.915849] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  174.124470] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  174.137476] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.160472] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.182467] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.204471] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.226467] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.248470] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.264467] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  174.280465] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  174.298481] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.315480] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  174.336590] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.354088] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.361966] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.372055] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  174.379969] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  174.389945] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.397848] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  174.407771] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.415664] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  174.423370] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.431284] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  174.441335] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  174.455523] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  174.464399] dma dma0chan0: dwc_prep_slave_sg
[  174.468677] dma dma0chan0: scanned 1 descriptors on freelist
[  174.474347] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afc48, count: 1 addr: 0xfffffffff6a14400
[  174.488560] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  174.504134] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  174.512401] dma dma0chan0: dwc_prep_slave_sg
[  174.516679] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  174.525333] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  174.532733] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  174.541350] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  174.548052] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  174.605356] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  174.619628] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  174.627897] dma dma0chan0: dwc_prep_slave_sg
[  174.632174] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  174.680483] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  174.694673] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  174.703548] dma dma0chan0: dwc_prep_slave_sg
[  174.707827] dma dma0chan0: scanned 1 descriptors on freelist
[  174.713496] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2afbb8, count: 1 addr: 0xfffffffff6a14400
[  174.768420] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  174.783995] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  174.792262] dma dma0chan0: dwc_prep_slave_sg
[  174.796541] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  174.805200] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  174.812602] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  174.821220] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  174.827922] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  174.839568] ata3.00: configured for UDMA/33
[  174.846668] ata3.00: device reported invalid CHS sector 0
[  174.852338] ata3: EH complete
[  174.855779] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  174.864660] dma dma0chan0: dwc_prep_slave_sg
[  174.868938] dma dma0chan0: scanned 1 descriptors on freelist
[  174.874608] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-19 20:55                                                                         ` Julian Margetson
@ 2015-12-20 17:11                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 17:11 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> Total pages: 522752
>>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>>> Please add ignore_log_level.
>>>>>
>>>> Had to truncate the kernel command line to add it.
>>> I guess Måns meant 'ignore_loglevel'
>> Obviously.  I can never remember where the underscores go.
>
> [   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
> [   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
> [   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
> [   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
> [   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
> [   18.511807] dma dma0chan0: dwc_prep_slave_sg
> [   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
> [   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
> [   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
> [   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
> [   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
> [   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
> [   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
> [   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
> [   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
> [   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
> [   48.748614] ata3: lost interrupt (Status 0x40)

Now we're getting somewhere.  The dma transfer is set up and initiated,
but then nothing happens.  Comparing the old sata_dwc driver, from
before the switch to dmaengine, with the dw_dma driver, I noticed an
obvious problem: the descriptors are filled in using the wrong byte
order.  This patch might fix that.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-dmaengine-dw-fix-byte-order-of-hw-descriptor-fields.patch --]
[-- Type: text/x-diff, Size: 8763 bytes --]

>From 04b444b301c8b2db732dbf259dddb3dc87d622c8 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sun, 20 Dec 2015 16:54:21 +0000
Subject: [PATCH] dmaengine: dw: fix byte order of hw descriptor fields

If the DMA controller uses a different byte order than the host CPU,
the hardware linked list descriptor fields need to be byte-swapped.

This patch makes the driver write these fields using the same byte
order it uses for mmio accesses to the DMA engine.  I do not know
if this is guaranteed to always be correct.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/dma/dw/core.c | 84 +++++++++++++++++++++++++++------------------------
 drivers/dma/dw/regs.h | 26 +++++++++++-----
 2 files changed, 63 insertions(+), 47 deletions(-)

diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
index 7067b6d..b954904 100644
--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -209,12 +209,12 @@ static inline void dwc_do_single_block(struct dw_dma_chan *dwc,
 	 * Software emulation of LLP mode relies on interrupts to continue
 	 * multi block transfer.
 	 */
-	ctllo = desc->lli.ctllo | DWC_CTLL_INT_EN;
+	ctllo = dw_lli_read(desc->lli.ctllo) | DWC_CTLL_INT_EN;
 
-	channel_writel(dwc, SAR, desc->lli.sar);
-	channel_writel(dwc, DAR, desc->lli.dar);
+	channel_writel(dwc, SAR, dw_lli_read(desc->lli.sar));
+	channel_writel(dwc, DAR, dw_lli_read(desc->lli.dar));
 	channel_writel(dwc, CTL_LO, ctllo);
-	channel_writel(dwc, CTL_HI, desc->lli.ctlhi);
+	channel_writel(dwc, CTL_HI, dw_lli_read(desc->lli.ctlhi));
 	channel_set_bit(dw, CH_EN, dwc->mask);
 
 	/* Move pointer to next descriptor */
@@ -432,7 +432,7 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
 		}
 
 		/* Check first descriptors llp */
-		if (desc->lli.llp == llp) {
+		if (dw_lli_read(desc->lli.llp) == llp) {
 			/* This one is currently in progress */
 			dwc->residue -= dwc_get_sent(dwc);
 			spin_unlock_irqrestore(&dwc->lock, flags);
@@ -441,7 +441,7 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
 
 		dwc->residue -= desc->len;
 		list_for_each_entry(child, &desc->tx_list, desc_node) {
-			if (child->lli.llp == llp) {
+			if (dw_lli_read(child->lli.llp) == llp) {
 				/* Currently in progress */
 				dwc->residue -= dwc_get_sent(dwc);
 				spin_unlock_irqrestore(&dwc->lock, flags);
@@ -730,16 +730,16 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
 		if (!desc)
 			goto err_desc_get;
 
-		desc->lli.sar = src + offset;
-		desc->lli.dar = dest + offset;
-		desc->lli.ctllo = ctllo;
-		desc->lli.ctlhi = xfer_count;
+		dw_lli_write(desc->lli.sar, src + offset);
+		dw_lli_write(desc->lli.dar, dest + offset);
+		dw_lli_write(desc->lli.ctllo, ctllo);
+		dw_lli_write(desc->lli.ctlhi, xfer_count);
 		desc->len = xfer_count << src_width;
 
 		if (!first) {
 			first = desc;
 		} else {
-			prev->lli.llp = desc->txd.phys;
+			dw_lli_write(prev->lli.llp, desc->txd.phys);
 			list_add_tail(&desc->desc_node,
 					&first->tx_list);
 		}
@@ -748,7 +748,7 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
 
 	if (flags & DMA_PREP_INTERRUPT)
 		/* Trigger interrupt after last block */
-		prev->lli.ctllo |= DWC_CTLL_INT_EN;
+		dw_lli_or(prev->lli.ctllo, DWC_CTLL_INT_EN);
 
 	prev->lli.llp = 0;
 	first->txd.flags = flags;
@@ -818,9 +818,10 @@ slave_sg_todev_fill_desc:
 			if (!desc)
 				goto err_desc_get;
 
-			desc->lli.sar = mem;
-			desc->lli.dar = reg;
-			desc->lli.ctllo = ctllo | DWC_CTLL_SRC_WIDTH(mem_width);
+			dw_lli_write(desc->lli.sar, mem);
+			dw_lli_write(desc->lli.dar, reg);
+			dw_lli_write(desc->lli.ctllo,
+					ctllo | DWC_CTLL_SRC_WIDTH(mem_width));
 			if ((len >> mem_width) > dwc->block_size) {
 				dlen = dwc->block_size << mem_width;
 				mem += dlen;
@@ -830,13 +831,13 @@ slave_sg_todev_fill_desc:
 				len = 0;
 			}
 
-			desc->lli.ctlhi = dlen >> mem_width;
+			dw_lli_write(desc->lli.ctlhi, dlen >> mem_width);
 			desc->len = dlen;
 
 			if (!first) {
 				first = desc;
 			} else {
-				prev->lli.llp = desc->txd.phys;
+				dw_lli_write(prev->lli.llp, desc->txd.phys);
 				list_add_tail(&desc->desc_node,
 						&first->tx_list);
 			}
@@ -875,9 +876,10 @@ slave_sg_fromdev_fill_desc:
 			if (!desc)
 				goto err_desc_get;
 
-			desc->lli.sar = reg;
-			desc->lli.dar = mem;
-			desc->lli.ctllo = ctllo | DWC_CTLL_DST_WIDTH(mem_width);
+			dw_lli_write(desc->lli.sar, reg);
+			dw_lli_write(desc->lli.dar, mem);
+			dw_lli_write(desc->lli.ctllo,
+				     ctllo | DWC_CTLL_DST_WIDTH(mem_width));
 			if ((len >> reg_width) > dwc->block_size) {
 				dlen = dwc->block_size << reg_width;
 				mem += dlen;
@@ -886,13 +888,13 @@ slave_sg_fromdev_fill_desc:
 				dlen = len;
 				len = 0;
 			}
-			desc->lli.ctlhi = dlen >> reg_width;
+			dw_lli_write(desc->lli.ctlhi, dlen >> reg_width);
 			desc->len = dlen;
 
 			if (!first) {
 				first = desc;
 			} else {
-				prev->lli.llp = desc->txd.phys;
+				dw_lli_write(prev->lli.llp, desc->txd.phys);
 				list_add_tail(&desc->desc_node,
 						&first->tx_list);
 			}
@@ -909,7 +911,7 @@ slave_sg_fromdev_fill_desc:
 
 	if (flags & DMA_PREP_INTERRUPT)
 		/* Trigger interrupt after last block */
-		prev->lli.ctllo |= DWC_CTLL_INT_EN;
+		dw_lli_or(prev->lli.ctllo, DWC_CTLL_INT_EN);
 
 	prev->lli.llp = 0;
 	first->total_len = total_len;
@@ -1393,50 +1395,52 @@ struct dw_cyclic_desc *dw_dma_cyclic_prep(struct dma_chan *chan,
 
 		switch (direction) {
 		case DMA_MEM_TO_DEV:
-			desc->lli.dar = sconfig->dst_addr;
-			desc->lli.sar = buf_addr + (period_len * i);
-			desc->lli.ctllo = (DWC_DEFAULT_CTLLO(chan)
+			dw_lli_write(desc->lli.dar, sconfig->dst_addr);
+			dw_lli_write(desc->lli.sar,
+				     buf_addr + (period_len * i));
+			dw_lli_write(desc->lli.ctllo, (DWC_DEFAULT_CTLLO(chan)
 					| DWC_CTLL_DST_WIDTH(reg_width)
 					| DWC_CTLL_SRC_WIDTH(reg_width)
 					| DWC_CTLL_DST_FIX
 					| DWC_CTLL_SRC_INC
-					| DWC_CTLL_INT_EN);
+					| DWC_CTLL_INT_EN));
 
-			desc->lli.ctllo |= sconfig->device_fc ?
-				DWC_CTLL_FC(DW_DMA_FC_P_M2P) :
-				DWC_CTLL_FC(DW_DMA_FC_D_M2P);
+			dw_lli_or(desc->lli.ctllo, sconfig->device_fc ?
+					DWC_CTLL_FC(DW_DMA_FC_P_M2P) :
+					DWC_CTLL_FC(DW_DMA_FC_D_M2P));
 
 			break;
 		case DMA_DEV_TO_MEM:
-			desc->lli.dar = buf_addr + (period_len * i);
-			desc->lli.sar = sconfig->src_addr;
-			desc->lli.ctllo = (DWC_DEFAULT_CTLLO(chan)
+			dw_lli_write(desc->lli.dar,
+					buf_addr + (period_len * i));
+			dw_lli_write(desc->lli.sar, sconfig->src_addr);
+			dw_lli_write(desc->lli.ctllo, (DWC_DEFAULT_CTLLO(chan)
 					| DWC_CTLL_SRC_WIDTH(reg_width)
 					| DWC_CTLL_DST_WIDTH(reg_width)
 					| DWC_CTLL_DST_INC
 					| DWC_CTLL_SRC_FIX
-					| DWC_CTLL_INT_EN);
+					| DWC_CTLL_INT_EN));
 
-			desc->lli.ctllo |= sconfig->device_fc ?
-				DWC_CTLL_FC(DW_DMA_FC_P_P2M) :
-				DWC_CTLL_FC(DW_DMA_FC_D_P2M);
+			dw_lli_or(desc->lli.ctllo, sconfig->device_fc ?
+					DWC_CTLL_FC(DW_DMA_FC_P_P2M) :
+					DWC_CTLL_FC(DW_DMA_FC_D_P2M));
 
 			break;
 		default:
 			break;
 		}
 
-		desc->lli.ctlhi = (period_len >> reg_width);
+		dw_lli_write(desc->lli.ctlhi, (period_len >> reg_width));
 		cdesc->desc[i] = desc;
 
 		if (last)
-			last->lli.llp = desc->txd.phys;
+			dw_lli_write(last->lli.llp, desc->txd.phys);
 
 		last = desc;
 	}
 
 	/* Let's make a cyclic list */
-	last->lli.llp = cdesc->desc[0]->txd.phys;
+	dw_lli_write(last->lli.llp, cdesc->desc[0]->txd.phys);
 
 	dev_dbg(chan2dev(&dwc->chan),
 			"cyclic prepared buf %pad len %zu period %zu periods %d\n",
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h
index 241ff2b..84f05de 100644
--- a/drivers/dma/dw/regs.h
+++ b/drivers/dma/dw/regs.h
@@ -308,20 +308,32 @@ static inline struct dw_dma *to_dw_dma(struct dma_device *ddev)
 	return container_of(ddev, struct dw_dma, dma);
 }
 
+#ifdef CONFIG_DW_DMAC_BIG_ENDIAN_IO
+typedef __be32 dw_u32;
+#define dw_lli_read(s)		be32_to_cpu(s)
+#define dw_lli_write(d, v)	((d) = cpu_to_be32(v))
+#else
+typedef __le32 dw_u32;
+#define dw_lli_read(s)		le32_to_cpu(s)
+#define dw_lli_write(d, v)	((d) = cpu_to_le32(v))
+#endif
+
+#define dw_lli_or(d, v)		dw_lli_write(d, dw_lli_read(d) | (v))
+
 /* LLI == Linked List Item; a.k.a. DMA block descriptor */
 struct dw_lli {
 	/* values that are not changed by hardware */
-	u32		sar;
-	u32		dar;
-	u32		llp;		/* chain to next lli */
-	u32		ctllo;
+	dw_u32		sar;
+	dw_u32		dar;
+	dw_u32		llp;		/* chain to next lli */
+	dw_u32		ctllo;
 	/* values that may get written back: */
-	u32		ctlhi;
+	dw_u32		ctlhi;
 	/* sstat and dstat can snapshot peripheral register state.
 	 * silicon config may discard either or both...
 	 */
-	u32		sstat;
-	u32		dstat;
+	dw_u32		sstat;
+	dw_u32		dstat;
 };
 
 struct dw_desc {
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-20 17:11                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 17:11 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> Total pages: 522752
>>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>>> Please add ignore_log_level.
>>>>>
>>>> Had to truncate the kernel command line to add it.
>>> I guess Måns meant 'ignore_loglevel'
>> Obviously.  I can never remember where the underscores go.
>
> [   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
> [   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
> [   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
> [   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
> [   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
> [   18.511807] dma dma0chan0: dwc_prep_slave_sg
> [   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
> [   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
> [   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
> [   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
> [   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
> [   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
> [   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
> [   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
> [   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
> [   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
> [   48.748614] ata3: lost interrupt (Status 0x40)

Now we're getting somewhere.  The dma transfer is set up and initiated,
but then nothing happens.  Comparing the old sata_dwc driver, from
before the switch to dmaengine, with the dw_dma driver, I noticed an
obvious problem: the descriptors are filled in using the wrong byte
order.  This patch might fix that.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-dmaengine-dw-fix-byte-order-of-hw-descriptor-fields.patch --]
[-- Type: text/x-diff, Size: 8763 bytes --]

>From 04b444b301c8b2db732dbf259dddb3dc87d622c8 Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sun, 20 Dec 2015 16:54:21 +0000
Subject: [PATCH] dmaengine: dw: fix byte order of hw descriptor fields

If the DMA controller uses a different byte order than the host CPU,
the hardware linked list descriptor fields need to be byte-swapped.

This patch makes the driver write these fields using the same byte
order it uses for mmio accesses to the DMA engine.  I do not know
if this is guaranteed to always be correct.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/dma/dw/core.c | 84 +++++++++++++++++++++++++++------------------------
 drivers/dma/dw/regs.h | 26 +++++++++++-----
 2 files changed, 63 insertions(+), 47 deletions(-)

diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
index 7067b6d..b954904 100644
--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -209,12 +209,12 @@ static inline void dwc_do_single_block(struct dw_dma_chan *dwc,
 	 * Software emulation of LLP mode relies on interrupts to continue
 	 * multi block transfer.
 	 */
-	ctllo = desc->lli.ctllo | DWC_CTLL_INT_EN;
+	ctllo = dw_lli_read(desc->lli.ctllo) | DWC_CTLL_INT_EN;
 
-	channel_writel(dwc, SAR, desc->lli.sar);
-	channel_writel(dwc, DAR, desc->lli.dar);
+	channel_writel(dwc, SAR, dw_lli_read(desc->lli.sar));
+	channel_writel(dwc, DAR, dw_lli_read(desc->lli.dar));
 	channel_writel(dwc, CTL_LO, ctllo);
-	channel_writel(dwc, CTL_HI, desc->lli.ctlhi);
+	channel_writel(dwc, CTL_HI, dw_lli_read(desc->lli.ctlhi));
 	channel_set_bit(dw, CH_EN, dwc->mask);
 
 	/* Move pointer to next descriptor */
@@ -432,7 +432,7 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
 		}
 
 		/* Check first descriptors llp */
-		if (desc->lli.llp == llp) {
+		if (dw_lli_read(desc->lli.llp) == llp) {
 			/* This one is currently in progress */
 			dwc->residue -= dwc_get_sent(dwc);
 			spin_unlock_irqrestore(&dwc->lock, flags);
@@ -441,7 +441,7 @@ static void dwc_scan_descriptors(struct dw_dma *dw, struct dw_dma_chan *dwc)
 
 		dwc->residue -= desc->len;
 		list_for_each_entry(child, &desc->tx_list, desc_node) {
-			if (child->lli.llp == llp) {
+			if (dw_lli_read(child->lli.llp) == llp) {
 				/* Currently in progress */
 				dwc->residue -= dwc_get_sent(dwc);
 				spin_unlock_irqrestore(&dwc->lock, flags);
@@ -730,16 +730,16 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
 		if (!desc)
 			goto err_desc_get;
 
-		desc->lli.sar = src + offset;
-		desc->lli.dar = dest + offset;
-		desc->lli.ctllo = ctllo;
-		desc->lli.ctlhi = xfer_count;
+		dw_lli_write(desc->lli.sar, src + offset);
+		dw_lli_write(desc->lli.dar, dest + offset);
+		dw_lli_write(desc->lli.ctllo, ctllo);
+		dw_lli_write(desc->lli.ctlhi, xfer_count);
 		desc->len = xfer_count << src_width;
 
 		if (!first) {
 			first = desc;
 		} else {
-			prev->lli.llp = desc->txd.phys;
+			dw_lli_write(prev->lli.llp, desc->txd.phys);
 			list_add_tail(&desc->desc_node,
 					&first->tx_list);
 		}
@@ -748,7 +748,7 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
 
 	if (flags & DMA_PREP_INTERRUPT)
 		/* Trigger interrupt after last block */
-		prev->lli.ctllo |= DWC_CTLL_INT_EN;
+		dw_lli_or(prev->lli.ctllo, DWC_CTLL_INT_EN);
 
 	prev->lli.llp = 0;
 	first->txd.flags = flags;
@@ -818,9 +818,10 @@ slave_sg_todev_fill_desc:
 			if (!desc)
 				goto err_desc_get;
 
-			desc->lli.sar = mem;
-			desc->lli.dar = reg;
-			desc->lli.ctllo = ctllo | DWC_CTLL_SRC_WIDTH(mem_width);
+			dw_lli_write(desc->lli.sar, mem);
+			dw_lli_write(desc->lli.dar, reg);
+			dw_lli_write(desc->lli.ctllo,
+					ctllo | DWC_CTLL_SRC_WIDTH(mem_width));
 			if ((len >> mem_width) > dwc->block_size) {
 				dlen = dwc->block_size << mem_width;
 				mem += dlen;
@@ -830,13 +831,13 @@ slave_sg_todev_fill_desc:
 				len = 0;
 			}
 
-			desc->lli.ctlhi = dlen >> mem_width;
+			dw_lli_write(desc->lli.ctlhi, dlen >> mem_width);
 			desc->len = dlen;
 
 			if (!first) {
 				first = desc;
 			} else {
-				prev->lli.llp = desc->txd.phys;
+				dw_lli_write(prev->lli.llp, desc->txd.phys);
 				list_add_tail(&desc->desc_node,
 						&first->tx_list);
 			}
@@ -875,9 +876,10 @@ slave_sg_fromdev_fill_desc:
 			if (!desc)
 				goto err_desc_get;
 
-			desc->lli.sar = reg;
-			desc->lli.dar = mem;
-			desc->lli.ctllo = ctllo | DWC_CTLL_DST_WIDTH(mem_width);
+			dw_lli_write(desc->lli.sar, reg);
+			dw_lli_write(desc->lli.dar, mem);
+			dw_lli_write(desc->lli.ctllo,
+				     ctllo | DWC_CTLL_DST_WIDTH(mem_width));
 			if ((len >> reg_width) > dwc->block_size) {
 				dlen = dwc->block_size << reg_width;
 				mem += dlen;
@@ -886,13 +888,13 @@ slave_sg_fromdev_fill_desc:
 				dlen = len;
 				len = 0;
 			}
-			desc->lli.ctlhi = dlen >> reg_width;
+			dw_lli_write(desc->lli.ctlhi, dlen >> reg_width);
 			desc->len = dlen;
 
 			if (!first) {
 				first = desc;
 			} else {
-				prev->lli.llp = desc->txd.phys;
+				dw_lli_write(prev->lli.llp, desc->txd.phys);
 				list_add_tail(&desc->desc_node,
 						&first->tx_list);
 			}
@@ -909,7 +911,7 @@ slave_sg_fromdev_fill_desc:
 
 	if (flags & DMA_PREP_INTERRUPT)
 		/* Trigger interrupt after last block */
-		prev->lli.ctllo |= DWC_CTLL_INT_EN;
+		dw_lli_or(prev->lli.ctllo, DWC_CTLL_INT_EN);
 
 	prev->lli.llp = 0;
 	first->total_len = total_len;
@@ -1393,50 +1395,52 @@ struct dw_cyclic_desc *dw_dma_cyclic_prep(struct dma_chan *chan,
 
 		switch (direction) {
 		case DMA_MEM_TO_DEV:
-			desc->lli.dar = sconfig->dst_addr;
-			desc->lli.sar = buf_addr + (period_len * i);
-			desc->lli.ctllo = (DWC_DEFAULT_CTLLO(chan)
+			dw_lli_write(desc->lli.dar, sconfig->dst_addr);
+			dw_lli_write(desc->lli.sar,
+				     buf_addr + (period_len * i));
+			dw_lli_write(desc->lli.ctllo, (DWC_DEFAULT_CTLLO(chan)
 					| DWC_CTLL_DST_WIDTH(reg_width)
 					| DWC_CTLL_SRC_WIDTH(reg_width)
 					| DWC_CTLL_DST_FIX
 					| DWC_CTLL_SRC_INC
-					| DWC_CTLL_INT_EN);
+					| DWC_CTLL_INT_EN));
 
-			desc->lli.ctllo |= sconfig->device_fc ?
-				DWC_CTLL_FC(DW_DMA_FC_P_M2P) :
-				DWC_CTLL_FC(DW_DMA_FC_D_M2P);
+			dw_lli_or(desc->lli.ctllo, sconfig->device_fc ?
+					DWC_CTLL_FC(DW_DMA_FC_P_M2P) :
+					DWC_CTLL_FC(DW_DMA_FC_D_M2P));
 
 			break;
 		case DMA_DEV_TO_MEM:
-			desc->lli.dar = buf_addr + (period_len * i);
-			desc->lli.sar = sconfig->src_addr;
-			desc->lli.ctllo = (DWC_DEFAULT_CTLLO(chan)
+			dw_lli_write(desc->lli.dar,
+					buf_addr + (period_len * i));
+			dw_lli_write(desc->lli.sar, sconfig->src_addr);
+			dw_lli_write(desc->lli.ctllo, (DWC_DEFAULT_CTLLO(chan)
 					| DWC_CTLL_SRC_WIDTH(reg_width)
 					| DWC_CTLL_DST_WIDTH(reg_width)
 					| DWC_CTLL_DST_INC
 					| DWC_CTLL_SRC_FIX
-					| DWC_CTLL_INT_EN);
+					| DWC_CTLL_INT_EN));
 
-			desc->lli.ctllo |= sconfig->device_fc ?
-				DWC_CTLL_FC(DW_DMA_FC_P_P2M) :
-				DWC_CTLL_FC(DW_DMA_FC_D_P2M);
+			dw_lli_or(desc->lli.ctllo, sconfig->device_fc ?
+					DWC_CTLL_FC(DW_DMA_FC_P_P2M) :
+					DWC_CTLL_FC(DW_DMA_FC_D_P2M));
 
 			break;
 		default:
 			break;
 		}
 
-		desc->lli.ctlhi = (period_len >> reg_width);
+		dw_lli_write(desc->lli.ctlhi, (period_len >> reg_width));
 		cdesc->desc[i] = desc;
 
 		if (last)
-			last->lli.llp = desc->txd.phys;
+			dw_lli_write(last->lli.llp, desc->txd.phys);
 
 		last = desc;
 	}
 
 	/* Let's make a cyclic list */
-	last->lli.llp = cdesc->desc[0]->txd.phys;
+	dw_lli_write(last->lli.llp, cdesc->desc[0]->txd.phys);
 
 	dev_dbg(chan2dev(&dwc->chan),
 			"cyclic prepared buf %pad len %zu period %zu periods %d\n",
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h
index 241ff2b..84f05de 100644
--- a/drivers/dma/dw/regs.h
+++ b/drivers/dma/dw/regs.h
@@ -308,20 +308,32 @@ static inline struct dw_dma *to_dw_dma(struct dma_device *ddev)
 	return container_of(ddev, struct dw_dma, dma);
 }
 
+#ifdef CONFIG_DW_DMAC_BIG_ENDIAN_IO
+typedef __be32 dw_u32;
+#define dw_lli_read(s)		be32_to_cpu(s)
+#define dw_lli_write(d, v)	((d) = cpu_to_be32(v))
+#else
+typedef __le32 dw_u32;
+#define dw_lli_read(s)		le32_to_cpu(s)
+#define dw_lli_write(d, v)	((d) = cpu_to_le32(v))
+#endif
+
+#define dw_lli_or(d, v)		dw_lli_write(d, dw_lli_read(d) | (v))
+
 /* LLI == Linked List Item; a.k.a. DMA block descriptor */
 struct dw_lli {
 	/* values that are not changed by hardware */
-	u32		sar;
-	u32		dar;
-	u32		llp;		/* chain to next lli */
-	u32		ctllo;
+	dw_u32		sar;
+	dw_u32		dar;
+	dw_u32		llp;		/* chain to next lli */
+	dw_u32		ctllo;
 	/* values that may get written back: */
-	u32		ctlhi;
+	dw_u32		ctlhi;
 	/* sstat and dstat can snapshot peripheral register state.
 	 * silicon config may discard either or both...
 	 */
-	u32		sstat;
-	u32		dstat;
+	dw_u32		sstat;
+	dw_u32		dstat;
 };
 
 struct dw_desc {
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 17:11                                                                             ` Måns Rullgård
  (?)
@ 2015-12-20 17:41                                                                             ` Andy Shevchenko
  2015-12-20 17:54                                                                                 ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-20 17:41 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Sun, Dec 20, 2015 at 7:11 PM, Måns Rullgård <mans@mansr.com> wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:

>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>> [   48.748614] ata3: lost interrupt (Status 0x40)
>
> Now we're getting somewhere.  The dma transfer is set up and initiated,
> but then nothing happens.  Comparing the old sata_dwc driver, from
> before the switch to dmaengine, with the dw_dma driver, I noticed an
> obvious problem: the descriptors are filled in using the wrong byte
> order.

So, it means we have IO in little endian, but DMA reads data from
memory in big endian?

>  This patch might fix that.

In case it works I have to test it on AVR32.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 17:11                                                                             ` Måns Rullgård
  (?)
  (?)
@ 2015-12-20 17:44                                                                             ` Julian Margetson
  2015-12-20 18:49                                                                                 ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-20 17:44 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

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

On 12/20/2015 1:11 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>> Total pages: 522752
>>>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>>>> Please add ignore_log_level.
>>>>>>
>>>>> Had to truncate the kernel command line to add it.
>>>> I guess Måns meant 'ignore_loglevel'
>>> Obviously.  I can never remember where the underscores go.
>> [   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
>> [   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
>> [   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
>> [   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
>> [   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
>> [   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
>> [   18.511807] dma dma0chan0: dwc_prep_slave_sg
>> [   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
>> [   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
>> [   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
>> [   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
>> [   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
>> [   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
>> [   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
>> [   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
>> [   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
>> [   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>> [   48.748614] ata3: lost interrupt (Status 0x40)
> Now we're getting somewhere.  The dma transfer is set up and initiated,
> but then nothing happens.  Comparing the old sata_dwc driver, from
> before the switch to dmaengine, with the dw_dma driver, I noticed an
> obvious problem: the descriptors are filled in using the wrong byte
> order.  This patch might fix that.
>


[-- Attachment #2: Log.log --]
[-- Type: text/plain, Size: 147627 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.20 13:32:57 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #3 PREEMPT Sun Dec 20 13:24:01 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000024] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000146] Console: colour dummy device 80x25
[    0.000175] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004011] devtmpfs: initialized
[    0.006749] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007137] xor: measuring software checksum speed
[    0.016346]    8regs     :   856.000 MB/sec
[    0.026354]    8regs_prefetch:   784.000 MB/sec
[    0.036385]    32regs    :  1120.000 MB/sec
[    0.046418]    32regs_prefetch:   996.000 MB/sec
[    0.046424] xor: using function: 32regs (1120.000 MB/sec)
[    0.046459] prandom: seed boundary self test passed
[    0.048905] prandom: 100 self tests passed
[    0.049444] NET: Registered protocol family 16
[    0.052544] cpuidle: using governor ladder
[    0.055577] cpuidle: using governor menu
[    0.055978] 256k L2-cache enabled
[    0.056063] PCIE0: Port disabled via device-tree
[    0.056114] PCIE1: Checking link...
[    0.056120] PCIE1: Device detected, waiting for link...
[    0.056126] PCIE1: link is up !
[    0.158410] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158437]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158453]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158463]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158486] 4xx PCI DMA offset set to 0x00000000
[    0.158492] 4xx PCI DMA window base to 0x0000000000000000
[    0.158498] DMA window size 0x0000000080000000
[    0.158522] PCIE1: successfully set as root-complex
[    0.158588] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159241] PCI host bridge to bus 0000:80
[    0.159259] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159273] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159285] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159298] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159312] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159349] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159389] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159421] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159695] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159746] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159767] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159782] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159805] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159868] pci 0000:81:00.0: supports D1 D2
[    0.159878] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160029] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160078] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160161] pci 0000:81:00.1: supports D1 D2
[    0.160286] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160302] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160314] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160401] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160493] PCI host bridge to bus 0001:00
[    0.160507] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160519] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160531] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160542] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160553] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160581] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160604] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160617] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160629] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160642] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160654] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160667] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160680] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160706] pci 0001:00:04.0: supports D1 D2
[    0.160827] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160851] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160863] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160899] pci 0001:00:06.0: supports D1 D2
[    0.161076] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161167] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161179] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161190] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161206] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161227] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161245] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161257] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161274] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161287] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161298] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161309] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161320] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161333] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161343] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161353] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161363] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161372] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161382] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161397] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161410] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161423] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161434] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161445] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161457] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161468] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161480] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161492] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161504] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161514] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161524] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188262] raid6: int32x1  gen()   300 MB/s
[    0.205415] raid6: int32x1  xor()   173 MB/s
[    0.222442] raid6: int32x2  gen()   433 MB/s
[    0.239489] raid6: int32x2  xor()   240 MB/s
[    0.256581] raid6: int32x4  gen()   476 MB/s
[    0.273660] raid6: int32x4  xor()   267 MB/s
[    0.290716] raid6: int32x8  gen()   234 MB/s
[    0.307887] raid6: int32x8  xor()   218 MB/s
[    0.307894] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307900] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307907] raid6: using intx1 recovery algorithm
[    0.308205] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308219] vgaarb: loaded
[    0.308225] vgaarb: bridge control possible 0000:81:00.0
[    0.308489] SCSI subsystem initialized
[    0.308632] libata version 3.00 loaded.
[    0.308870] usbcore: registered new interface driver usbfs
[    0.308914] usbcore: registered new interface driver hub
[    0.308968] usbcore: registered new device driver usb
[    0.309064] pps_core: LinuxPPS API ver. 1 registered
[    0.309071] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309098] PTP clock support registered
[    0.309245] EDAC MC: Ver: 3.0.0
[    0.309591] Advanced Linux Sound Architecture Driver Initialized.
[    0.329536] DMA-API: preallocated 65536 debug entries
[    0.329549] DMA-API: debugging enabled by kernel config
[    0.329594] clocksource: Switched to clocksource timebase
[    0.336215] NET: Registered protocol family 2
[    0.336799] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336894] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337234] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337345] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337410] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337757] NET: Registered protocol family 1
[    0.338072] RPC: Registered named UNIX socket transport module.
[    0.338081] RPC: Registered udp transport module.
[    0.338087] RPC: Registered tcp transport module.
[    0.338093] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338163] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338848] Could not remap bcsr
[    0.342055] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345037] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355249] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355793] fuse init (API version 7.23)
[    0.359968] async_tx: api initialized (async)
[    0.360067] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360084] io scheduler noop registered
[    0.360226] io scheduler cfq registered (default)
[    0.362204] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362214] crc32: self tests passed, processed 225944 bytes in 891814 nsec
[    0.363231] crc32c: CRC_LE_BITS = 64
[    0.363240] crc32c: self tests passed, processed 225944 bytes in 446500 nsec
[    0.429692] crc32_combine: 8373 self tests passed
[    0.496340] crc32c_combine: 8373 self tests passed
[    0.496393] glob: 64 self-tests passed, 0 failed
[    0.534682] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535443] console [ttyS0] disabled
[    0.555608] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.837753] console [ttyS0] enabled
[    1.861879] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871729] console [ttyS0] disabled
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #3 PREEMPT Sun Dec 20 13:24:01 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000024] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000146] Console: colour dummy device 80x25
[    0.000175] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004011] devtmpfs: initialized
[    0.006749] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007137] xor: measuring software checksum speed
[    0.016346]    8regs     :   856.000 MB/sec
[    0.026354]    8regs_prefetch:   784.000 MB/sec
[    0.036385]    32regs    :  1120.000 MB/sec
[    0.046418]    32regs_prefetch:   996.000 MB/sec
[    0.046424] xor: using function: 32regs (1120.000 MB/sec)
[    0.046459] prandom: seed boundary self test passed
[    0.048905] prandom: 100 self tests passed
[    0.049444] NET: Registered protocol family 16
[    0.052544] cpuidle: using governor ladder
[    0.055577] cpuidle: using governor menu
[    0.055978] 256k L2-cache enabled
[    0.056063] PCIE0: Port disabled via device-tree
[    0.056114] PCIE1: Checking link...
[    0.056120] PCIE1: Device detected, waiting for link...
[    0.056126] PCIE1: link is up !
[    0.158410] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158437]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158453]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158463]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158486] 4xx PCI DMA offset set to 0x00000000
[    0.158492] 4xx PCI DMA window base to 0x0000000000000000
[    0.158498] DMA window size 0x0000000080000000
[    0.158522] PCIE1: successfully set as root-complex
[    0.158588] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158604]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158618]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158629]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158643] 4xx PCI DMA offset set to 0x00000000
[    0.158648] 4xx PCI DMA window base to 0x0000000000000000
[    0.158654] DMA window size 0x0000000080000000
[    0.159140] PCI: Probing PCI hardware
[    0.159241] PCI host bridge to bus 0000:80
[    0.159259] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159273] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159285] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159298] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159312] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159349] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159389] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159421] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159695] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159746] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159767] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159782] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159805] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159868] pci 0000:81:00.0: supports D1 D2
[    0.159878] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160029] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160078] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160161] pci 0000:81:00.1: supports D1 D2
[    0.160286] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160302] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160314] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160401] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160493] PCI host bridge to bus 0001:00
[    0.160507] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160519] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160531] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160542] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160553] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160581] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160604] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160617] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160629] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160642] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160654] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160667] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160680] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160706] pci 0001:00:04.0: supports D1 D2
[    0.160827] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160851] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160863] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160899] pci 0001:00:06.0: supports D1 D2
[    0.161076] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161167] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161179] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161190] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161206] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161227] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161245] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161257] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161274] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161287] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161298] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161309] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161320] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161333] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161343] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161353] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161363] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161372] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161382] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161397] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161410] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161423] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161434] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161445] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161457] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161468] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161480] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161492] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161504] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161514] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161524] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188262] raid6: int32x1  gen()   300 MB/s
[    0.205415] raid6: int32x1  xor()   173 MB/s
[    0.222442] raid6: int32x2  gen()   433 MB/s
[    0.239489] raid6: int32x2  xor()   240 MB/s
[    0.256581] raid6: int32x4  gen()   476 MB/s
[    0.273660] raid6: int32x4  xor()   267 MB/s
[    0.290716] raid6: int32x8  gen()   234 MB/s
[    0.307887] raid6: int32x8  xor()   218 MB/s
[    0.307894] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307900] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307907] raid6: using intx1 recovery algorithm
[    0.308205] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308219] vgaarb: loaded
[    0.308225] vgaarb: bridge control possible 0000:81:00.0
[    0.308489] SCSI subsystem initialized
[    0.308632] libata version 3.00 loaded.
[    0.308870] usbcore: registered new interface driver usbfs
[    0.308914] usbcore: registered new interface driver hub
[    0.308968] usbcore: registered new device driver usb
[    0.309064] pps_core: LinuxPPS API ver. 1 registered
[    0.309071] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309098] PTP clock support registered
[    0.309245] EDAC MC: Ver: 3.0.0
[    0.309591] Advanced Linux Sound Architecture Driver Initialized.
[    0.329536] DMA-API: preallocated 65536 debug entries
[    0.329549] DMA-API: debugging enabled by kernel config
[    0.329594] clocksource: Switched to clocksource timebase
[    0.336215] NET: Registered protocol family 2
[    0.336799] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336894] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337234] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337345] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337410] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337757] NET: Registered protocol family 1
[    0.338072] RPC: Registered named UNIX socket transport module.
[    0.338081] RPC: Registered udp transport module.
[    0.338087] RPC: Registered tcp transport module.
[    0.338093] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338163] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338848] Could not remap bcsr
[    0.342055] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345037] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355249] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355793] fuse init (API version 7.23)
[    0.359968] async_tx: api initialized (async)
[    0.360067] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360084] io scheduler noop registered
[    0.360226] io scheduler cfq registered (default)
[    0.362204] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362214] crc32: self tests passed, processed 225944 bytes in 891814 nsec
[    0.363231] crc32c: CRC_LE_BITS = 64
[    0.363240] crc32c: self tests passed, processed 225944 bytes in 446500 nsec
[    0.429692] crc32_combine: 8373 self tests passed
[    0.496340] crc32c_combine: 8373 self tests passed
[    0.496393] glob: 64 self-tests passed, 0 failed
[    0.534682] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535443] console [ttyS0] disabled
[    0.555608] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.837753] console [ttyS0] enabled
[    1.861879] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871729] console [ttyS0] disabled
[    1.875384] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    3.182362] console [ttyS0] enabled
[    3.186477] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    3.195850] Generic non-volatile memory driver v1.1
[    3.201000] [drm] Initialized drm 1.1.0 20060810
[    3.205707] [drm] radeon kernel modesetting enabled.
[    3.211406] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.219400] [drm] register mmio base: 0xe90000000
[    3.224136] [drm] register mmio size: 262144
[    3.560222] ATOM BIOS: C44501
[    3.563457] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.572366] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.580032] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.584917] [drm] RAM width 128bits DDR
[    3.588945] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    3.595418] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    3.601949] [TTM] Initializing pool allocator
[    3.606405] [drm] radeon: 1024M of VRAM memory ready
[    3.611387] [drm] radeon: 2048M of GTT memory ready.
[    3.616420] [drm] Loading verde Microcode
[    3.620472] [drm] Internal thermal controller with fan control
[    3.626542] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.680136] [drm] radeon: dpm initialized
[    3.684367] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.693564] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.701712] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.718424] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.777173] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.784463] radeon 0000:81:00.0: WB enabled
[    3.788698] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.798794] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.808889] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.818984] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.829080] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.869588] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.879699] radeon 0000:81:00.0: VCE init error (-22).
[    3.884852] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.891472] [drm] Driver supports precise vblank timestamp query.
[    3.897576] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.903490] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.911753] radeon 0000:81:00.0: radeon: using MSI.
[    3.916699] [drm] radeon: irq initialized.
[    4.675950] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.684763] radeon 0000:81:00.0: disabling GPU acceleration
[    4.894037] [drm] Radeon Display Connectors
[    4.898287] [drm] Connector 0:
[    4.901358] [drm]   HDMI-A-1
[    4.904247] [drm]   HPD4
[    4.906794] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.914196] [drm]   Encoders:
[    4.917174] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.921453] [drm] Connector 1:
[    4.924516] [drm]   DVI-I-1
[    4.927319] [drm]   HPD2
[    4.929859] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.937259] [drm]   Encoders:
[    4.940237] [drm]     DFP2: INTERNAL_UNIPHY
[    4.944430] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.061510] [drm] fb mappable at 0x80678000
[    5.065706] [drm] vram apper at 0x80000000
[    5.069812] [drm] size 8294400
[    5.072876] [drm] fb depth is 24
[    5.076114] [drm]    pitch is 7680
[    5.370437] Console: switching to colour frame buffer device 240x67
[    5.448312] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    5.457660] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    5.474428] brd: module loaded
[    5.482038] loop: module loaded
[    5.485427] sata_sil 0001:00:04.0: version 2.4
[    5.489994] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    5.498038] scsi host0: sata_sil
[    5.501572] scsi host1: sata_sil
[    5.504964] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    5.512291] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    5.520223] PPC 4xx OCP EMAC driver, version 3.54
[    5.525496] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    5.531376] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    5.536804] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    5.543961] TAH /plb/opb/emac-tah@ef601350 initialized
[    5.549159] TAH /plb/opb/emac-tah@ef601450 initialized
[    5.554573] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    5.561717] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    5.568618] eth0: found Generic MII PHY (0x00)
[    5.573244] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    5.580330] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    5.587232] eth1: found Generic MII PHY (0x01)
[    5.591727] PPP generic driver version 2.4.2
[    5.596173] PPP BSD Compression module registered
[    5.600903] PPP Deflate Compression module registered
[    5.605964] NET: Registered protocol family 24
[    5.610616] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.617302] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    5.622015] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    5.630449] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    5.642612] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    5.649001] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.655807] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.663036] usb usb1: Product: OF EHCI
[    5.666794] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex ehci_hcd
[    5.673243] usb usb1: SerialNumber: PPC-OF USB
[    5.678096] hub 1-0:1.0: USB hub found
[    5.681946] hub 1-0:1.0: 1 port detected
[    5.686182] ehci-pci: EHCI PCI platform driver
[    5.690739] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.697059] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.701687] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.709483] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.833620] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.873150] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.885659] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.904873] ata1.00: configured for UDMA/100
[    5.927866] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.941267] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.949714] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.960834] sd 0:0:0:0: [sda] Write Protect is off
[    5.970600] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.980675] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.989752] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    6.013544]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    6.055924] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.116047] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    6.128599] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.144697] hub 1-1:1.0: USB hub found
[    6.151782] hub 1-1:1.0: 7 ports detected
[    6.268624] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    6.297734] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    6.314712] ata2.00: configured for UDMA/100
[    6.330526] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    6.373847] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.388598] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.400199] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    6.410668] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.435611] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.444718] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.451581] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.458896] usb usb2: Product: OF OHCI
[    6.462707] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex ohci_hcd
[    6.469188] usb usb2: SerialNumber: PPC-OF USB
[    6.474158] hub 2-0:1.0: USB hub found
[    6.477979] hub 2-0:1.0: 1 port detected
[    6.482241] ohci-pci: OHCI PCI platform driver
[    6.486969] usbcore: registered new interface driver usblp
[    6.492720] usbcore: registered new interface driver usb-storage
[    6.498856] usbcore: registered new interface driver usbserial
[    6.504745] usbcore: registered new interface driver usbserial_generic
[    6.511325] usbserial: USB Serial support registered for generic
[    6.517646] mousedev: PS/2 mouse device common for all mice
[    6.523317] i2c /dev entries driver
[    6.529204] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.536365] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.542649] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.548793] md: linear personality registered for level -1
[    6.554364] md: raid0 personality registered for level 0
[    6.559718] md: raid1 personality registered for level 1
[    6.565082] md: raid10 personality registered for level 10
[    6.570764] md: raid6 personality registered for level 6
[    6.576162] md: raid5 personality registered for level 5
[    6.581568] md: raid4 personality registered for level 4
[    6.587277] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.594412] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.602904] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.610274] EDAC PPC4xx MC: v1.0.0
[    6.613721] usb 1-1.1: Product: USB 2.0 Hub
[    6.617923] EDAC PPC4xx MC: Reporting type: interrupt
[    6.623513] hub 1-1.1:1.0: USB hub found
[    6.627615] hidraw: raw HID events driver (C) Jiri Kosina
[    6.633401] hub 1-1.1:1.0: 4 ports detected
[    6.637840] usbcore: registered new interface driver usbhid
[    6.643500] usbhid: USB HID core driver
[    6.647974] usbcore: registered new interface driver snd-usb-audio
[    6.654327] usbcore: registered new interface driver snd-ua101
[    6.660313] usbcore: registered new interface driver snd-usb-usx2y
[    6.667029] ipip: IPv4 over IPv4 tunneling driver
[    6.672359] Initializing XFRM netlink socket
[    6.677391] NET: Registered protocol family 10
[    6.682995] sit: IPv6 over IPv4 tunneling driver
[    6.688173] NET: Registered protocol family 17
[    6.692666] NET: Registered protocol family 15
[    6.697425] Running MSI bitmap self-tests ...
[    6.703510] Key type encrypted registered
[    6.709071] rtc-m41t80 8-0068: setting system clock to 2015-12-20 13:30:54 UTC (1450618254)
[    6.717703] ALSA device list:
[    6.720705]   No soundcards found.
[    6.724660] md: Waiting for all devices to be available before autodetect
[    6.731494] md: If you don't use raid, use raid=noautodetect
[    6.737827] md: Autodetecting RAID arrays.
[    6.741965] md: Scanned 0 and added 0 devices.
[    6.746419] md: autorun ...
[    6.749223] md: ... autorun DONE.
[    6.752620] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.784922] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    6.802166] EXT4-fs (sda8): INFO: recovery required on readonly filesystem
[    6.809087] EXT4-fs (sda8): write access will be enabled during recovery
[    6.854016] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.860945] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.868299] usb 1-1.2: Product: USB Keyboard
[    6.872612] usb 1-1.2: Manufacturer: CHICONY
[    6.883809] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.946881] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    6.959153] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.967922] EXT4-fs (sda8): recovery complete
[    6.985001] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    6.992783] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    7.026165] devtmpfs: mounted
[    7.029821] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    7.063753] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    7.071353] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.079059] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    7.108040] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    7.136617] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    7.172909] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    7.232505] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    7.239698] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.247549] usb 1-1.6: Product: USB Receiver
[    7.251879] usb 1-1.6: Manufacturer: Logitech
[    7.260371] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    7.323893] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    7.342219] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    7.405987] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    7.422968] random: nonblocking pool is initialized
[    7.429055] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    7.513622] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    7.613243] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    7.620175] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.628106] usb 1-1.7: Product: Ultra Fast Media 
[    7.633009] usb 1-1.7: Manufacturer: Generic
[    7.637650] usb 1-1.7: SerialNumber: 000000225001
[    7.643284] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    7.649880] scsi host2: usb-storage 1-1.7:1.0
[    8.198414] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    8.300902] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    8.319381] systemd[1]: Detected architecture ppc.

Welcome to Ubuntu 16.04!

[    8.365718] systemd[1]: Set hostname to <Sam460ex>.
[    8.655519] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    8.664717] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    8.672113] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    8.677837] systemd-fstab-generator[116]: Mount point  is not a valid path, ignoring.
[    8.725159] systemd[110]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[    9.616540] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    9.629970] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    9.642000] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    9.653032] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    9.664869] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    9.679657] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[    9.699056] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    9.709835] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    9.720099] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    9.746959] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    9.764360] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    9.781244] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    9.796964] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[    9.866708] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    9.891868] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    9.909046] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    9.923848] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[    9.937836] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    9.955010] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[    9.970067] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    9.986916] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    9.998407] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[   10.014911] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[   10.039084] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   10.062414] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   10.076045] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   10.096121] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   10.106983] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[   10.127780] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   10.136459] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   10.147588] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[   10.171770] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   10.190188] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   10.244402] systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[   10.270311] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[   10.289802] systemd[1]: Started Uncomplicated firewall.
[  OK  ] Started Uncomplicated firewall.
[   10.533584] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[   10.557074] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[   10.571007] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[   10.582979] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   10.613271] systemd[1]: Started Apply Kernel Variables.
[  OK  ] Started Apply Kernel Variables.
[   10.773178] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[   10.794464] systemd[1]: ureadahead.service: Unit entered failed state.
[   10.801304] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[   11.031758] systemd[1]: Started Create Static Device Nodes in /dev.
[  OK  ] Started Create Static Device Nodes in /dev.
[   11.053753] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting File System Check on Root Device...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[   12.784900] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   12.795053] systemd-remount[154]: unhandled signal 11 at 0000000c nip 203a39a4 lr 203a371c code 30001
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
[  OK  ] Started Load/Save Random Seed.
[   13.055008] systemd-journald[133]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   14.368384] sata-dwc 4bffd1000.sata: ioremap done for SATA register address
[  OK  ] Found device /dev/ttyS0.
[   14.439908] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[   14.512672] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   14.627745] sata-dwc 4bffd1000.sata: DW_PARAMS: 0x10800804
[   14.670723] sata-dwc 4bffd1000.sata: DWC_PARAMS[0]: 0x49230b1b
[   14.725763] sata-dwc 4bffd1000.sata: DesignWare DMA Controller, 1 channels
[   14.762694] sata-dwc 4bffd1000.sata: sata_dwc_port_start: port_no=0
[   14.809548] dma dma0chan0: dwc_alloc_chan_resources
[   14.841745] dma dma0chan0: moving desc ffa0c000 to freelist
[   14.876445] dma dma0chan0: moving desc ffa0c060 to freelist
[   14.921276] dma dma0chan0: moving desc ffa0c0c0 to freelist
[   14.964470] dma dma0chan0: moving desc ffa0c120 to freelist
[   15.079296] dma dma0chan0: moving desc ffa0c180 to freelist
[   15.114112] dma dma0chan0: moving desc ffa0c1e0 to freelist
[   15.137708] dma dma0chan0: moving desc ffa0c240 to freelist
[   15.163666] dma dma0chan0: moving desc ffa0c2a0 to freelist
[   15.182164] dma dma0chan0: moving desc ffa0c300 to freelist
[   15.201724] dma dma0chan0: moving desc ffa0c360 to freelist
[   15.219671] dma dma0chan0: moving desc ffa0c3c0 to freelist
[   15.240108] dma dma0chan0: moving desc ffa0c420 to freelist
[   15.258221] dma dma0chan0: moving desc ffa0c480 to freelist
[  OK  ] [   15.281646] dma dma0chan0: moving desc ffa0c4e0 to freelist
Reached target Sound Card.
[   15.303698] dma dma0chan0: moving desc ffa0c540 to freelist
[   15.324628] dma dma0chan0: moving desc ffa0c5a0 to freelist
[   15.337637] dma dma0chan0: moving desc ffa0c600 to freelist
[   15.351633] dma dma0chan0: moving desc ffa0c660 to freelist
[   15.368971] dma dma0chan0: moving desc ffa0c6c0 to freelist
[  OK  ] Created slice syste[   15.381513] dma dma0chan0: moving desc ffa0c720 to freelist
m-ifup.slice.
[   15.416682] dma dma0chan0: moving desc ffa0c780 to freelist
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[   15.459033] dma dma0chan0: moving desc ffa0c7e0 to freelist
[   15.501662] dma dma0chan0: moving desc ffa0c840 to freelist
[   15.532653] dma dma0chan0: moving desc ffa0c8a0 to freelist
[   15.582851] dma dma0chan0: moving desc ffa0c900 to freelist
[   15.632695] dma dma0chan0: moving desc ffa0c960 to freelist
[   15.673581] dma dma0chan0: moving desc ffa0c9c0 to freelist
[   15.721666] dma dma0chan0: moving desc ffa0ca20 to freelist
[   15.751309] dma dma0chan0: moving desc ffa0ca80 to freelist
[   15.781667] dma dma0chan0: moving desc ffa0cae0 to freelist
[   15.815651] dma dma0chan0: moving desc ffa0cb40 to freelist
[   15.851693] dma dma0chan0: moving desc ffa0cba0 to freelist
[   15.896656] dma dma0chan0: moving desc ffa0cc00 to freelist
[   15.942782] dma dma0chan0: moving desc ffa0cc60 to freelist
[   16.007672] dma dma0chan0: moving desc ffa0ccc0 to freelist
[  OK  ] Found device WDC_WD5000AAKS-00V1A0 NTFS.
[   16.090507] dma dma0chan0: moving desc ffa0cd20 to freelist
[   16.159658] dma dma0chan0: moving desc ffa0cd80 to freelist
         Mounting /media/NTFS...
[   16.240647] dma dma0chan0: moving desc ffa0cde0 to freelist
[   16.314691] dma dma0chan0: moving desc ffa0ce40 to freelist
[   16.372678] dma dma0chan0: moving desc ffa0cea0 to freelist
[   16.437024] dma dma0chan0: moving desc ffa0cf00 to freelist
[   16.467026] dma dma0chan0: moving desc ffa0cf60 to freelist
[   16.526705] dma dma0chan0: moving desc ffa0d000 to freelist
[   16.581372] dma dma0chan0: moving desc ffa0d060 to freelist
[   16.623690] dma dma0chan0: moving desc ffa0d0c0 to freelist
[   16.666401] dma dma0chan0: moving desc ffa0d120 to freelist
[   16.699750] dma dma0chan0: moving desc ffa0d180 to freelist
[   16.738776] dma dma0chan0: moving desc ffa0d1e0 to freelist
[   16.781696] dma dma0chan0: moving desc ffa0d240 to freelist
[   16.822544] dma dma0chan0: moving desc ffa0d2a0 to freelist
[   16.872354] dma dma0chan0: moving desc ffa0d300 to freelist
[   16.912212] dma dma0chan0: moving desc ffa0d360 to freelist
[   16.953597] dma dma0chan0: moving desc ffa0d3c0 to freelist
[   16.991684] dma dma0chan0: moving desc ffa0d420 to freelist
[   17.032723] dma dma0chan0: moving desc ffa0d480 to freelist
[   17.083692] dma dma0chan0: moving desc ffa0d4e0 to freelist
[  OK  ] Mounted /media/NTFS.
[   17.163810] dma dma0chan0: moving desc ffa0d540 to freelist
32m  OK  ] Reached target Local File Systems.
         Starting LSB: AppArmor initialization...
         Starting Clean up any mess left by 0dns-up...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Wait for all "auto" /etc/n... up for network-online.target...
         Starting Create Volatile Files and Directories...
[   17.334683] dma dma0chan0: moving desc ffa0d5a0 to freelist
[   17.403183] dma dma0chan0: moving desc ffa0d600 to freelist
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shut[   17.497944] dma dma0chan0: moving desc ffa0d660 to freelist
down...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[   17.629289] dma dma0chan0: moving desc ffa0d6c0 to freelist
[   17.691590] dma dma0chan0: moving desc ffa0d720 to freelist
[   17.746676] dma dma0chan0: moving desc ffa0d780 to freelist
[   17.797816] dma dma0chan0: moving desc ffa0d7e0 to freelist
[   17.835660] dma dma0chan0: dwc_alloc_chan_resources: allocated 64 descriptors
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[   17.912649] dmaengine: __dma_request_channel: success (dma0chan0)
[   17.951854] sata-dwc 4bffd1000.sata: sata_dwc_port_start: clearing TXCHEN, RXCHEN in DMAC
[  OK  ] Started Clean up any mess left by 0dns-up.
         Starting Nameserver information manager...
[   18.070651] sata-dwc 4bffd1000.sata: sata_dwc_port_start: setting burst size in DBTSR
[   18.196668] sata-dwc 4bffd1000.sata: sata_dwc_port_start: done
[   18.209685] scsi host3: sata-dwc
[   18.209901] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   18.209908] ata3: SATA max UDMA/133 irq 36
[   18.209984] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   18.209992] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   18.210000] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   18.210007] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   18.211671] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   18.211680] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   18.412685] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   18.412694] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.418735] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.424689] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.430671] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.436679] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.448729] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.454699] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.460693] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.466677] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.472686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.478679] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.484682] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.490686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.504345] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.509673] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515688] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515697] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   18.515705] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   18.515712] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515728] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   18.515735] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515743] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515750] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515769] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   18.515775] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   18.515782] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515789] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   18.515795] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515802] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   18.515812] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   18.515837] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   18.515844] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   18.515852] dma dma0chan0: dwc_prep_slave_sg
[   18.515859] dma dma0chan0: scanned 1 descriptors on freelist
[   18.515868] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c88, count: 1 addr: 0xfffffffff6a18400
[   18.518791] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   18.518801] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   18.518808] dma dma0chan0: dwc_prep_slave_sg
[   18.518814] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.527820] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   18.527830] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   18.527836] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   18.527843] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   18.527891] ata3.00: ATA-8: WDC WD5000AAKS-00UU3A0, 01.03B01, max UDMA/133
[   18.527898] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 1/32)
[   18.527939] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   18.527947] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   18.527954] dma dma0chan0: dwc_prep_slave_sg
[   18.527960] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.530728] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   18.530738] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   18.530745] dma dma0chan0: dwc_prep_slave_sg
[   18.530753] dma dma0chan0: scanned 1 descriptors on freelist
[   18.530762] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[   18.533800] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   18.533809] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   18.533816] dma dma0chan0: dwc_prep_slave_sg
[   18.533822] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   18.534763] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   18.534772] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   18.534779] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   18.534786] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   18.534844] ata3.00: configured for UDMA/133
[   18.538182] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
[   18.539025] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   18.539236] sd 3:0:0:0: [sdc] Write Protect is off
[   18.539245] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   18.539338] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   18.540049] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   18.540362] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   18.540370] dma dma0chan0: dwc_prep_slave_sg
[   18.540378] dma dma0chan0: scanned 1 descriptors on freelist
[   18.540387] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37f200, count: 1 addr: 0xfffffffff6a18400
[   18.540395] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   18.540426] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   18.556592] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   18.556599] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   18.556609] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   18.556616] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   18.556623] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   18.556631] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   18.556639] dma dma0chan0: dwc_tx_submit: queued 2
[   18.556646] dma dma0chan0: dwc_dostart_first_queued: started 2
[  OK  ] Started Nameserver information manager.
[  OK  ] Started LSB: AppArmor initialization.
[  OK  ] Started ifup for eth0.
         Starting LSB: Raise network interfaces....
[   21.434701] eth0: link is up, 1000 FDX, pause enabled
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[  OK  ] Started LSB: start Samba SMB/CIFS daemon (smbd).
[  OK  ] Started Wait for all "auto" /etc/ne...be up for network-online.target.
\r\r[**    ] A start job is running for LSB: Rai...ork interfaces. (32s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (33s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (33s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (34s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (34s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (35s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (35s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (36s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (36s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (37s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (37s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (38s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (38s / no limit)[   48.748634] ata3: lost interrupt (Status 0x40)
[   48.753465] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   48.761369] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   48.769671] ata3.00: failed command: READ FPDMA QUEUED
\r[   48.775573] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   48.775573]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
;31[   48.790815] ata3.00: status: { DRDY }
m*[   48.790838] ata3: hard resetting link
   48.790852] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
0;[   48.790860] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
1;[   48.790886] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
31[   48.790892] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
m*[   48.794722] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
   48.794729] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
0m*   ] A start job is running for LSB: Rai...ork interfaces. (39s / no limit)[   48.995623] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   49.003501] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.018630] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.031627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.044684] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.057631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.070627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.083627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.096627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.109627] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.117516] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   49.127031] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   49.135034] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.144511] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   49.154001] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.163472] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.171394] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.180909] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   49.188822] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   49.198390] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.206314] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   49.215822] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.223737] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   49.231040] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.238957] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   49.248440] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   49.262617] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.271495] dma dma0chan0: dwc_prep_slave_sg
[   49.275775] dma dma0chan0: scanned 1 descriptors on freelist
[   49.281445] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
\r[**[   49.295512] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.311143] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.319412] dma dma0chan0: dwc_prep_slave_sg
[   49.323691] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
  [   49.332355] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   49.339821] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   49.348439] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   49.355150] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
  ] A start job is running for LSB: Rai...ork interfaces. (39s / no limit)[   49.373094] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.387366] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.395635] dma dma0chan0: dwc_prep_slave_sg
[   49.399906] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.411833] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   49.426012] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.434888] dma dma0chan0: dwc_prep_slave_sg
[   49.439160] dma dma0chan0: scanned 1 descriptors on freelist
[   49.444830] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[   49.458577] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   49.474154] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   49.482424] dma dma0chan0: dwc_prep_slave_sg
[   49.486702] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[   49.495358] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   49.502763] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   49.511382] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   49.518092] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   49.526146] ata3.00: configured for UDMA/133
[   49.530497] ata3.00: device reported invalid CHS sector 0
[   49.535990] ata3: EH complete
[   49.539247] ------------[ cut here ]------------
[   49.543870] WARNING: at drivers/ata/libata-core.c:5051
[   49.549007] Modules linked in: input_leds led_class sata_dwc_460ex
[   49.555264] CPU: 0 PID: 293 Comm: scsi_eh_3 Not tainted 4.4.0-rc5-Sam460ex #3
[   49.562405] task: ed271140 ti: ed2e0000 task.ti: ed2e0000
[   49.567802] NIP: c043bbe0 LR: c0440d58 CTR: c0442bd4
[   49.572767] REGS: ed2e1c70 TRAP: 0700   Not tainted  (4.4.0-rc5-Sam460ex)
[   49.579554] MSR: 00021000 <CE,ME>  CR: 22000048  XER: 00000000
[   49.585474] 
GPR00: c0440d58 ed2e1d20 ed271140 ed2180b8 ed219a48 00000000 00000000 00000000 
GPR08: 00000006 00000004 00000001 ed2e1d50 28000022 00000000 00000005 00002710 
GPR16: c04264b4 c0944a03 c08fb4b8 c094492f c09020db ed145c1c 0000001e 00000000 
GPR24: ed1450e0 ed1fa9a0 edc485b0 c0442bd4 ed218000 ed2197c8 ed218000 ed2180b8 
[   49.615694] NIP [c043bbe0] ata_qc_issue+0x4c/0x3a0
[   49.620487] LR [c0440d58] ata_scsi_translate+0xf4/0x150
[   49.625709] Call Trace:
[   49.628162] [ed2e1d20] [c0442d6c] ata_scsi_rw_xlat+0x198/0x1e4 (unreliable)
[   49.635148] [ed2e1d50] [c0440d58] ata_scsi_translate+0xf4/0x150
[   49.641086] [ed2e1d70] [c0444154] ata_scsi_queuecmd+0x1e8/0x238
[   49.647024] [ed2e1d90] [c04251f0] scsi_dispatch_cmd+0xd4/0x110
[   49.652875] [ed2e1da0] [c0427b70] scsi_request_fn+0x52c/0x55c
[   49.658641] [ed2e1df0] [c024cd34] __blk_run_queue+0x44/0x58
[   49.664236] [ed2e1e00] [c024cf30] blk_run_queue+0x28/0x44
[   49.669653] [ed2e1e10] [c0425d4c] scsi_run_queue+0x240/0x268
[   49.675331] [ed2e1e50] [c0427bd8] scsi_run_host_queues+0x30/0x44
[   49.681346] [ed2e1e60] [c0424e18] scsi_error_handler+0x3e0/0x44c
[   49.687369] [ed2e1ed0] [c0039798] kthread+0xc8/0xcc
[   49.692269] [ed2e1f40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   49.698460] Instruction dump:
[   49.701447] 815e0004 83a90000 89230014 814a0058 2f8a0000 419e0038 815d0120 2b8a001f 
[   49.709328] 419d002c 3d40c0a3 894a575b 694a0001 <0f0a0000> 2f8a0000 41be0014 3d40c0a3 
[   49.717386] ---[ end trace 0b0316debe3b1cf8 ]---
[   49.722024] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   49.730904] dma dma0chan0: dwc_prep_slave_sg
[   49.735176] dma dma0chan0: scanned 1 descriptors on freelist
[   49.740846] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37f200, count: 1 addr: 0xfffffffff6a18400
[   49.750419] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   49.760450] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   49.774412] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=0
[   49.781740] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   49.787583] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   49.799064] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
[   49.807849] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   49.816200] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   49.826296] dma dma0chan0: dwc_tx_submit: queued 3
\r[*     ] A start job is running for LSB: Rai...ork interfaces. (40s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (40s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (41s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (41s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (42s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (42s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (43s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (43s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (44s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (44s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (45s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (45s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (46s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (46s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (47s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (47s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (48s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (48s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (49s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (49s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (50s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (50s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (51s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (51s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (52s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (52s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (53s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (53s / no limit)\r[*     ] A start job is running for LSB: Rai...ork interfaces. (54s / no limit)\r[**    ] A start job is running for LSB: Rai...ork interfaces. (54s / no limit)\r[***   ] A start job is running for LSB: Rai...ork interfaces. (55s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (55s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (56s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (56s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (57s / no limit)\r[     *] A start job is running for LSB: Rai...ork interfaces. (57s / no limit)\r[    **] A start job is running for LSB: Rai...ork interfaces. (58s / no limit)\r[   ***] A start job is running for LSB: Rai...ork interfaces. (58s / no limit)\r[  *** ] A start job is running for LSB: Rai...ork interfaces. (59s / no limit)\r[ ***  ] A start job is running for LSB: Rai...ork interfaces. (59s / no limit)\r[***   ] A start job is running for LSB: Rai...rk interfaces. (1min / no limit)\r[**    ] A start job is running for LSB: Rai...rk interfaces. (1min / no limit)\r[*     ] A start job is running for LSB: Rai...interfaces. (1min 1s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (1min 1s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 2s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 2s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (1min 3s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (1min 3s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (1min 4s / no limit)\r[     *] A start job is running for LSB: Rai...interfaces. (1min 4s / no limit)\r[    **] A start job is running for LSB: Rai...interfaces. (1min 5s / no limit)\r[   ***] A start job is running for LSB: Rai...interfaces. (1min 5s / no limit)\r[  *** ] A start job is running for LSB: Rai...interfaces. (1min 6s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 6s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 7s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (1min 7s / no limit)\r[*     ] A start job is running for LSB: Rai...interfaces. (1min 8s / no limit)\r[**    ] A start job is running for LSB: Rai...interfaces. (1min 8s / no limit)\r[***   ] A start job is running for LSB: Rai...interfaces. (1min 9s / no limit)\r[ ***  ] A start job is running for LSB: Rai...interfaces. (1min 9s / no limit)[   79.724633] ata3: lost interrupt (Status 0x40)
[   79.729536] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   79.737456] ata3.00: NCQ disabled due to excessive errors
[   79.744035] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
[   79.751166] ata3.00: failed command: READ FPDMA QUEUED
[   79.756753] ata3.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[   79.756753]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[   79.771407] ata3.00: status: { DRDY }
\r   79.776177] ata3: hard resetting link
K[[   79.780060] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
  *   79.789323] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
1m*[   79.797374] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
* ] A st[   79.807363] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
art job is running[   79.816704] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
 f[   79.824736] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
or LSB: Rai...nterfaces. (1min 10s / no limit)[   80.035631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   80.043514] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.058630] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.071628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.084630] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.097628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.110628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.123629] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.136628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.149628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.157505] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   80.166975] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   80.174978] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.184508] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   80.194002] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.203499] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.211422] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.220946] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   80.228862] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   80.238418] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   80.246343] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x000003\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 11s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 12s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 12s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 13s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 13s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 14s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 14s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 15s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 15s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 16s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 16s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 17s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 17s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 18s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 18s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 19s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 19s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 20s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 20s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 21s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 21s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 22s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 22s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 23s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 23s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 24s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 24s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 25s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 25s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 26s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 26s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 27s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 27s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 28s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 28s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 29s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 29s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 30s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 30s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 31s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 31s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 32s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 32s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 33s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 33s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 34s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 34s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 35s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 35s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (1min 36s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (1min 36s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (1min 37s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (1min 37s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (1min 38s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 38s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 39s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (1min 39s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (1min 40s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (1min 40s / no limit)[  110.764630] ata3: lost interrupt (Status 0x50)
\r[  110.770729] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[ [  110.778767] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
 **  110.788782] ata3: limiting SATA link speed to 1.5 Gbps
;3[  110.794156] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
1m* [  110.801914] ata3.00: failed command: READ DMA
] [  110.806437] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  110.806437]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
A start [  110.821727] ata3.00: status: { DRDY }
job is [  110.825984] ata3: hard resetting link
runn[  110.829905] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
ing for LSB: Rai.[  110.839297] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
..n[  110.847359] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000304
terfaces. (1min 41s / no[  110.857372] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000304
 li[  110.865453] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000314
mit)[  110.875490] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000314
[  110.883443] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  [  205.804214] ata3: lost interrupt (Status 0x50)
[  205.812254] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  205.829280] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  205.847215] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  205.864228] ata3.00: failed command: READ DMA
[  205.886299] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  205.886299]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  205.928198] ata3.00: status: { DRDY }
[  205.936199] ata3: hard resetting link
[  205.944209] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  205.961211] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  205.978234] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  205.996205] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  206.016218] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  206.031246] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  206.249218] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  206.265258] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.288222] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.309232] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.331206] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.353207] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.374234] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.390195] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  206.407209] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  206.425203] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.441609] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  206.462289] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.480232] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.497210] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.516214] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  206.532219] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  206.550186] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.567188] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  206.585204] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.602194] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  206.616233] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.629948] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  206.638108] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  206.652285] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  206.661166] dma dma0chan0: dwc_prep_slave_sg
[  206.665446] dma dma0chan0: scanned 1 descriptors on freelist
[  206.671116] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  206.690289] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  206.705867] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  206.714135] dma dma0chan0: dwc_prep_slave_sg
[  206.718413] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  206.727070] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  206.734474] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  206.743092] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  206.749794] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  206.809267] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  206.823541] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  206.831809] dma dma0chan0: dwc_prep_slave_sg
[  206.836087] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  206.850944] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  206.865129] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  206.874005] dma dma0chan0: dwc_prep_slave_sg
[  206.878285] dma dma0chan0: scanned 1 descriptors on freelist
[  206.883954] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  206.903285] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  206.918862] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  206.927129] dma dma0chan0: dwc_prep_slave_sg
[  206.931408] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  206.940064] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  206.947469] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  206.956087] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  206.962789] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  207.020254] ata3.00: configured for UDMA/33
[  207.031768] ata3.00: device reported invalid CHS sector 0
[  207.043222] sd 3:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  207.061244] sd 3:0:0:0: [sdc] tag#0 Sense Key : 0x5 [current] [descriptor] 
[  207.077229] sd 3:0:0:0: [sdc] tag#0 ASC=0x21 ASCQ=0x4 
[  207.089269] sd 3:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  207.108222] blk_update_request: I/O error, dev sdc, sector 0
[  207.122229] Buffer I/O error on dev sdc, logical block 0, async page read
[  207.137508] ata3: EH complete
[  207.145553] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  207.154443] dma dma0chan0: dwc_prep_slave_sg
[  207.158719] dma dma0chan0: scanned 1 descriptors on freelist
[  207.164388] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  237.803993] ata3: lost interrupt (Status 0x50)
[  237.811990] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  237.831015] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  237.850803] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  237.866982] ata3.00: failed command: READ DMA
[  237.878740] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  237.878740]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  237.926703] ata3.00: status: { DRDY }
[  237.934826] ata3: hard resetting link
[  237.944972] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  237.963503] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  237.984026] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  238.000998] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  238.024001] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  238.038977] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  238.261980] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  238.282997] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.306975] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.327949] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.348981] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.369987] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.390974] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.405964] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  238.423934] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  238.440995] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.457941] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  238.480031] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.499012] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.516000] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.536988] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  238.552997] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  238.568966] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.585990] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  238.603985] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.621983] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  238.634973] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.652001] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  238.669001] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  238.683194] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  238.692069] dma dma0chan0: dwc_prep_slave_sg
[  238.696348] dma dma0chan0: scanned 1 descriptors on freelist
[  238.702019] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  238.759979] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  238.775554] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  238.783823] dma dma0chan0: dwc_prep_slave_sg
[  238.788101] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  238.796755] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  238.804161] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  238.812780] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  238.819491] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  238.874029] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  238.888306] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  238.896574] dma dma0chan0: dwc_prep_slave_sg
[  238.900852] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  238.948972] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  238.963159] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  238.972035] dma dma0chan0: dwc_prep_slave_sg
[  238.976314] dma dma0chan0: scanned 1 descriptors on freelist
[  238.981984] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  239.047000] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  239.062578] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  239.070845] dma dma0chan0: dwc_prep_slave_sg
[  239.075123] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  239.083792] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  239.091193] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  239.099811] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  239.106513] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  239.159993] ata3.00: configured for UDMA/33
[  239.170009] ata3.00: device reported invalid CHS sector 0
[  239.182000] ata3: EH complete
[  239.188999] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  239.197887] dma dma0chan0: dwc_prep_slave_sg
[  239.202164] dma dma0chan0: scanned 1 descriptors on freelist
[  239.207834] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  269.806747] ata3: lost interrupt (Status 0x50)
[  269.814786] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  269.828313] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  269.836215] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  269.846547] ata3.00: failed command: READ DMA
[  269.851025] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  269.851025]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  269.868224] ata3.00: status: { DRDY }
[  269.874166] ata3: hard resetting link
[  269.880202] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  269.888210] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  269.898231] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  269.911767] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  269.930705] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  269.938565] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  270.149682] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  270.157543] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.173682] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.186670] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.199672] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.212672] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.225672] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.241679] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.254671] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.267671] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.277113] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  270.285113] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  270.295227] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.303153] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  270.314710] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.322600] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.332543] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.343601] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  270.353191] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  270.361174] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.371172] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  270.379265] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.389290] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  270.395560] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.404986] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  270.412895] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  270.427068] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  270.435948] dma dma0chan0: dwc_prep_slave_sg
[  270.440229] dma dma0chan0: scanned 1 descriptors on freelist
[  270.445899] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  270.459802] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  270.475380] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  270.483647] dma dma0chan0: dwc_prep_slave_sg
[  270.487918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  270.496568] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  270.503971] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  270.512588] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  270.519290] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  270.536410] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  270.550683] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  270.558952] dma dma0chan0: dwc_prep_slave_sg
[  270.563231] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  270.577594] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  270.591787] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  270.600662] dma dma0chan0: dwc_prep_slave_sg
[  270.604942] dma dma0chan0: scanned 1 descriptors on freelist
[  270.610612] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  270.624793] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  270.640371] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  270.648639] dma dma0chan0: dwc_prep_slave_sg
[  270.652917] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  270.661659] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  270.669066] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  270.677684] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  270.684387] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  270.750334] ata3.00: configured for UDMA/33
[  270.754591] ata3.00: device reported invalid CHS sector 0
[  270.761021] ata3: EH complete
[  270.764650] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  270.773538] dma dma0chan0: dwc_prep_slave_sg
[  270.777815] dma dma0chan0: scanned 1 descriptors on freelist
[  270.783485] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  301.035525] ata3: lost interrupt (Status 0x50)
[  301.045475] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  301.072471] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.095537] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  301.119475] ata3.00: failed command: READ DMA
[  301.135460] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  301.135460]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  301.178470] ata3.00: status: { DRDY }
[  301.191515] ata3: hard resetting link
[  301.204516] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  301.229499] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  301.252489] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  301.281470] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  301.307465] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  301.330447] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  301.557484] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  301.579469] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.607462] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.634442] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.660437] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.688490] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.708499] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  301.732465] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  301.749469] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.767476] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  301.788471] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.806467] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.824466] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.842547] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  301.859628] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  301.878486] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.895501] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  301.913476] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.931476] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  301.944485] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.962514] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  301.980581] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  301.994772] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  302.003648] dma dma0chan0: dwc_prep_slave_sg
[  302.007928] dma dma0chan0: scanned 1 descriptors on freelist
[  302.013597] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  302.082479] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  302.098053] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  302.106322] dma dma0chan0: dwc_prep_slave_sg
[  302.110600] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  302.119266] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  302.126669] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  302.135288] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  302.141998] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  302.210501] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  302.224773] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  302.233040] dma dma0chan0: dwc_prep_slave_sg
[  302.237319] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  302.337140] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  302.351326] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  302.360203] dma dma0chan0: dwc_prep_slave_sg
[  302.364482] dma dma0chan0: scanned 1 descriptors on freelist
[  302.370151] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  302.482263] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  302.497845] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  302.506113] dma dma0chan0: dwc_prep_slave_sg
[  302.510391] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  302.519048] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  302.526453] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  302.535071] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  302.541782] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  302.641338] ata3.00: configured for UDMA/33
[  302.655066] ata3.00: device reported invalid CHS sector 0
[  302.671340] ata3: EH complete
[  302.682403] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  302.691299] dma dma0chan0: dwc_prep_slave_sg
[  302.695575] dma dma0chan0: scanned 1 descriptors on freelist
[  302.701245] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  304.475842] systemd-fstab-generator[1544]: Mount point  is not a valid path, ignoring.
[  333.035211] ata3: lost interrupt (Status 0x50)
[  333.041036] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  333.058733] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.073826] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  333.080926] ata3.00: failed command: READ DMA
[  333.086272] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  333.086272]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  333.100904] ata3.00: status: { DRDY }
[  333.105483] ata3: hard resetting link
[  333.109191] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  333.118620] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  333.126522] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  333.136662] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  333.146561] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  333.164401] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  333.380201] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  333.388069] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.405187] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.418179] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.431179] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.445179] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.464956] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.485201] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.498178] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.507654] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  333.515551] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  333.525693] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.533606] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  333.545235] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.553133] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.571868] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.586532] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  333.594403] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  333.604711] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.612889] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  333.623031] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.631034] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  333.638972] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.646881] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  333.656930] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  333.671115] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  333.679993] dma dma0chan0: dwc_prep_slave_sg
[  333.684274] dma dma0chan0: scanned 1 descriptors on freelist
[  333.689943] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  333.712304] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  333.727880] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  333.736147] dma dma0chan0: dwc_prep_slave_sg
[  333.740426] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  333.749086] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  333.756487] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  333.765105] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  333.771808] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  333.795131] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  333.809407] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  333.817675] dma dma0chan0: dwc_prep_slave_sg
[  333.821954] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  333.842307] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  333.856499] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  333.865375] dma dma0chan0: dwc_prep_slave_sg
[  333.869655] dma dma0chan0: scanned 1 descriptors on freelist
[  333.875324] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  333.897596] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  333.913174] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  333.921443] dma dma0chan0: dwc_prep_slave_sg
[  333.925721] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  333.934376] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  333.941782] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  333.950401] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  333.957111] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  333.976320] ata3.00: configured for UDMA/33
[  333.990244] ata3.00: device reported invalid CHS sector 0
[  333.997438] ata3: EH complete
[  334.000798] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  334.009682] dma dma0chan0: dwc_prep_slave_sg
[  334.013960] dma dma0chan0: scanned 1 descriptors on freelist
[  334.019631] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  364.074997] ata3: lost interrupt (Status 0x50)
[  364.080422] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  364.088311] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.098397] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  364.105521] ata3.00: failed command: READ DMA
[  364.110721] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  364.110721]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  364.125966] ata3.00: status: { DRDY }
[  364.129669] ata3: hard resetting link
[  364.134087] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  364.141956] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  364.151973] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  364.169453] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  364.185972] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  364.193835] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  364.404960] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  364.412818] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.428946] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.441938] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.454940] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.477975] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.490940] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.503938] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.516938] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.526406] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  364.534308] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  364.544450] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.552368] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  364.574519] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.587242] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.595116] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.605334] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  364.613333] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  364.624185] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.632274] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  364.642673] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.650618] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  364.658461] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.676303] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  364.690919] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  364.705111] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  364.713985] dma dma0chan0: dwc_prep_slave_sg
[  364.718266] dma dma0chan0: scanned 1 descriptors on freelist
[  364.723936] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  364.738059] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  364.753633] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  364.761903] dma dma0chan0: dwc_prep_slave_sg
[  364.766181] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  364.774855] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  364.782259] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  364.790877] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  364.797579] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  364.829477] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  364.843748] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  364.852015] dma dma0chan0: dwc_prep_slave_sg
[  364.856285] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  364.869331] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  364.883521] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  364.892398] dma dma0chan0: dwc_prep_slave_sg
[  364.896678] dma dma0chan0: scanned 1 descriptors on freelist
[  364.902346] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  364.926069] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  364.941647] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  364.949915] dma dma0chan0: dwc_prep_slave_sg
[  364.954193] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  364.962855] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  364.970254] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  364.978872] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  364.985575] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  365.009141] ata3.00: configured for UDMA/33
[  365.013402] ata3.00: device reported invalid CHS sector 0
[  365.027037] ata3: EH complete
[  365.034834] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  365.043729] dma dma0chan0: dwc_prep_slave_sg
[  365.048005] dma dma0chan0: scanned 1 descriptors on freelist
[  365.053675] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed289b00, count: 1 addr: 0xfffffffff6a18400
[  396.074726] ata3: lost interrupt (Status 0x50)
[  396.080426] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  396.088353] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.098535] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  396.105660] ata3.00: failed command: READ DMA
[  396.110870] ata3.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
[  396.110870]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  396.136202] ata3.00: status: { DRDY }
[  396.143199] ata3: hard resetting link
[  396.147554] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  396.157166] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  396.165064] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  396.175324] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  396.185076] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  396.192973] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  396.403714] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  396.411577] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.427695] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.450730] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.463692] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.476692] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.489691] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.502691] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.515692] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.525133] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  396.533031] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  396.550755] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.566387] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  396.575836] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.586086] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.593991] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.604072] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  396.611976] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  396.622103] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.630291] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  396.640936] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.658807] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  396.671545] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.679555] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  396.689807] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  396.703989] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  396.712866] dma dma0chan0: dwc_prep_slave_sg
[  396.717146] dma dma0chan0: scanned 1 descriptors on freelist
[  396.722815] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  396.736788] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  396.752366] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  396.760635] dma dma0chan0: dwc_prep_slave_sg
[  396.764914] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  396.773571] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  396.780974] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  396.789592] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  396.796295] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  396.828253] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  396.842523] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  396.850791] dma dma0chan0: dwc_prep_slave_sg
[  396.855070] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  396.868286] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  396.882470] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  396.891347] dma dma0chan0: dwc_prep_slave_sg
[  396.895626] dma dma0chan0: scanned 1 descriptors on freelist
[  396.901296] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  396.923817] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  396.939398] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  396.947666] dma dma0chan0: dwc_prep_slave_sg
[  396.951944] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  396.960594] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  396.967997] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  396.976615] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  396.983317] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  397.008136] ata3.00: configured for UDMA/33
[  397.012438] ata3.00: device reported invalid CHS sector 0
[  397.027023] sd 3:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  397.042006] sd 3:0:0:0: [sdc] tag#0 Sense Key : 0x5 [current] [descriptor] 
[  397.049012] sd 3:0:0:0: [sdc] tag#0 ASC=0x21 ASCQ=0x4 
[  397.056588] sd 3:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  397.064237] blk_update_request: I/O error, dev sdc, sector 0
[  397.071627] Buffer I/O error on dev sdc, logical block 0, async page read
[  397.078502] Dev sdc: unable to read RDB block 0
[  397.084033] ata3: EH complete
[  397.087612]  sdc: unable to read partition table
[  397.094132] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  397.103026] dma dma0chan0: dwc_prep_slave_sg
[  397.107302] dma dma0chan0: scanned 1 descriptors on freelist
[  397.112972] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37fa00, count: 1 addr: 0xfffffffff6a18400
[  428.074483] ata3: lost interrupt (Status 0x50)
[  428.080190] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  428.088108] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.098163] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[  428.105285] ata3.00: failed command: READ DMA EXT
[  428.110996] ata3.00: cmd 25/00:08:80:5f:38/00:00:3a:00:00/e0 tag 0 dma 4096 in
[  428.110996]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  428.125637] ata3.00: status: { DRDY }
[  428.130285] ata3: hard resetting link
[  428.144994] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  428.157723] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  428.165601] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000311
[  428.176050] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  428.185840] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000311
[  428.193744] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000310
[  428.404466] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  428.412323] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.428447] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.445520] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.466468] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.479445] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.492444] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.505445] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.518445] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.527891] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[  428.535791] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[  428.553510] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.569148] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[  428.578597] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.588823] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.596725] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.606787] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[  428.614693] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[  428.624871] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.632959] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000310
[  428.643628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.661695] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  428.673855] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.681738] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000113
[  428.692080] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  428.706263] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  428.715140] dma dma0chan0: dwc_prep_slave_sg
[  428.719419] dma dma0chan0: scanned 1 descriptors on freelist
[  428.725089] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1c48, count: 1 addr: 0xfffffffff6a18400
[  428.739567] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  428.755144] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  428.763413] dma dma0chan0: dwc_prep_slave_sg
[  428.767691] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  428.776347] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  428.783752] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  428.792370] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  428.799072] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  428.830958] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  428.845231] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  428.853499] dma dma0chan0: dwc_prep_slave_sg
[  428.857778] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  428.870730] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[  428.884918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  428.893794] dma dma0chan0: dwc_prep_slave_sg
[  428.898074] dma dma0chan0: scanned 1 descriptors on freelist
[  428.903744] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2e1bb8, count: 1 addr: 0xfffffffff6a18400
[  428.926568] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[  428.942149] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[  428.950418] dma dma0chan0: dwc_prep_slave_sg
[  428.954696] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: dma_dwc_xfer_setup returns NULL
[  428.963354] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[  428.970757] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[  428.979376] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  428.986086] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  429.010965] ata3.00: configured for UDMA/33
[  429.015249] ata3.00: device reported invalid CHS sector 0
[  429.029948] ata3: EH complete
[  429.036692] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  429.045587] dma dma0chan0: dwc_prep_slave_sg
[  429.049863] dma dma0chan0: scanned 1 descriptors on freelist
[  429.055533] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37fa00, count: 1 addr: 0xfffffffff6a18400

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 17:41                                                                             ` Andy Shevchenko
@ 2015-12-20 17:54                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 17:54 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 7:11 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>>> [   48.748614] ata3: lost interrupt (Status 0x40)
>>
>> Now we're getting somewhere.  The dma transfer is set up and initiated,
>> but then nothing happens.  Comparing the old sata_dwc driver, from
>> before the switch to dmaengine, with the dw_dma driver, I noticed an
>> obvious problem: the descriptors are filled in using the wrong byte
>> order.
>
> So, it means we have IO in little endian, but DMA reads data from
> memory in big endian?

No, it means the IO is little endian, and the DMA reads from memory in
little endian while the host CPU is big endian.

>>  This patch might fix that.
>
> In case it works I have to test it on AVR32.

Unless I made a mistake, there should be no difference there.  Still got
to test it of course.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-20 17:54                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 17:54 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 7:11 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>>> [   48.748614] ata3: lost interrupt (Status 0x40)
>>
>> Now we're getting somewhere.  The dma transfer is set up and initiated,
>> but then nothing happens.  Comparing the old sata_dwc driver, from
>> before the switch to dmaengine, with the dw_dma driver, I noticed an
>> obvious problem: the descriptors are filled in using the wrong byte
>> order.
>
> So, it means we have IO in little endian, but DMA reads data from
> memory in big endian?

No, it means the IO is little endian, and the DMA reads from memory in
little endian while the host CPU is big endian.

>>  This patch might fix that.
>
> In case it works I have to test it on AVR32.

Unless I made a mistake, there should be no difference there.  Still got
to test it of course.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 17:44                                                                             ` Julian Margetson
@ 2015-12-20 18:49                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 18:49 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>> Total pages: 522752
>>>>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>>>>> Please add ignore_log_level.
>>>>>>>
>>>>>> Had to truncate the kernel command line to add it.
>>>>> I guess Måns meant 'ignore_loglevel'
>>>> Obviously.  I can never remember where the underscores go.
>>> [   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
>>> [   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
>>> [   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
>>> [   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
>>> [   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
>>> [   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
>>> [   18.511807] dma dma0chan0: dwc_prep_slave_sg
>>> [   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
>>> [   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
>>> [   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
>>> [   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
>>> [   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
>>> [   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
>>> [   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
>>> [   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
>>> [   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
>>> [   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
>>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>>> [   48.748614] ata3: lost interrupt (Status 0x40)
>> Now we're getting somewhere.  The dma transfer is set up and initiated,
>> but then nothing happens.  Comparing the old sata_dwc driver, from
>> before the switch to dmaengine, with the dw_dma driver, I noticed an
>> obvious problem: the descriptors are filled in using the wrong byte
>> order.  This patch might fix that.
>
> [   18.534844] ata3.00: configured for UDMA/133
> [   18.538182] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
> [   18.539025] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
> [   18.539236] sd 3:0:0:0: [sdc] Write Protect is off
> [   18.539245] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
> [   18.539338] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [   18.540049] sd 3:0:0:0: Attached scsi generic sg3 type 0
> [   18.540362] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
> [   18.540370] dma dma0chan0: dwc_prep_slave_sg
> [   18.540378] dma dma0chan0: scanned 1 descriptors on freelist
> [   18.540387] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37f200, count: 1 addr: 0xfffffffff6a18400
> [   18.540395] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
> [   18.540426] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
> [   18.556592] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
> [   18.556599] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
> [   18.556609] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
> [   18.556616] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
> [   18.556623] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
> [   18.556631] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
> [   18.556639] dma dma0chan0: dwc_tx_submit: queued 2
> [   18.556646] dma dma0chan0: dwc_dostart_first_queued: started 2
> [   48.748634] ata3: lost interrupt (Status 0x40)
> [   48.753465] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
> [   48.761369] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED

Well, that didn't help.  I still think it's part of the problem, but
something else must be wrong as well.  The various Master Select fields
look like a good place to start.  Also, the manual says the LLP_SRC_EN
and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
The old sata_dwc driver does this whereas dw_dma does not.

It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
reference.  I've verified that this builds.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-20 18:49                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-20 18:49 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/19/2015 4:41 PM, Måns Rullgård wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>>> On 12/19/2015 3:07 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>>> Total pages: 522752
>>>>>>>> [    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200
>>>>>>>> console=tty1 dw_dmac_core.dyndbg dw_dmac.dyndbg
>>>>>>> Please add ignore_log_level.
>>>>>>>
>>>>>> Had to truncate the kernel command line to add it.
>>>>> I guess Måns meant 'ignore_loglevel'
>>>> Obviously.  I can never remember where the underscores go.
>>> [   18.362244] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
>>> [   18.372454] sd 3:0:0:0: Attached scsi generic sg3 type 0
>>> [   18.405433] sd 3:0:0:0: [sdc] Write Protect is off
>>> [   18.420654] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
>>> [   18.461731] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
>>> [   18.502918] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
>>> [   18.511807] dma dma0chan0: dwc_prep_slave_sg
>>> [   18.516083] dma dma0chan0: scanned 1 descriptors on freelist
>>> [   18.521753] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedeaa800, count: 1 addr: 0xfffffffff6a14400
>>> [   18.531327] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
>>> [   18.541359] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
>>> [   18.553703] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
>>> [   18.561717] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
>>> [   18.567561] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2340b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
>>> [   18.579043] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
>>> [   18.587836] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
>>> [   18.596196] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
>>> [   18.606292] dma dma0chan0: dwc_tx_submit: queued 2
>>> [   18.611091] dma dma0chan0: dwc_dostart_first_queued: started 2
>>> [   48.748614] ata3: lost interrupt (Status 0x40)
>> Now we're getting somewhere.  The dma transfer is set up and initiated,
>> but then nothing happens.  Comparing the old sata_dwc driver, from
>> before the switch to dmaengine, with the dw_dma driver, I noticed an
>> obvious problem: the descriptors are filled in using the wrong byte
>> order.  This patch might fix that.
>
> [   18.534844] ata3.00: configured for UDMA/133
> [   18.538182] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
> [   18.539025] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
> [   18.539236] sd 3:0:0:0: [sdc] Write Protect is off
> [   18.539245] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
> [   18.539338] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [   18.540049] sd 3:0:0:0: Attached scsi generic sg3 type 0
> [   18.540362] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
> [   18.540370] dma dma0chan0: dwc_prep_slave_sg
> [   18.540378] dma dma0chan0: scanned 1 descriptors on freelist
> [   18.540387] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed37f200, count: 1 addr: 0xfffffffff6a18400
> [   18.540395] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
> [   18.540426] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
> [   18.556592] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
> [   18.556599] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
> [   18.556609] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2180b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
> [   18.556616] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags: 0x17 device: 40
> [   18.556623] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
> [   18.556631] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
> [   18.556639] dma dma0chan0: dwc_tx_submit: queued 2
> [   18.556646] dma dma0chan0: dwc_dostart_first_queued: started 2
> [   48.748634] ata3: lost interrupt (Status 0x40)
> [   48.753465] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
> [   48.761369] ata3.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED

Well, that didn't help.  I still think it's part of the problem, but
something else must be wrong as well.  The various Master Select fields
look like a good place to start.  Also, the manual says the LLP_SRC_EN
and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
The old sata_dwc driver does this whereas dw_dma does not.

It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
reference.  I've verified that this builds.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 18:49                                                                                 ` Måns Rullgård
  (?)
@ 2015-12-20 20:17                                                                                 ` Andy Shevchenko
  2015-12-20 20:55                                                                                   ` Andy Shevchenko
                                                                                                     ` (2 more replies)
  -1 siblings, 3 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-20 20:17 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
> Julian Margetson <runaway@candw.ms> writes:
>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:

>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>
> Well, that didn't help.  I still think it's part of the problem, but
> something else must be wrong as well.  The various Master Select fields
> look like a good place to start.

Master number (which is here would be either 1 or 0) should not affect
as long as they are connected to the same AHB bus (I would be
surprised if they are not).

>  Also, the manual says the LLP_SRC_EN
> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
> The old sata_dwc driver does this whereas dw_dma does not.

Easy to fix, however I can't get how it might affect.

> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
> reference.  I've verified that this builds.

It would be nice.

I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
items on this board, however registers for SATA program it to 64. I
remember that I got no interrupt when I programmed transfer width
wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
Intel SoCs.


-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 20:17                                                                                 ` Andy Shevchenko
@ 2015-12-20 20:55                                                                                   ` Andy Shevchenko
  2015-12-21  1:19                                                                                       ` Måns Rullgård
  2015-12-21 16:48                                                                                     ` Andy Shevchenko
  2015-12-21  0:47                                                                                     ` Måns Rullgård
  2015-12-21  0:58                                                                                     ` Måns Rullgård
  2 siblings, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-20 20:55 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>
>> Well, that didn't help.  I still think it's part of the problem, but
>> something else must be wrong as well.  The various Master Select fields
>> look like a good place to start.
>
> Master number (which is here would be either 1 or 0) should not affect
> as long as they are connected to the same AHB bus (I would be
> surprised if they are not).
>
>>  Also, the manual says the LLP_SRC_EN
>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>> The old sata_dwc driver does this whereas dw_dma does not.
>
> Easy to fix, however I can't get how it might affect.
>
>> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
>> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
>> reference.  I've verified that this builds.
>
> It would be nice.
>
> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
> items on this board, however registers for SATA program it to 64. I
> remember that I got no interrupt when I programmed transfer width
> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
> Intel SoCs.

One more thing, I have a patch to monitor DMA IO, we may check what
exactly the values are written / read  in DMA. I can share it
tomorrow.

P.S. I also noticed that original driver enables interrupt per each
block and sets protection control bits.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 20:17                                                                                 ` Andy Shevchenko
@ 2015-12-21  0:47                                                                                     ` Måns Rullgård
  2015-12-21  0:47                                                                                     ` Måns Rullgård
  2015-12-21  0:58                                                                                     ` Måns Rullgård
  2 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:47 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>
>> Well, that didn't help.  I still think it's part of the problem, but
>> something else must be wrong as well.  The various Master Select fields
>> look like a good place to start.
>
> Master number (which is here would be either 1 or 0) should not affect
> as long as they are connected to the same AHB bus (I would be
> surprised if they are not).

I think they are not.  The relevant part of the block diagram for the
460EX looks something like this:

+-----+    +-----+    +-----+    +------+
| CPU |<==>| BUS |<==>| DMA |<==>| SATA |
+-----+    +-----+    +-----+    +------+

>>  Also, the manual says the LLP_SRC_EN
>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>> The old sata_dwc driver does this whereas dw_dma does not.
>
> Easy to fix, however I can't get how it might affect.
>
>> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
>> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
>> reference.  I've verified that this builds.
>
> It would be nice.
>
> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
> items on this board, however registers for SATA program it to 64. I
> remember that I got no interrupt when I programmed transfer width
> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
> Intel SoCs.
>
> -- 
> With Best Regards,
> Andy Shevchenko

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21  0:47                                                                                     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:47 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>
>> Well, that didn't help.  I still think it's part of the problem, but
>> something else must be wrong as well.  The various Master Select fields
>> look like a good place to start.
>
> Master number (which is here would be either 1 or 0) should not affect
> as long as they are connected to the same AHB bus (I would be
> surprised if they are not).

I think they are not.  The relevant part of the block diagram for the
460EX looks something like this:

+-----+    +-----+    +-----+    +------+
| CPU |<==>| BUS |<==>| DMA |<==>| SATA |
+-----+    +-----+    +-----+    +------+

>>  Also, the manual says the LLP_SRC_EN
>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>> The old sata_dwc driver does this whereas dw_dma does not.
>
> Easy to fix, however I can't get how it might affect.
>
>> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
>> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
>> reference.  I've verified that this builds.
>
> It would be nice.
>
> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
> items on this board, however registers for SATA program it to 64. I
> remember that I got no interrupt when I programmed transfer width
> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
> Intel SoCs.
>
> -- 
> With Best Regards,
> Andy Shevchenko

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21  0:47                                                                                     ` Måns Rullgård
@ 2015-12-21  0:53                                                                                       ` Måns Rullgård
  -1 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:53 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Måns Rullgård <mans@mansr.com> writes:

> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>
>>> Well, that didn't help.  I still think it's part of the problem, but
>>> something else must be wrong as well.  The various Master Select fields
>>> look like a good place to start.
>>
>> Master number (which is here would be either 1 or 0) should not affect
>> as long as they are connected to the same AHB bus (I would be
>> surprised if they are not).
>
> I think they are not.  The relevant part of the block diagram for the
> 460EX looks something like this:

Oops, hit send by accident.  More soon.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21  0:53                                                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:53 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Måns Rullgård <mans@mansr.com> writes:

> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>
>>> Well, that didn't help.  I still think it's part of the problem, but
>>> something else must be wrong as well.  The various Master Select fields
>>> look like a good place to start.
>>
>> Master number (which is here would be either 1 or 0) should not affect
>> as long as they are connected to the same AHB bus (I would be
>> surprised if they are not).
>
> I think they are not.  The relevant part of the block diagram for the
> 460EX looks something like this:

Oops, hit send by accident.  More soon.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 20:17                                                                                 ` Andy Shevchenko
@ 2015-12-21  0:58                                                                                     ` Måns Rullgård
  2015-12-21  0:47                                                                                     ` Måns Rullgård
  2015-12-21  0:58                                                                                     ` Måns Rullgård
  2 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:58 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>
>> Well, that didn't help.  I still think it's part of the problem, but
>> something else must be wrong as well.  The various Master Select fields
>> look like a good place to start.
>
> Master number (which is here would be either 1 or 0) should not affect
> as long as they are connected to the same AHB bus (I would be
> surprised if they are not).

I think they are not.  The relevant part of the block diagram for the
460EX looks something like this:

      +-----+
      | CPU |
      +-----+
         |
 +---------------+
 |      BUS      |
 +---------------+
    |         |
 +-----+   +-----+ 
 | DMA |   | RAM |
 +-----+   +-----+
    |
 +------+
 | SATA |
 +------+

The DMA-SATA link is private and ignores the address, which is the only
reason the driver can possibly work (it's programming a CPU virtual
address there).

>> Also, the manual says the LLP_SRC_EN
>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>> The old sata_dwc driver does this whereas dw_dma does not.
>
> Easy to fix, however I can't get how it might affect.

From the Atmel doc:

  In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
  CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
  illegal, and causes indeterminate or erroneous behavior.

Most likely nothing happens, but I think it ought to be fixed.  In fact,
I have a patch already.

Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
it off.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21  0:58                                                                                     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  0:58 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>
>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>
>> Well, that didn't help.  I still think it's part of the problem, but
>> something else must be wrong as well.  The various Master Select fields
>> look like a good place to start.
>
> Master number (which is here would be either 1 or 0) should not affect
> as long as they are connected to the same AHB bus (I would be
> surprised if they are not).

I think they are not.  The relevant part of the block diagram for the
460EX looks something like this:

      +-----+
      | CPU |
      +-----+
         |
 +---------------+
 |      BUS      |
 +---------------+
    |         |
 +-----+   +-----+ 
 | DMA |   | RAM |
 +-----+   +-----+
    |
 +------+
 | SATA |
 +------+

The DMA-SATA link is private and ignores the address, which is the only
reason the driver can possibly work (it's programming a CPU virtual
address there).

>> Also, the manual says the LLP_SRC_EN
>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>> The old sata_dwc driver does this whereas dw_dma does not.
>
> Easy to fix, however I can't get how it might affect.

>From the Atmel doc:

  In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
  CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
  illegal, and causes indeterminate or erroneous behavior.

Most likely nothing happens, but I think it ought to be fixed.  In fact,
I have a patch already.

Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
it off.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 20:55                                                                                   ` Andy Shevchenko
@ 2015-12-21  1:19                                                                                       ` Måns Rullgård
  2015-12-21 16:48                                                                                     ` Andy Shevchenko
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  1:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>
>>> Well, that didn't help.  I still think it's part of the problem, but
>>> something else must be wrong as well.  The various Master Select fields
>>> look like a good place to start.
>>
>> Master number (which is here would be either 1 or 0) should not affect
>> as long as they are connected to the same AHB bus (I would be
>> surprised if they are not).
>>
>>>  Also, the manual says the LLP_SRC_EN
>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>> The old sata_dwc driver does this whereas dw_dma does not.
>>
>> Easy to fix, however I can't get how it might affect.
>>
>>> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
>>> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
>>> reference.  I've verified that this builds.
>>
>> It would be nice.
>>
>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>> items on this board, however registers for SATA program it to 64. I
>> remember that I got no interrupt when I programmed transfer width
>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
>> Intel SoCs.
>
> One more thing, I have a patch to monitor DMA IO, we may check what
> exactly the values are written / read  in DMA. I can share it
> tomorrow.
>
> P.S. I also noticed that original driver enables interrupt per each
> block

And then ignores all but the transfer complete interrupt.

> and sets protection control bits.

With no indication what the value it sets is supposed to mean.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21  1:19                                                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21  1:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>
>>> Well, that didn't help.  I still think it's part of the problem, but
>>> something else must be wrong as well.  The various Master Select fields
>>> look like a good place to start.
>>
>> Master number (which is here would be either 1 or 0) should not affect
>> as long as they are connected to the same AHB bus (I would be
>> surprised if they are not).
>>
>>>  Also, the manual says the LLP_SRC_EN
>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>> The old sata_dwc driver does this whereas dw_dma does not.
>>
>> Easy to fix, however I can't get how it might affect.
>>
>>> It might be worthwhile to try reverting drivers/ata/sata_dwc_460ex.c to
>>> v4.0 (leaving the rest at 4.4-rc5) just to make sure that's a good
>>> reference.  I've verified that this builds.
>>
>> It would be nice.
>>
>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>> items on this board, however registers for SATA program it to 64. I
>> remember that I got no interrupt when I programmed transfer width
>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used on
>> Intel SoCs.
>
> One more thing, I have a patch to monitor DMA IO, we may check what
> exactly the values are written / read  in DMA. I can share it
> tomorrow.
>
> P.S. I also noticed that original driver enables interrupt per each
> block

And then ignores all but the transfer complete interrupt.

> and sets protection control bits.

With no indication what the value it sets is supposed to mean.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21  0:58                                                                                     ` Måns Rullgård
  (?)
@ 2015-12-21  8:40                                                                                     ` Andy Shevchenko
  2015-12-21 12:15                                                                                         ` Måns Rullgård
       [not found]                                                                                       ` <5677D447.40906@candw.ms>
  -1 siblings, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21  8:40 UTC (permalink / raw)
  To: Måns Rullgård, Viresh Kumar
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

+Viresh

On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>
>>> Well, that didn't help.  I still think it's part of the problem, but
>>> something else must be wrong as well.  The various Master Select fields
>>> look like a good place to start.
>>
>> Master number (which is here would be either 1 or 0) should not affect
>> as long as they are connected to the same AHB bus (I would be
>> surprised if they are not).
>
> I think they are not.  The relevant part of the block diagram for the
> 460EX looks something like this:
>
>       +-----+
>       | CPU |
>       +-----+
>          |
>  +---------------+
>  |      BUS      |
>  +---------------+
>     |         |
>  +-----+   +-----+
>  | DMA |   | RAM |
>  +-----+   +-----+
>     |
>  +------+
>  | SATA |
>  +------+
>
> The DMA-SATA link is private and ignores the address, which is the only
> reason the driver can possibly work (it's programming a CPU virtual
> address there).

If you look at the original code the SMS and DMS are programmed
statically independent on DMA direction, so LLP is programmed always
to master 1. I don't think your scheme is reflecting this right. I
could imagine two AHB buses, one of them connects CPU, SATA and RAM,
and the other CPU and DMA.

In any case on all Intel SoCs and AVR32, and as far as I can tell on
Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
that the problem is in master numbers by themselves.

>>> Also, the manual says the LLP_SRC_EN
>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>> The old sata_dwc driver does this whereas dw_dma does not.
>>
>> Easy to fix, however I can't get how it might affect.
>
> From the Atmel doc:
>
>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>   illegal, and causes indeterminate or erroneous behavior.

I will check Synospys documentation later on.

> Most likely nothing happens, but I think it ought to be fixed.  In fact,
> I have a patch already.

Good. Send with Fixes tag if it's upstream ready.

> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
> it off.

I have ATNGW100.

P.S. Anyway we have to ask Julian to try the kernel with
8b3444852a2b58129 reverted.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21  8:40                                                                                     ` Andy Shevchenko
@ 2015-12-21 12:15                                                                                         ` Måns Rullgård
       [not found]                                                                                       ` <5677D447.40906@candw.ms>
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 12:15 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Viresh Kumar, Julian Margetson, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> +Viresh
>
> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>
>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>> something else must be wrong as well.  The various Master Select fields
>>>> look like a good place to start.
>>>
>>> Master number (which is here would be either 1 or 0) should not affect
>>> as long as they are connected to the same AHB bus (I would be
>>> surprised if they are not).
>>
>> I think they are not.  The relevant part of the block diagram for the
>> 460EX looks something like this:
>>
>>       +-----+
>>       | CPU |
>>       +-----+
>>          |
>>  +---------------+
>>  |      BUS      |
>>  +---------------+
>>     |         |
>>  +-----+   +-----+
>>  | DMA |   | RAM |
>>  +-----+   +-----+
>>     |
>>  +------+
>>  | SATA |
>>  +------+
>>
>> The DMA-SATA link is private and ignores the address, which is the only
>> reason the driver can possibly work (it's programming a CPU virtual
>> address there).
>
> If you look at the original code the SMS and DMS are programmed
> statically independent on DMA direction, so LLP is programmed always
> to master 1. I don't think your scheme is reflecting this right. I
> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
> and the other CPU and DMA.

Check the code again.  The original code swaps SMS and DMS depending on
direction, and it sets LMS to 1.  Put differently, it always sets the
memory side 1 and the device side to 0.  The dw_dma driver sets SMS and
DMS to the src/dst_master values provided through dma_request_channel()
regardless of the current direction and LMS always zero.  If those
values didn't matter, why would the fields exist in the first place?

> In any case on all Intel SoCs and AVR32, and as far as I can tell on
> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
> that the problem is in master numbers by themselves.

The 460EX is a PowerPC system.  Expect unusual topologies.

>>>> Also, the manual says the LLP_SRC_EN
>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>
>>> Easy to fix, however I can't get how it might affect.
>>
>> From the Atmel doc:
>>
>>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>   illegal, and causes indeterminate or erroneous behavior.
>
> I will check Synospys documentation later on.
>
>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>> I have a patch already.
>
> Good. Send with Fixes tag if it's upstream ready.
>
>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>> it off.
>
> I have ATNGW100.

I have an AT32ATK1006.  Can you suggest a good test to exercise the DMA
engine?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 12:15                                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 12:15 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Viresh Kumar, Julian Margetson, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> +Viresh
>
> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>
>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>> something else must be wrong as well.  The various Master Select fields
>>>> look like a good place to start.
>>>
>>> Master number (which is here would be either 1 or 0) should not affect
>>> as long as they are connected to the same AHB bus (I would be
>>> surprised if they are not).
>>
>> I think they are not.  The relevant part of the block diagram for the
>> 460EX looks something like this:
>>
>>       +-----+
>>       | CPU |
>>       +-----+
>>          |
>>  +---------------+
>>  |      BUS      |
>>  +---------------+
>>     |         |
>>  +-----+   +-----+
>>  | DMA |   | RAM |
>>  +-----+   +-----+
>>     |
>>  +------+
>>  | SATA |
>>  +------+
>>
>> The DMA-SATA link is private and ignores the address, which is the only
>> reason the driver can possibly work (it's programming a CPU virtual
>> address there).
>
> If you look at the original code the SMS and DMS are programmed
> statically independent on DMA direction, so LLP is programmed always
> to master 1. I don't think your scheme is reflecting this right. I
> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
> and the other CPU and DMA.

Check the code again.  The original code swaps SMS and DMS depending on
direction, and it sets LMS to 1.  Put differently, it always sets the
memory side 1 and the device side to 0.  The dw_dma driver sets SMS and
DMS to the src/dst_master values provided through dma_request_channel()
regardless of the current direction and LMS always zero.  If those
values didn't matter, why would the fields exist in the first place?

> In any case on all Intel SoCs and AVR32, and as far as I can tell on
> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
> that the problem is in master numbers by themselves.

The 460EX is a PowerPC system.  Expect unusual topologies.

>>>> Also, the manual says the LLP_SRC_EN
>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>
>>> Easy to fix, however I can't get how it might affect.
>>
>> From the Atmel doc:
>>
>>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>   illegal, and causes indeterminate or erroneous behavior.
>
> I will check Synospys documentation later on.
>
>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>> I have a patch already.
>
> Good. Send with Fixes tag if it's upstream ready.
>
>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>> it off.
>
> I have ATNGW100.

I have an AT32ATK1006.  Can you suggest a good test to exercise the DMA
engine?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
       [not found]                                                                                       ` <5677D447.40906@candw.ms>
@ 2015-12-21 12:16                                                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 12:16 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 4:40 AM, Andy Shevchenko wrote:
>> +Viresh
>>
>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>> something else must be wrong as well.  The various Master Select fields
>>>>> look like a good place to start.
>>>> Master number (which is here would be either 1 or 0) should not affect
>>>> as long as they are connected to the same AHB bus (I would be
>>>> surprised if they are not).
>>> I think they are not.  The relevant part of the block diagram for the
>>> 460EX looks something like this:
>>>
>>>        +-----+
>>>        | CPU |
>>>        +-----+
>>>           |
>>>   +---------------+
>>>   |      BUS      |
>>>   +---------------+
>>>      |         |
>>>   +-----+   +-----+
>>>   | DMA |   | RAM |
>>>   +-----+   +-----+
>>>      |
>>>   +------+
>>>   | SATA |
>>>   +------+
>>>
>>> The DMA-SATA link is private and ignores the address, which is the only
>>> reason the driver can possibly work (it's programming a CPU virtual
>>> address there).
>> If you look at the original code the SMS and DMS are programmed
>> statically independent on DMA direction, so LLP is programmed always
>> to master 1. I don't think your scheme is reflecting this right. I
>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>> and the other CPU and DMA.
>>
>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>> that the problem is in master numbers by themselves.
>>
>>>>> Also, the manual says the LLP_SRC_EN
>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>> Easy to fix, however I can't get how it might affect.
>>>  From the Atmel doc:
>>>
>>>    In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>    CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>    illegal, and causes indeterminate or erroneous behavior.
>> I will check Synospys documentation later on.
>>
>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>> I have a patch already.
>> Good. Send with Fixes tag if it's upstream ready.
>>
>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>> it off.
>> I have ATNGW100.
>>
>> P.S. Anyway we have to ask Julian to try the kernel with
>> 8b3444852a2b58129 reverted.
>>
> git revert 8b3444852a2b58129
> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
> hint: after resolving the conflicts, mark the corrected paths
> hint: with 'git add <paths>' or 'git rm <paths>'
> hint: and commit the result with 'git commit'

Yeah, that won't work since there are numerous changes afterward.  Just
revert the entire file back to 4.0 like this:

$ git checkout v4.0 drivers/ata/sata_dwc_460ex.c

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 12:16                                                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 12:16 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 4:40 AM, Andy Shevchenko wrote:
>> +Viresh
>>
>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>> something else must be wrong as well.  The various Master Select fields
>>>>> look like a good place to start.
>>>> Master number (which is here would be either 1 or 0) should not affect
>>>> as long as they are connected to the same AHB bus (I would be
>>>> surprised if they are not).
>>> I think they are not.  The relevant part of the block diagram for the
>>> 460EX looks something like this:
>>>
>>>        +-----+
>>>        | CPU |
>>>        +-----+
>>>           |
>>>   +---------------+
>>>   |      BUS      |
>>>   +---------------+
>>>      |         |
>>>   +-----+   +-----+
>>>   | DMA |   | RAM |
>>>   +-----+   +-----+
>>>      |
>>>   +------+
>>>   | SATA |
>>>   +------+
>>>
>>> The DMA-SATA link is private and ignores the address, which is the only
>>> reason the driver can possibly work (it's programming a CPU virtual
>>> address there).
>> If you look at the original code the SMS and DMS are programmed
>> statically independent on DMA direction, so LLP is programmed always
>> to master 1. I don't think your scheme is reflecting this right. I
>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>> and the other CPU and DMA.
>>
>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>> that the problem is in master numbers by themselves.
>>
>>>>> Also, the manual says the LLP_SRC_EN
>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>> Easy to fix, however I can't get how it might affect.
>>>  From the Atmel doc:
>>>
>>>    In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>    CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>    illegal, and causes indeterminate or erroneous behavior.
>> I will check Synospys documentation later on.
>>
>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>> I have a patch already.
>> Good. Send with Fixes tag if it's upstream ready.
>>
>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>> it off.
>> I have ATNGW100.
>>
>> P.S. Anyway we have to ask Julian to try the kernel with
>> 8b3444852a2b58129 reverted.
>>
> git revert 8b3444852a2b58129
> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
> hint: after resolving the conflicts, mark the corrected paths
> hint: with 'git add <paths>' or 'git rm <paths>'
> hint: and commit the result with 'git commit'

Yeah, that won't work since there are numerous changes afterward.  Just
revert the entire file back to 4.0 like this:

$ git checkout v4.0 drivers/ata/sata_dwc_460ex.c

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 12:16                                                                                           ` Måns Rullgård
  (?)
@ 2015-12-21 13:18                                                                                           ` Julian Margetson
  2015-12-21 13:24                                                                                               ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 13:18 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

On 12/21/2015 8:16 AM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/21/2015 4:40 AM, Andy Shevchenko wrote:
>>> +Viresh
>>>
>>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>>> something else must be wrong as well.  The various Master Select fields
>>>>>> look like a good place to start.
>>>>> Master number (which is here would be either 1 or 0) should not affect
>>>>> as long as they are connected to the same AHB bus (I would be
>>>>> surprised if they are not).
>>>> I think they are not.  The relevant part of the block diagram for the
>>>> 460EX looks something like this:
>>>>
>>>>         +-----+
>>>>         | CPU |
>>>>         +-----+
>>>>            |
>>>>    +---------------+
>>>>    |      BUS      |
>>>>    +---------------+
>>>>       |         |
>>>>    +-----+   +-----+
>>>>    | DMA |   | RAM |
>>>>    +-----+   +-----+
>>>>       |
>>>>    +------+
>>>>    | SATA |
>>>>    +------+
>>>>
>>>> The DMA-SATA link is private and ignores the address, which is the only
>>>> reason the driver can possibly work (it's programming a CPU virtual
>>>> address there).
>>> If you look at the original code the SMS and DMS are programmed
>>> statically independent on DMA direction, so LLP is programmed always
>>> to master 1. I don't think your scheme is reflecting this right. I
>>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>>> and the other CPU and DMA.
>>>
>>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>>> that the problem is in master numbers by themselves.
>>>
>>>>>> Also, the manual says the LLP_SRC_EN
>>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>>> Easy to fix, however I can't get how it might affect.
>>>>   From the Atmel doc:
>>>>
>>>>     In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>>     CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>>     illegal, and causes indeterminate or erroneous behavior.
>>> I will check Synospys documentation later on.
>>>
>>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>>> I have a patch already.
>>> Good. Send with Fixes tag if it's upstream ready.
>>>
>>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>>> it off.
>>> I have ATNGW100.
>>>
>>> P.S. Anyway we have to ask Julian to try the kernel with
>>> 8b3444852a2b58129 reverted.
>>>
>> git revert 8b3444852a2b58129
>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>> hint: after resolving the conflicts, mark the corrected paths
>> hint: with 'git add <paths>' or 'git rm <paths>'
>> hint: and commit the result with 'git commit'
> Yeah, that won't work since there are numerous changes afterward.  Just
> revert the entire file back to 4.0 like this:
>
> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>
  CC [M]  drivers/ata/sata_dwc_460ex.o
drivers/ata/sata_dwc_460ex.c:467:36: error: macro "dma_request_channel" 
requires 3 arguments, but only 1 given
  static int dma_request_channel(void)
                                     ^
drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
  {
  ^
drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
drivers/ata/sata_dwc_460ex.c:758:31: error: macro "dma_request_channel" 
requires 3 arguments, but only 1 given
   dma_ch = dma_request_channel();
                                ^
drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’ 
undeclared (first use in this function)
   dma_ch = dma_request_channel();
            ^
drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier is 
reported only once for each function it appears in
drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct 
sata_dwc_device_port’ has no member named ‘dws’
   struct dw_dma_slave *dws = hsdevp->dws;
                                    ^
drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable 
‘mask’ [-Wunused-variable]
   dma_cap_mask_t mask;
                  ^
drivers/ata/sata_dwc_460ex.c: At top level:
drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’ 
defined but not used [-Wunused-variable]
  static struct dw_dma_slave sata_dwc_dma_dws = {
                             ^
drivers/ata/sata_dwc_460ex.c:1279:13: warning: ‘sata_dwc_dma_filter’ 
defined but not used [-Wunused-function]
  static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
              ^
make[2]: *** [drivers/ata/sata_dwc_460ex.o] Error 1
make[1]: *** [drivers/ata] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 13:18                                                                                           ` Julian Margetson
@ 2015-12-21 13:24                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 13:24 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

>>>> P.S. Anyway we have to ask Julian to try the kernel with
>>>> 8b3444852a2b58129 reverted.
>>>>
>>> git revert 8b3444852a2b58129
>>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>>> hint: after resolving the conflicts, mark the corrected paths
>>> hint: with 'git add <paths>' or 'git rm <paths>'
>>> hint: and commit the result with 'git commit'
>> Yeah, that won't work since there are numerous changes afterward.  Just
>> revert the entire file back to 4.0 like this:
>>
>> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>>
>  CC [M]  drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c:467:36: error: macro
> "dma_request_channel" requires 3 arguments, but only 1 given
>  static int dma_request_channel(void)
>                                     ^
> drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’,
> ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
>  {
>  ^
> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
> drivers/ata/sata_dwc_460ex.c:758:31: error: macro
> "dma_request_channel" requires 3 arguments, but only 1 given
>   dma_ch = dma_request_channel();
>                                ^
> drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’
> undeclared (first use in this function)
>   dma_ch = dma_request_channel();
>            ^
> drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier
> is reported only once for each function it appears in
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
> drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct
> sata_dwc_device_port’ has no member named ‘dws’
>   struct dw_dma_slave *dws = hsdevp->dws;
>                                    ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
> drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable
> ‘mask’ [-Wunused-variable]
>   dma_cap_mask_t mask;
>                  ^
> drivers/ata/sata_dwc_460ex.c: At top level:
> drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’
> defined but not used [-Wunused-variable]
>  static struct dw_dma_slave sata_dwc_dma_dws = {
>                             ^
> drivers/ata/sata_dwc_460ex.c:1279:13: warning:
> ‘sata_dwc_dma_filter’ defined but not used [-Wunused-function]
>  static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
>              ^

Those messages do not match the contents of the file from v4.0.
For your convenience, here's the file as it should be.

$ sha1sum drivers/ata/sata_dwc_460ex.c
0f54dfa3a91591101f5de434c3a631a5cd20ff1a  drivers/ata/sata_dwc_460ex.c

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sata_dwc_460ex.c --]
[-- Type: text/x-csrc, Size: 52402 bytes --]

/*
 * drivers/ata/sata_dwc_460ex.c
 *
 * Synopsys DesignWare Cores (DWC) SATA host driver
 *
 * Author: Mark Miesfeld <mmiesfeld@amcc.com>
 *
 * Ported from 2.6.19.2 to 2.6.25/26 by Stefan Roese <sr@denx.de>
 * Copyright 2008 DENX Software Engineering
 *
 * Based on versions provided by AMCC and Synopsys which are:
 *          Copyright 2006 Applied Micro Circuits Corporation
 *          COPYRIGHT (C) 2005  SYNOPSYS, INC.  ALL RIGHTS RESERVED
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 */

#ifdef CONFIG_SATA_DWC_DEBUG
#define DEBUG
#endif

#ifdef CONFIG_SATA_DWC_VDEBUG
#define VERBOSE_DEBUG
#define DEBUG_NCQ
#endif

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/libata.h>
#include <linux/slab.h>
#include "libata.h"

#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>

/* These two are defined in "libata.h" */
#undef	DRV_NAME
#undef	DRV_VERSION

#define DRV_NAME        "sata-dwc"
#define DRV_VERSION     "1.3"

#ifndef out_le32
#define out_le32(a, v)	__raw_writel(__cpu_to_le32(v), (void __iomem *)(a))
#endif

#ifndef in_le32
#define in_le32(a)	__le32_to_cpu(__raw_readl((void __iomem *)(a)))
#endif

#ifndef NO_IRQ
#define NO_IRQ		0
#endif

/* SATA DMA driver Globals */
#define DMA_NUM_CHANS		1
#define DMA_NUM_CHAN_REGS	8

/* SATA DMA Register definitions */
#define AHB_DMA_BRST_DFLT	64	/* 16 data items burst length*/

struct dmareg {
	u32 low;		/* Low bits 0-31 */
	u32 high;		/* High bits 32-63 */
};

/* DMA Per Channel registers */
struct dma_chan_regs {
	struct dmareg sar;	/* Source Address */
	struct dmareg dar;	/* Destination address */
	struct dmareg llp;	/* Linked List Pointer */
	struct dmareg ctl;	/* Control */
	struct dmareg sstat;	/* Source Status not implemented in core */
	struct dmareg dstat;	/* Destination Status not implemented in core*/
	struct dmareg sstatar;	/* Source Status Address not impl in core */
	struct dmareg dstatar;	/* Destination Status Address not implemente */
	struct dmareg cfg;	/* Config */
	struct dmareg sgr;	/* Source Gather */
	struct dmareg dsr;	/* Destination Scatter */
};

/* Generic Interrupt Registers */
struct dma_interrupt_regs {
	struct dmareg tfr;	/* Transfer Interrupt */
	struct dmareg block;	/* Block Interrupt */
	struct dmareg srctran;	/* Source Transfer Interrupt */
	struct dmareg dsttran;	/* Dest Transfer Interrupt */
	struct dmareg error;	/* Error */
};

struct ahb_dma_regs {
	struct dma_chan_regs	chan_regs[DMA_NUM_CHAN_REGS];
	struct dma_interrupt_regs interrupt_raw;	/* Raw Interrupt */
	struct dma_interrupt_regs interrupt_status;	/* Interrupt Status */
	struct dma_interrupt_regs interrupt_mask;	/* Interrupt Mask */
	struct dma_interrupt_regs interrupt_clear;	/* Interrupt Clear */
	struct dmareg		statusInt;	/* Interrupt combined*/
	struct dmareg		rq_srcreg;	/* Src Trans Req */
	struct dmareg		rq_dstreg;	/* Dst Trans Req */
	struct dmareg		rq_sgl_srcreg;	/* Sngl Src Trans Req*/
	struct dmareg		rq_sgl_dstreg;	/* Sngl Dst Trans Req*/
	struct dmareg		rq_lst_srcreg;	/* Last Src Trans Req*/
	struct dmareg		rq_lst_dstreg;	/* Last Dst Trans Req*/
	struct dmareg		dma_cfg;		/* DMA Config */
	struct dmareg		dma_chan_en;		/* DMA Channel Enable*/
	struct dmareg		dma_id;			/* DMA ID */
	struct dmareg		dma_test;		/* DMA Test */
	struct dmareg		res1;			/* reserved */
	struct dmareg		res2;			/* reserved */
	/*
	 * DMA Comp Params
	 * Param 6 = dma_param[0], Param 5 = dma_param[1],
	 * Param 4 = dma_param[2] ...
	 */
	struct dmareg		dma_params[6];
};

/* Data structure for linked list item */
struct lli {
	u32		sar;		/* Source Address */
	u32		dar;		/* Destination address */
	u32		llp;		/* Linked List Pointer */
	struct dmareg	ctl;		/* Control */
	struct dmareg	dstat;		/* Destination Status */
};

enum {
	SATA_DWC_DMAC_LLI_SZ =	(sizeof(struct lli)),
	SATA_DWC_DMAC_LLI_NUM =	256,
	SATA_DWC_DMAC_LLI_TBL_SZ = (SATA_DWC_DMAC_LLI_SZ * \
					SATA_DWC_DMAC_LLI_NUM),
	SATA_DWC_DMAC_TWIDTH_BYTES = 4,
	SATA_DWC_DMAC_CTRL_TSIZE_MAX = (0x00000800 * \
						SATA_DWC_DMAC_TWIDTH_BYTES),
};

/* DMA Register Operation Bits */
enum {
	DMA_EN	=		0x00000001, /* Enable AHB DMA */
	DMA_CTL_LLP_SRCEN =	0x10000000, /* Blk chain enable Src */
	DMA_CTL_LLP_DSTEN =	0x08000000, /* Blk chain enable Dst */
};

#define	DMA_CTL_BLK_TS(size)	((size) & 0x000000FFF)	/* Blk Transfer size */
#define DMA_CHANNEL(ch)		(0x00000001 << (ch))	/* Select channel */
	/* Enable channel */
#define	DMA_ENABLE_CHAN(ch)	((0x00000001 << (ch)) |			\
				 ((0x000000001 << (ch)) << 8))
	/* Disable channel */
#define	DMA_DISABLE_CHAN(ch)	(0x00000000 | ((0x000000001 << (ch)) << 8))
	/* Transfer Type & Flow Controller */
#define	DMA_CTL_TTFC(type)	(((type) & 0x7) << 20)
#define	DMA_CTL_SMS(num)	(((num) & 0x3) << 25) /* Src Master Select */
#define	DMA_CTL_DMS(num)	(((num) & 0x3) << 23)/* Dst Master Select */
	/* Src Burst Transaction Length */
#define DMA_CTL_SRC_MSIZE(size) (((size) & 0x7) << 14)
	/* Dst Burst Transaction Length */
#define	DMA_CTL_DST_MSIZE(size) (((size) & 0x7) << 11)
	/* Source Transfer Width */
#define	DMA_CTL_SRC_TRWID(size) (((size) & 0x7) << 4)
	/* Destination Transfer Width */
#define	DMA_CTL_DST_TRWID(size) (((size) & 0x7) << 1)

/* Assign HW handshaking interface (x) to destination / source peripheral */
#define	DMA_CFG_HW_HS_DEST(int_num) (((int_num) & 0xF) << 11)
#define	DMA_CFG_HW_HS_SRC(int_num) (((int_num) & 0xF) << 7)
#define	DMA_CFG_HW_CH_PRIOR(int_num) (((int_num) & 0xF) << 5)
#define	DMA_LLP_LMS(addr, master) (((addr) & 0xfffffffc) | (master))

/*
 * This define is used to set block chaining disabled in the control low
 * register.  It is already in little endian format so it can be &'d dirctly.
 * It is essentially: cpu_to_le32(~(DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN))
 */
enum {
	DMA_CTL_LLP_DISABLE_LE32 = 0xffffffe7,
	DMA_CTL_TTFC_P2M_DMAC =	0x00000002, /* Per to mem, DMAC cntr */
	DMA_CTL_TTFC_M2P_PER =	0x00000003, /* Mem to per, peripheral cntr */
	DMA_CTL_SINC_INC =	0x00000000, /* Source Address Increment */
	DMA_CTL_SINC_DEC =	0x00000200,
	DMA_CTL_SINC_NOCHANGE =	0x00000400,
	DMA_CTL_DINC_INC =	0x00000000, /* Destination Address Increment */
	DMA_CTL_DINC_DEC =	0x00000080,
	DMA_CTL_DINC_NOCHANGE =	0x00000100,
	DMA_CTL_INT_EN =	0x00000001, /* Interrupt Enable */

/* Channel Configuration Register high bits */
	DMA_CFG_FCMOD_REQ =	0x00000001, /* Flow Control - request based */
	DMA_CFG_PROTCTL	=	(0x00000003 << 2),/* Protection Control */

/* Channel Configuration Register low bits */
	DMA_CFG_RELD_DST =	0x80000000, /* Reload Dest / Src Addr */
	DMA_CFG_RELD_SRC =	0x40000000,
	DMA_CFG_HS_SELSRC =	0x00000800, /* Software handshake Src/ Dest */
	DMA_CFG_HS_SELDST =	0x00000400,
	DMA_CFG_FIFOEMPTY =     (0x00000001 << 9), /* FIFO Empty bit */

/* Channel Linked List Pointer Register */
	DMA_LLP_AHBMASTER1 =	0,	/* List Master Select */
	DMA_LLP_AHBMASTER2 =	1,

	SATA_DWC_MAX_PORTS = 1,

	SATA_DWC_SCR_OFFSET = 0x24,
	SATA_DWC_REG_OFFSET = 0x64,
};

/* DWC SATA Registers */
struct sata_dwc_regs {
	u32 fptagr;		/* 1st party DMA tag */
	u32 fpbor;		/* 1st party DMA buffer offset */
	u32 fptcr;		/* 1st party DMA Xfr count */
	u32 dmacr;		/* DMA Control */
	u32 dbtsr;		/* DMA Burst Transac size */
	u32 intpr;		/* Interrupt Pending */
	u32 intmr;		/* Interrupt Mask */
	u32 errmr;		/* Error Mask */
	u32 llcr;		/* Link Layer Control */
	u32 phycr;		/* PHY Control */
	u32 physr;		/* PHY Status */
	u32 rxbistpd;		/* Recvd BIST pattern def register */
	u32 rxbistpd1;		/* Recvd BIST data dword1 */
	u32 rxbistpd2;		/* Recvd BIST pattern data dword2 */
	u32 txbistpd;		/* Trans BIST pattern def register */
	u32 txbistpd1;		/* Trans BIST data dword1 */
	u32 txbistpd2;		/* Trans BIST data dword2 */
	u32 bistcr;		/* BIST Control Register */
	u32 bistfctr;		/* BIST FIS Count Register */
	u32 bistsr;		/* BIST Status Register */
	u32 bistdecr;		/* BIST Dword Error count register */
	u32 res[15];		/* Reserved locations */
	u32 testr;		/* Test Register */
	u32 versionr;		/* Version Register */
	u32 idr;		/* ID Register */
	u32 unimpl[192];	/* Unimplemented */
	u32 dmadr[256];	/* FIFO Locations in DMA Mode */
};

enum {
	SCR_SCONTROL_DET_ENABLE	=	0x00000001,
	SCR_SSTATUS_DET_PRESENT	=	0x00000001,
	SCR_SERROR_DIAG_X	=	0x04000000,
/* DWC SATA Register Operations */
	SATA_DWC_TXFIFO_DEPTH	=	0x01FF,
	SATA_DWC_RXFIFO_DEPTH	=	0x01FF,
	SATA_DWC_DMACR_TMOD_TXCHEN =	0x00000004,
	SATA_DWC_DMACR_TXCHEN	= (0x00000001 | SATA_DWC_DMACR_TMOD_TXCHEN),
	SATA_DWC_DMACR_RXCHEN	= (0x00000002 | SATA_DWC_DMACR_TMOD_TXCHEN),
	SATA_DWC_DMACR_TXRXCH_CLEAR =	SATA_DWC_DMACR_TMOD_TXCHEN,
	SATA_DWC_INTPR_DMAT	=	0x00000001,
	SATA_DWC_INTPR_NEWFP	=	0x00000002,
	SATA_DWC_INTPR_PMABRT	=	0x00000004,
	SATA_DWC_INTPR_ERR	=	0x00000008,
	SATA_DWC_INTPR_NEWBIST	=	0x00000010,
	SATA_DWC_INTPR_IPF	=	0x10000000,
	SATA_DWC_INTMR_DMATM	=	0x00000001,
	SATA_DWC_INTMR_NEWFPM	=	0x00000002,
	SATA_DWC_INTMR_PMABRTM	=	0x00000004,
	SATA_DWC_INTMR_ERRM	=	0x00000008,
	SATA_DWC_INTMR_NEWBISTM	=	0x00000010,
	SATA_DWC_LLCR_SCRAMEN	=	0x00000001,
	SATA_DWC_LLCR_DESCRAMEN	=	0x00000002,
	SATA_DWC_LLCR_RPDEN	=	0x00000004,
/* This is all error bits, zero's are reserved fields. */
	SATA_DWC_SERROR_ERR_BITS =	0x0FFF0F03
};

#define SATA_DWC_SCR0_SPD_GET(v)	(((v) >> 4) & 0x0000000F)
#define SATA_DWC_DMACR_TX_CLEAR(v)	(((v) & ~SATA_DWC_DMACR_TXCHEN) |\
						 SATA_DWC_DMACR_TMOD_TXCHEN)
#define SATA_DWC_DMACR_RX_CLEAR(v)	(((v) & ~SATA_DWC_DMACR_RXCHEN) |\
						 SATA_DWC_DMACR_TMOD_TXCHEN)
#define SATA_DWC_DBTSR_MWR(size)	(((size)/4) & SATA_DWC_TXFIFO_DEPTH)
#define SATA_DWC_DBTSR_MRD(size)	((((size)/4) & SATA_DWC_RXFIFO_DEPTH)\
						 << 16)
struct sata_dwc_device {
	struct device		*dev;		/* generic device struct */
	struct ata_probe_ent	*pe;		/* ptr to probe-ent */
	struct ata_host		*host;
	u8 __iomem		*reg_base;
	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
	int			irq_dma;
};

#define SATA_DWC_QCMD_MAX	32

struct sata_dwc_device_port {
	struct sata_dwc_device	*hsdev;
	int			cmd_issued[SATA_DWC_QCMD_MAX];
	struct lli		*llit[SATA_DWC_QCMD_MAX];  /* DMA LLI table */
	dma_addr_t		llit_dma[SATA_DWC_QCMD_MAX];
	u32			dma_chan[SATA_DWC_QCMD_MAX];
	int			dma_pending[SATA_DWC_QCMD_MAX];
};

/*
 * Commonly used DWC SATA driver Macros
 */
#define HSDEV_FROM_HOST(host)  ((struct sata_dwc_device *)\
					(host)->private_data)
#define HSDEV_FROM_AP(ap)  ((struct sata_dwc_device *)\
					(ap)->host->private_data)
#define HSDEVP_FROM_AP(ap)   ((struct sata_dwc_device_port *)\
					(ap)->private_data)
#define HSDEV_FROM_QC(qc)	((struct sata_dwc_device *)\
					(qc)->ap->host->private_data)
#define HSDEV_FROM_HSDEVP(p)	((struct sata_dwc_device *)\
						(hsdevp)->hsdev)

enum {
	SATA_DWC_CMD_ISSUED_NOT		= 0,
	SATA_DWC_CMD_ISSUED_PEND	= 1,
	SATA_DWC_CMD_ISSUED_EXEC	= 2,
	SATA_DWC_CMD_ISSUED_NODATA	= 3,

	SATA_DWC_DMA_PENDING_NONE	= 0,
	SATA_DWC_DMA_PENDING_TX		= 1,
	SATA_DWC_DMA_PENDING_RX		= 2,
};

struct sata_dwc_host_priv {
	void	__iomem	 *scr_addr_sstatus;
	u32	sata_dwc_sactive_issued ;
	u32	sata_dwc_sactive_queued ;
	u32	dma_interrupt_count;
	struct	ahb_dma_regs	*sata_dma_regs;
	struct	device	*dwc_dev;
	int	dma_channel;
};

static struct sata_dwc_host_priv host_pvt;

/*
 * Prototypes
 */
static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag);
static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
				u32 check_status);
static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status);
static void sata_dwc_port_stop(struct ata_port *ap);
static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq);
static void dma_dwc_exit(struct sata_dwc_device *hsdev);
static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems,
			      struct lli *lli, dma_addr_t dma_lli,
			      void __iomem *addr, int dir);
static void dma_dwc_xfer_start(int dma_ch);

static const char *get_prot_descript(u8 protocol)
{
	switch ((enum ata_tf_protocols)protocol) {
	case ATA_PROT_NODATA:
		return "ATA no data";
	case ATA_PROT_PIO:
		return "ATA PIO";
	case ATA_PROT_DMA:
		return "ATA DMA";
	case ATA_PROT_NCQ:
		return "ATA NCQ";
	case ATAPI_PROT_NODATA:
		return "ATAPI no data";
	case ATAPI_PROT_PIO:
		return "ATAPI PIO";
	case ATAPI_PROT_DMA:
		return "ATAPI DMA";
	default:
		return "unknown";
	}
}

static const char *get_dma_dir_descript(int dma_dir)
{
	switch ((enum dma_data_direction)dma_dir) {
	case DMA_BIDIRECTIONAL:
		return "bidirectional";
	case DMA_TO_DEVICE:
		return "to device";
	case DMA_FROM_DEVICE:
		return "from device";
	default:
		return "none";
	}
}

static void sata_dwc_tf_dump(struct ata_taskfile *tf)
{
	dev_vdbg(host_pvt.dwc_dev, "taskfile cmd: 0x%02x protocol: %s flags:"
		"0x%lx device: %x\n", tf->command,
		get_prot_descript(tf->protocol), tf->flags, tf->device);
	dev_vdbg(host_pvt.dwc_dev, "feature: 0x%02x nsect: 0x%x lbal: 0x%x "
		"lbam: 0x%x lbah: 0x%x\n", tf->feature, tf->nsect, tf->lbal,
		 tf->lbam, tf->lbah);
	dev_vdbg(host_pvt.dwc_dev, "hob_feature: 0x%02x hob_nsect: 0x%x "
		"hob_lbal: 0x%x hob_lbam: 0x%x hob_lbah: 0x%x\n",
		tf->hob_feature, tf->hob_nsect, tf->hob_lbal, tf->hob_lbam,
		tf->hob_lbah);
}

/*
 * Function: get_burst_length_encode
 * arguments: datalength: length in bytes of data
 * returns value to be programmed in register corresponding to data length
 * This value is effectively the log(base 2) of the length
 */
static  int get_burst_length_encode(int datalength)
{
	int items = datalength >> 2;	/* div by 4 to get lword count */

	if (items >= 64)
		return 5;

	if (items >= 32)
		return 4;

	if (items >= 16)
		return 3;

	if (items >= 8)
		return 2;

	if (items >= 4)
		return 1;

	return 0;
}

static  void clear_chan_interrupts(int c)
{
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.tfr.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.block.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.srctran.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.dsttran.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.error.low),
		 DMA_CHANNEL(c));
}

/*
 * Function: dma_request_channel
 * arguments: None
 * returns channel number if available else -1
 * This function assigns the next available DMA channel from the list to the
 * requester
 */
static int dma_request_channel(void)
{
	/* Check if the channel is not currently in use */
	if (!(in_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low)) &
		DMA_CHANNEL(host_pvt.dma_channel)))
		return host_pvt.dma_channel;
	dev_err(host_pvt.dwc_dev, "%s Channel %d is currently in use\n",
		__func__, host_pvt.dma_channel);
	return -1;
}

/*
 * Function: dma_dwc_interrupt
 * arguments: irq, dev_id, pt_regs
 * returns channel number if available else -1
 * Interrupt Handler for DW AHB SATA DMA
 */
static irqreturn_t dma_dwc_interrupt(int irq, void *hsdev_instance)
{
	int chan;
	u32 tfr_reg, err_reg;
	unsigned long flags;
	struct sata_dwc_device *hsdev = hsdev_instance;
	struct ata_host *host = (struct ata_host *)hsdev->host;
	struct ata_port *ap;
	struct sata_dwc_device_port *hsdevp;
	u8 tag = 0;
	unsigned int port = 0;

	spin_lock_irqsave(&host->lock, flags);
	ap = host->ports[port];
	hsdevp = HSDEVP_FROM_AP(ap);
	tag = ap->link.active_tag;

	tfr_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.tfr\
			.low));
	err_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.error\
			.low));

	dev_dbg(ap->dev, "eot=0x%08x err=0x%08x pending=%d active port=%d\n",
		tfr_reg, err_reg, hsdevp->dma_pending[tag], port);

	chan = host_pvt.dma_channel;
	if (chan >= 0) {
		/* Check for end-of-transfer interrupt. */
		if (tfr_reg & DMA_CHANNEL(chan)) {
			/*
			 * Each DMA command produces 2 interrupts.  Only
			 * complete the command after both interrupts have been
			 * seen. (See sata_dwc_isr())
			 */
			host_pvt.dma_interrupt_count++;
			sata_dwc_clear_dmacr(hsdevp, tag);

			if (hsdevp->dma_pending[tag] ==
			    SATA_DWC_DMA_PENDING_NONE) {
				dev_err(ap->dev, "DMA not pending eot=0x%08x "
					"err=0x%08x tag=0x%02x pending=%d\n",
					tfr_reg, err_reg, tag,
					hsdevp->dma_pending[tag]);
			}

			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);

			/* Clear the interrupt */
			out_le32(&(host_pvt.sata_dma_regs->interrupt_clear\
				.tfr.low),
				 DMA_CHANNEL(chan));
		}

		/* Check for error interrupt. */
		if (err_reg & DMA_CHANNEL(chan)) {
			/* TODO Need error handler ! */
			dev_err(ap->dev, "error interrupt err_reg=0x%08x\n",
				err_reg);

			/* Clear the interrupt. */
			out_le32(&(host_pvt.sata_dma_regs->interrupt_clear\
				.error.low),
				 DMA_CHANNEL(chan));
		}
	}
	spin_unlock_irqrestore(&host->lock, flags);
	return IRQ_HANDLED;
}

/*
 * Function: dma_request_interrupts
 * arguments: hsdev
 * returns status
 * This function registers ISR for a particular DMA channel interrupt
 */
static int dma_request_interrupts(struct sata_dwc_device *hsdev, int irq)
{
	int retval = 0;
	int chan = host_pvt.dma_channel;

	if (chan >= 0) {
		/* Unmask error interrupt */
		out_le32(&(host_pvt.sata_dma_regs)->interrupt_mask.error.low,
			 DMA_ENABLE_CHAN(chan));

		/* Unmask end-of-transfer interrupt */
		out_le32(&(host_pvt.sata_dma_regs)->interrupt_mask.tfr.low,
			 DMA_ENABLE_CHAN(chan));
	}

	retval = request_irq(irq, dma_dwc_interrupt, 0, "SATA DMA", hsdev);
	if (retval) {
		dev_err(host_pvt.dwc_dev, "%s: could not get IRQ %d\n",
		__func__, irq);
		return -ENODEV;
	}

	/* Mark this interrupt as requested */
	hsdev->irq_dma = irq;
	return 0;
}

/*
 * Function: map_sg_to_lli
 * The Synopsis driver has a comment proposing that better performance
 * is possible by only enabling interrupts on the last item in the linked list.
 * However, it seems that could be a problem if an error happened on one of the
 * first items.  The transfer would halt, but no error interrupt would occur.
 * Currently this function sets interrupts enabled for each linked list item:
 * DMA_CTL_INT_EN.
 */
static int map_sg_to_lli(struct scatterlist *sg, int num_elems,
			struct lli *lli, dma_addr_t dma_lli,
			void __iomem *dmadr_addr, int dir)
{
	int i, idx = 0;
	int fis_len = 0;
	dma_addr_t next_llp;
	int bl;
	int sms_val, dms_val;

	sms_val = 0;
	dms_val = 1 + host_pvt.dma_channel;
	dev_dbg(host_pvt.dwc_dev,
		"%s: sg=%p nelem=%d lli=%p dma_lli=0x%pad dmadr=0x%p\n",
		__func__, sg, num_elems, lli, &dma_lli, dmadr_addr);

	bl = get_burst_length_encode(AHB_DMA_BRST_DFLT);

	for (i = 0; i < num_elems; i++, sg++) {
		u32 addr, offset;
		u32 sg_len, len;

		addr = (u32) sg_dma_address(sg);
		sg_len = sg_dma_len(sg);

		dev_dbg(host_pvt.dwc_dev, "%s: elem=%d sg_addr=0x%x sg_len"
			"=%d\n", __func__, i, addr, sg_len);

		while (sg_len) {
			if (idx >= SATA_DWC_DMAC_LLI_NUM) {
				/* The LLI table is not large enough. */
				dev_err(host_pvt.dwc_dev, "LLI table overrun "
				"(idx=%d)\n", idx);
				break;
			}
			len = (sg_len > SATA_DWC_DMAC_CTRL_TSIZE_MAX) ?
				SATA_DWC_DMAC_CTRL_TSIZE_MAX : sg_len;

			offset = addr & 0xffff;
			if ((offset + sg_len) > 0x10000)
				len = 0x10000 - offset;

			/*
			 * Make sure a LLI block is not created that will span
			 * 8K max FIS boundary.  If the block spans such a FIS
			 * boundary, there is a chance that a DMA burst will
			 * cross that boundary -- this results in an error in
			 * the host controller.
			 */
			if (fis_len + len > 8192) {
				dev_dbg(host_pvt.dwc_dev, "SPLITTING: fis_len="
					"%d(0x%x) len=%d(0x%x)\n", fis_len,
					 fis_len, len, len);
				len = 8192 - fis_len;
				fis_len = 0;
			} else {
				fis_len += len;
			}
			if (fis_len == 8192)
				fis_len = 0;

			/*
			 * Set DMA addresses and lower half of control register
			 * based on direction.
			 */
			if (dir == DMA_FROM_DEVICE) {
				lli[idx].dar = cpu_to_le32(addr);
				lli[idx].sar = cpu_to_le32((u32)dmadr_addr);

				lli[idx].ctl.low = cpu_to_le32(
					DMA_CTL_TTFC(DMA_CTL_TTFC_P2M_DMAC) |
					DMA_CTL_SMS(sms_val) |
					DMA_CTL_DMS(dms_val) |
					DMA_CTL_SRC_MSIZE(bl) |
					DMA_CTL_DST_MSIZE(bl) |
					DMA_CTL_SINC_NOCHANGE |
					DMA_CTL_SRC_TRWID(2) |
					DMA_CTL_DST_TRWID(2) |
					DMA_CTL_INT_EN |
					DMA_CTL_LLP_SRCEN |
					DMA_CTL_LLP_DSTEN);
			} else {	/* DMA_TO_DEVICE */
				lli[idx].sar = cpu_to_le32(addr);
				lli[idx].dar = cpu_to_le32((u32)dmadr_addr);

				lli[idx].ctl.low = cpu_to_le32(
					DMA_CTL_TTFC(DMA_CTL_TTFC_M2P_PER) |
					DMA_CTL_SMS(dms_val) |
					DMA_CTL_DMS(sms_val) |
					DMA_CTL_SRC_MSIZE(bl) |
					DMA_CTL_DST_MSIZE(bl) |
					DMA_CTL_DINC_NOCHANGE |
					DMA_CTL_SRC_TRWID(2) |
					DMA_CTL_DST_TRWID(2) |
					DMA_CTL_INT_EN |
					DMA_CTL_LLP_SRCEN |
					DMA_CTL_LLP_DSTEN);
			}

			dev_dbg(host_pvt.dwc_dev, "%s setting ctl.high len: "
				"0x%08x val: 0x%08x\n", __func__,
				len, DMA_CTL_BLK_TS(len / 4));

			/* Program the LLI CTL high register */
			lli[idx].ctl.high = cpu_to_le32(DMA_CTL_BLK_TS\
						(len / 4));

			/* Program the next pointer.  The next pointer must be
			 * the physical address, not the virtual address.
			 */
			next_llp = (dma_lli + ((idx + 1) * sizeof(struct \
							lli)));

			/* The last 2 bits encode the list master select. */
			next_llp = DMA_LLP_LMS(next_llp, DMA_LLP_AHBMASTER2);

			lli[idx].llp = cpu_to_le32(next_llp);
			idx++;
			sg_len -= len;
			addr += len;
		}
	}

	/*
	 * The last next ptr has to be zero and the last control low register
	 * has to have LLP_SRC_EN and LLP_DST_EN (linked list pointer source
	 * and destination enable) set back to 0 (disabled.) This is what tells
	 * the core that this is the last item in the linked list.
	 */
	if (idx) {
		lli[idx-1].llp = 0x00000000;
		lli[idx-1].ctl.low &= DMA_CTL_LLP_DISABLE_LE32;

		/* Flush cache to memory */
		dma_cache_sync(NULL, lli, (sizeof(struct lli) * idx),
			       DMA_BIDIRECTIONAL);
	}

	return idx;
}

/*
 * Function: dma_dwc_xfer_start
 * arguments: Channel number
 * Return : None
 * Enables the DMA channel
 */
static void dma_dwc_xfer_start(int dma_ch)
{
	/* Enable the DMA channel */
	out_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low),
		 in_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low)) |
		 DMA_ENABLE_CHAN(dma_ch));
}

static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems,
			      struct lli *lli, dma_addr_t dma_lli,
			      void __iomem *addr, int dir)
{
	int dma_ch;
	int num_lli;
	/* Acquire DMA channel */
	dma_ch = dma_request_channel();
	if (dma_ch == -1) {
		dev_err(host_pvt.dwc_dev, "%s: dma channel unavailable\n",
			 __func__);
		return -EAGAIN;
	}

	/* Convert SG list to linked list of items (LLIs) for AHB DMA */
	num_lli = map_sg_to_lli(sg, num_elems, lli, dma_lli, addr, dir);

	dev_dbg(host_pvt.dwc_dev, "%s sg: 0x%p, count: %d lli: %p dma_lli:"
		" 0x%0xlx addr: %p lli count: %d\n", __func__, sg, num_elems,
		 lli, (u32)dma_lli, addr, num_lli);

	clear_chan_interrupts(dma_ch);

	/* Program the CFG register. */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.high),
		 DMA_CFG_HW_HS_SRC(dma_ch) | DMA_CFG_HW_HS_DEST(dma_ch) |
		 DMA_CFG_PROTCTL | DMA_CFG_FCMOD_REQ);
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.low),
		 DMA_CFG_HW_CH_PRIOR(dma_ch));

	/* Program the address of the linked list */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].llp.low),
		 DMA_LLP_LMS(dma_lli, DMA_LLP_AHBMASTER2));

	/* Program the CTL register with src enable / dst enable */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].ctl.low),
		 DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN);
	return dma_ch;
}

/*
 * Function: dma_dwc_exit
 * arguments: None
 * returns status
 * This function exits the SATA DMA driver
 */
static void dma_dwc_exit(struct sata_dwc_device *hsdev)
{
	dev_dbg(host_pvt.dwc_dev, "%s:\n", __func__);
	if (host_pvt.sata_dma_regs) {
		iounmap((void __iomem *)host_pvt.sata_dma_regs);
		host_pvt.sata_dma_regs = NULL;
	}

	if (hsdev->irq_dma) {
		free_irq(hsdev->irq_dma, hsdev);
		hsdev->irq_dma = 0;
	}
}

/*
 * Function: dma_dwc_init
 * arguments: hsdev
 * returns status
 * This function initializes the SATA DMA driver
 */
static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq)
{
	int err;

	err = dma_request_interrupts(hsdev, irq);
	if (err) {
		dev_err(host_pvt.dwc_dev, "%s: dma_request_interrupts returns"
			" %d\n", __func__, err);
		return err;
	}

	/* Enabe DMA */
	out_le32(&(host_pvt.sata_dma_regs->dma_cfg.low), DMA_EN);

	dev_notice(host_pvt.dwc_dev, "DMA initialized\n");
	dev_dbg(host_pvt.dwc_dev, "SATA DMA registers=0x%p\n", host_pvt.\
		sata_dma_regs);

	return 0;
}

static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val)
{
	if (scr > SCR_NOTIFICATION) {
		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
			__func__, scr);
		return -EINVAL;
	}

	*val = in_le32(link->ap->ioaddr.scr_addr + (scr * 4));
	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=val=0x%08x\n",
		__func__, link->ap->print_id, scr, *val);

	return 0;
}

static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val)
{
	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=val=0x%08x\n",
		__func__, link->ap->print_id, scr, val);
	if (scr > SCR_NOTIFICATION) {
		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
			 __func__, scr);
		return -EINVAL;
	}
	out_le32(link->ap->ioaddr.scr_addr + (scr * 4), val);

	return 0;
}

static u32 core_scr_read(unsigned int scr)
{
	return in_le32(host_pvt.scr_addr_sstatus + (scr * 4));
}

static void core_scr_write(unsigned int scr, u32 val)
{
	out_le32(host_pvt.scr_addr_sstatus + (scr * 4), val);
}

static void clear_serror(void)
{
	u32 val;
	val = core_scr_read(SCR_ERROR);
	core_scr_write(SCR_ERROR, val);
}

static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit)
{
	out_le32(&hsdev->sata_dwc_regs->intpr,
		 in_le32(&hsdev->sata_dwc_regs->intpr));
}

static u32 qcmd_tag_to_mask(u8 tag)
{
	return 0x00000001 << (tag & 0x1f);
}

/* See ahci.c */
static void sata_dwc_error_intr(struct ata_port *ap,
				struct sata_dwc_device *hsdev, uint intpr)
{
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	struct ata_eh_info *ehi = &ap->link.eh_info;
	unsigned int err_mask = 0, action = 0;
	struct ata_queued_cmd *qc;
	u32 serror;
	u8 status, tag;
	u32 err_reg;

	ata_ehi_clear_desc(ehi);

	serror = core_scr_read(SCR_ERROR);
	status = ap->ops->sff_check_status(ap);

	err_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.error.\
			low));
	tag = ap->link.active_tag;

	dev_err(ap->dev, "%s SCR_ERROR=0x%08x intpr=0x%08x status=0x%08x "
		"dma_intp=%d pending=%d issued=%d dma_err_status=0x%08x\n",
		__func__, serror, intpr, status, host_pvt.dma_interrupt_count,
		hsdevp->dma_pending[tag], hsdevp->cmd_issued[tag], err_reg);

	/* Clear error register and interrupt bit */
	clear_serror();
	clear_interrupt_bit(hsdev, SATA_DWC_INTPR_ERR);

	/* This is the only error happening now.  TODO check for exact error */

	err_mask |= AC_ERR_HOST_BUS;
	action |= ATA_EH_RESET;

	/* Pass this on to EH */
	ehi->serror |= serror;
	ehi->action |= action;

	qc = ata_qc_from_tag(ap, tag);
	if (qc)
		qc->err_mask |= err_mask;
	else
		ehi->err_mask |= err_mask;

	ata_port_abort(ap);
}

/*
 * Function : sata_dwc_isr
 * arguments : irq, void *dev_instance, struct pt_regs *regs
 * Return value : irqreturn_t - status of IRQ
 * This Interrupt handler called via port ops registered function.
 * .irq_handler = sata_dwc_isr
 */
static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
{
	struct ata_host *host = (struct ata_host *)dev_instance;
	struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host);
	struct ata_port *ap;
	struct ata_queued_cmd *qc;
	unsigned long flags;
	u8 status, tag;
	int handled, num_processed, port = 0;
	uint intpr, sactive, sactive2, tag_mask;
	struct sata_dwc_device_port *hsdevp;
	host_pvt.sata_dwc_sactive_issued = 0;

	spin_lock_irqsave(&host->lock, flags);

	/* Read the interrupt register */
	intpr = in_le32(&hsdev->sata_dwc_regs->intpr);

	ap = host->ports[port];
	hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s intpr=0x%08x active_tag=%d\n", __func__, intpr,
		ap->link.active_tag);

	/* Check for error interrupt */
	if (intpr & SATA_DWC_INTPR_ERR) {
		sata_dwc_error_intr(ap, hsdev, intpr);
		handled = 1;
		goto DONE;
	}

	/* Check for DMA SETUP FIS (FP DMA) interrupt */
	if (intpr & SATA_DWC_INTPR_NEWFP) {
		clear_interrupt_bit(hsdev, SATA_DWC_INTPR_NEWFP);

		tag = (u8)(in_le32(&hsdev->sata_dwc_regs->fptagr));
		dev_dbg(ap->dev, "%s: NEWFP tag=%d\n", __func__, tag);
		if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_PEND)
			dev_warn(ap->dev, "CMD tag=%d not pending?\n", tag);

		host_pvt.sata_dwc_sactive_issued |= qcmd_tag_to_mask(tag);

		qc = ata_qc_from_tag(ap, tag);
		/*
		 * Start FP DMA for NCQ command.  At this point the tag is the
		 * active tag.  It is the tag that matches the command about to
		 * be completed.
		 */
		qc->ap->link.active_tag = tag;
		sata_dwc_bmdma_start_by_tag(qc, tag);

		handled = 1;
		goto DONE;
	}
	sactive = core_scr_read(SCR_ACTIVE);
	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;

	/* If no sactive issued and tag_mask is zero then this is not NCQ */
	if (host_pvt.sata_dwc_sactive_issued == 0 && tag_mask == 0) {
		if (ap->link.active_tag == ATA_TAG_POISON)
			tag = 0;
		else
			tag = ap->link.active_tag;
		qc = ata_qc_from_tag(ap, tag);

		/* DEV interrupt w/ no active qc? */
		if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) {
			dev_err(ap->dev, "%s interrupt with no active qc "
				"qc=%p\n", __func__, qc);
			ap->ops->sff_check_status(ap);
			handled = 1;
			goto DONE;
		}
		status = ap->ops->sff_check_status(ap);

		qc->ap->link.active_tag = tag;
		hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT;

		if (status & ATA_ERR) {
			dev_dbg(ap->dev, "interrupt ATA_ERR (0x%x)\n", status);
			sata_dwc_qc_complete(ap, qc, 1);
			handled = 1;
			goto DONE;
		}

		dev_dbg(ap->dev, "%s non-NCQ cmd interrupt, protocol: %s\n",
			__func__, get_prot_descript(qc->tf.protocol));
DRVSTILLBUSY:
		if (ata_is_dma(qc->tf.protocol)) {
			/*
			 * Each DMA transaction produces 2 interrupts. The DMAC
			 * transfer complete interrupt and the SATA controller
			 * operation done interrupt. The command should be
			 * completed only after both interrupts are seen.
			 */
			host_pvt.dma_interrupt_count++;
			if (hsdevp->dma_pending[tag] == \
					SATA_DWC_DMA_PENDING_NONE) {
				dev_err(ap->dev, "%s: DMA not pending "
					"intpr=0x%08x status=0x%08x pending"
					"=%d\n", __func__, intpr, status,
					hsdevp->dma_pending[tag]);
			}

			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);
		} else if (ata_is_pio(qc->tf.protocol)) {
			ata_sff_hsm_move(ap, qc, status, 0);
			handled = 1;
			goto DONE;
		} else {
			if (unlikely(sata_dwc_qc_complete(ap, qc, 1)))
				goto DRVSTILLBUSY;
		}

		handled = 1;
		goto DONE;
	}

	/*
	 * This is a NCQ command. At this point we need to figure out for which
	 * tags we have gotten a completion interrupt.  One interrupt may serve
	 * as completion for more than one operation when commands are queued
	 * (NCQ).  We need to process each completed command.
	 */

	 /* process completed commands */
	sactive = core_scr_read(SCR_ACTIVE);
	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;

	if (sactive != 0 || (host_pvt.sata_dwc_sactive_issued) > 1 || \
							tag_mask > 1) {
		dev_dbg(ap->dev, "%s NCQ:sactive=0x%08x  sactive_issued=0x%08x"
			"tag_mask=0x%08x\n", __func__, sactive,
			host_pvt.sata_dwc_sactive_issued, tag_mask);
	}

	if ((tag_mask | (host_pvt.sata_dwc_sactive_issued)) != \
					(host_pvt.sata_dwc_sactive_issued)) {
		dev_warn(ap->dev, "Bad tag mask?  sactive=0x%08x "
			 "(host_pvt.sata_dwc_sactive_issued)=0x%08x  tag_mask"
			 "=0x%08x\n", sactive, host_pvt.sata_dwc_sactive_issued,
			  tag_mask);
	}

	/* read just to clear ... not bad if currently still busy */
	status = ap->ops->sff_check_status(ap);
	dev_dbg(ap->dev, "%s ATA status register=0x%x\n", __func__, status);

	tag = 0;
	num_processed = 0;
	while (tag_mask) {
		num_processed++;
		while (!(tag_mask & 0x00000001)) {
			tag++;
			tag_mask <<= 1;
		}

		tag_mask &= (~0x00000001);
		qc = ata_qc_from_tag(ap, tag);

		/* To be picked up by completion functions */
		qc->ap->link.active_tag = tag;
		hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT;

		/* Let libata/scsi layers handle error */
		if (status & ATA_ERR) {
			dev_dbg(ap->dev, "%s ATA_ERR (0x%x)\n", __func__,
				status);
			sata_dwc_qc_complete(ap, qc, 1);
			handled = 1;
			goto DONE;
		}

		/* Process completed command */
		dev_dbg(ap->dev, "%s NCQ command, protocol: %s\n", __func__,
			get_prot_descript(qc->tf.protocol));
		if (ata_is_dma(qc->tf.protocol)) {
			host_pvt.dma_interrupt_count++;
			if (hsdevp->dma_pending[tag] == \
					SATA_DWC_DMA_PENDING_NONE)
				dev_warn(ap->dev, "%s: DMA not pending?\n",
					__func__);
			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);
		} else {
			if (unlikely(sata_dwc_qc_complete(ap, qc, 1)))
				goto STILLBUSY;
		}
		continue;

STILLBUSY:
		ap->stats.idle_irq++;
		dev_warn(ap->dev, "STILL BUSY IRQ ata%d: irq trap\n",
			ap->print_id);
	} /* while tag_mask */

	/*
	 * Check to see if any commands completed while we were processing our
	 * initial set of completed commands (read status clears interrupts,
	 * so we might miss a completed command interrupt if one came in while
	 * we were processing --we read status as part of processing a completed
	 * command).
	 */
	sactive2 = core_scr_read(SCR_ACTIVE);
	if (sactive2 != sactive) {
		dev_dbg(ap->dev, "More completed - sactive=0x%x sactive2"
			"=0x%x\n", sactive, sactive2);
	}
	handled = 1;

DONE:
	spin_unlock_irqrestore(&host->lock, flags);
	return IRQ_RETVAL(handled);
}

static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag)
{
	struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp);

	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX) {
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			 SATA_DWC_DMACR_RX_CLEAR(
				 in_le32(&(hsdev->sata_dwc_regs->dmacr))));
	} else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX) {
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			 SATA_DWC_DMACR_TX_CLEAR(
				 in_le32(&(hsdev->sata_dwc_regs->dmacr))));
	} else {
		/*
		 * This should not happen, it indicates the driver is out of
		 * sync.  If it does happen, clear dmacr anyway.
		 */
		dev_err(host_pvt.dwc_dev, "%s DMA protocol RX and"
			"TX DMA not pending tag=0x%02x pending=%d"
			" dmacr: 0x%08x\n", __func__, tag,
			hsdevp->dma_pending[tag],
			in_le32(&(hsdev->sata_dwc_regs->dmacr)));
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			SATA_DWC_DMACR_TXRXCH_CLEAR);
	}
}

static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status)
{
	struct ata_queued_cmd *qc;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	u8 tag = 0;

	tag = ap->link.active_tag;
	qc = ata_qc_from_tag(ap, tag);
	if (!qc) {
		dev_err(ap->dev, "failed to get qc");
		return;
	}

#ifdef DEBUG_NCQ
	if (tag > 0) {
		dev_info(ap->dev, "%s tag=%u cmd=0x%02x dma dir=%s proto=%s "
			 "dmacr=0x%08x\n", __func__, qc->tag, qc->tf.command,
			 get_dma_dir_descript(qc->dma_dir),
			 get_prot_descript(qc->tf.protocol),
			 in_le32(&(hsdev->sata_dwc_regs->dmacr)));
	}
#endif

	if (ata_is_dma(qc->tf.protocol)) {
		if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) {
			dev_err(ap->dev, "%s DMA protocol RX and TX DMA not "
				"pending dmacr: 0x%08x\n", __func__,
				in_le32(&(hsdev->sata_dwc_regs->dmacr)));
		}

		hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_NONE;
		sata_dwc_qc_complete(ap, qc, check_status);
		ap->link.active_tag = ATA_TAG_POISON;
	} else {
		sata_dwc_qc_complete(ap, qc, check_status);
	}
}

static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
				u32 check_status)
{
	u8 status = 0;
	u32 mask = 0x0;
	u8 tag = qc->tag;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	host_pvt.sata_dwc_sactive_queued = 0;
	dev_dbg(ap->dev, "%s checkstatus? %x\n", __func__, check_status);

	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX)
		dev_err(ap->dev, "TX DMA PENDING\n");
	else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX)
		dev_err(ap->dev, "RX DMA PENDING\n");
	dev_dbg(ap->dev, "QC complete cmd=0x%02x status=0x%02x ata%u:"
		" protocol=%d\n", qc->tf.command, status, ap->print_id,
		 qc->tf.protocol);

	/* clear active bit */
	mask = (~(qcmd_tag_to_mask(tag)));
	host_pvt.sata_dwc_sactive_queued = (host_pvt.sata_dwc_sactive_queued) \
						& mask;
	host_pvt.sata_dwc_sactive_issued = (host_pvt.sata_dwc_sactive_issued) \
						& mask;
	ata_qc_complete(qc);
	return 0;
}

static void sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev)
{
	/* Enable selective interrupts by setting the interrupt maskregister*/
	out_le32(&hsdev->sata_dwc_regs->intmr,
		 SATA_DWC_INTMR_ERRM |
		 SATA_DWC_INTMR_NEWFPM |
		 SATA_DWC_INTMR_PMABRTM |
		 SATA_DWC_INTMR_DMATM);
	/*
	 * Unmask the error bits that should trigger an error interrupt by
	 * setting the error mask register.
	 */
	out_le32(&hsdev->sata_dwc_regs->errmr, SATA_DWC_SERROR_ERR_BITS);

	dev_dbg(host_pvt.dwc_dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
		 __func__, in_le32(&hsdev->sata_dwc_regs->intmr),
		in_le32(&hsdev->sata_dwc_regs->errmr));
}

static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
{
	port->cmd_addr = (void __iomem *)base + 0x00;
	port->data_addr = (void __iomem *)base + 0x00;

	port->error_addr = (void __iomem *)base + 0x04;
	port->feature_addr = (void __iomem *)base + 0x04;

	port->nsect_addr = (void __iomem *)base + 0x08;

	port->lbal_addr = (void __iomem *)base + 0x0c;
	port->lbam_addr = (void __iomem *)base + 0x10;
	port->lbah_addr = (void __iomem *)base + 0x14;

	port->device_addr = (void __iomem *)base + 0x18;
	port->command_addr = (void __iomem *)base + 0x1c;
	port->status_addr = (void __iomem *)base + 0x1c;

	port->altstatus_addr = (void __iomem *)base + 0x20;
	port->ctl_addr = (void __iomem *)base + 0x20;
}

/*
 * Function : sata_dwc_port_start
 * arguments : struct ata_ioports *port
 * Return value : returns 0 if success, error code otherwise
 * This function allocates the scatter gather LLI table for AHB DMA
 */
static int sata_dwc_port_start(struct ata_port *ap)
{
	int err = 0;
	struct sata_dwc_device *hsdev;
	struct sata_dwc_device_port *hsdevp = NULL;
	struct device *pdev;
	int i;

	hsdev = HSDEV_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: port_no=%d\n", __func__, ap->port_no);

	hsdev->host = ap->host;
	pdev = ap->host->dev;
	if (!pdev) {
		dev_err(ap->dev, "%s: no ap->host->dev\n", __func__);
		err = -ENODEV;
		goto CLEANUP;
	}

	/* Allocate Port Struct */
	hsdevp = kzalloc(sizeof(*hsdevp), GFP_KERNEL);
	if (!hsdevp) {
		dev_err(ap->dev, "%s: kmalloc failed for hsdevp\n", __func__);
		err = -ENOMEM;
		goto CLEANUP;
	}
	hsdevp->hsdev = hsdev;

	for (i = 0; i < SATA_DWC_QCMD_MAX; i++)
		hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT;

	ap->bmdma_prd = NULL;	/* set these so libata doesn't use them */
	ap->bmdma_prd_dma = 0;

	/*
	 * DMA - Assign scatter gather LLI table. We can't use the libata
	 * version since it's PRD is IDE PCI specific.
	 */
	for (i = 0; i < SATA_DWC_QCMD_MAX; i++) {
		hsdevp->llit[i] = dma_alloc_coherent(pdev,
						     SATA_DWC_DMAC_LLI_TBL_SZ,
						     &(hsdevp->llit_dma[i]),
						     GFP_ATOMIC);
		if (!hsdevp->llit[i]) {
			dev_err(ap->dev, "%s: dma_alloc_coherent failed\n",
				 __func__);
			err = -ENOMEM;
			goto CLEANUP_ALLOC;
		}
	}

	if (ap->port_no == 0)  {
		dev_dbg(ap->dev, "%s: clearing TXCHEN, RXCHEN in DMAC\n",
			__func__);
		out_le32(&hsdev->sata_dwc_regs->dmacr,
			 SATA_DWC_DMACR_TXRXCH_CLEAR);

		dev_dbg(ap->dev, "%s: setting burst size in DBTSR\n",
			 __func__);
		out_le32(&hsdev->sata_dwc_regs->dbtsr,
			 (SATA_DWC_DBTSR_MWR(AHB_DMA_BRST_DFLT) |
			  SATA_DWC_DBTSR_MRD(AHB_DMA_BRST_DFLT)));
	}

	/* Clear any error bits before libata starts issuing commands */
	clear_serror();
	ap->private_data = hsdevp;
	dev_dbg(ap->dev, "%s: done\n", __func__);
	return 0;

CLEANUP_ALLOC:
	kfree(hsdevp);
CLEANUP:
	dev_dbg(ap->dev, "%s: fail. ap->id = %d\n", __func__, ap->print_id);
	return err;
}

static void sata_dwc_port_stop(struct ata_port *ap)
{
	int i;
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: ap->id = %d\n", __func__, ap->print_id);

	if (hsdevp && hsdev) {
		/* deallocate LLI table */
		for (i = 0; i < SATA_DWC_QCMD_MAX; i++) {
			dma_free_coherent(ap->host->dev,
					  SATA_DWC_DMAC_LLI_TBL_SZ,
					 hsdevp->llit[i], hsdevp->llit_dma[i]);
		}

		kfree(hsdevp);
	}
	ap->private_data = NULL;
}

/*
 * Function : sata_dwc_exec_command_by_tag
 * arguments : ata_port *ap, ata_taskfile *tf, u8 tag, u32 cmd_issued
 * Return value : None
 * This function keeps track of individual command tag ids and calls
 * ata_exec_command in libata
 */
static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
					 struct ata_taskfile *tf,
					 u8 tag, u32 cmd_issued)
{
	unsigned long flags;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
		ata_get_cmd_descript(tf->command), tag);

	spin_lock_irqsave(&ap->host->lock, flags);
	hsdevp->cmd_issued[tag] = cmd_issued;
	spin_unlock_irqrestore(&ap->host->lock, flags);
	/*
	 * Clear SError before executing a new command.
	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
	 * managed SError register for the disk needs to be done before the
	 * task file is loaded.
	 */
	clear_serror();
	ata_sff_exec_command(ap, tf);
}

static void sata_dwc_bmdma_setup_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	sata_dwc_exec_command_by_tag(qc->ap, &qc->tf, tag,
				     SATA_DWC_CMD_ISSUED_PEND);
}

static void sata_dwc_bmdma_setup(struct ata_queued_cmd *qc)
{
	u8 tag = qc->tag;

	if (ata_is_ncq(qc->tf.protocol)) {
		dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n",
			__func__, qc->ap->link.sactive, tag);
	} else {
		tag = 0;
	}
	sata_dwc_bmdma_setup_by_tag(qc, tag);
}

static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	int start_dma;
	u32 reg, dma_chan;
	struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc);
	struct ata_port *ap = qc->ap;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	int dir = qc->dma_dir;
	dma_chan = hsdevp->dma_chan[tag];

	if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_NOT) {
		start_dma = 1;
		if (dir == DMA_TO_DEVICE)
			hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_TX;
		else
			hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_RX;
	} else {
		dev_err(ap->dev, "%s: Command not pending cmd_issued=%d "
			"(tag=%d) DMA NOT started\n", __func__,
			hsdevp->cmd_issued[tag], tag);
		start_dma = 0;
	}

	dev_dbg(ap->dev, "%s qc=%p tag: %x cmd: 0x%02x dma_dir: %s "
		"start_dma? %x\n", __func__, qc, tag, qc->tf.command,
		get_dma_dir_descript(qc->dma_dir), start_dma);
	sata_dwc_tf_dump(&(qc->tf));

	if (start_dma) {
		reg = core_scr_read(SCR_ERROR);
		if (reg & SATA_DWC_SERROR_ERR_BITS) {
			dev_err(ap->dev, "%s: ****** SError=0x%08x ******\n",
				__func__, reg);
		}

		if (dir == DMA_TO_DEVICE)
			out_le32(&hsdev->sata_dwc_regs->dmacr,
				SATA_DWC_DMACR_TXCHEN);
		else
			out_le32(&hsdev->sata_dwc_regs->dmacr,
				SATA_DWC_DMACR_RXCHEN);

		/* Enable AHB DMA transfer on the specified channel */
		dma_dwc_xfer_start(dma_chan);
	}
}

static void sata_dwc_bmdma_start(struct ata_queued_cmd *qc)
{
	u8 tag = qc->tag;

	if (ata_is_ncq(qc->tf.protocol)) {
		dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n",
			__func__, qc->ap->link.sactive, tag);
	} else {
		tag = 0;
	}
	dev_dbg(qc->ap->dev, "%s\n", __func__);
	sata_dwc_bmdma_start_by_tag(qc, tag);
}

/*
 * Function : sata_dwc_qc_prep_by_tag
 * arguments : ata_queued_cmd *qc, u8 tag
 * Return value : None
 * qc_prep for a particular queued command based on tag
 */
static void sata_dwc_qc_prep_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	struct scatterlist *sg = qc->sg;
	struct ata_port *ap = qc->ap;
	int dma_chan;
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: port=%d dma dir=%s n_elem=%d\n",
		__func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
		 qc->n_elem);

	dma_chan = dma_dwc_xfer_setup(sg, qc->n_elem, hsdevp->llit[tag],
				      hsdevp->llit_dma[tag],
				      (void __iomem *)&hsdev->sata_dwc_regs->dmadr,
				      qc->dma_dir);
	if (dma_chan < 0) {
		dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns err %d\n",
			__func__, dma_chan);
		return;
	}
	hsdevp->dma_chan[tag] = dma_chan;
}

static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc)
{
	u32 sactive;
	u8 tag = qc->tag;
	struct ata_port *ap = qc->ap;

#ifdef DEBUG_NCQ
	if (qc->tag > 0 || ap->link.sactive > 1)
		dev_info(ap->dev, "%s ap id=%d cmd(0x%02x)=%s qc tag=%d "
			 "prot=%s ap active_tag=0x%08x ap sactive=0x%08x\n",
			 __func__, ap->print_id, qc->tf.command,
			 ata_get_cmd_descript(qc->tf.command),
			 qc->tag, get_prot_descript(qc->tf.protocol),
			 ap->link.active_tag, ap->link.sactive);
#endif

	if (!ata_is_ncq(qc->tf.protocol))
		tag = 0;
	sata_dwc_qc_prep_by_tag(qc, tag);

	if (ata_is_ncq(qc->tf.protocol)) {
		sactive = core_scr_read(SCR_ACTIVE);
		sactive |= (0x00000001 << tag);
		core_scr_write(SCR_ACTIVE, sactive);

		dev_dbg(qc->ap->dev, "%s: tag=%d ap->link.sactive = 0x%08x "
			"sactive=0x%08x\n", __func__, tag, qc->ap->link.sactive,
			sactive);

		ap->ops->sff_tf_load(ap, &qc->tf);
		sata_dwc_exec_command_by_tag(ap, &qc->tf, qc->tag,
					     SATA_DWC_CMD_ISSUED_PEND);
	} else {
		ata_sff_qc_issue(qc);
	}
	return 0;
}

/*
 * Function : sata_dwc_qc_prep
 * arguments : ata_queued_cmd *qc
 * Return value : None
 * qc_prep for a particular queued command
 */

static void sata_dwc_qc_prep(struct ata_queued_cmd *qc)
{
	if ((qc->dma_dir == DMA_NONE) || (qc->tf.protocol == ATA_PROT_PIO))
		return;

#ifdef DEBUG_NCQ
	if (qc->tag > 0)
		dev_info(qc->ap->dev, "%s: qc->tag=%d ap->active_tag=0x%08x\n",
			 __func__, qc->tag, qc->ap->link.active_tag);

	return ;
#endif
}

static void sata_dwc_error_handler(struct ata_port *ap)
{
	ata_sff_error_handler(ap);
}

static int sata_dwc_hardreset(struct ata_link *link, unsigned int *class,
			      unsigned long deadline)
{
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap);
	int ret;

	ret = sata_sff_hardreset(link, class, deadline);

	sata_dwc_enable_interrupts(hsdev);

	/* Reconfigure the DMA control register */
	out_le32(&hsdev->sata_dwc_regs->dmacr,
		 SATA_DWC_DMACR_TXRXCH_CLEAR);

	/* Reconfigure the DMA Burst Transaction Size register */
	out_le32(&hsdev->sata_dwc_regs->dbtsr,
		 SATA_DWC_DBTSR_MWR(AHB_DMA_BRST_DFLT) |
		 SATA_DWC_DBTSR_MRD(AHB_DMA_BRST_DFLT));

	return ret;
}

/*
 * scsi mid-layer and libata interface structures
 */
static struct scsi_host_template sata_dwc_sht = {
	ATA_NCQ_SHT(DRV_NAME),
	/*
	 * test-only: Currently this driver doesn't handle NCQ
	 * correctly. We enable NCQ but set the queue depth to a
	 * max of 1. This will get fixed in in a future release.
	 */
	.sg_tablesize		= LIBATA_MAX_PRD,
	/* .can_queue		= ATA_MAX_QUEUE, */
	.dma_boundary		= ATA_DMA_BOUNDARY,
};

static struct ata_port_operations sata_dwc_ops = {
	.inherits		= &ata_sff_port_ops,

	.error_handler		= sata_dwc_error_handler,
	.hardreset		= sata_dwc_hardreset,

	.qc_prep		= sata_dwc_qc_prep,
	.qc_issue		= sata_dwc_qc_issue,

	.scr_read		= sata_dwc_scr_read,
	.scr_write		= sata_dwc_scr_write,

	.port_start		= sata_dwc_port_start,
	.port_stop		= sata_dwc_port_stop,

	.bmdma_setup		= sata_dwc_bmdma_setup,
	.bmdma_start		= sata_dwc_bmdma_start,
};

static const struct ata_port_info sata_dwc_port_info[] = {
	{
		.flags		= ATA_FLAG_SATA | ATA_FLAG_NCQ,
		.pio_mask	= ATA_PIO4,
		.udma_mask	= ATA_UDMA6,
		.port_ops	= &sata_dwc_ops,
	},
};

static int sata_dwc_probe(struct platform_device *ofdev)
{
	struct sata_dwc_device *hsdev;
	u32 idr, versionr;
	char *ver = (char *)&versionr;
	u8 __iomem *base;
	int err = 0;
	int irq;
	struct ata_host *host;
	struct ata_port_info pi = sata_dwc_port_info[0];
	const struct ata_port_info *ppi[] = { &pi, NULL };
	struct device_node *np = ofdev->dev.of_node;
	u32 dma_chan;

	/* Allocate DWC SATA device */
	host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_DWC_MAX_PORTS);
	hsdev = devm_kzalloc(&ofdev->dev, sizeof(*hsdev), GFP_KERNEL);
	if (!host || !hsdev)
		return -ENOMEM;

	host->private_data = hsdev;

	if (of_property_read_u32(np, "dma-channel", &dma_chan)) {
		dev_warn(&ofdev->dev, "no dma-channel property set."
			 " Use channel 0\n");
		dma_chan = 0;
	}
	host_pvt.dma_channel = dma_chan;

	/* Ioremap SATA registers */
	base = of_iomap(np, 0);
	if (!base) {
		dev_err(&ofdev->dev, "ioremap failed for SATA register"
			" address\n");
		return -ENODEV;
	}
	hsdev->reg_base = base;
	dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n");

	/* Synopsys DWC SATA specific Registers */
	hsdev->sata_dwc_regs = (void *__iomem)(base + SATA_DWC_REG_OFFSET);

	/* Setup port */
	host->ports[0]->ioaddr.cmd_addr = base;
	host->ports[0]->ioaddr.scr_addr = base + SATA_DWC_SCR_OFFSET;
	host_pvt.scr_addr_sstatus = base + SATA_DWC_SCR_OFFSET;
	sata_dwc_setup_port(&host->ports[0]->ioaddr, (unsigned long)base);

	/* Read the ID and Version Registers */
	idr = in_le32(&hsdev->sata_dwc_regs->idr);
	versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
	dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
		   idr, ver[0], ver[1], ver[2]);

	/* Get SATA DMA interrupt number */
	irq = irq_of_parse_and_map(np, 1);
	if (irq == NO_IRQ) {
		dev_err(&ofdev->dev, "no SATA DMA irq\n");
		err = -ENODEV;
		goto error_iomap;
	}

	/* Get physical SATA DMA register base address */
	host_pvt.sata_dma_regs = (void *)of_iomap(np, 1);
	if (!(host_pvt.sata_dma_regs)) {
		dev_err(&ofdev->dev, "ioremap failed for AHBDMA register"
			" address\n");
		err = -ENODEV;
		goto error_iomap;
	}

	/* Save dev for later use in dev_xxx() routines */
	host_pvt.dwc_dev = &ofdev->dev;

	/* Initialize AHB DMAC */
	err = dma_dwc_init(hsdev, irq);
	if (err)
		goto error_dma_iomap;

	/* Enable SATA Interrupts */
	sata_dwc_enable_interrupts(hsdev);

	/* Get SATA interrupt number */
	irq = irq_of_parse_and_map(np, 0);
	if (irq == NO_IRQ) {
		dev_err(&ofdev->dev, "no SATA DMA irq\n");
		err = -ENODEV;
		goto error_out;
	}

	/*
	 * Now, register with libATA core, this will also initiate the
	 * device discovery process, invoking our port_start() handler &
	 * error_handler() to execute a dummy Softreset EH session
	 */
	err = ata_host_activate(host, irq, sata_dwc_isr, 0, &sata_dwc_sht);
	if (err)
		dev_err(&ofdev->dev, "failed to activate host");

	dev_set_drvdata(&ofdev->dev, host);
	return 0;

error_out:
	/* Free SATA DMA resources */
	dma_dwc_exit(hsdev);
error_dma_iomap:
	iounmap((void __iomem *)host_pvt.sata_dma_regs);
error_iomap:
	iounmap(base);
	return err;
}

static int sata_dwc_remove(struct platform_device *ofdev)
{
	struct device *dev = &ofdev->dev;
	struct ata_host *host = dev_get_drvdata(dev);
	struct sata_dwc_device *hsdev = host->private_data;

	ata_host_detach(host);

	/* Free SATA DMA resources */
	dma_dwc_exit(hsdev);

	iounmap((void __iomem *)host_pvt.sata_dma_regs);
	iounmap(hsdev->reg_base);
	dev_dbg(&ofdev->dev, "done\n");
	return 0;
}

static const struct of_device_id sata_dwc_match[] = {
	{ .compatible = "amcc,sata-460ex", },
	{}
};
MODULE_DEVICE_TABLE(of, sata_dwc_match);

static struct platform_driver sata_dwc_driver = {
	.driver = {
		.name = DRV_NAME,
		.of_match_table = sata_dwc_match,
	},
	.probe = sata_dwc_probe,
	.remove = sata_dwc_remove,
};

module_platform_driver(sata_dwc_driver);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Mark Miesfeld <mmiesfeld@amcc.com>");
MODULE_DESCRIPTION("DesignWare Cores SATA controller low lever driver");
MODULE_VERSION(DRV_VERSION);

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 13:24                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 13:24 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

>>>> P.S. Anyway we have to ask Julian to try the kernel with
>>>> 8b3444852a2b58129 reverted.
>>>>
>>> git revert 8b3444852a2b58129
>>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>>> hint: after resolving the conflicts, mark the corrected paths
>>> hint: with 'git add <paths>' or 'git rm <paths>'
>>> hint: and commit the result with 'git commit'
>> Yeah, that won't work since there are numerous changes afterward.  Just
>> revert the entire file back to 4.0 like this:
>>
>> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>>
>  CC [M]  drivers/ata/sata_dwc_460ex.o
> drivers/ata/sata_dwc_460ex.c:467:36: error: macro
> "dma_request_channel" requires 3 arguments, but only 1 given
>  static int dma_request_channel(void)
>                                     ^
> drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’,
> ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
>  {
>  ^
> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
> drivers/ata/sata_dwc_460ex.c:758:31: error: macro
> "dma_request_channel" requires 3 arguments, but only 1 given
>   dma_ch = dma_request_channel();
>                                ^
> drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’
> undeclared (first use in this function)
>   dma_ch = dma_request_channel();
>            ^
> drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier
> is reported only once for each function it appears in
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
> drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct
> sata_dwc_device_port’ has no member named ‘dws’
>   struct dw_dma_slave *dws = hsdevp->dws;
>                                    ^
> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
> drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable
> ‘mask’ [-Wunused-variable]
>   dma_cap_mask_t mask;
>                  ^
> drivers/ata/sata_dwc_460ex.c: At top level:
> drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’
> defined but not used [-Wunused-variable]
>  static struct dw_dma_slave sata_dwc_dma_dws = {
>                             ^
> drivers/ata/sata_dwc_460ex.c:1279:13: warning:
> ‘sata_dwc_dma_filter’ defined but not used [-Wunused-function]
>  static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
>              ^

Those messages do not match the contents of the file from v4.0.
For your convenience, here's the file as it should be.

$ sha1sum drivers/ata/sata_dwc_460ex.c
0f54dfa3a91591101f5de434c3a631a5cd20ff1a  drivers/ata/sata_dwc_460ex.c

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sata_dwc_460ex.c --]
[-- Type: text/x-csrc, Size: 52402 bytes --]

/*
 * drivers/ata/sata_dwc_460ex.c
 *
 * Synopsys DesignWare Cores (DWC) SATA host driver
 *
 * Author: Mark Miesfeld <mmiesfeld@amcc.com>
 *
 * Ported from 2.6.19.2 to 2.6.25/26 by Stefan Roese <sr@denx.de>
 * Copyright 2008 DENX Software Engineering
 *
 * Based on versions provided by AMCC and Synopsys which are:
 *          Copyright 2006 Applied Micro Circuits Corporation
 *          COPYRIGHT (C) 2005  SYNOPSYS, INC.  ALL RIGHTS RESERVED
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 */

#ifdef CONFIG_SATA_DWC_DEBUG
#define DEBUG
#endif

#ifdef CONFIG_SATA_DWC_VDEBUG
#define VERBOSE_DEBUG
#define DEBUG_NCQ
#endif

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/libata.h>
#include <linux/slab.h>
#include "libata.h"

#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>

/* These two are defined in "libata.h" */
#undef	DRV_NAME
#undef	DRV_VERSION

#define DRV_NAME        "sata-dwc"
#define DRV_VERSION     "1.3"

#ifndef out_le32
#define out_le32(a, v)	__raw_writel(__cpu_to_le32(v), (void __iomem *)(a))
#endif

#ifndef in_le32
#define in_le32(a)	__le32_to_cpu(__raw_readl((void __iomem *)(a)))
#endif

#ifndef NO_IRQ
#define NO_IRQ		0
#endif

/* SATA DMA driver Globals */
#define DMA_NUM_CHANS		1
#define DMA_NUM_CHAN_REGS	8

/* SATA DMA Register definitions */
#define AHB_DMA_BRST_DFLT	64	/* 16 data items burst length*/

struct dmareg {
	u32 low;		/* Low bits 0-31 */
	u32 high;		/* High bits 32-63 */
};

/* DMA Per Channel registers */
struct dma_chan_regs {
	struct dmareg sar;	/* Source Address */
	struct dmareg dar;	/* Destination address */
	struct dmareg llp;	/* Linked List Pointer */
	struct dmareg ctl;	/* Control */
	struct dmareg sstat;	/* Source Status not implemented in core */
	struct dmareg dstat;	/* Destination Status not implemented in core*/
	struct dmareg sstatar;	/* Source Status Address not impl in core */
	struct dmareg dstatar;	/* Destination Status Address not implemente */
	struct dmareg cfg;	/* Config */
	struct dmareg sgr;	/* Source Gather */
	struct dmareg dsr;	/* Destination Scatter */
};

/* Generic Interrupt Registers */
struct dma_interrupt_regs {
	struct dmareg tfr;	/* Transfer Interrupt */
	struct dmareg block;	/* Block Interrupt */
	struct dmareg srctran;	/* Source Transfer Interrupt */
	struct dmareg dsttran;	/* Dest Transfer Interrupt */
	struct dmareg error;	/* Error */
};

struct ahb_dma_regs {
	struct dma_chan_regs	chan_regs[DMA_NUM_CHAN_REGS];
	struct dma_interrupt_regs interrupt_raw;	/* Raw Interrupt */
	struct dma_interrupt_regs interrupt_status;	/* Interrupt Status */
	struct dma_interrupt_regs interrupt_mask;	/* Interrupt Mask */
	struct dma_interrupt_regs interrupt_clear;	/* Interrupt Clear */
	struct dmareg		statusInt;	/* Interrupt combined*/
	struct dmareg		rq_srcreg;	/* Src Trans Req */
	struct dmareg		rq_dstreg;	/* Dst Trans Req */
	struct dmareg		rq_sgl_srcreg;	/* Sngl Src Trans Req*/
	struct dmareg		rq_sgl_dstreg;	/* Sngl Dst Trans Req*/
	struct dmareg		rq_lst_srcreg;	/* Last Src Trans Req*/
	struct dmareg		rq_lst_dstreg;	/* Last Dst Trans Req*/
	struct dmareg		dma_cfg;		/* DMA Config */
	struct dmareg		dma_chan_en;		/* DMA Channel Enable*/
	struct dmareg		dma_id;			/* DMA ID */
	struct dmareg		dma_test;		/* DMA Test */
	struct dmareg		res1;			/* reserved */
	struct dmareg		res2;			/* reserved */
	/*
	 * DMA Comp Params
	 * Param 6 = dma_param[0], Param 5 = dma_param[1],
	 * Param 4 = dma_param[2] ...
	 */
	struct dmareg		dma_params[6];
};

/* Data structure for linked list item */
struct lli {
	u32		sar;		/* Source Address */
	u32		dar;		/* Destination address */
	u32		llp;		/* Linked List Pointer */
	struct dmareg	ctl;		/* Control */
	struct dmareg	dstat;		/* Destination Status */
};

enum {
	SATA_DWC_DMAC_LLI_SZ =	(sizeof(struct lli)),
	SATA_DWC_DMAC_LLI_NUM =	256,
	SATA_DWC_DMAC_LLI_TBL_SZ = (SATA_DWC_DMAC_LLI_SZ * \
					SATA_DWC_DMAC_LLI_NUM),
	SATA_DWC_DMAC_TWIDTH_BYTES = 4,
	SATA_DWC_DMAC_CTRL_TSIZE_MAX = (0x00000800 * \
						SATA_DWC_DMAC_TWIDTH_BYTES),
};

/* DMA Register Operation Bits */
enum {
	DMA_EN	=		0x00000001, /* Enable AHB DMA */
	DMA_CTL_LLP_SRCEN =	0x10000000, /* Blk chain enable Src */
	DMA_CTL_LLP_DSTEN =	0x08000000, /* Blk chain enable Dst */
};

#define	DMA_CTL_BLK_TS(size)	((size) & 0x000000FFF)	/* Blk Transfer size */
#define DMA_CHANNEL(ch)		(0x00000001 << (ch))	/* Select channel */
	/* Enable channel */
#define	DMA_ENABLE_CHAN(ch)	((0x00000001 << (ch)) |			\
				 ((0x000000001 << (ch)) << 8))
	/* Disable channel */
#define	DMA_DISABLE_CHAN(ch)	(0x00000000 | ((0x000000001 << (ch)) << 8))
	/* Transfer Type & Flow Controller */
#define	DMA_CTL_TTFC(type)	(((type) & 0x7) << 20)
#define	DMA_CTL_SMS(num)	(((num) & 0x3) << 25) /* Src Master Select */
#define	DMA_CTL_DMS(num)	(((num) & 0x3) << 23)/* Dst Master Select */
	/* Src Burst Transaction Length */
#define DMA_CTL_SRC_MSIZE(size) (((size) & 0x7) << 14)
	/* Dst Burst Transaction Length */
#define	DMA_CTL_DST_MSIZE(size) (((size) & 0x7) << 11)
	/* Source Transfer Width */
#define	DMA_CTL_SRC_TRWID(size) (((size) & 0x7) << 4)
	/* Destination Transfer Width */
#define	DMA_CTL_DST_TRWID(size) (((size) & 0x7) << 1)

/* Assign HW handshaking interface (x) to destination / source peripheral */
#define	DMA_CFG_HW_HS_DEST(int_num) (((int_num) & 0xF) << 11)
#define	DMA_CFG_HW_HS_SRC(int_num) (((int_num) & 0xF) << 7)
#define	DMA_CFG_HW_CH_PRIOR(int_num) (((int_num) & 0xF) << 5)
#define	DMA_LLP_LMS(addr, master) (((addr) & 0xfffffffc) | (master))

/*
 * This define is used to set block chaining disabled in the control low
 * register.  It is already in little endian format so it can be &'d dirctly.
 * It is essentially: cpu_to_le32(~(DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN))
 */
enum {
	DMA_CTL_LLP_DISABLE_LE32 = 0xffffffe7,
	DMA_CTL_TTFC_P2M_DMAC =	0x00000002, /* Per to mem, DMAC cntr */
	DMA_CTL_TTFC_M2P_PER =	0x00000003, /* Mem to per, peripheral cntr */
	DMA_CTL_SINC_INC =	0x00000000, /* Source Address Increment */
	DMA_CTL_SINC_DEC =	0x00000200,
	DMA_CTL_SINC_NOCHANGE =	0x00000400,
	DMA_CTL_DINC_INC =	0x00000000, /* Destination Address Increment */
	DMA_CTL_DINC_DEC =	0x00000080,
	DMA_CTL_DINC_NOCHANGE =	0x00000100,
	DMA_CTL_INT_EN =	0x00000001, /* Interrupt Enable */

/* Channel Configuration Register high bits */
	DMA_CFG_FCMOD_REQ =	0x00000001, /* Flow Control - request based */
	DMA_CFG_PROTCTL	=	(0x00000003 << 2),/* Protection Control */

/* Channel Configuration Register low bits */
	DMA_CFG_RELD_DST =	0x80000000, /* Reload Dest / Src Addr */
	DMA_CFG_RELD_SRC =	0x40000000,
	DMA_CFG_HS_SELSRC =	0x00000800, /* Software handshake Src/ Dest */
	DMA_CFG_HS_SELDST =	0x00000400,
	DMA_CFG_FIFOEMPTY =     (0x00000001 << 9), /* FIFO Empty bit */

/* Channel Linked List Pointer Register */
	DMA_LLP_AHBMASTER1 =	0,	/* List Master Select */
	DMA_LLP_AHBMASTER2 =	1,

	SATA_DWC_MAX_PORTS = 1,

	SATA_DWC_SCR_OFFSET = 0x24,
	SATA_DWC_REG_OFFSET = 0x64,
};

/* DWC SATA Registers */
struct sata_dwc_regs {
	u32 fptagr;		/* 1st party DMA tag */
	u32 fpbor;		/* 1st party DMA buffer offset */
	u32 fptcr;		/* 1st party DMA Xfr count */
	u32 dmacr;		/* DMA Control */
	u32 dbtsr;		/* DMA Burst Transac size */
	u32 intpr;		/* Interrupt Pending */
	u32 intmr;		/* Interrupt Mask */
	u32 errmr;		/* Error Mask */
	u32 llcr;		/* Link Layer Control */
	u32 phycr;		/* PHY Control */
	u32 physr;		/* PHY Status */
	u32 rxbistpd;		/* Recvd BIST pattern def register */
	u32 rxbistpd1;		/* Recvd BIST data dword1 */
	u32 rxbistpd2;		/* Recvd BIST pattern data dword2 */
	u32 txbistpd;		/* Trans BIST pattern def register */
	u32 txbistpd1;		/* Trans BIST data dword1 */
	u32 txbistpd2;		/* Trans BIST data dword2 */
	u32 bistcr;		/* BIST Control Register */
	u32 bistfctr;		/* BIST FIS Count Register */
	u32 bistsr;		/* BIST Status Register */
	u32 bistdecr;		/* BIST Dword Error count register */
	u32 res[15];		/* Reserved locations */
	u32 testr;		/* Test Register */
	u32 versionr;		/* Version Register */
	u32 idr;		/* ID Register */
	u32 unimpl[192];	/* Unimplemented */
	u32 dmadr[256];	/* FIFO Locations in DMA Mode */
};

enum {
	SCR_SCONTROL_DET_ENABLE	=	0x00000001,
	SCR_SSTATUS_DET_PRESENT	=	0x00000001,
	SCR_SERROR_DIAG_X	=	0x04000000,
/* DWC SATA Register Operations */
	SATA_DWC_TXFIFO_DEPTH	=	0x01FF,
	SATA_DWC_RXFIFO_DEPTH	=	0x01FF,
	SATA_DWC_DMACR_TMOD_TXCHEN =	0x00000004,
	SATA_DWC_DMACR_TXCHEN	= (0x00000001 | SATA_DWC_DMACR_TMOD_TXCHEN),
	SATA_DWC_DMACR_RXCHEN	= (0x00000002 | SATA_DWC_DMACR_TMOD_TXCHEN),
	SATA_DWC_DMACR_TXRXCH_CLEAR =	SATA_DWC_DMACR_TMOD_TXCHEN,
	SATA_DWC_INTPR_DMAT	=	0x00000001,
	SATA_DWC_INTPR_NEWFP	=	0x00000002,
	SATA_DWC_INTPR_PMABRT	=	0x00000004,
	SATA_DWC_INTPR_ERR	=	0x00000008,
	SATA_DWC_INTPR_NEWBIST	=	0x00000010,
	SATA_DWC_INTPR_IPF	=	0x10000000,
	SATA_DWC_INTMR_DMATM	=	0x00000001,
	SATA_DWC_INTMR_NEWFPM	=	0x00000002,
	SATA_DWC_INTMR_PMABRTM	=	0x00000004,
	SATA_DWC_INTMR_ERRM	=	0x00000008,
	SATA_DWC_INTMR_NEWBISTM	=	0x00000010,
	SATA_DWC_LLCR_SCRAMEN	=	0x00000001,
	SATA_DWC_LLCR_DESCRAMEN	=	0x00000002,
	SATA_DWC_LLCR_RPDEN	=	0x00000004,
/* This is all error bits, zero's are reserved fields. */
	SATA_DWC_SERROR_ERR_BITS =	0x0FFF0F03
};

#define SATA_DWC_SCR0_SPD_GET(v)	(((v) >> 4) & 0x0000000F)
#define SATA_DWC_DMACR_TX_CLEAR(v)	(((v) & ~SATA_DWC_DMACR_TXCHEN) |\
						 SATA_DWC_DMACR_TMOD_TXCHEN)
#define SATA_DWC_DMACR_RX_CLEAR(v)	(((v) & ~SATA_DWC_DMACR_RXCHEN) |\
						 SATA_DWC_DMACR_TMOD_TXCHEN)
#define SATA_DWC_DBTSR_MWR(size)	(((size)/4) & SATA_DWC_TXFIFO_DEPTH)
#define SATA_DWC_DBTSR_MRD(size)	((((size)/4) & SATA_DWC_RXFIFO_DEPTH)\
						 << 16)
struct sata_dwc_device {
	struct device		*dev;		/* generic device struct */
	struct ata_probe_ent	*pe;		/* ptr to probe-ent */
	struct ata_host		*host;
	u8 __iomem		*reg_base;
	struct sata_dwc_regs	*sata_dwc_regs;	/* DW Synopsys SATA specific */
	int			irq_dma;
};

#define SATA_DWC_QCMD_MAX	32

struct sata_dwc_device_port {
	struct sata_dwc_device	*hsdev;
	int			cmd_issued[SATA_DWC_QCMD_MAX];
	struct lli		*llit[SATA_DWC_QCMD_MAX];  /* DMA LLI table */
	dma_addr_t		llit_dma[SATA_DWC_QCMD_MAX];
	u32			dma_chan[SATA_DWC_QCMD_MAX];
	int			dma_pending[SATA_DWC_QCMD_MAX];
};

/*
 * Commonly used DWC SATA driver Macros
 */
#define HSDEV_FROM_HOST(host)  ((struct sata_dwc_device *)\
					(host)->private_data)
#define HSDEV_FROM_AP(ap)  ((struct sata_dwc_device *)\
					(ap)->host->private_data)
#define HSDEVP_FROM_AP(ap)   ((struct sata_dwc_device_port *)\
					(ap)->private_data)
#define HSDEV_FROM_QC(qc)	((struct sata_dwc_device *)\
					(qc)->ap->host->private_data)
#define HSDEV_FROM_HSDEVP(p)	((struct sata_dwc_device *)\
						(hsdevp)->hsdev)

enum {
	SATA_DWC_CMD_ISSUED_NOT		= 0,
	SATA_DWC_CMD_ISSUED_PEND	= 1,
	SATA_DWC_CMD_ISSUED_EXEC	= 2,
	SATA_DWC_CMD_ISSUED_NODATA	= 3,

	SATA_DWC_DMA_PENDING_NONE	= 0,
	SATA_DWC_DMA_PENDING_TX		= 1,
	SATA_DWC_DMA_PENDING_RX		= 2,
};

struct sata_dwc_host_priv {
	void	__iomem	 *scr_addr_sstatus;
	u32	sata_dwc_sactive_issued ;
	u32	sata_dwc_sactive_queued ;
	u32	dma_interrupt_count;
	struct	ahb_dma_regs	*sata_dma_regs;
	struct	device	*dwc_dev;
	int	dma_channel;
};

static struct sata_dwc_host_priv host_pvt;

/*
 * Prototypes
 */
static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag);
static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
				u32 check_status);
static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status);
static void sata_dwc_port_stop(struct ata_port *ap);
static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag);
static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq);
static void dma_dwc_exit(struct sata_dwc_device *hsdev);
static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems,
			      struct lli *lli, dma_addr_t dma_lli,
			      void __iomem *addr, int dir);
static void dma_dwc_xfer_start(int dma_ch);

static const char *get_prot_descript(u8 protocol)
{
	switch ((enum ata_tf_protocols)protocol) {
	case ATA_PROT_NODATA:
		return "ATA no data";
	case ATA_PROT_PIO:
		return "ATA PIO";
	case ATA_PROT_DMA:
		return "ATA DMA";
	case ATA_PROT_NCQ:
		return "ATA NCQ";
	case ATAPI_PROT_NODATA:
		return "ATAPI no data";
	case ATAPI_PROT_PIO:
		return "ATAPI PIO";
	case ATAPI_PROT_DMA:
		return "ATAPI DMA";
	default:
		return "unknown";
	}
}

static const char *get_dma_dir_descript(int dma_dir)
{
	switch ((enum dma_data_direction)dma_dir) {
	case DMA_BIDIRECTIONAL:
		return "bidirectional";
	case DMA_TO_DEVICE:
		return "to device";
	case DMA_FROM_DEVICE:
		return "from device";
	default:
		return "none";
	}
}

static void sata_dwc_tf_dump(struct ata_taskfile *tf)
{
	dev_vdbg(host_pvt.dwc_dev, "taskfile cmd: 0x%02x protocol: %s flags:"
		"0x%lx device: %x\n", tf->command,
		get_prot_descript(tf->protocol), tf->flags, tf->device);
	dev_vdbg(host_pvt.dwc_dev, "feature: 0x%02x nsect: 0x%x lbal: 0x%x "
		"lbam: 0x%x lbah: 0x%x\n", tf->feature, tf->nsect, tf->lbal,
		 tf->lbam, tf->lbah);
	dev_vdbg(host_pvt.dwc_dev, "hob_feature: 0x%02x hob_nsect: 0x%x "
		"hob_lbal: 0x%x hob_lbam: 0x%x hob_lbah: 0x%x\n",
		tf->hob_feature, tf->hob_nsect, tf->hob_lbal, tf->hob_lbam,
		tf->hob_lbah);
}

/*
 * Function: get_burst_length_encode
 * arguments: datalength: length in bytes of data
 * returns value to be programmed in register corresponding to data length
 * This value is effectively the log(base 2) of the length
 */
static  int get_burst_length_encode(int datalength)
{
	int items = datalength >> 2;	/* div by 4 to get lword count */

	if (items >= 64)
		return 5;

	if (items >= 32)
		return 4;

	if (items >= 16)
		return 3;

	if (items >= 8)
		return 2;

	if (items >= 4)
		return 1;

	return 0;
}

static  void clear_chan_interrupts(int c)
{
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.tfr.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.block.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.srctran.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.dsttran.low),
		 DMA_CHANNEL(c));
	out_le32(&(host_pvt.sata_dma_regs->interrupt_clear.error.low),
		 DMA_CHANNEL(c));
}

/*
 * Function: dma_request_channel
 * arguments: None
 * returns channel number if available else -1
 * This function assigns the next available DMA channel from the list to the
 * requester
 */
static int dma_request_channel(void)
{
	/* Check if the channel is not currently in use */
	if (!(in_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low)) &
		DMA_CHANNEL(host_pvt.dma_channel)))
		return host_pvt.dma_channel;
	dev_err(host_pvt.dwc_dev, "%s Channel %d is currently in use\n",
		__func__, host_pvt.dma_channel);
	return -1;
}

/*
 * Function: dma_dwc_interrupt
 * arguments: irq, dev_id, pt_regs
 * returns channel number if available else -1
 * Interrupt Handler for DW AHB SATA DMA
 */
static irqreturn_t dma_dwc_interrupt(int irq, void *hsdev_instance)
{
	int chan;
	u32 tfr_reg, err_reg;
	unsigned long flags;
	struct sata_dwc_device *hsdev = hsdev_instance;
	struct ata_host *host = (struct ata_host *)hsdev->host;
	struct ata_port *ap;
	struct sata_dwc_device_port *hsdevp;
	u8 tag = 0;
	unsigned int port = 0;

	spin_lock_irqsave(&host->lock, flags);
	ap = host->ports[port];
	hsdevp = HSDEVP_FROM_AP(ap);
	tag = ap->link.active_tag;

	tfr_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.tfr\
			.low));
	err_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.error\
			.low));

	dev_dbg(ap->dev, "eot=0x%08x err=0x%08x pending=%d active port=%d\n",
		tfr_reg, err_reg, hsdevp->dma_pending[tag], port);

	chan = host_pvt.dma_channel;
	if (chan >= 0) {
		/* Check for end-of-transfer interrupt. */
		if (tfr_reg & DMA_CHANNEL(chan)) {
			/*
			 * Each DMA command produces 2 interrupts.  Only
			 * complete the command after both interrupts have been
			 * seen. (See sata_dwc_isr())
			 */
			host_pvt.dma_interrupt_count++;
			sata_dwc_clear_dmacr(hsdevp, tag);

			if (hsdevp->dma_pending[tag] ==
			    SATA_DWC_DMA_PENDING_NONE) {
				dev_err(ap->dev, "DMA not pending eot=0x%08x "
					"err=0x%08x tag=0x%02x pending=%d\n",
					tfr_reg, err_reg, tag,
					hsdevp->dma_pending[tag]);
			}

			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);

			/* Clear the interrupt */
			out_le32(&(host_pvt.sata_dma_regs->interrupt_clear\
				.tfr.low),
				 DMA_CHANNEL(chan));
		}

		/* Check for error interrupt. */
		if (err_reg & DMA_CHANNEL(chan)) {
			/* TODO Need error handler ! */
			dev_err(ap->dev, "error interrupt err_reg=0x%08x\n",
				err_reg);

			/* Clear the interrupt. */
			out_le32(&(host_pvt.sata_dma_regs->interrupt_clear\
				.error.low),
				 DMA_CHANNEL(chan));
		}
	}
	spin_unlock_irqrestore(&host->lock, flags);
	return IRQ_HANDLED;
}

/*
 * Function: dma_request_interrupts
 * arguments: hsdev
 * returns status
 * This function registers ISR for a particular DMA channel interrupt
 */
static int dma_request_interrupts(struct sata_dwc_device *hsdev, int irq)
{
	int retval = 0;
	int chan = host_pvt.dma_channel;

	if (chan >= 0) {
		/* Unmask error interrupt */
		out_le32(&(host_pvt.sata_dma_regs)->interrupt_mask.error.low,
			 DMA_ENABLE_CHAN(chan));

		/* Unmask end-of-transfer interrupt */
		out_le32(&(host_pvt.sata_dma_regs)->interrupt_mask.tfr.low,
			 DMA_ENABLE_CHAN(chan));
	}

	retval = request_irq(irq, dma_dwc_interrupt, 0, "SATA DMA", hsdev);
	if (retval) {
		dev_err(host_pvt.dwc_dev, "%s: could not get IRQ %d\n",
		__func__, irq);
		return -ENODEV;
	}

	/* Mark this interrupt as requested */
	hsdev->irq_dma = irq;
	return 0;
}

/*
 * Function: map_sg_to_lli
 * The Synopsis driver has a comment proposing that better performance
 * is possible by only enabling interrupts on the last item in the linked list.
 * However, it seems that could be a problem if an error happened on one of the
 * first items.  The transfer would halt, but no error interrupt would occur.
 * Currently this function sets interrupts enabled for each linked list item:
 * DMA_CTL_INT_EN.
 */
static int map_sg_to_lli(struct scatterlist *sg, int num_elems,
			struct lli *lli, dma_addr_t dma_lli,
			void __iomem *dmadr_addr, int dir)
{
	int i, idx = 0;
	int fis_len = 0;
	dma_addr_t next_llp;
	int bl;
	int sms_val, dms_val;

	sms_val = 0;
	dms_val = 1 + host_pvt.dma_channel;
	dev_dbg(host_pvt.dwc_dev,
		"%s: sg=%p nelem=%d lli=%p dma_lli=0x%pad dmadr=0x%p\n",
		__func__, sg, num_elems, lli, &dma_lli, dmadr_addr);

	bl = get_burst_length_encode(AHB_DMA_BRST_DFLT);

	for (i = 0; i < num_elems; i++, sg++) {
		u32 addr, offset;
		u32 sg_len, len;

		addr = (u32) sg_dma_address(sg);
		sg_len = sg_dma_len(sg);

		dev_dbg(host_pvt.dwc_dev, "%s: elem=%d sg_addr=0x%x sg_len"
			"=%d\n", __func__, i, addr, sg_len);

		while (sg_len) {
			if (idx >= SATA_DWC_DMAC_LLI_NUM) {
				/* The LLI table is not large enough. */
				dev_err(host_pvt.dwc_dev, "LLI table overrun "
				"(idx=%d)\n", idx);
				break;
			}
			len = (sg_len > SATA_DWC_DMAC_CTRL_TSIZE_MAX) ?
				SATA_DWC_DMAC_CTRL_TSIZE_MAX : sg_len;

			offset = addr & 0xffff;
			if ((offset + sg_len) > 0x10000)
				len = 0x10000 - offset;

			/*
			 * Make sure a LLI block is not created that will span
			 * 8K max FIS boundary.  If the block spans such a FIS
			 * boundary, there is a chance that a DMA burst will
			 * cross that boundary -- this results in an error in
			 * the host controller.
			 */
			if (fis_len + len > 8192) {
				dev_dbg(host_pvt.dwc_dev, "SPLITTING: fis_len="
					"%d(0x%x) len=%d(0x%x)\n", fis_len,
					 fis_len, len, len);
				len = 8192 - fis_len;
				fis_len = 0;
			} else {
				fis_len += len;
			}
			if (fis_len == 8192)
				fis_len = 0;

			/*
			 * Set DMA addresses and lower half of control register
			 * based on direction.
			 */
			if (dir == DMA_FROM_DEVICE) {
				lli[idx].dar = cpu_to_le32(addr);
				lli[idx].sar = cpu_to_le32((u32)dmadr_addr);

				lli[idx].ctl.low = cpu_to_le32(
					DMA_CTL_TTFC(DMA_CTL_TTFC_P2M_DMAC) |
					DMA_CTL_SMS(sms_val) |
					DMA_CTL_DMS(dms_val) |
					DMA_CTL_SRC_MSIZE(bl) |
					DMA_CTL_DST_MSIZE(bl) |
					DMA_CTL_SINC_NOCHANGE |
					DMA_CTL_SRC_TRWID(2) |
					DMA_CTL_DST_TRWID(2) |
					DMA_CTL_INT_EN |
					DMA_CTL_LLP_SRCEN |
					DMA_CTL_LLP_DSTEN);
			} else {	/* DMA_TO_DEVICE */
				lli[idx].sar = cpu_to_le32(addr);
				lli[idx].dar = cpu_to_le32((u32)dmadr_addr);

				lli[idx].ctl.low = cpu_to_le32(
					DMA_CTL_TTFC(DMA_CTL_TTFC_M2P_PER) |
					DMA_CTL_SMS(dms_val) |
					DMA_CTL_DMS(sms_val) |
					DMA_CTL_SRC_MSIZE(bl) |
					DMA_CTL_DST_MSIZE(bl) |
					DMA_CTL_DINC_NOCHANGE |
					DMA_CTL_SRC_TRWID(2) |
					DMA_CTL_DST_TRWID(2) |
					DMA_CTL_INT_EN |
					DMA_CTL_LLP_SRCEN |
					DMA_CTL_LLP_DSTEN);
			}

			dev_dbg(host_pvt.dwc_dev, "%s setting ctl.high len: "
				"0x%08x val: 0x%08x\n", __func__,
				len, DMA_CTL_BLK_TS(len / 4));

			/* Program the LLI CTL high register */
			lli[idx].ctl.high = cpu_to_le32(DMA_CTL_BLK_TS\
						(len / 4));

			/* Program the next pointer.  The next pointer must be
			 * the physical address, not the virtual address.
			 */
			next_llp = (dma_lli + ((idx + 1) * sizeof(struct \
							lli)));

			/* The last 2 bits encode the list master select. */
			next_llp = DMA_LLP_LMS(next_llp, DMA_LLP_AHBMASTER2);

			lli[idx].llp = cpu_to_le32(next_llp);
			idx++;
			sg_len -= len;
			addr += len;
		}
	}

	/*
	 * The last next ptr has to be zero and the last control low register
	 * has to have LLP_SRC_EN and LLP_DST_EN (linked list pointer source
	 * and destination enable) set back to 0 (disabled.) This is what tells
	 * the core that this is the last item in the linked list.
	 */
	if (idx) {
		lli[idx-1].llp = 0x00000000;
		lli[idx-1].ctl.low &= DMA_CTL_LLP_DISABLE_LE32;

		/* Flush cache to memory */
		dma_cache_sync(NULL, lli, (sizeof(struct lli) * idx),
			       DMA_BIDIRECTIONAL);
	}

	return idx;
}

/*
 * Function: dma_dwc_xfer_start
 * arguments: Channel number
 * Return : None
 * Enables the DMA channel
 */
static void dma_dwc_xfer_start(int dma_ch)
{
	/* Enable the DMA channel */
	out_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low),
		 in_le32(&(host_pvt.sata_dma_regs->dma_chan_en.low)) |
		 DMA_ENABLE_CHAN(dma_ch));
}

static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems,
			      struct lli *lli, dma_addr_t dma_lli,
			      void __iomem *addr, int dir)
{
	int dma_ch;
	int num_lli;
	/* Acquire DMA channel */
	dma_ch = dma_request_channel();
	if (dma_ch == -1) {
		dev_err(host_pvt.dwc_dev, "%s: dma channel unavailable\n",
			 __func__);
		return -EAGAIN;
	}

	/* Convert SG list to linked list of items (LLIs) for AHB DMA */
	num_lli = map_sg_to_lli(sg, num_elems, lli, dma_lli, addr, dir);

	dev_dbg(host_pvt.dwc_dev, "%s sg: 0x%p, count: %d lli: %p dma_lli:"
		" 0x%0xlx addr: %p lli count: %d\n", __func__, sg, num_elems,
		 lli, (u32)dma_lli, addr, num_lli);

	clear_chan_interrupts(dma_ch);

	/* Program the CFG register. */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.high),
		 DMA_CFG_HW_HS_SRC(dma_ch) | DMA_CFG_HW_HS_DEST(dma_ch) |
		 DMA_CFG_PROTCTL | DMA_CFG_FCMOD_REQ);
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].cfg.low),
		 DMA_CFG_HW_CH_PRIOR(dma_ch));

	/* Program the address of the linked list */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].llp.low),
		 DMA_LLP_LMS(dma_lli, DMA_LLP_AHBMASTER2));

	/* Program the CTL register with src enable / dst enable */
	out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].ctl.low),
		 DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN);
	return dma_ch;
}

/*
 * Function: dma_dwc_exit
 * arguments: None
 * returns status
 * This function exits the SATA DMA driver
 */
static void dma_dwc_exit(struct sata_dwc_device *hsdev)
{
	dev_dbg(host_pvt.dwc_dev, "%s:\n", __func__);
	if (host_pvt.sata_dma_regs) {
		iounmap((void __iomem *)host_pvt.sata_dma_regs);
		host_pvt.sata_dma_regs = NULL;
	}

	if (hsdev->irq_dma) {
		free_irq(hsdev->irq_dma, hsdev);
		hsdev->irq_dma = 0;
	}
}

/*
 * Function: dma_dwc_init
 * arguments: hsdev
 * returns status
 * This function initializes the SATA DMA driver
 */
static int dma_dwc_init(struct sata_dwc_device *hsdev, int irq)
{
	int err;

	err = dma_request_interrupts(hsdev, irq);
	if (err) {
		dev_err(host_pvt.dwc_dev, "%s: dma_request_interrupts returns"
			" %d\n", __func__, err);
		return err;
	}

	/* Enabe DMA */
	out_le32(&(host_pvt.sata_dma_regs->dma_cfg.low), DMA_EN);

	dev_notice(host_pvt.dwc_dev, "DMA initialized\n");
	dev_dbg(host_pvt.dwc_dev, "SATA DMA registers=0x%p\n", host_pvt.\
		sata_dma_regs);

	return 0;
}

static int sata_dwc_scr_read(struct ata_link *link, unsigned int scr, u32 *val)
{
	if (scr > SCR_NOTIFICATION) {
		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
			__func__, scr);
		return -EINVAL;
	}

	*val = in_le32(link->ap->ioaddr.scr_addr + (scr * 4));
	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=val=0x%08x\n",
		__func__, link->ap->print_id, scr, *val);

	return 0;
}

static int sata_dwc_scr_write(struct ata_link *link, unsigned int scr, u32 val)
{
	dev_dbg(link->ap->dev, "%s: id=%d reg=%d val=val=0x%08x\n",
		__func__, link->ap->print_id, scr, val);
	if (scr > SCR_NOTIFICATION) {
		dev_err(link->ap->dev, "%s: Incorrect SCR offset 0x%02x\n",
			 __func__, scr);
		return -EINVAL;
	}
	out_le32(link->ap->ioaddr.scr_addr + (scr * 4), val);

	return 0;
}

static u32 core_scr_read(unsigned int scr)
{
	return in_le32(host_pvt.scr_addr_sstatus + (scr * 4));
}

static void core_scr_write(unsigned int scr, u32 val)
{
	out_le32(host_pvt.scr_addr_sstatus + (scr * 4), val);
}

static void clear_serror(void)
{
	u32 val;
	val = core_scr_read(SCR_ERROR);
	core_scr_write(SCR_ERROR, val);
}

static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit)
{
	out_le32(&hsdev->sata_dwc_regs->intpr,
		 in_le32(&hsdev->sata_dwc_regs->intpr));
}

static u32 qcmd_tag_to_mask(u8 tag)
{
	return 0x00000001 << (tag & 0x1f);
}

/* See ahci.c */
static void sata_dwc_error_intr(struct ata_port *ap,
				struct sata_dwc_device *hsdev, uint intpr)
{
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	struct ata_eh_info *ehi = &ap->link.eh_info;
	unsigned int err_mask = 0, action = 0;
	struct ata_queued_cmd *qc;
	u32 serror;
	u8 status, tag;
	u32 err_reg;

	ata_ehi_clear_desc(ehi);

	serror = core_scr_read(SCR_ERROR);
	status = ap->ops->sff_check_status(ap);

	err_reg = in_le32(&(host_pvt.sata_dma_regs->interrupt_status.error.\
			low));
	tag = ap->link.active_tag;

	dev_err(ap->dev, "%s SCR_ERROR=0x%08x intpr=0x%08x status=0x%08x "
		"dma_intp=%d pending=%d issued=%d dma_err_status=0x%08x\n",
		__func__, serror, intpr, status, host_pvt.dma_interrupt_count,
		hsdevp->dma_pending[tag], hsdevp->cmd_issued[tag], err_reg);

	/* Clear error register and interrupt bit */
	clear_serror();
	clear_interrupt_bit(hsdev, SATA_DWC_INTPR_ERR);

	/* This is the only error happening now.  TODO check for exact error */

	err_mask |= AC_ERR_HOST_BUS;
	action |= ATA_EH_RESET;

	/* Pass this on to EH */
	ehi->serror |= serror;
	ehi->action |= action;

	qc = ata_qc_from_tag(ap, tag);
	if (qc)
		qc->err_mask |= err_mask;
	else
		ehi->err_mask |= err_mask;

	ata_port_abort(ap);
}

/*
 * Function : sata_dwc_isr
 * arguments : irq, void *dev_instance, struct pt_regs *regs
 * Return value : irqreturn_t - status of IRQ
 * This Interrupt handler called via port ops registered function.
 * .irq_handler = sata_dwc_isr
 */
static irqreturn_t sata_dwc_isr(int irq, void *dev_instance)
{
	struct ata_host *host = (struct ata_host *)dev_instance;
	struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host);
	struct ata_port *ap;
	struct ata_queued_cmd *qc;
	unsigned long flags;
	u8 status, tag;
	int handled, num_processed, port = 0;
	uint intpr, sactive, sactive2, tag_mask;
	struct sata_dwc_device_port *hsdevp;
	host_pvt.sata_dwc_sactive_issued = 0;

	spin_lock_irqsave(&host->lock, flags);

	/* Read the interrupt register */
	intpr = in_le32(&hsdev->sata_dwc_regs->intpr);

	ap = host->ports[port];
	hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s intpr=0x%08x active_tag=%d\n", __func__, intpr,
		ap->link.active_tag);

	/* Check for error interrupt */
	if (intpr & SATA_DWC_INTPR_ERR) {
		sata_dwc_error_intr(ap, hsdev, intpr);
		handled = 1;
		goto DONE;
	}

	/* Check for DMA SETUP FIS (FP DMA) interrupt */
	if (intpr & SATA_DWC_INTPR_NEWFP) {
		clear_interrupt_bit(hsdev, SATA_DWC_INTPR_NEWFP);

		tag = (u8)(in_le32(&hsdev->sata_dwc_regs->fptagr));
		dev_dbg(ap->dev, "%s: NEWFP tag=%d\n", __func__, tag);
		if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_PEND)
			dev_warn(ap->dev, "CMD tag=%d not pending?\n", tag);

		host_pvt.sata_dwc_sactive_issued |= qcmd_tag_to_mask(tag);

		qc = ata_qc_from_tag(ap, tag);
		/*
		 * Start FP DMA for NCQ command.  At this point the tag is the
		 * active tag.  It is the tag that matches the command about to
		 * be completed.
		 */
		qc->ap->link.active_tag = tag;
		sata_dwc_bmdma_start_by_tag(qc, tag);

		handled = 1;
		goto DONE;
	}
	sactive = core_scr_read(SCR_ACTIVE);
	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;

	/* If no sactive issued and tag_mask is zero then this is not NCQ */
	if (host_pvt.sata_dwc_sactive_issued == 0 && tag_mask == 0) {
		if (ap->link.active_tag == ATA_TAG_POISON)
			tag = 0;
		else
			tag = ap->link.active_tag;
		qc = ata_qc_from_tag(ap, tag);

		/* DEV interrupt w/ no active qc? */
		if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) {
			dev_err(ap->dev, "%s interrupt with no active qc "
				"qc=%p\n", __func__, qc);
			ap->ops->sff_check_status(ap);
			handled = 1;
			goto DONE;
		}
		status = ap->ops->sff_check_status(ap);

		qc->ap->link.active_tag = tag;
		hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT;

		if (status & ATA_ERR) {
			dev_dbg(ap->dev, "interrupt ATA_ERR (0x%x)\n", status);
			sata_dwc_qc_complete(ap, qc, 1);
			handled = 1;
			goto DONE;
		}

		dev_dbg(ap->dev, "%s non-NCQ cmd interrupt, protocol: %s\n",
			__func__, get_prot_descript(qc->tf.protocol));
DRVSTILLBUSY:
		if (ata_is_dma(qc->tf.protocol)) {
			/*
			 * Each DMA transaction produces 2 interrupts. The DMAC
			 * transfer complete interrupt and the SATA controller
			 * operation done interrupt. The command should be
			 * completed only after both interrupts are seen.
			 */
			host_pvt.dma_interrupt_count++;
			if (hsdevp->dma_pending[tag] == \
					SATA_DWC_DMA_PENDING_NONE) {
				dev_err(ap->dev, "%s: DMA not pending "
					"intpr=0x%08x status=0x%08x pending"
					"=%d\n", __func__, intpr, status,
					hsdevp->dma_pending[tag]);
			}

			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);
		} else if (ata_is_pio(qc->tf.protocol)) {
			ata_sff_hsm_move(ap, qc, status, 0);
			handled = 1;
			goto DONE;
		} else {
			if (unlikely(sata_dwc_qc_complete(ap, qc, 1)))
				goto DRVSTILLBUSY;
		}

		handled = 1;
		goto DONE;
	}

	/*
	 * This is a NCQ command. At this point we need to figure out for which
	 * tags we have gotten a completion interrupt.  One interrupt may serve
	 * as completion for more than one operation when commands are queued
	 * (NCQ).  We need to process each completed command.
	 */

	 /* process completed commands */
	sactive = core_scr_read(SCR_ACTIVE);
	tag_mask = (host_pvt.sata_dwc_sactive_issued | sactive) ^ sactive;

	if (sactive != 0 || (host_pvt.sata_dwc_sactive_issued) > 1 || \
							tag_mask > 1) {
		dev_dbg(ap->dev, "%s NCQ:sactive=0x%08x  sactive_issued=0x%08x"
			"tag_mask=0x%08x\n", __func__, sactive,
			host_pvt.sata_dwc_sactive_issued, tag_mask);
	}

	if ((tag_mask | (host_pvt.sata_dwc_sactive_issued)) != \
					(host_pvt.sata_dwc_sactive_issued)) {
		dev_warn(ap->dev, "Bad tag mask?  sactive=0x%08x "
			 "(host_pvt.sata_dwc_sactive_issued)=0x%08x  tag_mask"
			 "=0x%08x\n", sactive, host_pvt.sata_dwc_sactive_issued,
			  tag_mask);
	}

	/* read just to clear ... not bad if currently still busy */
	status = ap->ops->sff_check_status(ap);
	dev_dbg(ap->dev, "%s ATA status register=0x%x\n", __func__, status);

	tag = 0;
	num_processed = 0;
	while (tag_mask) {
		num_processed++;
		while (!(tag_mask & 0x00000001)) {
			tag++;
			tag_mask <<= 1;
		}

		tag_mask &= (~0x00000001);
		qc = ata_qc_from_tag(ap, tag);

		/* To be picked up by completion functions */
		qc->ap->link.active_tag = tag;
		hsdevp->cmd_issued[tag] = SATA_DWC_CMD_ISSUED_NOT;

		/* Let libata/scsi layers handle error */
		if (status & ATA_ERR) {
			dev_dbg(ap->dev, "%s ATA_ERR (0x%x)\n", __func__,
				status);
			sata_dwc_qc_complete(ap, qc, 1);
			handled = 1;
			goto DONE;
		}

		/* Process completed command */
		dev_dbg(ap->dev, "%s NCQ command, protocol: %s\n", __func__,
			get_prot_descript(qc->tf.protocol));
		if (ata_is_dma(qc->tf.protocol)) {
			host_pvt.dma_interrupt_count++;
			if (hsdevp->dma_pending[tag] == \
					SATA_DWC_DMA_PENDING_NONE)
				dev_warn(ap->dev, "%s: DMA not pending?\n",
					__func__);
			if ((host_pvt.dma_interrupt_count % 2) == 0)
				sata_dwc_dma_xfer_complete(ap, 1);
		} else {
			if (unlikely(sata_dwc_qc_complete(ap, qc, 1)))
				goto STILLBUSY;
		}
		continue;

STILLBUSY:
		ap->stats.idle_irq++;
		dev_warn(ap->dev, "STILL BUSY IRQ ata%d: irq trap\n",
			ap->print_id);
	} /* while tag_mask */

	/*
	 * Check to see if any commands completed while we were processing our
	 * initial set of completed commands (read status clears interrupts,
	 * so we might miss a completed command interrupt if one came in while
	 * we were processing --we read status as part of processing a completed
	 * command).
	 */
	sactive2 = core_scr_read(SCR_ACTIVE);
	if (sactive2 != sactive) {
		dev_dbg(ap->dev, "More completed - sactive=0x%x sactive2"
			"=0x%x\n", sactive, sactive2);
	}
	handled = 1;

DONE:
	spin_unlock_irqrestore(&host->lock, flags);
	return IRQ_RETVAL(handled);
}

static void sata_dwc_clear_dmacr(struct sata_dwc_device_port *hsdevp, u8 tag)
{
	struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp);

	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX) {
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			 SATA_DWC_DMACR_RX_CLEAR(
				 in_le32(&(hsdev->sata_dwc_regs->dmacr))));
	} else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX) {
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			 SATA_DWC_DMACR_TX_CLEAR(
				 in_le32(&(hsdev->sata_dwc_regs->dmacr))));
	} else {
		/*
		 * This should not happen, it indicates the driver is out of
		 * sync.  If it does happen, clear dmacr anyway.
		 */
		dev_err(host_pvt.dwc_dev, "%s DMA protocol RX and"
			"TX DMA not pending tag=0x%02x pending=%d"
			" dmacr: 0x%08x\n", __func__, tag,
			hsdevp->dma_pending[tag],
			in_le32(&(hsdev->sata_dwc_regs->dmacr)));
		out_le32(&(hsdev->sata_dwc_regs->dmacr),
			SATA_DWC_DMACR_TXRXCH_CLEAR);
	}
}

static void sata_dwc_dma_xfer_complete(struct ata_port *ap, u32 check_status)
{
	struct ata_queued_cmd *qc;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	u8 tag = 0;

	tag = ap->link.active_tag;
	qc = ata_qc_from_tag(ap, tag);
	if (!qc) {
		dev_err(ap->dev, "failed to get qc");
		return;
	}

#ifdef DEBUG_NCQ
	if (tag > 0) {
		dev_info(ap->dev, "%s tag=%u cmd=0x%02x dma dir=%s proto=%s "
			 "dmacr=0x%08x\n", __func__, qc->tag, qc->tf.command,
			 get_dma_dir_descript(qc->dma_dir),
			 get_prot_descript(qc->tf.protocol),
			 in_le32(&(hsdev->sata_dwc_regs->dmacr)));
	}
#endif

	if (ata_is_dma(qc->tf.protocol)) {
		if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_NONE) {
			dev_err(ap->dev, "%s DMA protocol RX and TX DMA not "
				"pending dmacr: 0x%08x\n", __func__,
				in_le32(&(hsdev->sata_dwc_regs->dmacr)));
		}

		hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_NONE;
		sata_dwc_qc_complete(ap, qc, check_status);
		ap->link.active_tag = ATA_TAG_POISON;
	} else {
		sata_dwc_qc_complete(ap, qc, check_status);
	}
}

static int sata_dwc_qc_complete(struct ata_port *ap, struct ata_queued_cmd *qc,
				u32 check_status)
{
	u8 status = 0;
	u32 mask = 0x0;
	u8 tag = qc->tag;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	host_pvt.sata_dwc_sactive_queued = 0;
	dev_dbg(ap->dev, "%s checkstatus? %x\n", __func__, check_status);

	if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_TX)
		dev_err(ap->dev, "TX DMA PENDING\n");
	else if (hsdevp->dma_pending[tag] == SATA_DWC_DMA_PENDING_RX)
		dev_err(ap->dev, "RX DMA PENDING\n");
	dev_dbg(ap->dev, "QC complete cmd=0x%02x status=0x%02x ata%u:"
		" protocol=%d\n", qc->tf.command, status, ap->print_id,
		 qc->tf.protocol);

	/* clear active bit */
	mask = (~(qcmd_tag_to_mask(tag)));
	host_pvt.sata_dwc_sactive_queued = (host_pvt.sata_dwc_sactive_queued) \
						& mask;
	host_pvt.sata_dwc_sactive_issued = (host_pvt.sata_dwc_sactive_issued) \
						& mask;
	ata_qc_complete(qc);
	return 0;
}

static void sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev)
{
	/* Enable selective interrupts by setting the interrupt maskregister*/
	out_le32(&hsdev->sata_dwc_regs->intmr,
		 SATA_DWC_INTMR_ERRM |
		 SATA_DWC_INTMR_NEWFPM |
		 SATA_DWC_INTMR_PMABRTM |
		 SATA_DWC_INTMR_DMATM);
	/*
	 * Unmask the error bits that should trigger an error interrupt by
	 * setting the error mask register.
	 */
	out_le32(&hsdev->sata_dwc_regs->errmr, SATA_DWC_SERROR_ERR_BITS);

	dev_dbg(host_pvt.dwc_dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
		 __func__, in_le32(&hsdev->sata_dwc_regs->intmr),
		in_le32(&hsdev->sata_dwc_regs->errmr));
}

static void sata_dwc_setup_port(struct ata_ioports *port, unsigned long base)
{
	port->cmd_addr = (void __iomem *)base + 0x00;
	port->data_addr = (void __iomem *)base + 0x00;

	port->error_addr = (void __iomem *)base + 0x04;
	port->feature_addr = (void __iomem *)base + 0x04;

	port->nsect_addr = (void __iomem *)base + 0x08;

	port->lbal_addr = (void __iomem *)base + 0x0c;
	port->lbam_addr = (void __iomem *)base + 0x10;
	port->lbah_addr = (void __iomem *)base + 0x14;

	port->device_addr = (void __iomem *)base + 0x18;
	port->command_addr = (void __iomem *)base + 0x1c;
	port->status_addr = (void __iomem *)base + 0x1c;

	port->altstatus_addr = (void __iomem *)base + 0x20;
	port->ctl_addr = (void __iomem *)base + 0x20;
}

/*
 * Function : sata_dwc_port_start
 * arguments : struct ata_ioports *port
 * Return value : returns 0 if success, error code otherwise
 * This function allocates the scatter gather LLI table for AHB DMA
 */
static int sata_dwc_port_start(struct ata_port *ap)
{
	int err = 0;
	struct sata_dwc_device *hsdev;
	struct sata_dwc_device_port *hsdevp = NULL;
	struct device *pdev;
	int i;

	hsdev = HSDEV_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: port_no=%d\n", __func__, ap->port_no);

	hsdev->host = ap->host;
	pdev = ap->host->dev;
	if (!pdev) {
		dev_err(ap->dev, "%s: no ap->host->dev\n", __func__);
		err = -ENODEV;
		goto CLEANUP;
	}

	/* Allocate Port Struct */
	hsdevp = kzalloc(sizeof(*hsdevp), GFP_KERNEL);
	if (!hsdevp) {
		dev_err(ap->dev, "%s: kmalloc failed for hsdevp\n", __func__);
		err = -ENOMEM;
		goto CLEANUP;
	}
	hsdevp->hsdev = hsdev;

	for (i = 0; i < SATA_DWC_QCMD_MAX; i++)
		hsdevp->cmd_issued[i] = SATA_DWC_CMD_ISSUED_NOT;

	ap->bmdma_prd = NULL;	/* set these so libata doesn't use them */
	ap->bmdma_prd_dma = 0;

	/*
	 * DMA - Assign scatter gather LLI table. We can't use the libata
	 * version since it's PRD is IDE PCI specific.
	 */
	for (i = 0; i < SATA_DWC_QCMD_MAX; i++) {
		hsdevp->llit[i] = dma_alloc_coherent(pdev,
						     SATA_DWC_DMAC_LLI_TBL_SZ,
						     &(hsdevp->llit_dma[i]),
						     GFP_ATOMIC);
		if (!hsdevp->llit[i]) {
			dev_err(ap->dev, "%s: dma_alloc_coherent failed\n",
				 __func__);
			err = -ENOMEM;
			goto CLEANUP_ALLOC;
		}
	}

	if (ap->port_no == 0)  {
		dev_dbg(ap->dev, "%s: clearing TXCHEN, RXCHEN in DMAC\n",
			__func__);
		out_le32(&hsdev->sata_dwc_regs->dmacr,
			 SATA_DWC_DMACR_TXRXCH_CLEAR);

		dev_dbg(ap->dev, "%s: setting burst size in DBTSR\n",
			 __func__);
		out_le32(&hsdev->sata_dwc_regs->dbtsr,
			 (SATA_DWC_DBTSR_MWR(AHB_DMA_BRST_DFLT) |
			  SATA_DWC_DBTSR_MRD(AHB_DMA_BRST_DFLT)));
	}

	/* Clear any error bits before libata starts issuing commands */
	clear_serror();
	ap->private_data = hsdevp;
	dev_dbg(ap->dev, "%s: done\n", __func__);
	return 0;

CLEANUP_ALLOC:
	kfree(hsdevp);
CLEANUP:
	dev_dbg(ap->dev, "%s: fail. ap->id = %d\n", __func__, ap->print_id);
	return err;
}

static void sata_dwc_port_stop(struct ata_port *ap)
{
	int i;
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: ap->id = %d\n", __func__, ap->print_id);

	if (hsdevp && hsdev) {
		/* deallocate LLI table */
		for (i = 0; i < SATA_DWC_QCMD_MAX; i++) {
			dma_free_coherent(ap->host->dev,
					  SATA_DWC_DMAC_LLI_TBL_SZ,
					 hsdevp->llit[i], hsdevp->llit_dma[i]);
		}

		kfree(hsdevp);
	}
	ap->private_data = NULL;
}

/*
 * Function : sata_dwc_exec_command_by_tag
 * arguments : ata_port *ap, ata_taskfile *tf, u8 tag, u32 cmd_issued
 * Return value : None
 * This function keeps track of individual command tag ids and calls
 * ata_exec_command in libata
 */
static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
					 struct ata_taskfile *tf,
					 u8 tag, u32 cmd_issued)
{
	unsigned long flags;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
		ata_get_cmd_descript(tf->command), tag);

	spin_lock_irqsave(&ap->host->lock, flags);
	hsdevp->cmd_issued[tag] = cmd_issued;
	spin_unlock_irqrestore(&ap->host->lock, flags);
	/*
	 * Clear SError before executing a new command.
	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
	 * managed SError register for the disk needs to be done before the
	 * task file is loaded.
	 */
	clear_serror();
	ata_sff_exec_command(ap, tf);
}

static void sata_dwc_bmdma_setup_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	sata_dwc_exec_command_by_tag(qc->ap, &qc->tf, tag,
				     SATA_DWC_CMD_ISSUED_PEND);
}

static void sata_dwc_bmdma_setup(struct ata_queued_cmd *qc)
{
	u8 tag = qc->tag;

	if (ata_is_ncq(qc->tf.protocol)) {
		dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n",
			__func__, qc->ap->link.sactive, tag);
	} else {
		tag = 0;
	}
	sata_dwc_bmdma_setup_by_tag(qc, tag);
}

static void sata_dwc_bmdma_start_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	int start_dma;
	u32 reg, dma_chan;
	struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc);
	struct ata_port *ap = qc->ap;
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
	int dir = qc->dma_dir;
	dma_chan = hsdevp->dma_chan[tag];

	if (hsdevp->cmd_issued[tag] != SATA_DWC_CMD_ISSUED_NOT) {
		start_dma = 1;
		if (dir == DMA_TO_DEVICE)
			hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_TX;
		else
			hsdevp->dma_pending[tag] = SATA_DWC_DMA_PENDING_RX;
	} else {
		dev_err(ap->dev, "%s: Command not pending cmd_issued=%d "
			"(tag=%d) DMA NOT started\n", __func__,
			hsdevp->cmd_issued[tag], tag);
		start_dma = 0;
	}

	dev_dbg(ap->dev, "%s qc=%p tag: %x cmd: 0x%02x dma_dir: %s "
		"start_dma? %x\n", __func__, qc, tag, qc->tf.command,
		get_dma_dir_descript(qc->dma_dir), start_dma);
	sata_dwc_tf_dump(&(qc->tf));

	if (start_dma) {
		reg = core_scr_read(SCR_ERROR);
		if (reg & SATA_DWC_SERROR_ERR_BITS) {
			dev_err(ap->dev, "%s: ****** SError=0x%08x ******\n",
				__func__, reg);
		}

		if (dir == DMA_TO_DEVICE)
			out_le32(&hsdev->sata_dwc_regs->dmacr,
				SATA_DWC_DMACR_TXCHEN);
		else
			out_le32(&hsdev->sata_dwc_regs->dmacr,
				SATA_DWC_DMACR_RXCHEN);

		/* Enable AHB DMA transfer on the specified channel */
		dma_dwc_xfer_start(dma_chan);
	}
}

static void sata_dwc_bmdma_start(struct ata_queued_cmd *qc)
{
	u8 tag = qc->tag;

	if (ata_is_ncq(qc->tf.protocol)) {
		dev_dbg(qc->ap->dev, "%s: ap->link.sactive=0x%08x tag=%d\n",
			__func__, qc->ap->link.sactive, tag);
	} else {
		tag = 0;
	}
	dev_dbg(qc->ap->dev, "%s\n", __func__);
	sata_dwc_bmdma_start_by_tag(qc, tag);
}

/*
 * Function : sata_dwc_qc_prep_by_tag
 * arguments : ata_queued_cmd *qc, u8 tag
 * Return value : None
 * qc_prep for a particular queued command based on tag
 */
static void sata_dwc_qc_prep_by_tag(struct ata_queued_cmd *qc, u8 tag)
{
	struct scatterlist *sg = qc->sg;
	struct ata_port *ap = qc->ap;
	int dma_chan;
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);

	dev_dbg(ap->dev, "%s: port=%d dma dir=%s n_elem=%d\n",
		__func__, ap->port_no, get_dma_dir_descript(qc->dma_dir),
		 qc->n_elem);

	dma_chan = dma_dwc_xfer_setup(sg, qc->n_elem, hsdevp->llit[tag],
				      hsdevp->llit_dma[tag],
				      (void __iomem *)&hsdev->sata_dwc_regs->dmadr,
				      qc->dma_dir);
	if (dma_chan < 0) {
		dev_err(ap->dev, "%s: dma_dwc_xfer_setup returns err %d\n",
			__func__, dma_chan);
		return;
	}
	hsdevp->dma_chan[tag] = dma_chan;
}

static unsigned int sata_dwc_qc_issue(struct ata_queued_cmd *qc)
{
	u32 sactive;
	u8 tag = qc->tag;
	struct ata_port *ap = qc->ap;

#ifdef DEBUG_NCQ
	if (qc->tag > 0 || ap->link.sactive > 1)
		dev_info(ap->dev, "%s ap id=%d cmd(0x%02x)=%s qc tag=%d "
			 "prot=%s ap active_tag=0x%08x ap sactive=0x%08x\n",
			 __func__, ap->print_id, qc->tf.command,
			 ata_get_cmd_descript(qc->tf.command),
			 qc->tag, get_prot_descript(qc->tf.protocol),
			 ap->link.active_tag, ap->link.sactive);
#endif

	if (!ata_is_ncq(qc->tf.protocol))
		tag = 0;
	sata_dwc_qc_prep_by_tag(qc, tag);

	if (ata_is_ncq(qc->tf.protocol)) {
		sactive = core_scr_read(SCR_ACTIVE);
		sactive |= (0x00000001 << tag);
		core_scr_write(SCR_ACTIVE, sactive);

		dev_dbg(qc->ap->dev, "%s: tag=%d ap->link.sactive = 0x%08x "
			"sactive=0x%08x\n", __func__, tag, qc->ap->link.sactive,
			sactive);

		ap->ops->sff_tf_load(ap, &qc->tf);
		sata_dwc_exec_command_by_tag(ap, &qc->tf, qc->tag,
					     SATA_DWC_CMD_ISSUED_PEND);
	} else {
		ata_sff_qc_issue(qc);
	}
	return 0;
}

/*
 * Function : sata_dwc_qc_prep
 * arguments : ata_queued_cmd *qc
 * Return value : None
 * qc_prep for a particular queued command
 */

static void sata_dwc_qc_prep(struct ata_queued_cmd *qc)
{
	if ((qc->dma_dir == DMA_NONE) || (qc->tf.protocol == ATA_PROT_PIO))
		return;

#ifdef DEBUG_NCQ
	if (qc->tag > 0)
		dev_info(qc->ap->dev, "%s: qc->tag=%d ap->active_tag=0x%08x\n",
			 __func__, qc->tag, qc->ap->link.active_tag);

	return ;
#endif
}

static void sata_dwc_error_handler(struct ata_port *ap)
{
	ata_sff_error_handler(ap);
}

static int sata_dwc_hardreset(struct ata_link *link, unsigned int *class,
			      unsigned long deadline)
{
	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap);
	int ret;

	ret = sata_sff_hardreset(link, class, deadline);

	sata_dwc_enable_interrupts(hsdev);

	/* Reconfigure the DMA control register */
	out_le32(&hsdev->sata_dwc_regs->dmacr,
		 SATA_DWC_DMACR_TXRXCH_CLEAR);

	/* Reconfigure the DMA Burst Transaction Size register */
	out_le32(&hsdev->sata_dwc_regs->dbtsr,
		 SATA_DWC_DBTSR_MWR(AHB_DMA_BRST_DFLT) |
		 SATA_DWC_DBTSR_MRD(AHB_DMA_BRST_DFLT));

	return ret;
}

/*
 * scsi mid-layer and libata interface structures
 */
static struct scsi_host_template sata_dwc_sht = {
	ATA_NCQ_SHT(DRV_NAME),
	/*
	 * test-only: Currently this driver doesn't handle NCQ
	 * correctly. We enable NCQ but set the queue depth to a
	 * max of 1. This will get fixed in in a future release.
	 */
	.sg_tablesize		= LIBATA_MAX_PRD,
	/* .can_queue		= ATA_MAX_QUEUE, */
	.dma_boundary		= ATA_DMA_BOUNDARY,
};

static struct ata_port_operations sata_dwc_ops = {
	.inherits		= &ata_sff_port_ops,

	.error_handler		= sata_dwc_error_handler,
	.hardreset		= sata_dwc_hardreset,

	.qc_prep		= sata_dwc_qc_prep,
	.qc_issue		= sata_dwc_qc_issue,

	.scr_read		= sata_dwc_scr_read,
	.scr_write		= sata_dwc_scr_write,

	.port_start		= sata_dwc_port_start,
	.port_stop		= sata_dwc_port_stop,

	.bmdma_setup		= sata_dwc_bmdma_setup,
	.bmdma_start		= sata_dwc_bmdma_start,
};

static const struct ata_port_info sata_dwc_port_info[] = {
	{
		.flags		= ATA_FLAG_SATA | ATA_FLAG_NCQ,
		.pio_mask	= ATA_PIO4,
		.udma_mask	= ATA_UDMA6,
		.port_ops	= &sata_dwc_ops,
	},
};

static int sata_dwc_probe(struct platform_device *ofdev)
{
	struct sata_dwc_device *hsdev;
	u32 idr, versionr;
	char *ver = (char *)&versionr;
	u8 __iomem *base;
	int err = 0;
	int irq;
	struct ata_host *host;
	struct ata_port_info pi = sata_dwc_port_info[0];
	const struct ata_port_info *ppi[] = { &pi, NULL };
	struct device_node *np = ofdev->dev.of_node;
	u32 dma_chan;

	/* Allocate DWC SATA device */
	host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_DWC_MAX_PORTS);
	hsdev = devm_kzalloc(&ofdev->dev, sizeof(*hsdev), GFP_KERNEL);
	if (!host || !hsdev)
		return -ENOMEM;

	host->private_data = hsdev;

	if (of_property_read_u32(np, "dma-channel", &dma_chan)) {
		dev_warn(&ofdev->dev, "no dma-channel property set."
			 " Use channel 0\n");
		dma_chan = 0;
	}
	host_pvt.dma_channel = dma_chan;

	/* Ioremap SATA registers */
	base = of_iomap(np, 0);
	if (!base) {
		dev_err(&ofdev->dev, "ioremap failed for SATA register"
			" address\n");
		return -ENODEV;
	}
	hsdev->reg_base = base;
	dev_dbg(&ofdev->dev, "ioremap done for SATA register address\n");

	/* Synopsys DWC SATA specific Registers */
	hsdev->sata_dwc_regs = (void *__iomem)(base + SATA_DWC_REG_OFFSET);

	/* Setup port */
	host->ports[0]->ioaddr.cmd_addr = base;
	host->ports[0]->ioaddr.scr_addr = base + SATA_DWC_SCR_OFFSET;
	host_pvt.scr_addr_sstatus = base + SATA_DWC_SCR_OFFSET;
	sata_dwc_setup_port(&host->ports[0]->ioaddr, (unsigned long)base);

	/* Read the ID and Version Registers */
	idr = in_le32(&hsdev->sata_dwc_regs->idr);
	versionr = in_le32(&hsdev->sata_dwc_regs->versionr);
	dev_notice(&ofdev->dev, "id %d, controller version %c.%c%c\n",
		   idr, ver[0], ver[1], ver[2]);

	/* Get SATA DMA interrupt number */
	irq = irq_of_parse_and_map(np, 1);
	if (irq == NO_IRQ) {
		dev_err(&ofdev->dev, "no SATA DMA irq\n");
		err = -ENODEV;
		goto error_iomap;
	}

	/* Get physical SATA DMA register base address */
	host_pvt.sata_dma_regs = (void *)of_iomap(np, 1);
	if (!(host_pvt.sata_dma_regs)) {
		dev_err(&ofdev->dev, "ioremap failed for AHBDMA register"
			" address\n");
		err = -ENODEV;
		goto error_iomap;
	}

	/* Save dev for later use in dev_xxx() routines */
	host_pvt.dwc_dev = &ofdev->dev;

	/* Initialize AHB DMAC */
	err = dma_dwc_init(hsdev, irq);
	if (err)
		goto error_dma_iomap;

	/* Enable SATA Interrupts */
	sata_dwc_enable_interrupts(hsdev);

	/* Get SATA interrupt number */
	irq = irq_of_parse_and_map(np, 0);
	if (irq == NO_IRQ) {
		dev_err(&ofdev->dev, "no SATA DMA irq\n");
		err = -ENODEV;
		goto error_out;
	}

	/*
	 * Now, register with libATA core, this will also initiate the
	 * device discovery process, invoking our port_start() handler &
	 * error_handler() to execute a dummy Softreset EH session
	 */
	err = ata_host_activate(host, irq, sata_dwc_isr, 0, &sata_dwc_sht);
	if (err)
		dev_err(&ofdev->dev, "failed to activate host");

	dev_set_drvdata(&ofdev->dev, host);
	return 0;

error_out:
	/* Free SATA DMA resources */
	dma_dwc_exit(hsdev);
error_dma_iomap:
	iounmap((void __iomem *)host_pvt.sata_dma_regs);
error_iomap:
	iounmap(base);
	return err;
}

static int sata_dwc_remove(struct platform_device *ofdev)
{
	struct device *dev = &ofdev->dev;
	struct ata_host *host = dev_get_drvdata(dev);
	struct sata_dwc_device *hsdev = host->private_data;

	ata_host_detach(host);

	/* Free SATA DMA resources */
	dma_dwc_exit(hsdev);

	iounmap((void __iomem *)host_pvt.sata_dma_regs);
	iounmap(hsdev->reg_base);
	dev_dbg(&ofdev->dev, "done\n");
	return 0;
}

static const struct of_device_id sata_dwc_match[] = {
	{ .compatible = "amcc,sata-460ex", },
	{}
};
MODULE_DEVICE_TABLE(of, sata_dwc_match);

static struct platform_driver sata_dwc_driver = {
	.driver = {
		.name = DRV_NAME,
		.of_match_table = sata_dwc_match,
	},
	.probe = sata_dwc_probe,
	.remove = sata_dwc_remove,
};

module_platform_driver(sata_dwc_driver);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Mark Miesfeld <mmiesfeld@amcc.com>");
MODULE_DESCRIPTION("DesignWare Cores SATA controller low lever driver");
MODULE_VERSION(DRV_VERSION);

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 13:24                                                                                               ` Måns Rullgård
  (?)
@ 2015-12-21 14:40                                                                                               ` Julian Margetson
  2015-12-21 15:24                                                                                                   ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 14:40 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

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

On 12/21/2015 9:24 AM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>>>>> P.S. Anyway we have to ask Julian to try the kernel with
>>>>> 8b3444852a2b58129 reverted.
>>>>>
>>>> git revert 8b3444852a2b58129
>>>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>>>> hint: after resolving the conflicts, mark the corrected paths
>>>> hint: with 'git add <paths>' or 'git rm <paths>'
>>>> hint: and commit the result with 'git commit'
>>> Yeah, that won't work since there are numerous changes afterward.  Just
>>> revert the entire file back to 4.0 like this:
>>>
>>> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>>>
>>   CC [M]  drivers/ata/sata_dwc_460ex.o
>> drivers/ata/sata_dwc_460ex.c:467:36: error: macro
>> "dma_request_channel" requires 3 arguments, but only 1 given
>>   static int dma_request_channel(void)
>>                                      ^
>> drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’,
>> ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
>>   {
>>   ^
>> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
>> drivers/ata/sata_dwc_460ex.c:758:31: error: macro
>> "dma_request_channel" requires 3 arguments, but only 1 given
>>    dma_ch = dma_request_channel();
>>                                 ^
>> drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’
>> undeclared (first use in this function)
>>    dma_ch = dma_request_channel();
>>             ^
>> drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier
>> is reported only once for each function it appears in
>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
>> drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct
>> sata_dwc_device_port’ has no member named ‘dws’
>>    struct dw_dma_slave *dws = hsdevp->dws;
>>                                     ^
>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
>> drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable
>> ‘mask’ [-Wunused-variable]
>>    dma_cap_mask_t mask;
>>                   ^
>> drivers/ata/sata_dwc_460ex.c: At top level:
>> drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’
>> defined but not used [-Wunused-variable]
>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>                              ^
>> drivers/ata/sata_dwc_460ex.c:1279:13: warning:
>> ‘sata_dwc_dma_filter’ defined but not used [-Wunused-function]
>>   static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
>>               ^
> Those messages do not match the contents of the file from v4.0.
> For your convenience, here's the file as it should be.
>
> $ sha1sum drivers/ata/sata_dwc_460ex.c
> 0f54dfa3a91591101f5de434c3a631a5cd20ff1a  drivers/ata/sata_dwc_460ex.c
>


[-- Attachment #2: log2.log --]
[-- Type: text/plain, Size: 184340 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.21 10:13:22 =~=~=~=~=~=~=~=~=~=~=~=
1
VESA:  OK
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex-dirty (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #3 PREEMPT Mon Dec 21 10:06:37 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000174] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004035] devtmpfs: initialized
[    0.006769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007157] xor: measuring software checksum speed
[    0.016350]    8regs     :   856.000 MB/sec
[    0.026358]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046421]    32regs_prefetch:   996.000 MB/sec
[    0.046428] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048910] prandom: 100 self tests passed
[    0.049444] NET: Registered protocol family 16
[    0.052545] cpuidle: using governor ladder
[    0.055580] cpuidle: using governor menu
[    0.055978] 256k L2-cache enabled
[    0.056062] PCIE0: Port disabled via device-tree
[    0.056112] PCIE1: Checking link...
[    0.056119] PCIE1: Device detected, waiting for link...
[    0.056125] PCIE1: link is up !
[    0.158411] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158438]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158453]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158463]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158486] 4xx PCI DMA offset set to 0x00000000
[    0.158492] 4xx PCI DMA window base to 0x0000000000000000
[    0.158498] DMA window size 0x0000000080000000
[    0.158522] PCIE1: successfully set as root-complex
[    0.158586] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158602]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158616]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158627]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158640] 4xx PCI DMA offset set to 0x00000000
[    0.158646] 4xx PCI DMA window base to 0x0000000000000000
[    0.158652] DMA window size 0x0000000080000000
[    0.159138] PCI: Probing PCI hardware
[    0.159238] PCI host bridge to bus 0000:80
[    0.159257] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159270] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159282] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159295] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159309] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159347] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159387] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159420] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159694] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159745] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159765] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159781] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159804] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159866] pci 0000:81:00.0: supports D1 D2
[    0.159876] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160027] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160075] pci 0000:81:00.1: reg 0x10: [mem 0xe90060000-0xe90063fff 64bit]
[    0.160158] pci 0000:81:00.1: supports D1 D2
[    0.160284] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160300] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160311] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160399] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160490] PCI host bridge to bus 0001:00
[    0.160504] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160516] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160528] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160538] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160549] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160600] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160613] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160625] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160638] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160650] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160663] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160676] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160703] pci 0001:00:04.0: supports D1 D2
[    0.160824] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160847] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160860] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160896] pci 0001:00:06.0: supports D1 D2
[    0.161069] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161160] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161172] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161183] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161199] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161220] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161237] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161250] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161267] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161280] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161291] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161302] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161313] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161326] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161336] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161345] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161355] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161365] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161375] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161390] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161403] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161415] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161427] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161438] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161450] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161461] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161473] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161485] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161497] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161507] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161516] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188262] raid6: int32x1  gen()   300 MB/s
[    0.205416] raid6: int32x1  xor()   173 MB/s
[    0.222443] raid6: int32x2  gen()   433 MB/s
[    0.239490] raid6: int32x2  xor()   240 MB/s
[    0.256583] raid6: int32x4  gen()   476 MB/s
[    0.273661] raid6: int32x4  xor()   267 MB/s
[    0.290717] raid6: int32x8  gen()   234 MB/s
[    0.307889] raid6: int32x8  xor()   218 MB/s
[    0.307895] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307901] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307908] raid6: using intx1 recovery algorithm
[    0.308206] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308220] vgaarb: loaded
[    0.308226] vgaarb: bridge control possible 0000:81:00.0
[    0.308491] SCSI subsystem initialized
[    0.308630] libata version 3.00 loaded.
[    0.308864] usbcore: registered new interface driver usbfs
[    0.308908] usbcore: registered new interface driver hub
[    0.308962] usbcore: registered new device driver usb
[    0.309056] pps_core: LinuxPPS API ver. 1 registered
[    0.309064] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309092] PTP clock support registered
[    0.309236] EDAC MC: Ver: 3.0.0
[    0.309583] Advanced Linux Sound Architecture Driver Initialized.
[    0.329508] DMA-API: preallocated 65536 debug entries
[    0.329522] DMA-API: debugging enabled by kernel config
[    0.329567] clocksource: Switched to clocksource timebase
[    0.336170] NET: Registered protocol family 2
[    0.336752] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336846] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337187] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337298] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337363] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337709] NET: Registered protocol family 1
[    0.338023] RPC: Registered named UNIX socket transport module.
[    0.338032] RPC: Registered udp transport module.
[    0.338038] RPC: Registered tcp transport module.
[    0.338044] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338114] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338802] Could not remap bcsr
[    0.341958] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345013] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355157] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355692] fuse init (API version 7.23)
[    0.359875] async_tx: api initialized (async)
[    0.359975] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.359992] io scheduler noop registered
[    0.360134] io scheduler cfq registered (default)
[    0.362193] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362203] crc32: self tests passed, processed 225944 bytes in 892360 nsec
[    0.363177] crc32c: CRC_LE_BITS = 64
[    0.363186] crc32c: self tests passed, processed 225944 bytes in 446237 nsec
[    0.429578] crc32_combine: 8373 self tests passed
[    0.496173] crc32c_combine: 8373 self tests passed
[    0.496226] glob: 64 self-tests passed, 0 failed
[    0.534451] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535239] console [ttyS0] disabled
[    0.555384] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.838089] console [ttyS0] enabled
[    1.862196] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.872037] console [ttyS0] disabled
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex-dirty (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #3 PREEMPT Mon Dec 21 10:06:37 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a33dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6732K kernel code, 332K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000013] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000023] clocksource: timebase mult[dda520] shift[24] registered
[    0.000035] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000144] Console: colour dummy device 80x25
[    0.000174] pid_max: default: 32768 minimum: 301
[    0.000276] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000288] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004035] devtmpfs: initialized
[    0.006769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007157] xor: measuring software checksum speed
[    0.016350]    8regs     :   856.000 MB/sec
[    0.026358]    8regs_prefetch:   784.000 MB/sec
[    0.036389]    32regs    :  1120.000 MB/sec
[    0.046421]    32regs_prefetch:   996.000 MB/sec
[    0.046428] xor: using function: 32regs (1120.000 MB/sec)
[    0.046463] prandom: seed boundary self test passed
[    0.048910] prandom: 100 self tests passed
[    0.049444] NET: Registered protocol family 16
[    0.052545] cpuidle: using governor ladder
[    0.055580] cpuidle: using governor menu
[    0.055978] 256k L2-cache enabled
[    0.056062] PCIE0: Port disabled via device-tree
[    0.056112] PCIE1: Checking link...
[    0.056119] PCIE1: Device detected, waiting for link...
[    0.056125] PCIE1: link is up !
[    0.158411] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158438]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158453]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158463]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158486] 4xx PCI DMA offset set to 0x00000000
[    0.158492] 4xx PCI DMA window base to 0x0000000000000000
[    0.158498] DMA window size 0x0000000080000000
[    0.158522] PCIE1: successfully set as root-complex
[    0.158586] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158602]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158616]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158627]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158640] 4xx PCI DMA offset set to 0x00000000
[    0.158646] 4xx PCI DMA window base to 0x0000000000000000
[    0.158652] DMA window size 0x0000000080000000
[    0.159138] PCI: Probing PCI hardware
[    0.159238] PCI host bridge to bus 0000:80
[    0.159257] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159270] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159282] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159295] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159309] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159347] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159387] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159420] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159694] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159745] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159765] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159781] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159804] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159866] pci 0000:81:00.0: supports D1 D2
[    0.159876] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160027] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160075] pci 0000:81:00.1: reg 0x10: [mem 0xe90060000-0xe90063fff 64bit]
[    0.160158] pci 0000:81:00.1: supports D1 D2
[    0.160284] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160300] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160311] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160399] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160490] PCI host bridge to bus 0001:00
[    0.160504] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160516] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160528] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160538] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160549] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160600] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160613] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160625] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160638] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160650] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160663] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160676] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160703] pci 0001:00:04.0: supports D1 D2
[    0.160824] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160847] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160860] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160896] pci 0001:00:06.0: supports D1 D2
[    0.161069] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161160] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161172] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161183] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161199] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161220] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161237] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161250] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161267] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161280] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161291] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161302] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161313] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161326] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161336] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161345] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161355] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161365] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161375] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161390] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161403] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161415] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161427] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161438] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161450] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161461] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161473] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161485] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161497] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161507] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161516] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188262] raid6: int32x1  gen()   300 MB/s
[    0.205416] raid6: int32x1  xor()   173 MB/s
[    0.222443] raid6: int32x2  gen()   433 MB/s
[    0.239490] raid6: int32x2  xor()   240 MB/s
[    0.256583] raid6: int32x4  gen()   476 MB/s
[    0.273661] raid6: int32x4  xor()   267 MB/s
[    0.290717] raid6: int32x8  gen()   234 MB/s
[    0.307889] raid6: int32x8  xor()   218 MB/s
[    0.307895] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307901] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307908] raid6: using intx1 recovery algorithm
[    0.308206] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308220] vgaarb: loaded
[    0.308226] vgaarb: bridge control possible 0000:81:00.0
[    0.308491] SCSI subsystem initialized
[    0.308630] libata version 3.00 loaded.
[    0.308864] usbcore: registered new interface driver usbfs
[    0.308908] usbcore: registered new interface driver hub
[    0.308962] usbcore: registered new device driver usb
[    0.309056] pps_core: LinuxPPS API ver. 1 registered
[    0.309064] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309092] PTP clock support registered
[    0.309236] EDAC MC: Ver: 3.0.0
[    0.309583] Advanced Linux Sound Architecture Driver Initialized.
[    0.329508] DMA-API: preallocated 65536 debug entries
[    0.329522] DMA-API: debugging enabled by kernel config
[    0.329567] clocksource: Switched to clocksource timebase
[    0.336170] NET: Registered protocol family 2
[    0.336752] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336846] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337187] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337298] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337363] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337709] NET: Registered protocol family 1
[    0.338023] RPC: Registered named UNIX socket transport module.
[    0.338032] RPC: Registered udp transport module.
[    0.338038] RPC: Registered tcp transport module.
[    0.338044] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338114] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338802] Could not remap bcsr
[    0.341958] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345013] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355157] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355692] fuse init (API version 7.23)
[    0.359875] async_tx: api initialized (async)
[    0.359975] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.359992] io scheduler noop registered
[    0.360134] io scheduler cfq registered (default)
[    0.362193] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362203] crc32: self tests passed, processed 225944 bytes in 892360 nsec
[    0.363177] crc32c: CRC_LE_BITS = 64
[    0.363186] crc32c: self tests passed, processed 225944 bytes in 446237 nsec
[    0.429578] crc32_combine: 8373 self tests passed
[    0.496173] crc32c_combine: 8373 self tests passed
[    0.496226] glob: 64 self-tests passed, 0 failed
[    0.534451] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535239] console [ttyS0] disabled
[    0.555384] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.838089] console [ttyS0] enabled
[    1.862196] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.872037] console [ttyS0] disabled
[    1.875700] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    3.183194] console [ttyS0] enabled
[    3.187315] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    3.196700] Generic non-volatile memory driver v1.1
[    3.201838] [drm] Initialized drm 1.1.0 20060810
[    3.206549] [drm] radeon kernel modesetting enabled.
[    3.212261] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.220250] [drm] register mmio base: 0xe90000000
[    3.224985] [drm] register mmio size: 262144
[    3.561083] ATOM BIOS: C44501
[    3.564387] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.573293] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.580959] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.585844] [drm] RAM width 128bits DDR
[    3.589873] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    3.596344] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    3.602876] [TTM] Initializing pool allocator
[    3.607331] [drm] radeon: 1024M of VRAM memory ready
[    3.612315] [drm] radeon: 2048M of GTT memory ready.
[    3.617347] [drm] Loading verde Microcode
[    3.621399] [drm] Internal thermal controller with fan control
[    3.627469] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.633993] [drm:radeon_pm_init] *ERROR* radeon: dpm initialization failed
[    3.641072] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.650257] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.658403] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.675133] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.733109] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.740403] radeon 0000:81:00.0: WB enabled
[    3.744631] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.754729] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.764824] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.774919] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.785015] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.825601] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.835702] radeon 0000:81:00.0: VCE init error (-22).
[    3.840851] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.847476] [drm] Driver supports precise vblank timestamp query.
[    3.853582] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.859495] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.867760] radeon 0000:81:00.0: radeon: using MSI.
[    3.872705] [drm] radeon: irq initialized.
[    4.446668] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.455481] radeon 0000:81:00.0: disabling GPU acceleration
[    4.664415] [drm] Radeon Display Connectors
[    4.668663] [drm] Connector 0:
[    4.671756] [drm]   HDMI-A-1
[    4.674654] [drm]   HPD4
[    4.677201] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.684602] [drm]   Encoders:
[    4.687580] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.691859] [drm] Connector 1:
[    4.694923] [drm]   DVI-I-1
[    4.697726] [drm]   HPD2
[    4.700265] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.707665] [drm]   Encoders:
[    4.710634] [drm]     DFP2: INTERNAL_UNIPHY
[    4.714828] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    4.832281] [drm] fb mappable at 0x80678000
[    4.836479] [drm] vram apper at 0x80000000
[    4.840584] [drm] size 8294400
[    4.843648] [drm] fb depth is 24
[    4.846884] [drm]    pitch is 7680
[    4.938472] Console: switching to colour frame buffer device 240x67
[    5.017399] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    5.026586] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    5.043349] brd: module loaded
[    5.050886] loop: module loaded
[    5.054299] sata_sil 0001:00:04.0: version 2.4
[    5.058863] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    5.066912] scsi host0: sata_sil
[    5.070439] scsi host1: sata_sil
[    5.073832] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    5.081160] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    5.089112] PPC 4xx OCP EMAC driver, version 3.54
[    5.094374] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    5.100252] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    5.105680] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    5.112840] TAH /plb/opb/emac-tah@ef601350 initialized
[    5.118030] TAH /plb/opb/emac-tah@ef601450 initialized
[    5.123445] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    5.130595] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    5.137479] eth0: found Generic MII PHY (0x00)
[    5.142106] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    5.149189] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    5.156086] eth1: found Generic MII PHY (0x01)
[    5.160594] PPP generic driver version 2.4.2
[    5.165047] PPP BSD Compression module registered
[    5.169773] PPP Deflate Compression module registered
[    5.174834] NET: Registered protocol family 24
[    5.179466] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.186158] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    5.190853] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    5.199476] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    5.211584] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    5.217974] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.224782] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.232010] usb usb1: Product: OF EHCI
[    5.235768] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex-dirty ehci_hcd
[    5.242739] usb usb1: SerialNumber: PPC-OF USB
[    5.247636] hub 1-0:1.0: USB hub found
[    5.251452] hub 1-0:1.0: 1 port detected
[    5.255724] ehci-pci: EHCI PCI platform driver
[    5.260269] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.266602] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.271197] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.278997] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.402593] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.415866] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.426568] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.446846] ata1.00: configured for UDMA/100
[    5.469840] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.484762] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.490226] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.502008] sd 0:0:0:0: [sda] Write Protect is off
[    5.512573] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.522652] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.557582] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    5.572105]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    5.613953] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.683948] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    5.696572] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.712153] hub 1-1:1.0: USB hub found
[    5.719684] hub 1-1:1.0: 7 ports detected
[    5.813593] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.842709] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    5.859689] ata2.00: configured for UDMA/100
[    5.875505] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    5.918707] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    5.934569] cdrom: Uniform CD-ROM driver Revision: 3.20
[    5.946176] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    5.955820] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.003581] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.013688] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.020551] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.027852] usb usb2: Product: OF OHCI
[    6.031663] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex-dirty ohci_hcd
[    6.038666] usb usb2: SerialNumber: PPC-OF USB
[    6.043699] hub 2-0:1.0: USB hub found
[    6.047513] hub 2-0:1.0: 1 port detected
[    6.051760] ohci-pci: OHCI PCI platform driver
[    6.056460] usbcore: registered new interface driver usblp
[    6.062096] usbcore: registered new interface driver usb-storage
[    6.068229] usbcore: registered new interface driver usbserial
[    6.074120] usbcore: registered new interface driver usbserial_generic
[    6.080695] usbserial: USB Serial support registered for generic
[    6.086971] mousedev: PS/2 mouse device common for all mice
[    6.092654] i2c /dev entries driver
[    6.098698] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.105858] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.112460] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.118529] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.125511] md: linear personality registered for level -1
[    6.131041] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.138403] md: raid0 personality registered for level 0
[    6.143756] md: raid1 personality registered for level 1
[    6.149097] usb 1-1.1: Product: USB 2.0 Hub
[    6.153594] md: raid10 personality registered for level 10
[    6.159226] hub 1-1.1:1.0: USB hub found
[    6.163426] md: raid6 personality registered for level 6
[    6.168795] hub 1-1.1:1.0: 4 ports detected
[    6.173064] md: raid5 personality registered for level 5
[    6.178469] md: raid4 personality registered for level 4
[    6.184662] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.193207] EDAC PPC4xx MC: v1.0.0
[    6.196698] EDAC PPC4xx MC: Reporting type: interrupt
[    6.202015] hidraw: raw HID events driver (C) Jiri Kosina
[    6.207914] usbcore: registered new interface driver usbhid
[    6.213547] usbhid: USB HID core driver
[    6.217903] usbcore: registered new interface driver snd-usb-audio
[    6.224190] usbcore: registered new interface driver snd-ua101
[    6.230124] usbcore: registered new interface driver snd-usb-usx2y
[    6.236520] ipip: IPv4 over IPv4 tunneling driver
[    6.241779] Initializing XFRM netlink socket
[    6.246816] NET: Registered protocol family 10
[    6.252255] sit: IPv6 over IPv4 tunneling driver
[    6.257416] NET: Registered protocol family 17
[    6.261910] NET: Registered protocol family 15
[    6.266605] Running MSI bitmap self-tests ...
[    6.271005] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.279652] Key type encrypted registered
[    6.285553] rtc-m41t80 8-0068: setting system clock to 2015-12-21 10:13:51 UTC (1450692831)
[    6.294167] ALSA device list:
[    6.297211]   No soundcards found.
[    6.301210] md: Waiting for all devices to be available before autodetect
[    6.308046] md: If you don't use raid, use raid=noautodetect
[    6.314493] md: Autodetecting RAID arrays.
[    6.318656] md: Scanned 0 and added 0 devices.
[    6.323121] md: autorun ...
[    6.325922] md: ... autorun DONE.
[    6.351876] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    6.384797] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.392881] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    6.400691] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.408083] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    6.414770] usb 1-1.2: Product: USB Keyboard
[    6.419337] usb 1-1.2: Manufacturer: CHICONY
[    6.430432] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.459733] devtmpfs: mounted
[    6.463353] Freeing unused kernel memory: 236K (c09be000 - c09f9000)
[    6.469841] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.493883] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    6.569783] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    6.577784] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.585504] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    6.614066] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    6.641598] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    6.678886] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    6.737410] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    6.744599] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.751948] usb 1-1.6: Product: USB Receiver
[    6.756765] usb 1-1.6: Manufacturer: Logitech
[    6.765033] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    6.828904] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    6.847231] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    6.910962] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    6.929188] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    6.940786] random: nonblocking pool is initialized
[    7.019596] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    7.119478] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    7.126748] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.134340] usb 1-1.7: Product: Ultra Fast Media 
[    7.139119] usb 1-1.7: Manufacturer: Generic
[    7.143907] usb 1-1.7: SerialNumber: 000000225001
[    7.149310] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    7.156280] scsi host2: usb-storage 1-1.7:1.0
[    7.611445] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    7.701097] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    7.719662] systemd[1]: Detected architecture ppc.

Welcome to Ubuntu 16.04!

[    7.757606] systemd[1]: Set hostname to <Sam460ex>.
[    7.931866] systemd-fstab-generator[116]: Mount point  is not a valid path, ignoring.
[    8.141936] systemd[110]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[    8.161807] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    8.171207] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    8.178509] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.000158] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    9.013033] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    9.025762] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[    9.040033] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    9.052022] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    9.064868] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    9.150338] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    9.160753] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[    9.172995] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    9.186487] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[    9.213162] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[    9.229195] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    9.262520] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    9.285107] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[    9.312925] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    9.332257] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[    9.344812] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    9.359209] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    9.376678] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    9.391866] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    9.403901] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[    9.426973] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    9.458530] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    9.475364] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    9.489981] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    9.504467] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    9.526159] systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[    9.548974] systemd[1]: Started Uncomplicated firewall.
[  OK  ] Started Uncomplicated firewall.
[    9.591015] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    9.677644] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[    9.695462] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[    9.718719] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[    9.726638] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[    9.752775] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[    9.772770] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    9.788357] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[    9.875211] systemd[1]: Started Apply Kernel Variables.
[  OK  ] Started Apply Kernel Variables.
[    9.935134] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[    9.961945] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[    9.974888] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[    9.985971] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   10.374168] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[   10.402674] systemd[1]: ureadahead.service: Unit entered failed state.
[   10.415697] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[   10.481983] systemd[1]: Started Create Static Device Nodes in /dev.
[  OK  ] Started Create Static Device Nodes in /dev.
[   10.532239] systemd[1]: Starting udev Kernel Device Manager...
         Starting udev Kernel Device Manager...
[   10.695005] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Started udev Kernel Device Manager.
         Starting File System Check on Root Device...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[   12.235118] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   12.245239] systemd-remount[154]: unhandled signal 11 at 0000000c nip 202779a4 lr 2027771c code 30001
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Flush Journal to Persistent Storage...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
[  OK  ] Started Load/Save Random Seed.
[   12.640257] systemd-journald[134]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   13.866938] sata-dwc 4bffd1000.sata: no dma-channel property set. Use channel 0
[  OK  ] Found device /dev/ttyS0.
[   13.949659] sata-dwc 4bffd1000.sata: ioremap done for SATA register address
[   14.046610] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[   14.117697] sata-dwc 4bffd1000.sata: DMA initialized
[   14.169481] sata-dwc 4bffd1000.sata: SATA DMA registers=0xf6a20800
[   14.228501] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   14.282625] sata-dwc 4bffd1000.sata: sata_dwc_port_start: port_no=0
[   14.312031] sata-dwc 4bffd1000.sata: sata_dwc_port_start: clearing TXCHEN, RXCHEN in DMAC
[   14.366655] sata-dwc 4bffd1000.sata: sata_dwc_port_start: setting burst size in DBTSR
[   14.430686] sata-dwc 4bffd1000.sata: sata_dwc_port_start: done
[   14.498667] scsi host3: sata-dwc
[   14.503512] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   14.522602] ata3: SATA max UDMA/133 irq 36
[   14.531090] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   14.545605] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   14.562646] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
[   14.579604] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   14.597623] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   14.613603] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   14.830734] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   14.846646] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.869598] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.889711] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.913616] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.936632] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.956716] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   14.976610] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   14.993610] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   15.009640] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.026640] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   15.046643] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.064694] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.081614] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.099686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   15.116635] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   15.133594] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.151646] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   15.168606] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.187623] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   15.198686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   15.215633] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   15.229817] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   15.238695] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ed21bc88 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   15.250436] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   15.257748] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed21bc88, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[  OK  ] Found device WDC_WD5000AAKS-00V1A0 NTFS.
[   15.360673] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   15.376249] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   15.384520] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   15.396264] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[   15.417706] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   15.425120] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   15.433736] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   15.440446] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   15.466630] ata3.00: ATA-8: WDC WD5000AAKS-00UU3A0, 01.03B01, max UDMA/133
[   15.480652] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 1/32)
[   15.498691] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   15.512967] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   15.521239] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   15.532982] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
         Mounting /media/NTFS...
[  OK  ] Reached target Sound Card.
[  OK  ] Created slice system-ifup.slice.
[   15.645431] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   15.659618] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   15.668497] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ed21bbb8 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   15.680237] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   15.687550] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed21bbb8, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[   15.762682] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   15.778255] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   15.786525] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   15.798270] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[   15.811351] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   15.818754] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   15.827373] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   15.834075] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[   15.938622] ata3.00: configured for UDMA/133
[   15.961880] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
[   15.978237] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   15.986280] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   16.002552] sd 3:0:0:0: [sdc] Write Protect is off
[   16.013620] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   16.026081] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   16.049186] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   16.058084] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd51300 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   16.069822] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d27f000 sg_len=4096
[   16.078008] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   16.087064] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd51300, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[   16.100022] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   16.110054] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   16.119186] BUG: spinlock recursion on CPU#0, kworker/u2:1/85
[   16.124935]  lock: 0xedd2f910, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   16.132947] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[   16.140793] Workqueue: events_unbound async_run_entry_fn
[   16.146119] Call Trace:
[   16.148582] [ee3cf8c0] [c0049238] do_raw_spin_lock+0x4c/0x100 (unreliable)
[   16.155491] [ee3cf8e0] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   16.161721] [ee3cf8f0] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[   16.170954] [ee3cf920] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[   16.178380] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   16.183883] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   16.189813] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   16.195750] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   16.201602] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   16.207367] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   16.212967] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   16.218553] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   16.224655] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   16.229905] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   16.236193] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   16.242392] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   16.248336] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   16.253927] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   16.259602] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   16.265367] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   16.271221] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   16.276722] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   16.281976] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   16.287138] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   16.292728] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   16.298666] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   16.304507] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   16.310103] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   16.314997] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   36.321191] BUG: spinlock lockup suspected on CPU#0, kworker/u2:1/85
[   36.327546]  lock: 0xedd2f910, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
[   36.335548] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[   36.343378] Workqueue: events_unbound async_run_entry_fn
[   36.348696] Call Trace:
[   36.351150] [ee3cf8c0] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   36.358049] [ee3cf8e0] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   36.364254] [ee3cf8f0] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[   36.373497] [ee3cf920] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[   36.380915] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   36.386416] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
[   36.392346] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   36.398283] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   36.404134] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   36.409898] [ee3cfaa0] [c024cd34] __blk_run_queue+0x44/0x58
[   36.415489] [ee3cfab0] [c0250780] blk_queue_bio+0x220/0x23c
[   36.421070] [ee3cfae0] [c024ec5c] generic_make_request+0xb8/0x150
[   36.427172] [ee3cfb10] [c024eda4] submit_bio+0xb0/0x138
[   36.432408] [ee3cfb60] [c00edb78] submit_bh_wbc.isra.25+0x168/0x174
[   36.438683] [ee3cfb80] [c00edf4c] block_read_full_page+0x2f4/0x30c
[   36.444880] [ee3cfc00] [c0088f34] do_read_cache_page+0xac/0x198
[   36.450817] [ee3cfc40] [c025fc38] read_dev_sector+0x3c/0x80
[   36.456408] [ee3cfc50] [c0261440] msdos_partition+0x78/0x54c
[   36.462077] [ee3cfcd0] [c0260bd0] check_partition+0x13c/0x1f0
[   36.467840] [ee3cfcf0] [c0260250] rescan_partitions+0xa8/0x2d8
[   36.473684] [ee3cfd40] [c00f15a8] __blkdev_get+0x150/0x33c
[   36.479186] [ee3cfd80] [c00f1804] blkdev_get+0x70/0x2c8
[   36.484431] [ee3cfdd0] [c025e03c] add_disk+0x2a8/0x3f0
[   36.489585] [ee3cfe10] [c0432790] sd_probe_async+0xe4/0x170
[   36.495168] [ee3cfe30] [c003b9e4] async_run_entry_fn+0x94/0x1a4
[   36.501095] [ee3cfe60] [c0034dcc] process_one_work+0x1c4/0x2d8
[   36.506946] [ee3cfe90] [c00351a4] worker_thread+0x288/0x3a8
[   36.512537] [ee3cfed0] [c0039798] kthread+0xc8/0xcc
[   36.517433] [ee3cff40] [c000b0d0] ret_from_kernel_thread+0x5c/0x64
[   36.531304] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   36.539328] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   36.545171] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   36.556653] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   36.565360] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   36.573719] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   36.583864] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   36.592134] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   36.599449] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   36.607721] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   36.614431] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  OK  ] Mounted /media/NTFS.
[  OK  ] Reached target Local File Systems.
         Starting LSB: AppArmor initialization...
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Wait for all "auto" /etc/n... up for network-online.target...
         Starting Clean up any mess left by 0dns-up...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Clean up any mess left by 0dns-up.
         Starting Nameserver information manager...
[  OK  ] Started Nameserver information manager.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started LSB: AppArmor initialization.
[  OK  ] Started ifup for eth0.
         Starting LSB: Raise network interfaces....
[   40.413104] eth0: link is up, 1000 FDX, pause enabled
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[   41.332489]  sdc: RDSK (512) sdc1 (DOS^G)(res 2 spb 1) sdc2 (SFS^@)(res 2 spb 1)
[   41.343801] sd 3:0:0:0: [sdc] Attached SCSI disk
[   41.404742] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   41.413636] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289d00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   41.425375] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   41.432695] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289d00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[   41.446496] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   41.453824] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   41.473267] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   41.482160] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   41.493899] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d30a000 sg_len=4096
[   41.502085] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   41.511141] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[   41.524100] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   41.534120] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   61.543255] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[   61.549786]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[   61.557970] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[   61.565978] Call Trace:
[   61.568443] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   61.575350] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   61.581568] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[   61.590800] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[   61.598223] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   61.603715] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[   61.609655] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   61.615590] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   61.621434] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   61.627191] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[   61.632782] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[   61.638889] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[   61.644491] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[   61.651129] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[   61.657665] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[   61.664040] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[   61.669201] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[   61.674270] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[   61.679255] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[   61.684834] --- interrupt: c01 at 0x2022c358
[   61.684834]     LR = 0x202eba90
\r\r[   61.719897] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   61.727920] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   61.733764] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   61.745245] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   61.753952] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0x5f lbah: 0x38
[   61.762571] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   61.772777] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   61.781047] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   61.788361] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   61.796634] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   61.803343] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   61.852246] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   61.861136] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289500 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   61.872875] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d31b000 sg_len=4096
[   61.881062] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   61.890116] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289500, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[   61.903076] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   61.913098] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   81.922231] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[   81.928763]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[   81.936946] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[   81.944954] Call Trace:
[   81.947422] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[   81.954327] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[   81.960537] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[   81.969777] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[   81.977199] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[   81.982708] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[   81.988639] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[   81.994567] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[   82.000419] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[   82.006176] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[   82.011775] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[   82.017891] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[   82.023493] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[   82.030131] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[   82.036676] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[   82.043050] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[   82.048211] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[   82.053280] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[   82.058258] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[   82.063845] --- interrupt: c01 at 0x2022c358
[   82.063845]     LR = 0x202eba90
[   82.071383] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   82.079393] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   82.085229] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   82.096711] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   82.105418] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x20 lbam: 0x60 lbah: 0x38
[   82.114029] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   82.124245] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   82.132523] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   82.139837] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   82.148109] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   82.154811] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   ***] (2 of 3) A start job is running for...ine.target (1min 13s / 2min 28s)[   82.194987] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   82.203879] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[   82.215618] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d31a000 sg_len=4096
[   82.223805] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   82.232860] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[   82.245819] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   82.255840] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  102.264975] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  102.271506]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  102.279690] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  102.287696] Call Trace:
[  102.290162] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  102.297078] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  102.303295] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  102.312537] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  102.319958] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  102.325460] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  102.331399] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  102.337336] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  102.343187] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  102.348953] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  102.354544] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  102.360651] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  102.366252] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  102.372874] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  102.379419] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  102.385794] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  102.390955] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  102.396015] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  102.401000] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  102.406580] --- interrupt: c01 at 0x2022c358
[  102.406580]     LR = 0x202eba90
[  102.414129] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  102.422137] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  102.427981] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  102.439464] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  102.448170] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[  102.456530] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  102.466657] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  102.474927] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  102.482241] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  102.490505] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  102.497215] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[    **] (3 of 3) A start job is running for...S daemon (smbd) (1min 1s / 5min)[  102.537956] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  102.546849] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  102.558588] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c2e3000 sg_len=4096
[  102.566773] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  102.575829] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  102.588788] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  102.598808] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  122.607944] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  122.614474]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  122.622658] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  122.630666] Call Trace:
[  122.633132] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  122.640038] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  122.646257] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  122.655489] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  122.662902] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  122.668403] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  122.674334] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  122.680261] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  122.686114] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  122.691870] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  122.697470] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  122.703585] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  122.709188] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  122.715826] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  122.722370] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  122.728736] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  122.733898] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  122.738966] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  122.743952] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  122.749539] --- interrupt: c01 at 0x2022c358
[  122.749539]     LR = 0x202eba90
[  122.757027] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  122.765037] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  122.770882] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  122.782364] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  122.791069] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x8 lbam: 0x0 lbah: 0x0
[  122.799429] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  122.809619] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  122.817904] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  122.825219] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  122.833492] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  122.840202] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[     *] (3 of 3) A start job is running for... daemon (smbd) (1min 21s / 5min)[  122.881170] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  122.890060] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  122.901799] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c2e2000 sg_len=4096
[  122.909985] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  122.919041] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  122.932000] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  122.942021] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  142.951155] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  142.957686]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  142.965871] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  142.973878] Call Trace:
[  142.976343] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  142.983259] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  142.989468] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  142.998710] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  143.006140] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  143.011632] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  143.017564] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  143.023499] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  143.029342] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  143.035108] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  143.040708] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  143.046824] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  143.052426] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  143.059055] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  143.065591] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  143.071966] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  143.077127] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  143.082187] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  143.087165] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  143.092761] --- interrupt: c01 at 0x2022c358
[  143.092761]     LR = 0x202eba90
[  143.100262] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  143.108274] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  143.114110] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  143.125593] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  143.134299] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x60 lbah: 0x38
[  143.142919] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  143.153199] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  143.161481] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  143.168796] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  143.177068] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  143.183779] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[    **] (3 of 3) A start job is running for... daemon (smbd) (1min 41s / 5min)[  143.223927] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  143.232822] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  143.244561] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d3b7000 sg_len=4096
[  143.252746] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  143.261801] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  143.274760] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  143.284782] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  163.293917] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  163.300448]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  163.308631] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  163.316639] Call Trace:
[  163.319104] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  163.326019] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  163.332229] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  163.341470] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  163.348883] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  163.354385] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  163.360325] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  163.366269] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  163.372121] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  163.377877] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  163.383468] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  163.389576] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  163.395178] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  163.401816] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  163.408352] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  163.414727] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  163.419879] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  163.424940] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  163.429925] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  163.435503] --- interrupt: c01 at 0x2022c358
[  163.435503]     LR = 0x202eba90
\r[   ***] (1 of 3) A start job is running for...nterfaces. (2min 34s / no limit)[  163.466183] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  163.474206] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  163.480049] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  163.491530] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  163.500229] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x5f lbah: 0x38
[  163.508849] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  163.519052] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  163.527324] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  163.534639] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  163.542911] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  163.549622] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  163.557973] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  163.566857] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  163.578597] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d154000 sg_len=4096
[  163.586783] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  163.595839] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  163.608798] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  163.618818] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  183.627953] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  183.634484]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  183.642669] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  183.650675] Call Trace:
[  183.653143] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  183.660057] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  183.666275] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  183.675516] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  183.682938] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  183.688447] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  183.694387] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  183.700323] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  183.706176] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  183.711932] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  183.717523] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  183.723639] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  183.729232] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  183.735862] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  183.742398] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  183.748763] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  183.753925] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  183.758994] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  183.763980] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  183.769566] --- interrupt: c01 at 0x2022c358
[  183.769566]     LR = 0x202eba90
[  183.777043] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  183.785054] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  183.790889] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  183.802373] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  183.811079] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf0 lbam: 0x5f lbah: 0x38
[  183.819700] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  183.829909] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  183.838184] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  183.845497] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  183.853761] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  183.860463] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[FAILED] Failed to start Wait for all "auto"...be up for network-online.target.
See 'systemctl status ifup-wait-all-auto.service' for details.
[  184.034982] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  184.043873] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289500 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  184.055612] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d271000 sg_len=4096
[  184.063799] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  184.072853] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289500, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  184.085813] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  184.095833] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  204.104968] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  204.111499]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  204.119683] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  204.127691] Call Trace:
[  204.130156] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  204.137063] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  204.143280] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  204.152522] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  204.159935] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  204.165436] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  204.171376] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  204.177313] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  204.183164] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  204.188929] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  204.194520] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  204.200637] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  204.206230] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  204.212869] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  204.219413] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  204.225779] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  204.230931] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  204.236000] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  204.240986] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  204.246573] --- interrupt: c01 at 0x2022c358
[  204.246573]     LR = 0x202eba90
[  204.254112] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  204.262122] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  204.267967] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  204.279448] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  204.288155] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x30 lbam: 0x5f lbah: 0x38
[  204.296775] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  204.306994] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  204.315269] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  204.322582] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  204.330855] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  204.337565] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  *** ] (2 of 2) A start job is running for... daemon (smbd) (2min 43s / 5min)[  204.372536] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  204.381426] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  204.393165] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d270000 sg_len=4096
[  204.401351] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  204.410406] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  204.423365] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  204.433386] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  224.442520] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/179
[  224.449052]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/179, .owner_cpu: 0
[  224.457235] CPU: 0 PID: 179 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  224.465235] Call Trace:
[  224.467700] [ed13fb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  224.474615] [ed13fb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  224.480816] [ed13fb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  224.490049] [ed13fbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  224.497461] [ed13fc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  224.502955] [ed13fc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  224.508894] [ed13fcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  224.514839] [ed13fcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  224.520691] [ed13fce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  224.526447] [ed13fd30] [c024cd34] __blk_run_queue+0x44/0x58
[  224.532047] [ed13fd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  224.538163] [ed13fd80] [c02507bc] blk_finish_plug+0x20/0x38
[  224.543765] [ed13fd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  224.550404] [ed13fdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  224.556947] [ed13fe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  224.563323] [ed13fe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  224.568484] [ed13fef0] [c00c1654] vfs_read+0x9c/0x114
[  224.573544] [ed13ff10] [c00c1ec4] SyS_read+0x4c/0x98
[  224.578530] [ed13ff40] [c000af78] ret_from_syscall+0x0/0x3c
[  224.584126] --- interrupt: c01 at 0x2022c358
[  224.584126]     LR = 0x202eba90
\r[ ***  ] (2 of 2) A start job is running for...S daemon (smbd) (3min 3s / 5min)[  224.613415] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  224.621439] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  224.627282] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  224.638764] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  224.647470] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xa0 lbam: 0x5e lbah: 0x38
[  224.656081] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  224.666317] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  224.674592] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  224.681906] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  224.690178] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  224.696880] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  224.735478] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  224.744369] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289d00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  224.756108] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d25f000 sg_len=4096
[  224.764293] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  224.773349] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289d00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  224.786309] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  224.796329] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  244.805463] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/177
[  244.811994]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/177, .owner_cpu: 0
[  244.820179] CPU: 0 PID: 177 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  244.828186] Call Trace:
[  244.830651] [ed137b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  244.837558] [ed137b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  244.843776] [ed137b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  244.853017] [ed137bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  244.860430] [ed137c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  244.865923] [ed137c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  244.871863] [ed137cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  244.877790] [ed137cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  244.883642] [ed137ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  244.889408] [ed137d30] [c024cd34] __blk_run_queue+0x44/0x58
[  244.895006] [ed137d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  244.901114] [ed137d80] [c02507bc] blk_finish_plug+0x20/0x38
[  244.906716] [ed137d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  244.913338] [ed137df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  244.919874] [ed137e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  244.926239] [ed137e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  244.931401] [ed137ef0] [c00c1654] vfs_read+0x9c/0x114
[  244.936470] [ed137f10] [c00c1ec4] SyS_read+0x4c/0x98
[  244.941455] [ed137f40] [c000af78] ret_from_syscall+0x0/0x3c
[  244.947043] --- interrupt: c01 at 0x2022c358
[  244.947043]     LR = 0x202eba90
\r[***   ] (1 of 2) A start job is running for...nterfaces. (3min 55s / no limit)[  244.972789] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  244.980806] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  244.986649] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  244.998130] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  245.006837] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0x7 lbah: 0x40
[  245.015370] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[  245.025610] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  245.033887] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  245.041203] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  245.049476] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  245.056186] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  245.160371] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  245.169264] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289500 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  245.181003] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2d25e000 sg_len=4096
[  245.189181] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  245.198236] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289500, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  245.211196] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  245.221217] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  265.230351] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/184
[  265.236882]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/184, .owner_cpu: 0
[  265.245067] CPU: 0 PID: 184 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  265.253073] Call Trace:
[  265.255539] [ed1cbb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  265.262446] [ed1cbb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  265.268664] [ed1cbb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  265.277906] [ed1cbbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  265.285337] [ed1cbc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  265.290846] [ed1cbc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  265.296786] [ed1cbcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  265.302712] [ed1cbcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  265.308564] [ed1cbce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  265.314330] [ed1cbd30] [c024cd34] __blk_run_queue+0x44/0x58
[  265.319921] [ed1cbd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  265.326037] [ed1cbd80] [c02507bc] blk_finish_plug+0x20/0x38
[  265.331630] [ed1cbd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  265.338260] [ed1cbdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  265.344796] [ed1cbe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  265.351171] [ed1cbe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  265.356323] [ed1cbef0] [c00c1654] vfs_read+0x9c/0x114
[  265.361392] [ed1cbf10] [c00c1ec4] SyS_read+0x4c/0x98
[  265.366368] [ed1cbf40] [c000af78] ret_from_syscall+0x0/0x3c
[  265.371947] --- interrupt: c01 at 0x2022c358
[  265.371947]     LR = 0x202eba90
\r[**    ] (1 of 2) A start job is running for...nterfaces. (4min 16s / no limit)[  265.393037] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  265.401058] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  265.406901] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  265.418382] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  265.427089] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0xf lbah: 0x40
[  265.435622] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  265.445772] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  265.454047] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  265.461360] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  265.469632] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  265.476342] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  265.484669] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  265.493552] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289500 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  265.505293] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ccaf000 sg_len=4096
[  265.513479] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  265.522534] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289500, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  265.535493] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  265.545514] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  285.554648] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/184
[  285.561180]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/184, .owner_cpu: 0
[  285.569363] CPU: 0 PID: 184 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  285.577371] Call Trace:
[  285.579837] [ed1cbb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  285.586752] [ed1cbb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  285.592963] [ed1cbb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  285.602202] [ed1cbbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  285.609625] [ed1cbc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  285.615134] [ed1cbc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  285.621075] [ed1cbcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  285.627019] [ed1cbcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  285.632871] [ed1cbce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  285.638636] [ed1cbd30] [c024cd34] __blk_run_queue+0x44/0x58
[  285.644236] [ed1cbd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  285.650352] [ed1cbd80] [c02507bc] blk_finish_plug+0x20/0x38
[  285.655954] [ed1cbd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  285.662583] [ed1cbdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  285.669128] [ed1cbe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  285.675493] [ed1cbe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  285.680647] [ed1cbef0] [c00c1654] vfs_read+0x9c/0x114
[  285.685706] [ed1cbf10] [c00c1ec4] SyS_read+0x4c/0x98
[  285.690691] [ed1cbf40] [c000af78] ret_from_syscall+0x0/0x3c
[  285.696279] --- interrupt: c01 at 0x2022c358
[  285.696279]     LR = 0x202eba90
[  285.703783] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  285.711794] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  285.717637] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  285.729120] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  285.737827] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf0 lbam: 0xf lbah: 0x40
[  285.746360] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  285.756476] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  285.764748] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  285.772062] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  285.780327] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  285.787037] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[*     ] (1 of 2) A start job is running for...nterfaces. (4min 36s / no limit)[  285.868924] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  285.877815] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289500 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  285.889555] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ccae000 sg_len=4096
[  285.897741] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  285.906796] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289500, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  285.919756] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  285.929776] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  305.938911] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/177
[  305.945441]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/177, .owner_cpu: 0
[  305.953627] CPU: 0 PID: 177 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  305.961633] Call Trace:
[  305.964099] [ed137b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  305.971015] [ed137b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  305.977224] [ed137b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  305.986456] [ed137bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  305.993869] [ed137c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  305.999370] [ed137c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  306.005311] [ed137cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  306.011246] [ed137cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  306.017098] [ed137ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  306.022854] [ed137d30] [c024cd34] __blk_run_queue+0x44/0x58
[  306.028455] [ed137d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  306.034570] [ed137d80] [c02507bc] blk_finish_plug+0x20/0x38
[  306.040173] [ed137d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  306.046803] [ed137df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  306.053339] [ed137e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  306.059704] [ed137e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  306.064865] [ed137ef0] [c00c1654] vfs_read+0x9c/0x114
[  306.069926] [ed137f10] [c00c1ec4] SyS_read+0x4c/0x98
[  306.074911] [ed137f40] [c000af78] ret_from_syscall+0x0/0x3c
[  306.080499] --- interrupt: c01 at 0x2022c358
[  306.080499]     LR = 0x202eba90
[  306.088022] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  306.096030] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  306.101875] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  306.113356] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  306.122063] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf0 lbam: 0x7 lbah: 0x40
[  306.130597] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[  306.140812] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  306.149090] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  306.156404] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  306.164677] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  306.171386] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[**    ] (2 of 2) A start job is running for... daemon (smbd) (4min 24s / 5min)[  306.209782] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  306.218675] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  306.230414] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cc69000 sg_len=4096
[  306.238600] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  306.247656] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  306.260615] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  306.270636] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  326.279771] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/184
[  326.286302]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/184, .owner_cpu: 0
[  326.294486] CPU: 0 PID: 184 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  326.302493] Call Trace:
[  326.304959] [ed1cbb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  326.311874] [ed1cbb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  326.318092] [ed1cbb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  326.327333] [ed1cbbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  326.334756] [ed1cbc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  326.340265] [ed1cbc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  326.346196] [ed1cbcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  326.352132] [ed1cbcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  326.357975] [ed1cbce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  326.363731] [ed1cbd30] [c024cd34] __blk_run_queue+0x44/0x58
[  326.369323] [ed1cbd40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  326.375439] [ed1cbd80] [c02507bc] blk_finish_plug+0x20/0x38
[  326.381032] [ed1cbd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  326.387662] [ed1cbdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  326.394206] [ed1cbe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  326.400573] [ed1cbe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  326.405726] [ed1cbef0] [c00c1654] vfs_read+0x9c/0x114
[  326.410794] [ed1cbf10] [c00c1ec4] SyS_read+0x4c/0x98
[  326.415779] [ed1cbf40] [c000af78] ret_from_syscall+0x0/0x3c
[  326.421367] --- interrupt: c01 at 0x2022c358
[  326.421367]     LR = 0x202eba90
\r[***   ] (2 of 2) A start jo[  326.436441] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  326.444557] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  326.450400] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  326.461882] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  326.470588] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x10 lbah: 0x0
[  326.479034] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
b [  326.489210] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
i[  326.497576] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  326.504963] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  326.513236] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  326.519946] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
s running for... daemon (smbd) (4min 45s / 5min)[  326.609787] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  326.618684] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  326.630424] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cc68000 sg_len=4096
[  326.638609] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  326.647665] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  326.660624] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  326.670645] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  346.679779] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/177
[  346.686310]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/177, .owner_cpu: 0
[  346.694494] CPU: 0 PID: 177 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  346.702502] Call Trace:
[  346.704968] [ed137b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  346.711883] [ed137b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  346.718102] [ed137b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  346.727333] [ed137bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  346.734756] [ed137c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  346.740265] [ed137c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  346.746205] [ed137cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  346.752142] [ed137cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  346.757984] [ed137ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  346.763741] [ed137d30] [c024cd34] __blk_run_queue+0x44/0x58
[  346.769340] [ed137d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  346.775448] [ed137d80] [c02507bc] blk_finish_plug+0x20/0x38
[  346.781043] [ed137d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  346.787680] [ed137df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  346.794224] [ed137e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  346.800590] [ed137e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  346.805742] [ed137ef0] [c00c1654] vfs_read+0x9c/0x114
[  346.810803] [ed137f10] [c00c1ec4] SyS_read+0x4c/0x98
[  346.815780] [ed137f40] [c000af78] ret_from_syscall+0x0/0x3c
[  346.821368] --- interrupt: c01 at 0x2022c358
[  346.821368]     LR = 0x202eba90
[  346.828895] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  346.836907] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  346.842752] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  346.854234] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  346.862940] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x10 lbah: 0x40
[  346.871474] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  346.881603] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  346.889880] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  346.897194] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  346.905466] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  346.912176] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[ ***  ] (2 of 2) A start job is running for...S daemon (smbd) (5min 5s / 5min)\r[FAILED] Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
See 'systemctl status smbd.service' for details.
[  346.970146] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  346.979042] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  346.990781] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cde5000 sg_len=4096
[  346.998967] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  347.008022] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  347.020981] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  347.031002] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  367.040137] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/184
[  367.046668]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/184, .owner_cpu: 0
[  367.054851] CPU: 0 PID: 184 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  367.062859] Call Trace:
[  367.065325] [ed1cbb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  367.072241] [ed1cbb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  367.078451] [ed1cbb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  367.087691] [ed1cbbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  367.095116] [ed1cbc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  367.100623] [ed1cbc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  367.106563] [ed1cbcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  367.112499] [ed1cbcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  367.118351] [ed1cbce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  367.124126] [ed1cbd30] [c024cd34] __blk_run_queue+0x44/0x58
[  367.129724] [ed1cbd40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[  367.135840] [ed1cbd80] [c02507bc] blk_finish_plug+0x20/0x38
[  367.141444] [ed1cbd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  367.148081] [ed1cbdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  367.154625] [ed1cbe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  367.160999] [ed1cbe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  367.166161] [ed1cbef0] [c00c1654] vfs_read+0x9c/0x114
[  367.171222] [ed1cbf10] [c00c1ec4] SyS_read+0x4c/0x98
[  367.176199] [ed1cbf40] [c000af78] ret_from_syscall+0x0/0x3c
[  367.181794] --- interrupt: c01 at 0x2022c358
[  367.181794]     LR = 0x202eba90
[  367.189326] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  367.197334] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  367.203178] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  367.214661] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  367.223368] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x8 lbam: 0x10 lbah: 0x0
[  367.231814] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  367.241941] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  367.250213] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  367.257526] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  367.265798] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  367.272508] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  *** ] A start job is running for LSB: Rai...nterfaces. (5min 58s / no limit)[  367.307228] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  367.316117] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289d00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  367.327856] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cde4000 sg_len=4096
[  367.336042] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  367.345098] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289d00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  367.358057] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  367.368078] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  387.377212] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/177
[  387.383743]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/177, .owner_cpu: 0
[  387.391927] CPU: 0 PID: 177 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  387.399934] Call Trace:
[  387.402399] [ed137b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  387.409306] [ed137b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  387.415524] [ed137b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  387.424757] [ed137bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  387.432179] [ed137c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  387.437681] [ed137c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  387.443611] [ed137cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  387.449548] [ed137cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  387.455399] [ed137ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  387.461165] [ed137d30] [c024cd34] __blk_run_queue+0x44/0x58
[  387.466765] [ed137d40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[  387.472880] [ed137d80] [c02507bc] blk_finish_plug+0x20/0x38
[  387.478482] [ed137d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  387.485120] [ed137df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  387.491666] [ed137e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  387.498040] [ed137e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  387.503192] [ed137ef0] [c00c1654] vfs_read+0x9c/0x114
[  387.508253] [ed137f10] [c00c1ec4] SyS_read+0x4c/0x98
[  387.513238] [ed137f40] [c000af78] ret_from_syscall+0x0/0x3c
[  387.518826] --- interrupt: c01 at 0x2022c358
[  387.518826]     LR = 0x202eba90
[  387.526378] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  387.534392] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  387.540237] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  387.551718] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  387.560426] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x8 lbam: 0x10 lbah: 0x40
[  387.568959] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  387.579086] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  387.587356] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  387.594670] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  387.602942] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  387.609653] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[   ***] A start job is running for LSB: Rai...nterfaces. (6min 18s / no limit)[  387.643196] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  387.652089] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec289200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  387.663829] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cedf000 sg_len=4096
[  387.672015] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  387.681070] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec289200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  387.694029] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  387.704050] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  407.713184] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/184
[  407.719715]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/184, .owner_cpu: 0
[  407.727900] CPU: 0 PID: 184 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  407.735907] Call Trace:
[  407.738372] [ed1cbb50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  407.745279] [ed1cbb70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  407.751498] [ed1cbb80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  407.760738] [ed1cbbb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  407.768161] [ed1cbc60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  407.773670] [ed1cbc90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  407.779610] [ed1cbcb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  407.785537] [ed1cbcd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  407.791389] [ed1cbce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  407.797155] [ed1cbd30] [c024cd34] __blk_run_queue+0x44/0x58
[  407.802754] [ed1cbd40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[  407.808870] [ed1cbd80] [c02507bc] blk_finish_plug+0x20/0x38
[  407.814471] [ed1cbd90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  407.821102] [ed1cbdf0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  407.827647] [ed1cbe10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  407.834021] [ed1cbe90] [c00c0f20] __vfs_read+0xc4/0xf4
[  407.839173] [ed1cbef0] [c00c1654] vfs_read+0x9c/0x114
[  407.844234] [ed1cbf10] [c00c1ec4] SyS_read+0x4c/0x98
[  407.849219] [ed1cbf40] [c000af78] ret_from_syscall+0x0/0x3c
[  407.854807] --- interrupt: c01 at 0x2022c358
[  407.854807]     LR = 0x202eba90
[  407.862349] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  407.870356] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  407.876201] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  407.887683] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  407.896390] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf8 lbam: 0xf lbah: 0x40
[  407.904923] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[  407.915051] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  407.923329] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  407.930643] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  407.938915] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  407.945626] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
\r[    **] A start job is running for LSB: Rai...nterfaces. (6min 38s / no limit)\r[     *] A start job is running for LSB: Rai...nterfaces. (6min 39s / no limit)\r[    **] A start job is running for LSB: Rai...nterfaces. (6min 39s / no limit)\r[   ***] A start job is running for LSB: Rai...nterfaces. (6min 40s / no limit)\r[  *** ] A start job is running for LSB: Rai...nterfaces. (6min 40s / no limit)\r[ ***  ] A start job is running for LSB: Rai...nterfaces. (6min 41s / no limit)\r[***   ] A start job is running for LSB: Rai...nterfaces. (6min 41s / no limit)\r[**    ] A start job is running for LSB: Rai...nterfaces. (6min 42s / no limit)\r[*     ] A start job is running for LSB: Rai...nterfaces. (6min 42s / no limit)\r[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target System Initialization.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Started Trigger resolvconf update for networkd DNS.
[  OK  ] Reached target Paths.
[  OK  ] Listening on CUPS Scheduler.
         Starting Console System Startup Logging...
[  OK  ] Listening on UUID daemon activation socket.
         Starting Restore Sound Card State...
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Accounts Service...
         Starting LSB: daemon to balance interrupts for SMP systems...
         Starting LSB: automatic crash report generation...
         Starting Network Manager...
[  OK  ] Started Run anacron jobs.
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting Permit User Sessions...
         Starting Restore /etc/resolv.conf i...e the ppp link was shut down....
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: start Samba daemons for the AD DC...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: disk temperature monitoring daemon...
         Starting /etc/rc.local Compatibility...
         Starting LSB: Start NTP daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting Modem Manager...
[  OK  ] Started crash report submission daemon.
         Starting LSB: handle special hotkeys of Apple computers...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
         Starting LSB: Tool to automatically...ubmit kernel crash signatures...
         Starting LSB: Start xrdp and sesman daemons...
         Starting System Logging Service...
         Starting Login Service...
         Starting LSB: start and stop timidity...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Initialize hardware monitoring sensors...
[  OK  ] Started Cgroup management daemon.
[  OK  ] Started Console System Startup Logging.
[  OK  ] Started Restore Sound Card State.
[  OK  ] Started LSB: daemon to balance interrupts for SMP systems.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Restore /etc/resolv.conf if...ore the ppp link was shut down..
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: handle special hotkeys of Apple computers.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  416.847521] cgroup: new mount options do not match the existing superblock, will be ignored
[  OK  ] Started LSB: Tool to automatically ... submit kernel crash signatures.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started LSB: Start xrdp and sesman daemons.
[  OK  ] Started Login Service.
[  OK  ] Started Make remote CUPS printers available locally.
         Starting Manage, Install and Generate Color Profiles...
         Starting Hold until boot process finishes up...
         Starting Light Display Manager...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started System Logging Service.
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
[  OK  ] Started Getty on tty1.
[  419.546480] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  419.765800] IPv6: ADDRCONF(NETDEV_UP): tunl0: link is not ready
[  419.878474] IPv6: ADDRCONF(NETDEV_UP): sit0: link is not ready
[  OK  ] Started Light Display Manager.
[  OK  ] Started Manage, Install and Generate Color Profiles.
         Starting WPA supplicant...
[  OK  ] Started LSB: start and stop timidity.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Modem Manager.

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [  933.703811] systemd-fstab-generator[1543]: Mount point  is not a valid path, ignoring.
[  940.391699] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  940.400599] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec3a8f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  940.412337] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[  940.419657] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec3a8f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 0
[  940.433455] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  940.440778] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[  941.685353] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  941.694245] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec3a8200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  941.705983] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x21948000 sg_len=4096
[  941.714169] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  941.723225] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec3a8200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  941.736184] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  941.746205] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  961.755339] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[  961.761957]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[  961.770228] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  961.778323] Call Trace:
[  961.780787] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  961.787703] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  961.793921] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  961.803163] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  961.810592] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  961.816085] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  961.822025] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  961.827962] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  961.833813] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  961.839579] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[  961.845179] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  961.851294] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[  961.856886] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  961.863517] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  961.870052] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  961.876428] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  961.881580] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[  961.886650] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[  961.891635] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[  961.897223] --- interrupt: c01 at 0x2022c358
[  961.897223]     LR = 0x202eba90
[  961.904727] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  961.912736] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  961.918581] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  961.930063] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  961.938769] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0x5f lbah: 0x38
[  961.947390] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  961.957611] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  961.965882] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  961.973197] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  961.981470] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  961.988179] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  964.624917] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  964.633811] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ed2a4e00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  964.645549] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2046f000 sg_len=4096
[  964.653736] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  964.662791] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed2a4e00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  964.675750] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  964.685772] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[  984.694904] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[  984.701523]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[  984.709794] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[  984.717888] Call Trace:
[  984.720355] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[  984.727261] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[  984.733470] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[  984.742711] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[  984.750133] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[  984.755634] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[  984.761574] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[  984.767509] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[  984.773361] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[  984.779119] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[  984.784718] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[  984.790834] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[  984.796427] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[  984.803065] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[  984.809610] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[  984.815985] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[  984.821146] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[  984.826215] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[  984.831201] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[  984.836797] --- interrupt: c01 at 0x2022c358
[  984.836797]     LR = 0x202eba90
[  984.844341] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[  984.852354] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[  984.858190] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[  984.869672] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[  984.878379] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x20 lbam: 0x60 lbah: 0x38
[  984.886999] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[  984.897218] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[  984.905498] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[  984.912814] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[  984.921087] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[  984.927797] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[  985.330418] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[  985.339314] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec3f1a00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[  985.351052] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x20418000 sg_len=4096
[  985.359238] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[  985.368295] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec3f1a00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[  985.381253] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[  985.391275] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1005.400409] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[ 1005.407027]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[ 1005.415298] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1005.423392] Call Trace:
[ 1005.425857] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1005.432772] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1005.438991] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1005.448232] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1005.455662] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1005.461164] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1005.467103] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1005.473048] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1005.478899] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1005.484664] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1005.490265] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[ 1005.496372] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1005.501965] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1005.508604] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1005.515148] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1005.521523] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1005.526676] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1005.531744] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1005.536730] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1005.542326] --- interrupt: c01 at 0x2022c358
[ 1005.542326]     LR = 0x202eba90
[ 1005.549924] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1005.557935] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1005.563771] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1005.575253] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1005.583960] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[ 1005.592321] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[ 1005.602450] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1005.610727] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1005.618040] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1005.626312] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1005.633022] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1005.932709] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1005.941605] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec2e6400 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1005.953344] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x20422000 sg_len=4096
[ 1005.961530] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1005.970586] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec2e6400, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1005.983544] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1005.993566] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1026.002700] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[ 1026.009318]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[ 1026.017589] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1026.025683] Call Trace:
[ 1026.028149] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1026.035055] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1026.041275] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1026.050515] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1026.057928] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1026.063438] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1026.069377] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1026.075304] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1026.081156] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1026.086921] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1026.092512] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[ 1026.098628] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1026.104221] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1026.110860] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1026.117405] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1026.123779] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1026.128941] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1026.134010] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1026.138995] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1026.144583] --- interrupt: c01 at 0x2022c358
[ 1026.144583]     LR = 0x202eba90
[ 1026.152191] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1026.160201] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1026.166036] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1026.177519] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1026.186225] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x8 lbam: 0x0 lbah: 0x0
[ 1026.194586] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[ 1026.204716] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1026.212992] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1026.220306] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1026.228578] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1026.235289] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1029.484251] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1029.493150] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd51100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1029.504889] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x21add000 sg_len=4096
[ 1029.513075] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1029.522131] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd51100, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1029.535090] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1029.545111] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1049.554245] BUG: spinlock lockup suspected on CPU#0, blkid/1594
[ 1049.560168]  lock: 0xedd2f910, .magic: dead4ead, .owner: blkid/1594, .owner_cpu: 0
[ 1049.567745] CPU: 0 PID: 1594 Comm: blkid Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1049.575145] Call Trace:
[ 1049.577610] [e0469b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1049.584525] [e0469b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1049.590735] [e0469b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1049.599977] [e0469bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1049.607398] [e0469c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1049.612899] [e0469c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1049.618830] [e0469cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1049.624767] [e0469cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1049.630618] [e0469ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1049.636383] [e0469d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1049.641982] [e0469d40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[ 1049.648099] [e0469d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1049.653701] [e0469d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1049.660330] [e0469df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1049.666866] [e0469e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1049.673233] [e0469e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1049.678385] [e0469ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1049.683454] [e0469f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1049.688439] [e0469f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1049.694027] --- interrupt: c01 at 0xfec6ec8
[ 1049.694027]     LR = 0xff9ca90
[ 1049.701417] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1049.709428] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1049.715272] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1049.726755] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1049.735462] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0xf lbah: 0x40
[ 1049.743995] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[ 1049.754125] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1049.762402] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1049.769715] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1049.777988] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1049.784698] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1053.446905] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1053.455797] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd51300 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1053.467536] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x20459000 sg_len=4096
[ 1053.475723] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1053.484778] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd51300, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1053.497737] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1053.507758] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1073.516891] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[ 1073.523510]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[ 1073.531781] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1073.539875] Call Trace:
[ 1073.542340] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1073.549248] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1073.555457] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1073.564698] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1073.572120] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1073.577621] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1073.583561] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1073.589497] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1073.595348] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1073.601105] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1073.606696] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[ 1073.612812] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1073.618405] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1073.625035] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1073.631580] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1073.637955] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1073.643107] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1073.648176] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1073.653153] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1073.658741] --- interrupt: c01 at 0x2022c358
[ 1073.658741]     LR = 0x202eba90
[ 1073.666276] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1073.674288] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1073.680125] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1073.691607] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1073.700315] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x60 lbah: 0x38
[ 1073.708934] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[ 1073.719151] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1073.727428] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1073.734741] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1073.743014] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1073.749724] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1074.448542] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 1074.454237] Tasks blocked on level-0 rcu_node (CPUs 0-0): P1577
[ 1074.460273] (detected by 0, t=21002 jiffies, g=51164, c=51163, q=267)
[ 1074.466821] systemd-udevd   R running      0  1577    148 0x00000000
[ 1074.473208] Call Trace:
[ 1074.475674] [e1927c40] [c0045014] __wake_up+0x40/0x5c (unreliable)
[ 1074.481893] [e1927d00] [c0688400] __schedule+0x318/0x480
[ 1074.487222] [e1927d30] [c0688900] preempt_schedule_irq+0x48/0x68
[ 1074.493248] [e1927d40] [c000b700] resume_kernel+0x84/0x94
[ 1074.498670] --- interrupt: 901 at _raw_spin_lock+0x0/0x34
[ 1074.498670]     LR = lockref_get_not_dead+0x18/0x4c
[ 1074.508951] [e1927e00] [c00dd678] legitimize_mnt+0x18/0x4c (unreliable)
[ 1074.515593] [e1927e10] [c00cbb28] unlazy_walk+0xc4/0x188
[ 1074.520929] [e1927e30] [c00cc138] complete_walk+0x50/0xa0
[ 1074.526345] [e1927e40] [c00cc9e0] path_lookupat+0xc8/0x130
[ 1074.531840] [e1927e60] [c00ce1c4] filename_lookup+0x70/0xc4
[ 1074.537438] [e1927f00] [c00c5c8c] SyS_readlinkat+0x4c/0xe8
[ 1074.542942] [e1927f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1074.548533] --- interrupt: c01 at 0x20152e98
[ 1074.548533]     LR = 0x20419980
[ 1074.555933] systemd-udevd   R running      0  1577    148 0x00000000
[ 1074.562314] Call Trace:
[ 1074.564765] [e1927c40] [c0045014] __wake_up+0x40/0x5c (unreliable)
[ 1074.570972] [e1927d00] [c0688400] __schedule+0x318/0x480
[ 1074.576302] [e1927d30] [c0688900] preempt_schedule_irq+0x48/0x68
[ 1074.582317] [e1927d40] [c000b700] resume_kernel+0x84/0x94
[ 1074.587736] --- interrupt: 901 at _raw_spin_lock+0x0/0x34
[ 1074.587736]     LR = lockref_get_not_dead+0x18/0x4c
[ 1074.598004] [e1927e00] [c00dd678] legitimize_mnt+0x18/0x4c (unreliable)
[ 1074.604643] [e1927e10] [c00cbb28] unlazy_walk+0xc4/0x188
[ 1074.609973] [e1927e30] [c00cc138] complete_walk+0x50/0xa0
[ 1074.615390] [e1927e40] [c00cc9e0] path_lookupat+0xc8/0x130
[ 1074.620893] [e1927e60] [c00ce1c4] filename_lookup+0x70/0xc4
[ 1074.626484] [e1927f00] [c00c5c8c] SyS_readlinkat+0x4c/0xe8
[ 1074.631986] [e1927f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1074.637577] --- interrupt: c01 at 0x20152e98
[ 1074.637577]     LR = 0x20419980
[ 1079.815336] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1079.824235] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec3a8f00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1079.835974] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x218d3000 sg_len=4096
[ 1079.844159] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1079.853215] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec3a8f00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1079.866174] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1079.876195] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1099.885330] BUG: spinlock lockup suspected on CPU#0, blkid/1594
[ 1099.891253]  lock: 0xedd2f910, .magic: dead4ead, .owner: blkid/1594, .owner_cpu: 0
[ 1099.898829] CPU: 0 PID: 1594 Comm: blkid Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1099.906229] Call Trace:
[ 1099.908695] [e0469b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1099.915610] [e0469b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1099.921819] [e0469b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1099.931061] [e0469bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1099.938491] [e0469c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1099.943984] [e0469c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1099.949914] [e0469cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1099.955850] [e0469cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1099.961702] [e0469ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1099.967468] [e0469d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1099.973067] [e0469d40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[ 1099.979183] [e0469d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1099.984776] [e0469d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1099.991406] [e0469df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1099.997951] [e0469e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1100.004326] [e0469e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1100.009487] [e0469ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1100.014556] [e0469f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1100.019542] [e0469f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1100.025129] --- interrupt: c01 at 0xfec6ec8
[ 1100.025129]     LR = 0xff9ca90
[ 1100.032544] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1100.040556] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1100.046392] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1100.057874] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1100.066581] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf0 lbam: 0xf lbah: 0x40
[ 1100.075114] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[ 1100.085246] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1100.093521] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1100.100834] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1100.109107] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1100.115817] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1100.177504] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1100.186397] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec3a8e00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1100.198135] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x219c6000 sg_len=4096
[ 1100.206320] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1100.215377] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec3a8e00, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1100.228336] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1100.238357] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1120.247490] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1570
[ 1120.254109]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1570, .owner_cpu: 0
[ 1120.262380] CPU: 0 PID: 1570 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1120.270474] Call Trace:
[ 1120.272939] [e1923b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1120.279846] [e1923b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1120.286056] [e1923b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1120.295296] [e1923bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1120.302719] [e1923c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1120.308211] [e1923c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1120.314142] [e1923cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1120.320069] [e1923cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1120.325921] [e1923ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1120.331687] [e1923d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1120.337286] [e1923d40] [c0250544] blk_flush_plug_list+0x1e0/0x1fc
[ 1120.343402] [e1923d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1120.349004] [e1923d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1120.355643] [e1923df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1120.362187] [e1923e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1120.368553] [e1923e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1120.373714] [e1923ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1120.378783] [e1923f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1120.383760] [e1923f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1120.389348] --- interrupt: c01 at 0x2022c358
[ 1120.389348]     LR = 0x202eba90
[ 1120.396882] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1120.404896] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1120.410732] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1120.422214] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1120.430921] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x5f lbah: 0x38
[ 1120.439541] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[ 1120.449758] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1120.458035] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1120.465348] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1120.473621] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1120.480331] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1120.890029] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1120.898922] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ed0d3100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1120.910661] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2194b000 sg_len=4096
[ 1120.918847] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1120.927902] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xed0d3100, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1120.940861] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1120.950882] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1140.960016] BUG: spinlock lockup suspected on CPU#0, blkid/1594
[ 1140.965940]  lock: 0xedd2f910, .magic: dead4ead, .owner: blkid/1594, .owner_cpu: 0
[ 1140.973516] CPU: 0 PID: 1594 Comm: blkid Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1140.980916] Call Trace:
[ 1140.983381] [e0469b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1140.990288] [e0469b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1140.996498] [e0469b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1141.005731] [e0469bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1141.013161] [e0469c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1141.018662] [e0469c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1141.024601] [e0469cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1141.030538] [e0469cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1141.036381] [e0469ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1141.042146] [e0469d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1141.047747] [e0469d40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[ 1141.053862] [e0469d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1141.059463] [e0469d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1141.066094] [e0469df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1141.072638] [e0469e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1141.079013] [e0469e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1141.084174] [e0469ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1141.089243] [e0469f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1141.094229] [e0469f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1141.099816] --- interrupt: c01 at 0xfec6ec8
[ 1141.099816]     LR = 0xff9ca90
[ 1141.107144] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1141.115155] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1141.120993] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1141.132475] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1141.141181] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x10 lbah: 0x0
[ 1141.149627] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[ 1141.159744] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1141.168017] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1141.175330] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1141.183594] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1141.190305] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1141.208646] usb 1-1.6: USB disconnect, device number 6
[ 1141.428056] usb 1-1.6: new full-speed USB device number 8 using ppc-of-ehci
[ 1141.530936] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[ 1141.544035] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1141.559057] usb 1-1.6: Product: USB Receiver
[ 1141.569036] usb 1-1.6: Manufacturer: Logitech
[ 1141.586621] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0006/input/input4
[ 1141.663910] hid-generic 0003:046D:C52B.0006: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[ 1141.700478] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0007/input/input5
[ 1141.778661] hid-generic 0003:046D:C52B.0007: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[ 1141.812092] hid-generic 0003:046D:C52B.0008: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[ 1146.824936] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1146.833827] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ede9c400 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1146.845565] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x219b3000 sg_len=4096
[ 1146.853751] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1146.862807] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xede9c400, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1146.875766] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1146.885787] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[ 1166.894921] BUG: spinlock lockup suspected on CPU#0, systemd-udevd/1567
[ 1166.901539]  lock: 0xedd2f910, .magic: dead4ead, .owner: systemd-udevd/1567, .owner_cpu: 0
[ 1166.909810] CPU: 0 PID: 1567 Comm: systemd-udevd Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1166.917904] Call Trace:
[ 1166.920370] [e1907b50] [c00492d0] do_raw_spin_lock+0xe4/0x100 (unreliable)
[ 1166.927276] [e1907b70] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
[ 1166.933486] [e1907b80] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
[ 1166.942727] [e1907bb0] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
[ 1166.950140] [e1907c60] [c043bdf8] ata_qc_issue+0x338/0x3a0
[ 1166.955642] [e1907c90] [c0440c84] ata_scsi_translate+0xf4/0x150
[ 1166.961581] [e1907cb0] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
[ 1166.967517] [e1907cd0] [c042511c] scsi_dispatch_cmd+0xd4/0x110
[ 1166.973369] [e1907ce0] [c0427a9c] scsi_request_fn+0x52c/0x55c
[ 1166.979134] [e1907d30] [c024cd34] __blk_run_queue+0x44/0x58
[ 1166.984734] [e1907d40] [c0250520] blk_flush_plug_list+0x1bc/0x1fc
[ 1166.990849] [e1907d80] [c02507bc] blk_finish_plug+0x20/0x38
[ 1166.996453] [e1907d90] [c00928d8] __do_page_cache_readahead+0x220/0x244
[ 1167.003090] [e1907df0] [c0092ce0] force_page_cache_readahead+0xb4/0xe0
[ 1167.009626] [e1907e10] [c0089ad4] generic_file_read_iter+0x224/0x614
[ 1167.016001] [e1907e90] [c00c0f20] __vfs_read+0xc4/0xf4
[ 1167.021153] [e1907ef0] [c00c1654] vfs_read+0x9c/0x114
[ 1167.026222] [e1907f10] [c00c1ec4] SyS_read+0x4c/0x98
[ 1167.031208] [e1907f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1167.036795] --- interrupt: c01 at 0x2022c358
[ 1167.036795]     LR = 0x202eba90
[ 1167.044382] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[ 1167.052396] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[ 1167.058240] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=ed2100b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[ 1167.069723] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[ 1167.078430] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0x7 lbah: 0x40
[ 1167.086963] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[ 1167.097273] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[ 1167.105553] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[ 1167.112865] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[ 1167.121138] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[ 1167.127848] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[ 1167.137594] DMA-API: exceeded 7 overlapping mappings of cacheline 0x000000000169f800
[ 1167.145515] ------------[ cut here ]------------
[ 1167.150136] WARNING: at lib/dma-debug.c:509
[ 1167.154319] Modules linked in: snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq snd_seq_device input_leds led_class sata_dwc_460ex
[ 1167.166476] CPU: 0 PID: 1032 Comm: rtkit-daemon Not tainted 4.4.0-rc5-Sam460ex-dirty #3
[ 1167.174485] task: ec384000 ti: ec37a000 task.ti: ec37a000
[ 1167.179883] NIP: c028b9b0 LR: c028b9b0 CTR: c02e0710
[ 1167.184849] REGS: ec37bcd0 TRAP: 0700   Not tainted  (4.4.0-rc5-Sam460ex-dirty)
[ 1167.192156] MSR: 00021000 <CE,ME>  CR: 28248444  XER: 20000000
[ 1167.198077] 
GPR00: c028b9b0 ec37bd80 ec384000 00000048 c095a20b c0a02834 c02e1328 00000000 
GPR08: 00000007 ec37a000 00000101 ec37bd80 24248444 100282b5 ee179810 005a7e00 
GPR16: 00000000 e18c46c0 00000000 00000060 00000008 0000005c 0000001b 00000001 
GPR24: 00000005 00000000 00000001 00029000 c0a0ab08 c0a0ab3c c0a30000 ffffffef 
[ 1167.228305] NIP [c028b9b0] add_dma_entry+0xfc/0x13c
[ 1167.233185] LR [c028b9b0] add_dma_entry+0xfc/0x13c
[ 1167.237972] Call Trace:
[ 1167.240425] [ec37bd80] [c028b9b0] add_dma_entry+0xfc/0x13c (unreliable)
[ 1167.247081] [ec37bdb0] [c04559f8] emac_poll_rx+0x278/0x884
[ 1167.252585] [ec37be20] [c04531d8] mal_poll+0x8c/0x20c
[ 1167.257656] [ec37be50] [c0592cec] net_rx_action+0xfc/0x268
[ 1167.263163] [ec37beb0] [c0023c44] __do_softirq+0x100/0x1f0
[ 1167.268670] [ec37bf10] [c0023f68] irq_exit+0x58/0xa0
[ 1167.273659] [ec37bf20] [c0006fcc] timer_interrupt+0x80/0x9c
[ 1167.279254] [ec37bf40] [c000b644] ret_from_except+0x0/0x18
[ 1167.284756] --- interrupt: 901 at 0xfd75420
[ 1167.284756]     LR = 0xfd9a2d8
[ 1167.291983] Instruction dump:
[ 1167.294970] 2f850007 40bd0038 3d20c0a3 89495724 7d3e4b78 2f8a0000 40be0024 3c60c092 
[ 1167.302850] 38800007 38a10008 386373e0 484008b1 <0fe00000> 39200001 993e5724 7fa3eb78 
[ 1167.310899] ---[ end trace c9591e3de6c36acb ]---
[ 1167.807797] INFO: rcu_preempt detected stalls on CPUs/tasks:
[ 1167.813489] Tasks blocked on level-0 rcu_node (CPUs 0-0): P1579
[ 1167.819526] (detected by 0, t=21002 jiffies, g=51969, c=51968, q=2894)
[ 1167.826161] systemd-udevd   R running      0  1579    148 0x00000000
[ 1167.832548] Call Trace:
[ 1167.835019] [e19f7be0] [c00bcf60] kmem_cache_free+0x98/0x15c (unreliable)
[ 1167.841850] [e19f7ca0] [c0688400] __schedule+0x318/0x480
[ 1167.847179] [e19f7cd0] [c0688900] preempt_schedule_irq+0x48/0x68
[ 1167.853205] [e19f7ce0] [c000b700] resume_kernel+0x84/0x94
[ 1167.858636] --- interrupt: 901 at link_path_walk+0x1ec/0x470
[ 1167.858636]     LR = link_path_walk+0x1c0/0x470
[ 1167.868819] [e19f7de0] [c00cce74] path_openat+0x1d8/0xd00
[ 1167.874237] [e19f7e60] [c00cea40] do_filp_open+0x40/0x84
[ 1167.879577] [e19f7f00] [c00c0944] do_sys_open+0x178/0x204
[ 1167.884999] [e19f7f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1167.890590] --- interrupt: c01 at 0x20150898
[ 1167.890590]     LR = 0x200e9b24
[ 1167.897991] systemd-udevd   R running      0  1579    148 0x00000000
[ 1167.904378] Call Trace:
[ 1167.906831] [e19f7be0] [c00bcf60] kmem_cache_free+0x98/0x15c (unreliable)
[ 1167.913644] [e19f7ca0] [c0688400] __schedule+0x318/0x480
[ 1167.918975] [e19f7cd0] [c0688900] preempt_schedule_irq+0x48/0x68
[ 1167.924998] [e19f7ce0] [c000b700] resume_kernel+0x84/0x94
[ 1167.930410] --- interrupt: 901 at link_path_walk+0x1ec/0x470
[ 1167.930410]     LR = link_path_walk+0x1c0/0x470
[ 1167.940588] [e19f7de0] [c00cce74] path_openat+0x1d8/0xd00
[ 1167.945997] [e19f7e60] [c00cea40] do_filp_open+0x40/0x84
[ 1167.951317] [e19f7f00] [c00c0944] do_sys_open+0x178/0x204
[ 1167.956726] [e19f7f40] [c000af78] ret_from_syscall+0x0/0x3c
[ 1167.962316] --- interrupt: c01 at 0x20150898
[ 1167.962316]     LR = 0x200e9b24
[ 1168.044015] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[ 1168.052905] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd0e200 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002d2be000 dmadr=0xf6a1e400
[ 1168.064645] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x21a3d000 sg_len=4096
[ 1168.072830] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[ 1168.081886] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd0e200, count: 1 lli: ffa0c000 dma_lli: 0x2d2be000lx addr: f6a1e400 lli count: 1
[ 1168.094845] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[ 1168.104866] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 14:40                                                                                               ` Julian Margetson
@ 2015-12-21 15:24                                                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 15:24 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 9:24 AM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>>>> P.S. Anyway we have to ask Julian to try the kernel with
>>>>>> 8b3444852a2b58129 reverted.
>>>>>>
>>>>> git revert 8b3444852a2b58129
>>>>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>>>>> hint: after resolving the conflicts, mark the corrected paths
>>>>> hint: with 'git add <paths>' or 'git rm <paths>'
>>>>> hint: and commit the result with 'git commit'
>>>> Yeah, that won't work since there are numerous changes afterward.  Just
>>>> revert the entire file back to 4.0 like this:
>>>>
>>>> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>>>>
>>>   CC [M]  drivers/ata/sata_dwc_460ex.o
>>> drivers/ata/sata_dwc_460ex.c:467:36: error: macro
>>> "dma_request_channel" requires 3 arguments, but only 1 given
>>>   static int dma_request_channel(void)
>>>                                      ^
>>> drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’,
>>> ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
>>>   {
>>>   ^
>>> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
>>> drivers/ata/sata_dwc_460ex.c:758:31: error: macro
>>> "dma_request_channel" requires 3 arguments, but only 1 given
>>>    dma_ch = dma_request_channel();
>>>                                 ^
>>> drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’
>>> undeclared (first use in this function)
>>>    dma_ch = dma_request_channel();
>>>             ^
>>> drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier
>>> is reported only once for each function it appears in
>>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
>>> drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct
>>> sata_dwc_device_port’ has no member named ‘dws’
>>>    struct dw_dma_slave *dws = hsdevp->dws;
>>>                                     ^
>>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
>>> drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable
>>> ‘mask’ [-Wunused-variable]
>>>    dma_cap_mask_t mask;
>>>                   ^
>>> drivers/ata/sata_dwc_460ex.c: At top level:
>>> drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’
>>> defined but not used [-Wunused-variable]
>>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>>                              ^
>>> drivers/ata/sata_dwc_460ex.c:1279:13: warning:
>>> ‘sata_dwc_dma_filter’ defined but not used [-Wunused-function]
>>>   static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
>>>               ^
>> Those messages do not match the contents of the file from v4.0.
>> For your convenience, here's the file as it should be.
>>
>> $ sha1sum drivers/ata/sata_dwc_460ex.c
>> 0f54dfa3a91591101f5de434c3a631a5cd20ff1a  drivers/ata/sata_dwc_460ex.c
>
> [   16.119186] BUG: spinlock recursion on CPU#0, kworker/u2:1/85
> [   16.124935]  lock: 0xedd2f910, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
> [   16.132947] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex-dirty #3
> [   16.140793] Workqueue: events_unbound async_run_entry_fn
> [   16.146119] Call Trace:
> [   16.148582] [ee3cf8c0] [c0049238] do_raw_spin_lock+0x4c/0x100 (unreliable)
> [   16.155491] [ee3cf8e0] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
> [   16.161721] [ee3cf8f0] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
> [   16.170954] [ee3cf920] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
> [   16.178380] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
> [   16.183883] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
> [   16.189813] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
> [   16.195750] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
> [   16.201602] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c

Oh, that one again.  My patch still applies.  Here it is as applied to
that revision of the file.

>From what I can tell, that bug has always been there.  Probably nobody
ever tested the driver in a PREEMPT or SMP build, nor with lock
debugging enabled.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1375 bytes --]

>From 53f3cf096f959a58fe6339f4f8b57b6e749b283e Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index fdb0f28..d404af8 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1403,15 +1403,13 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 15:24                                                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 15:24 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

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

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 9:24 AM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>>>>> P.S. Anyway we have to ask Julian to try the kernel with
>>>>>> 8b3444852a2b58129 reverted.
>>>>>>
>>>>> git revert 8b3444852a2b58129
>>>>> error: could not revert 8b34448... sata_dwc_460ex: move to generic DMA driver
>>>>> hint: after resolving the conflicts, mark the corrected paths
>>>>> hint: with 'git add <paths>' or 'git rm <paths>'
>>>>> hint: and commit the result with 'git commit'
>>>> Yeah, that won't work since there are numerous changes afterward.  Just
>>>> revert the entire file back to 4.0 like this:
>>>>
>>>> $ git checkout v4.0 drivers/ata/sata_dwc_460ex.c
>>>>
>>>   CC [M]  drivers/ata/sata_dwc_460ex.o
>>> drivers/ata/sata_dwc_460ex.c:467:36: error: macro
>>> "dma_request_channel" requires 3 arguments, but only 1 given
>>>   static int dma_request_channel(void)
>>>                                      ^
>>> drivers/ata/sata_dwc_460ex.c:468:1: error: expected ‘=’, ‘,’,
>>> ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
>>>   {
>>>   ^
>>> drivers/ata/sata_dwc_460ex.c: In function ‘dma_dwc_xfer_setup’:
>>> drivers/ata/sata_dwc_460ex.c:758:31: error: macro
>>> "dma_request_channel" requires 3 arguments, but only 1 given
>>>    dma_ch = dma_request_channel();
>>>                                 ^
>>> drivers/ata/sata_dwc_460ex.c:758:11: error: ‘dma_request_channel’
>>> undeclared (first use in this function)
>>>    dma_ch = dma_request_channel();
>>>             ^
>>> drivers/ata/sata_dwc_460ex.c:758:11: note: each undeclared identifier
>>> is reported only once for each function it appears in
>>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_dma_filter’:
>>> drivers/ata/sata_dwc_460ex.c:1282:35: error: ‘struct
>>> sata_dwc_device_port’ has no member named ‘dws’
>>>    struct dw_dma_slave *dws = hsdevp->dws;
>>>                                     ^
>>> drivers/ata/sata_dwc_460ex.c: In function ‘sata_dwc_port_start’:
>>> drivers/ata/sata_dwc_460ex.c:1325:17: warning: unused variable
>>> ‘mask’ [-Wunused-variable]
>>>    dma_cap_mask_t mask;
>>>                   ^
>>> drivers/ata/sata_dwc_460ex.c: At top level:
>>> drivers/ata/sata_dwc_460ex.c:345:28: warning: ‘sata_dwc_dma_dws’
>>> defined but not used [-Wunused-variable]
>>>   static struct dw_dma_slave sata_dwc_dma_dws = {
>>>                              ^
>>> drivers/ata/sata_dwc_460ex.c:1279:13: warning:
>>> ‘sata_dwc_dma_filter’ defined but not used [-Wunused-function]
>>>   static bool sata_dwc_dma_filter(struct dma_chan *chan, void *param)
>>>               ^
>> Those messages do not match the contents of the file from v4.0.
>> For your convenience, here's the file as it should be.
>>
>> $ sha1sum drivers/ata/sata_dwc_460ex.c
>> 0f54dfa3a91591101f5de434c3a631a5cd20ff1a  drivers/ata/sata_dwc_460ex.c
>
> [   16.119186] BUG: spinlock recursion on CPU#0, kworker/u2:1/85
> [   16.124935]  lock: 0xedd2f910, .magic: dead4ead, .owner: kworker/u2:1/85, .owner_cpu: 0
> [   16.132947] CPU: 0 PID: 85 Comm: kworker/u2:1 Not tainted 4.4.0-rc5-Sam460ex-dirty #3
> [   16.140793] Workqueue: events_unbound async_run_entry_fn
> [   16.146119] Call Trace:
> [   16.148582] [ee3cf8c0] [c0049238] do_raw_spin_lock+0x4c/0x100 (unreliable)
> [   16.155491] [ee3cf8e0] [c068af98] _raw_spin_lock_irqsave+0x2c/0x38
> [   16.161721] [ee3cf8f0] [f6a0fd98] sata_dwc_exec_command_by_tag.constprop.9+0x80/0xb4 [sata_dwc_460ex]
> [   16.170954] [ee3cf920] [f6a108c0] sata_dwc_qc_issue+0x6a4/0x6c4 [sata_dwc_460ex]
> [   16.178380] [ee3cf9d0] [c043bdf8] ata_qc_issue+0x338/0x3a0
> [   16.183883] [ee3cfa00] [c0440c84] ata_scsi_translate+0xf4/0x150
> [   16.189813] [ee3cfa20] [c0444080] ata_scsi_queuecmd+0x1e8/0x238
> [   16.195750] [ee3cfa40] [c042511c] scsi_dispatch_cmd+0xd4/0x110
> [   16.201602] [ee3cfa50] [c0427a9c] scsi_request_fn+0x52c/0x55c

Oh, that one again.  My patch still applies.  Here it is as applied to
that revision of the file.

>From what I can tell, that bug has always been there.  Probably nobody
ever tested the driver in a PREEMPT or SMP build, nor with lock
debugging enabled.

-- 
Måns Rullgård

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ata-sata_dwc_460ex-remove-incorrect-locking.patch --]
[-- Type: text/x-diff, Size: 1375 bytes --]

>From 53f3cf096f959a58fe6339f4f8b57b6e749b283e Mon Sep 17 00:00:00 2001
From: Mans Rullgard <mans@mansr.com>
Date: Sat, 19 Dec 2015 15:26:23 +0000
Subject: [PATCH] ata: sata_dwc_460ex: remove incorrect locking

This lock is already taken in ata_scsi_queuecmd() a few levels up the
call stack so attempting to take it here is an error.  Moreover, it is
pointless in the first place since it only protects a single, atomic
assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 drivers/ata/sata_dwc_460ex.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index fdb0f28..d404af8 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1403,15 +1403,13 @@ static void sata_dwc_exec_command_by_tag(struct ata_port *ap,
 					 struct ata_taskfile *tf,
 					 u8 tag, u32 cmd_issued)
 {
-	unsigned long flags;
 	struct sata_dwc_device_port *hsdevp = HSDEVP_FROM_AP(ap);
 
 	dev_dbg(ap->dev, "%s cmd(0x%02x): %s tag=%d\n", __func__, tf->command,
 		ata_get_cmd_descript(tf->command), tag);
 
-	spin_lock_irqsave(&ap->host->lock, flags);
 	hsdevp->cmd_issued[tag] = cmd_issued;
-	spin_unlock_irqrestore(&ap->host->lock, flags);
+
 	/*
 	 * Clear SError before executing a new command.
 	 * sata_dwc_scr_write and read can not be used here. Clearing the PM
-- 
2.6.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 15:24                                                                                                   ` Måns Rullgård
  (?)
@ 2015-12-21 16:44                                                                                                   ` Andy Shevchenko
  2015-12-21 18:19                                                                                                       ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 16:44 UTC (permalink / raw)
  To: Måns Rullgård, Julian Margetson
  Cc: Andy Shevchenko, Viresh Kumar, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 15:24 +0000, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
> 
> 
> Oh, that one again.  My patch still applies.  Here it is as applied
> to
> that revision of the file.
> 
> From what I can tell, that bug has always been there.  Probably
> nobody
> ever tested the driver in a PREEMPT or SMP build, nor with lock
> debugging enabled.

I guess it's a time to submit this one to upstream with proper Fixes:
tag (which I suppose the initial commit of the driver).

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-20 20:55                                                                                   ` Andy Shevchenko
  2015-12-21  1:19                                                                                       ` Måns Rullgård
@ 2015-12-21 16:48                                                                                     ` Andy Shevchenko
  2015-12-21 17:20                                                                                       ` Julian Margetson
  2015-12-21 17:26                                                                                       ` Julian Margetson
  1 sibling, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 16:48 UTC (permalink / raw)
  To: Andy Shevchenko, Måns Rullgård
  Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

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

On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
> > wrote:
> > I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
> > items on this board, however registers for SATA program it to 64. I
> > remember that I got no interrupt when I programmed transfer width
> > wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
> > on
> > Intel SoCs.
> 
> One more thing, I have a patch to monitor DMA IO, we may check what
> exactly the values are written / read  in DMA. I can share it
> tomorrow.

As promised the patch I have to debug IO of DW DMA. Didn't check though
if it applies cleanly on top of recent vanilla kernel.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

[-- Attachment #2: 0001-dw_dmac-debug-dma-controller-IO.patch --]
[-- Type: text/x-patch, Size: 3689 bytes --]

From c824845238f0e027d480bfc3b9ad482ae901b78b Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Mon, 4 Jun 2012 10:14:50 +0300
Subject: [PATCH v2] dw_dmac: debug dma controller IO

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/dma/dw/core.c |  8 +++++---
 drivers/dma/dw/regs.h | 26 ++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
index dcf19f0..d50c39c 100644
--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -570,9 +570,10 @@ static void dwc_handle_cyclic(struct dw_dma *dw, struct dw_dma_chan *dwc,
 	if (dwc->mask) {
 		void (*callback)(void *param);
 		void *callback_param;
+		dma_addr_t llp = channel_readl(dwc, LLP);
 
-		dev_vdbg(chan2dev(&dwc->chan), "new cyclic period llp 0x%08x\n",
-				channel_readl(dwc, LLP));
+		dev_vdbg(chan2dev(&dwc->chan), "new cyclic period llp %pad\n",
+				&llp);
 
 		callback = dwc->cdesc->period_callback;
 		callback_param = dwc->cdesc->period_callback_param;
@@ -1571,6 +1572,8 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
 
 	pm_runtime_get_sync(chip->dev);
 
+	dw->dma.dev = chip->dev;
+
 	dw_params = dma_read_byaddr(chip->regs, DW_PARAMS);
 	autocfg = dw_params >> DW_PARAMS_EN & 0x1;
 
@@ -1715,7 +1718,6 @@ int dw_dma_probe(struct dw_dma_chip *chip, struct dw_dma_platform_data *pdata)
 	dma_cap_set(DMA_SLAVE, dw->dma.cap_mask);
 	if (pdata->is_private)
 		dma_cap_set(DMA_PRIVATE, dw->dma.cap_mask);
-	dw->dma.dev = chip->dev;
 	dw->dma.device_alloc_chan_resources = dwc_alloc_chan_resources;
 	dw->dma.device_free_chan_resources = dwc_free_chan_resources;
 
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h
index 3a3a5e1..a3b881c 100644
--- a/drivers/dma/dw/regs.h
+++ b/drivers/dma/dw/regs.h
@@ -130,6 +130,8 @@ struct dw_dma_regs {
 #define dma_writel_native writel
 #endif
 
+#define DW_DMAC_IO_DEBUG
+
 /* To access the registers in early stage of probe */
 #define dma_read_byaddr(addr, name) \
 	dma_readl_native((addr) + offsetof(struct dw_dma_regs, name))
@@ -301,10 +303,22 @@ __dwc_regs(struct dw_dma_chan *dwc)
 	return dwc->ch_regs;
 }
 
+#ifdef DW_DMAC_IO_DEBUG
+#define channel_readl(dwc, name) ({						\
+	unsigned int val = dma_readl_native(&(__dwc_regs(dwc)->name));		\
+	dev_dbg(chan2dev(&dwc->chan), "readl: " #name " 0x%08x\n", (u32)val);	\
+	val;									\
+})
+#define channel_writel(dwc, name, val) ({					\
+	dev_dbg(chan2dev(&dwc->chan), "writel: " #name " 0x%08x\n", (u32)val);	\
+	dma_writel_native((val), &(__dwc_regs(dwc)->name));			\
+})
+#else
 #define channel_readl(dwc, name) \
 	dma_readl_native(&(__dwc_regs(dwc)->name))
 #define channel_writel(dwc, name, val) \
 	dma_writel_native((val), &(__dwc_regs(dwc)->name))
+#endif
 
 static inline struct dw_dma_chan *to_dw_dma_chan(struct dma_chan *chan)
 {
@@ -333,10 +347,22 @@ static inline struct dw_dma_regs __iomem *__dw_regs(struct dw_dma *dw)
 	return dw->regs;
 }
 
+#ifdef DW_DMAC_IO_DEBUG
+#define dma_readl(dw, name) ({						\
+	unsigned int val = dma_readl_native(&(__dw_regs(dw)->name));	\
+	dev_dbg(dw->dma.dev, "readl: " #name " 0x%08x\n", (u32)val);	\
+	val;								\
+})
+#define dma_writel(dw, name, val) ({					\
+	dev_dbg(dw->dma.dev, "writel: " #name " 0x%08x\n", (u32)val);	\
+	dma_writel_native((val), &(__dw_regs(dw)->name));		\
+})
+#else
 #define dma_readl(dw, name) \
 	dma_readl_native(&(__dw_regs(dw)->name))
 #define dma_writel(dw, name, val) \
 	dma_writel_native((val), &(__dw_regs(dw)->name))
+#endif
 
 #define channel_set_bit(dw, reg, mask) \
 	dma_writel(dw, reg, ((mask) << 8) | (mask))
-- 
2.1.3


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 16:48                                                                                     ` Andy Shevchenko
@ 2015-12-21 17:20                                                                                       ` Julian Margetson
  2015-12-21 17:26                                                                                       ` Julian Margetson
  1 sibling, 0 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 17:20 UTC (permalink / raw)
  To: Andy Shevchenko, Andy Shevchenko, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>> <andy.shevchenko@gmail.com> wrote:
>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>> wrote:
>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>> items on this board, however registers for SATA program it to 64. I
>>> remember that I got no interrupt when I programmed transfer width
>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>> on
>>> Intel SoCs.
>> One more thing, I have a patch to monitor DMA IO, we may check what
>> exactly the values are written / read  in DMA. I can share it
>> tomorrow.
> As promised the patch I have to debug IO of DW DMA. Didn't check though
> if it applies cleanly on top of recent vanilla kernel.
>
patch -p1 -R <../0001-dw_dmac-debug-dma-controller-IO.patch
patching file drivers/dma/dw/core.c
Hunk #1 succeeded at 543 (offset -27 lines).
Hunk #2 FAILED at 1571.
Hunk #3 FAILED at 1717.
2 out of 3 hunks FAILED -- saving rejects to file drivers/dma/dw/core.c.rej
patching file drivers/dma/dw/regs.h
Hunk #1 succeeded at 114 (offset -16 lines).
Hunk #2 succeeded at 262 (offset -39 lines).
Hunk #3 succeeded at 293 (offset -40 lines).
root@julian-VirtualBox:/usr/src/linux-test# patch -p1 
<../0001-dw_dmac-debug-dma-controller-IO.patch
patching file drivers/dma/dw/core.c
Hunk #1 succeeded at 543 (offset -27 lines).
Hunk #2 FAILED at 1572.
Hunk #3 FAILED at 1716.
2 out of 3 hunks FAILED -- saving rejects to file drivers/dma/dw/core.c.rej
patching file drivers/dma/dw/regs.h
Hunk #1 succeeded at 114 (offset -16 lines).
Hunk #2 succeeded at 264 (offset -39 lines).
Hunk #3 succeeded at 307 (offset -40 lines).



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 12:15                                                                                         ` Måns Rullgård
  (?)
@ 2015-12-21 17:24                                                                                         ` Andy Shevchenko
  2015-12-21 18:16                                                                                             ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 17:24 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Viresh Kumar, Julian Margetson, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com> wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> +Viresh
>>
>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>
>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>
>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>>
>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>> something else must be wrong as well.  The various Master Select fields
>>>>> look like a good place to start.
>>>>
>>>> Master number (which is here would be either 1 or 0) should not affect
>>>> as long as they are connected to the same AHB bus (I would be
>>>> surprised if they are not).
>>>
>>> I think they are not.  The relevant part of the block diagram for the
>>> 460EX looks something like this:
>>>
>>>       +-----+
>>>       | CPU |
>>>       +-----+
>>>          |
>>>  +---------------+
>>>  |      BUS      |
>>>  +---------------+
>>>     |         |
>>>  +-----+   +-----+
>>>  | DMA |   | RAM |
>>>  +-----+   +-----+
>>>     |
>>>  +------+
>>>  | SATA |
>>>  +------+
>>>
>>> The DMA-SATA link is private and ignores the address, which is the only
>>> reason the driver can possibly work (it's programming a CPU virtual
>>> address there).
>>
>> If you look at the original code the SMS and DMS are programmed
>> statically independent on DMA direction, so LLP is programmed always
>> to master 1. I don't think your scheme is reflecting this right. I
>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>> and the other CPU and DMA.
>
> Check the code again.  The original code swaps SMS and DMS depending on
> direction, and it sets LMS to 1.  Put differently, it always sets the
> memory side 1 and the device side to 0.  The dw_dma driver sets SMS and
> DMS to the src/dst_master values provided through dma_request_channel()
> regardless of the current direction and LMS always zero.

I used to have a patch to implement this in dw_dmac driver. However, I
dropped it at some point. Seems we need it back and now I possible
have a good explanation why.

> If those
> values didn't matter, why would the fields exist in the first place?

Because someone can have more than one AHB bus on the system and
connect DMA to all of them (up to 4).

>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>> that the problem is in master numbers by themselves.
>
> The 460EX is a PowerPC system.  Expect unusual topologies.

Yeah, that's right.

>>>>> Also, the manual says the LLP_SRC_EN
>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>>
>>>> Easy to fix, however I can't get how it might affect.
>>>
>>> From the Atmel doc:
>>>
>>>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>   illegal, and causes indeterminate or erroneous behavior.
>>
>> I will check Synospys documentation later on.

Yes, we have to clear those bits. I will do a patch or you already have one?

>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>> I have a patch already.
>>
>> Good. Send with Fixes tag if it's upstream ready.
>>
>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>> it off.
>>
>> I have ATNGW100.
>
> I have an AT32ATK1006.  Can you suggest a good test to exercise the DMA
> engine?

On that board I tried MMC (the only available user for me), though it
is not reliable, I also tried the dmatest module.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 16:48                                                                                     ` Andy Shevchenko
  2015-12-21 17:20                                                                                       ` Julian Margetson
@ 2015-12-21 17:26                                                                                       ` Julian Margetson
  2015-12-21 17:55                                                                                         ` Andy Shevchenko
  1 sibling, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 17:26 UTC (permalink / raw)
  To: Andy Shevchenko, Andy Shevchenko, Måns Rullgård
  Cc: Tejun Heo, linux-ide, linux-kernel

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

On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>> <andy.shevchenko@gmail.com> wrote:
>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>> wrote:
>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>> items on this board, however registers for SATA program it to 64. I
>>> remember that I got no interrupt when I programmed transfer width
>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>> on
>>> Intel SoCs.
>> One more thing, I have a patch to monitor DMA IO, we may check what
>> exactly the values are written / read  in DMA. I can share it
>> tomorrow.
> As promised the patch I have to debug IO of DW DMA. Didn't check though
> if it applies cleanly on top of recent vanilla kernel.
>


[-- Attachment #2: Log4.log --]
[-- Type: text/plain, Size: 248096 bytes --]

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.12.21 13:22:26 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2015.a (May 16 2015 - 14:20:11)

CPU:   AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
       No Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       Internal PCI arbiter enabled
       32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + SATA-2
I2C:   ready
DRAM:  2 GiB (ECC not enabled, 462 MHz, CL4)
PCI:   Bus Dev VenId DevId Class Int
        00  04  1095  3512  0104  00
        00  06  126f  0501  0380  00
PCIE1: successfully set as root-complex
        02  00  1002  683f  0300  ff
Net:   ppc_4xx_eth0
FPGA:  Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA:   1
VESA:  OK
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex-dirty (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #4 PREEMPT Mon Dec 21 13:13:19 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a34dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6736K kernel code, 328K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000014] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000028] clocksource: timebase mult[dda520] shift[24] registered
[    0.000039] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000148] Console: colour dummy device 80x25
[    0.000180] pid_max: default: 32768 minimum: 301
[    0.000281] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000293] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004078] devtmpfs: initialized
[    0.006787] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007177] xor: measuring software checksum speed
[    0.016341]    8regs     :   856.000 MB/sec
[    0.026349]    8regs_prefetch:   784.000 MB/sec
[    0.036382]    32regs    :  1120.000 MB/sec
[    0.046414]    32regs_prefetch:   996.000 MB/sec
[    0.046421] xor: using function: 32regs (1120.000 MB/sec)
[    0.046455] prandom: seed boundary self test passed
[    0.048899] prandom: 100 self tests passed
[    0.049441] NET: Registered protocol family 16
[    0.052543] cpuidle: using governor ladder
[    0.055576] cpuidle: using governor menu
[    0.055976] 256k L2-cache enabled
[    0.056060] PCIE0: Port disabled via device-tree
[    0.056111] PCIE1: Checking link...
[    0.056118] PCIE1: Device detected, waiting for link...
[    0.056124] PCIE1: link is up !
[    0.158408] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158435]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158450]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158460]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158483] 4xx PCI DMA offset set to 0x00000000
[    0.158489] 4xx PCI DMA window base to 0x0000000000000000
[    0.158495] DMA window size 0x0000000080000000
[    0.158519] PCIE1: successfully set as root-complex
[    0.158585] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158600]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158615]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158625]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158639] 4xx PCI DMA offset set to 0x00000000
[    0.158645] 4xx PCI DMA window base to 0x0000000000000000
[    0.158650] DMA window size 0x0000000080000000
[    0.159137] PCI: Probing PCI hardware
[    0.159238] PCI host bridge to bus 0000:80
[    0.159257] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159270] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159282] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159295] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159309] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159346] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159386] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159418] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159693] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159743] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159764] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159780] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159802] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159865] pci 0000:81:00.0: supports D1 D2
[    0.159875] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160025] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160074] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160159] pci 0000:81:00.1: supports D1 D2
[    0.160286] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160302] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160313] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160400] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160491] PCI host bridge to bus 0001:00
[    0.160504] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160517] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160529] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160539] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160550] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160601] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160613] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160626] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160638] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160651] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160664] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160677] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160704] pci 0001:00:04.0: supports D1 D2
[    0.160825] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160849] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160862] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160898] pci 0001:00:06.0: supports D1 D2
[    0.161072] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161163] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161175] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161186] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161202] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161223] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161240] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161253] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161270] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161283] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161294] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161305] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161316] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161329] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161339] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161348] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161358] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161368] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161378] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161393] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161406] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161418] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161429] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161441] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161453] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161464] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161476] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161487] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161500] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161510] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161519] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188264] raid6: int32x1  gen()   300 MB/s
[    0.205418] raid6: int32x1  xor()   173 MB/s
[    0.222443] raid6: int32x2  gen()   433 MB/s
[    0.239493] raid6: int32x2  xor()   240 MB/s
[    0.256583] raid6: int32x4  gen()   476 MB/s
[    0.273662] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307890] raid6: int32x8  xor()   218 MB/s
[    0.307897] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307903] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307909] raid6: using intx1 recovery algorithm
[    0.308208] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308221] vgaarb: loaded
[    0.308227] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308638] libata version 3.00 loaded.
[    0.308879] usbcore: registered new interface driver usbfs
[    0.308922] usbcore: registered new interface driver hub
[    0.308978] usbcore: registered new device driver usb
[    0.309073] pps_core: LinuxPPS API ver. 1 registered
[    0.309081] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309108] PTP clock support registered
[    0.309255] EDAC MC: Ver: 3.0.0
[    0.309604] Advanced Linux Sound Architecture Driver Initialized.
[    0.329537] DMA-API: preallocated 65536 debug entries
[    0.329551] DMA-API: debugging enabled by kernel config
[    0.329597] clocksource: Switched to clocksource timebase
[    0.336198] NET: Registered protocol family 2
[    0.336786] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336880] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337220] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337333] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337399] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337744] NET: Registered protocol family 1
[    0.338057] RPC: Registered named UNIX socket transport module.
[    0.338067] RPC: Registered udp transport module.
[    0.338073] RPC: Registered tcp transport module.
[    0.338079] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338148] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338837] Could not remap bcsr
[    0.341995] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345046] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355229] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355768] fuse init (API version 7.23)
[    0.359937] async_tx: api initialized (async)
[    0.360034] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360050] io scheduler noop registered
[    0.360191] io scheduler cfq registered (default)
[    0.362260] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362271] crc32: self tests passed, processed 225944 bytes in 892141 nsec
[    0.363245] crc32c: CRC_LE_BITS = 64
[    0.363254] crc32c: self tests passed, processed 225944 bytes in 446207 nsec
[    0.429644] crc32_combine: 8373 self tests passed
[    0.496237] crc32c_combine: 8373 self tests passed
[    0.496288] glob: 64 self-tests passed, 0 failed
[    0.534422] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535200] console [ttyS0] disabled
[    0.555345] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.838037] console [ttyS0] enabled
[    1.862154] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871999] console [ttyS0] disabled
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Using Canyonlands machine description
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 4.4.0-rc5-Sam460ex-dirty (root@julian-VirtualBox) (gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu3) ) #4 PREEMPT Mon Dec 21 13:13:19 AST 2015
[    0.000000] Found legacy serial port 0 for /plb/opb/serial@ef600300
[    0.000000]   mem=4ef600300, taddr=4ef600300, irq=0, clk=11059200, speed=0
[    0.000000] Found legacy serial port 1 for /plb/opb/serial@ef600400
[    0.000000]   mem=4ef600400, taddr=4ef600400, irq=0, clk=11059200, speed=0
[    0.000000] Top of RAM: 0x80000000, Total RAM: 0x80000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0a34dc8, node_mem_map eefed000
[    0.000000]   DMA zone: 1536 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: root=/dev/sda8 console=ttyS0,115200  ignore_loglevel dw_dmac_core.dyndbg dw_dmac.dyndbg
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 2068868K/2097152K available (6736K kernel code, 328K rwdata, 3232K rodata, 236K init, 368K bss, 28284K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xffc00000..0xffe00000  : highmem PTEs
[    0.000000]   * 0xffa00000..0xffc00000  : consistent mem
[    0.000000]   * 0xffa00000..0xffa00000  : early ioremap
[    0.000000]   * 0xf1000000..0xffa00000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000000] UIC3 (32 IRQ sources) at DCR 0xf0
[    0.000000] time_init: decrementer frequency = 1155.000010 MHz
[    0.000000] time_init: processor frequency   = 1155.000010 MHz
[    0.000014] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x10a60dda894, max_idle_ns: 440795207041 ns
[    0.000028] clocksource: timebase mult[dda520] shift[24] registered
[    0.000039] clockevent: decrementer mult[93d70a53] shift[31] cpu[0]
[    0.000148] Console: colour dummy device 80x25
[    0.000180] pid_max: default: 32768 minimum: 301
[    0.000281] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000293] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004078] devtmpfs: initialized
[    0.006787] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.007177] xor: measuring software checksum speed
[    0.016341]    8regs     :   856.000 MB/sec
[    0.026349]    8regs_prefetch:   784.000 MB/sec
[    0.036382]    32regs    :  1120.000 MB/sec
[    0.046414]    32regs_prefetch:   996.000 MB/sec
[    0.046421] xor: using function: 32regs (1120.000 MB/sec)
[    0.046455] prandom: seed boundary self test passed
[    0.048899] prandom: 100 self tests passed
[    0.049441] NET: Registered protocol family 16
[    0.052543] cpuidle: using governor ladder
[    0.055576] cpuidle: using governor menu
[    0.055976] 256k L2-cache enabled
[    0.056060] PCIE0: Port disabled via device-tree
[    0.056111] PCIE1: Checking link...
[    0.056118] PCIE1: Device detected, waiting for link...
[    0.056124] PCIE1: link is up !
[    0.158408] PCI host bridge /plb/pciex@d20000000 (primary) ranges:
[    0.158435]  MEM 0x0000000e80000000..0x0000000effffffff -> 0x0000000080000000 
[    0.158450]  MEM 0x0000000f00100000..0x0000000f001fffff -> 0x0000000000000000 
[    0.158460]   IO 0x0000000f80010000..0x0000000f8001ffff -> 0x0000000000000000
[    0.158483] 4xx PCI DMA offset set to 0x00000000
[    0.158489] 4xx PCI DMA window base to 0x0000000000000000
[    0.158495] DMA window size 0x0000000080000000
[    0.158519] PCIE1: successfully set as root-complex
[    0.158585] PCI host bridge /plb/pci@c0ec00000 (primary) ranges:
[    0.158600]  MEM 0x0000000d80000000..0x0000000dffffffff -> 0x0000000080000000 
[    0.158615]  MEM 0x0000000c0ee00000..0x0000000c0eefffff -> 0x0000000000000000 
[    0.158625]   IO 0x0000000c08000000..0x0000000c0800ffff -> 0x0000000000000000
[    0.158639] 4xx PCI DMA offset set to 0x00000000
[    0.158645] 4xx PCI DMA window base to 0x0000000000000000
[    0.158650] DMA window size 0x0000000080000000
[    0.159137] PCI: Probing PCI hardware
[    0.159238] PCI host bridge to bus 0000:80
[    0.159257] pci_bus 0000:80: root bus resource [io  0xfffe0000-0xfffeffff] (bus address [0x0000-0xffff])
[    0.159270] pci_bus 0000:80: root bus resource [mem 0xe80000000-0xeffffffff] (bus address [0x80000000-0xffffffff])
[    0.159282] pci_bus 0000:80: root bus resource [mem 0xf00100000-0xf001fffff] (bus address [0x00000000-0x000fffff])
[    0.159295] pci_bus 0000:80: root bus resource [bus 80-ff]
[    0.159309] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to ff
[    0.159346] pci 0000:80:00.0: [aaa1:bed1] type 01 class 0x060400
[    0.159386] pci 0000:80:00.0: reg 0x10: [mem 0x00000000-0x7fffffff pref]
[    0.159418] PCI: Hiding 4xx host bridge resources 0000:80:00.0
[    0.159693] pci 0000:81:00.0: [1002:683f] type 00 class 0x030000
[    0.159743] pci 0000:81:00.0: reg 0x10: [mem 0xea0000000-0xeafffffff 64bit pref]
[    0.159764] pci 0000:81:00.0: reg 0x18: [mem 0xeb0000000-0xeb003ffff 64bit]
[    0.159780] pci 0000:81:00.0: reg 0x20: [io  0xfffe2000-0xfffe20ff]
[    0.159802] pci 0000:81:00.0: reg 0x30: [mem 0xf00100000-0xf0011ffff pref]
[    0.159865] pci 0000:81:00.0: supports D1 D2
[    0.159875] pci 0000:81:00.0: PME# supported from D1 D2 D3hot
[    0.160025] pci 0000:81:00.1: [1002:aab0] type 00 class 0x040300
[    0.160074] pci 0000:81:00.1: reg 0x10: [mem 0xf00100000-0xf00103fff 64bit]
[    0.160159] pci 0000:81:00.1: supports D1 D2
[    0.160286] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.160302] pci 0000:80:00.0:   bridge window [io  0xfffe2000-0xfffe2fff]
[    0.160313] pci 0000:80:00.0:   bridge window [mem 0xea0000000-0xeb00fffff]
[    0.160400] pci_bus 0000:80: busn_res: [bus 80-ff] end is updated to bf
[    0.160491] PCI host bridge to bus 0001:00
[    0.160504] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    0.160517] pci_bus 0001:00: root bus resource [mem 0xd80000000-0xdffffffff] (bus address [0x80000000-0xffffffff])
[    0.160529] pci_bus 0001:00: root bus resource [mem 0xc0ee00000-0xc0eefffff] (bus address [0x00000000-0x000fffff])
[    0.160539] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.160550] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.160577] pci 0001:00:04.0: [1095:3512] type 00 class 0x010400
[    0.160601] pci 0001:00:04.0: reg 0x10: [io  0x1000-0x1007]
[    0.160613] pci 0001:00:04.0: reg 0x14: [io  0x1008-0x100b]
[    0.160626] pci 0001:00:04.0: reg 0x18: [io  0x1010-0x1017]
[    0.160638] pci 0001:00:04.0: reg 0x1c: [io  0x1018-0x101b]
[    0.160651] pci 0001:00:04.0: reg 0x20: [io  0x1020-0x102f]
[    0.160664] pci 0001:00:04.0: reg 0x24: [mem 0xd80000000-0xd800001ff]
[    0.160677] pci 0001:00:04.0: reg 0x30: [mem 0xc0ee00000-0xc0ee7ffff pref]
[    0.160704] pci 0001:00:04.0: supports D1 D2
[    0.160825] pci 0001:00:06.0: [126f:0501] type 00 class 0x038000
[    0.160849] pci 0001:00:06.0: reg 0x10: [mem 0xd84000000-0xd87ffffff]
[    0.160862] pci 0001:00:06.0: reg 0x14: [mem 0xd88000000-0xd881fffff]
[    0.160898] pci 0001:00:06.0: supports D1 D2
[    0.161072] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 00
[    0.161163] pci 0000:80:00.0: BAR 9: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161175] pci 0000:80:00.0: BAR 8: assigned [mem 0xe90000000-0xe900fffff]
[    0.161186] pci 0000:80:00.0: BAR 7: assigned [io  0xfffe1000-0xfffe1fff]
[    0.161202] pci 0000:81:00.0: BAR 0: assigned [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161223] pci 0000:81:00.0: BAR 2: assigned [mem 0xe90000000-0xe9003ffff 64bit]
[    0.161240] pci 0000:81:00.0: BAR 6: assigned [mem 0xe90040000-0xe9005ffff pref]
[    0.161253] pci 0000:81:00.1: BAR 0: assigned [mem 0xe90060000-0xe90063fff 64bit]
[    0.161270] pci 0000:81:00.0: BAR 4: assigned [io  0xfffe1000-0xfffe10ff]
[    0.161283] pci 0000:80:00.0: PCI bridge to [bus 81-bf]
[    0.161294] pci 0000:80:00.0:   bridge window [io  0xfffe1000-0xfffe1fff]
[    0.161305] pci 0000:80:00.0:   bridge window [mem 0xe90000000-0xe900fffff]
[    0.161316] pci 0000:80:00.0:   bridge window [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161329] pci_bus 0000:80: resource 4 [io  0xfffe0000-0xfffeffff]
[    0.161339] pci_bus 0000:80: resource 5 [mem 0xe80000000-0xeffffffff]
[    0.161348] pci_bus 0000:80: resource 6 [mem 0xf00100000-0xf001fffff]
[    0.161358] pci_bus 0000:81: resource 0 [io  0xfffe1000-0xfffe1fff]
[    0.161368] pci_bus 0000:81: resource 1 [mem 0xe90000000-0xe900fffff]
[    0.161378] pci_bus 0000:81: resource 2 [mem 0xe80000000-0xe8fffffff 64bit pref]
[    0.161393] pci 0001:00:06.0: BAR 0: assigned [mem 0xd80000000-0xd83ffffff]
[    0.161406] pci 0001:00:06.0: BAR 1: assigned [mem 0xd84000000-0xd841fffff]
[    0.161418] pci 0001:00:04.0: BAR 6: assigned [mem 0xd84200000-0xd8427ffff pref]
[    0.161429] pci 0001:00:04.0: BAR 5: assigned [mem 0xd84280000-0xd842801ff]
[    0.161441] pci 0001:00:04.0: BAR 4: assigned [io  0x1000-0x100f]
[    0.161453] pci 0001:00:04.0: BAR 0: assigned [io  0x1010-0x1017]
[    0.161464] pci 0001:00:04.0: BAR 2: assigned [io  0x1018-0x101f]
[    0.161476] pci 0001:00:04.0: BAR 1: assigned [io  0x1020-0x1023]
[    0.161487] pci 0001:00:04.0: BAR 3: assigned [io  0x1024-0x1027]
[    0.161500] pci_bus 0001:00: resource 4 [io  0x0000-0xffff]
[    0.161510] pci_bus 0001:00: resource 5 [mem 0xd80000000-0xdffffffff]
[    0.161519] pci_bus 0001:00: resource 6 [mem 0xc0ee00000-0xc0eefffff]
[    0.188264] raid6: int32x1  gen()   300 MB/s
[    0.205418] raid6: int32x1  xor()   173 MB/s
[    0.222443] raid6: int32x2  gen()   433 MB/s
[    0.239493] raid6: int32x2  xor()   240 MB/s
[    0.256583] raid6: int32x4  gen()   476 MB/s
[    0.273662] raid6: int32x4  xor()   267 MB/s
[    0.290719] raid6: int32x8  gen()   234 MB/s
[    0.307890] raid6: int32x8  xor()   218 MB/s
[    0.307897] raid6: using algorithm int32x4 gen() 476 MB/s
[    0.307903] raid6: .... xor() 267 MB/s, rmw enabled
[    0.307909] raid6: using intx1 recovery algorithm
[    0.308208] vgaarb: device added: PCI:0000:81:00.0,decodes=io+mem,owns=none,locks=none
[    0.308221] vgaarb: loaded
[    0.308227] vgaarb: bridge control possible 0000:81:00.0
[    0.308493] SCSI subsystem initialized
[    0.308638] libata version 3.00 loaded.
[    0.308879] usbcore: registered new interface driver usbfs
[    0.308922] usbcore: registered new interface driver hub
[    0.308978] usbcore: registered new device driver usb
[    0.309073] pps_core: LinuxPPS API ver. 1 registered
[    0.309081] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.309108] PTP clock support registered
[    0.309255] EDAC MC: Ver: 3.0.0
[    0.309604] Advanced Linux Sound Architecture Driver Initialized.
[    0.329537] DMA-API: preallocated 65536 debug entries
[    0.329551] DMA-API: debugging enabled by kernel config
[    0.329597] clocksource: Switched to clocksource timebase
[    0.336198] NET: Registered protocol family 2
[    0.336786] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.336880] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.337220] TCP: Hash tables configured (established 8192 bind 8192)
[    0.337333] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.337399] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.337744] NET: Registered protocol family 1
[    0.338057] RPC: Registered named UNIX socket transport module.
[    0.338067] RPC: Registered udp transport module.
[    0.338073] RPC: Registered tcp transport module.
[    0.338079] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.338148] PCI: CLS mismatch (32 != 4), using 32 bytes
[    0.338837] Could not remap bcsr
[    0.341995] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    0.345046] futex hash table entries: 256 (order: 0, 7168 bytes)
[    0.355229] ntfs: driver 2.1.32 [Flags: R/W].
[    0.355768] fuse init (API version 7.23)
[    0.359937] async_tx: api initialized (async)
[    0.360034] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.360050] io scheduler noop registered
[    0.360191] io scheduler cfq registered (default)
[    0.362260] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    0.362271] crc32: self tests passed, processed 225944 bytes in 892141 nsec
[    0.363245] crc32c: CRC_LE_BITS = 64
[    0.363254] crc32c: self tests passed, processed 225944 bytes in 446207 nsec
[    0.429644] crc32_combine: 8373 self tests passed
[    0.496237] crc32c_combine: 8373 self tests passed
[    0.496288] glob: 64 self-tests passed, 0 failed
[    0.534422] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.535200] console [ttyS0] disabled
[    0.555345] serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a U6_16550A
[    1.838037] console [ttyS0] enabled
[    1.862154] serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a U6_16550A
[    1.871999] console [ttyS0] disabled
[    1.875668] 4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 22, base_baud = 691200) is a 16550
[    3.183169] console [ttyS0] enabled
[    3.187294] 4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 23, base_baud = 691200) is a 16550
[    3.196669] Generic non-volatile memory driver v1.1
[    3.201825] [drm] Initialized drm 1.1.0 20060810
[    3.206512] [drm] radeon kernel modesetting enabled.
[    3.212199] [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x1545:0x7750).
[    3.220185] [drm] register mmio base: 0xe90000000
[    3.224923] [drm] register mmio size: 262144
[    3.561022] ATOM BIOS: C44501
[    3.564259] radeon 0000:81:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    3.573159] radeon 0000:81:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    3.580827] [drm] Detected VRAM RAM=1024M, BAR=256M
[    3.585713] [drm] RAM width 128bits DDR
[    3.589760] [TTM] Zone  kernel: Available graphics memory: 379074 kiB
[    3.596230] [TTM] Zone highmem: Available graphics memory: 1034434 kiB
[    3.602762] [TTM] Initializing pool allocator
[    3.607218] [drm] radeon: 1024M of VRAM memory ready
[    3.612200] [drm] radeon: 2048M of GTT memory ready.
[    3.617234] [drm] Loading verde Microcode
[    3.621286] [drm] Internal thermal controller with fan control
[    3.627355] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.681119] [drm] radeon: dpm initialized
[    3.685345] radeon 0000:81:00.0: Direct firmware load for radeon/TAHITI_vce.bin failed with error -2
[    3.694543] radeon 0000:81:00.0: radeon_vce: Can't load firmware "radeon/TAHITI_vce.bin"
[    3.702692] [drm] GART: num cpu pages 524288, num gpu pages 524288
[    3.719398] [drm] probing gen 2 caps for device aaa1:bed1 = 18cc41/0
[    3.782990] [drm] PCIE GART of 2048M enabled (table at 0x0000000000277000).
[    3.790272] radeon 0000:81:00.0: WB enabled
[    3.794505] radeon 0000:81:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xedccec00
[    3.804607] radeon 0000:81:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xedccec04
[    3.814701] radeon 0000:81:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xedccec08
[    3.824797] radeon 0000:81:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xedccec0c
[    3.834892] radeon 0000:81:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xedccec10
[    3.875472] radeon 0000:81:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xf5135a18
[    3.885575] radeon 0000:81:00.0: VCE init error (-22).
[    3.890726] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.897344] [drm] Driver supports precise vblank timestamp query.
[    3.903450] radeon 0000:81:00.0: radeon: MSI limited to 32-bit
[    3.909363] genirq: Setting trigger mode 3 for irq 45 failed (uic_set_irq_type+0x0/0x160)
[    3.917632] radeon 0000:81:00.0: radeon: using MSI.
[    3.922572] [drm] radeon: irq initialized.
[    4.682096] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    4.690915] radeon 0000:81:00.0: disabling GPU acceleration
[    4.900020] [drm] Radeon Display Connectors
[    4.904266] [drm] Connector 0:
[    4.907335] [drm]   HDMI-A-1
[    4.910226] [drm]   HPD4
[    4.912773] [drm]   DDC: 0x6570 0x6570 0x6574 0x6574 0x6578 0x6578 0x657c 0x657c
[    4.920173] [drm]   Encoders:
[    4.923152] [drm]     DFP1: INTERNAL_UNIPHY2
[    4.927431] [drm] Connector 1:
[    4.930495] [drm]   DVI-I-1
[    4.933298] [drm]   HPD2
[    4.935846] [drm]   DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
[    4.943246] [drm]   Encoders:
[    4.946215] [drm]     DFP2: INTERNAL_UNIPHY
[    4.950408] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    5.068678] [drm] fb mappable at 0x80678000
[    5.072874] [drm] vram apper at 0x80000000
[    5.076979] [drm] size 8294400
[    5.080043] [drm] fb depth is 24
[    5.083281] [drm]    pitch is 7680
[    5.361963] Console: switching to colour frame buffer device 240x67
[    5.440884] radeon 0000:81:00.0: fb0: radeondrmfb frame buffer device
[    5.449663] [drm] Initialized radeon 2.43.0 20080528 for 0000:81:00.0 on minor 0
[    5.466378] brd: module loaded
[    5.473901] loop: module loaded
[    5.477284] sata_sil 0001:00:04.0: version 2.4
[    5.481849] sata_sil 0001:00:04.0: Applying R_ERR on DMA activate FIS errata fix
[    5.489939] scsi host0: sata_sil
[    5.493468] scsi host1: sata_sil
[    5.496859] ata1: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd84280080 irq 21
[    5.504189] ata2: SATA max UDMA/100 mmio m512@0xd84280000 tf 0xd842800c0 irq 21
[    5.512144] PPC 4xx OCP EMAC driver, version 3.54
[    5.517411] MAL v2 /plb/mcmal, 2 TX channels, 16 RX channels
[    5.523290] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    5.528721] RGMII /plb/opb/emac-rgmii@ef601500 initialized with MDIO support
[    5.535888] TAH /plb/opb/emac-tah@ef601350 initialized
[    5.541083] TAH /plb/opb/emac-tah@ef601450 initialized
[    5.546496] /plb/opb/emac-rgmii@ef601500: input 0 in RGMII mode
[    5.553645] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC 00:50:c2:80:d5:c5
[    5.560540] eth0: found Generic MII PHY (0x00)
[    5.565172] /plb/opb/emac-rgmii@ef601500: input 1 in RGMII mode
[    5.572263] eth1: EMAC-1 /plb/opb/ethernet@ef600f00, MAC 00:00:00:00:00:00
[    5.579164] eth1: found Generic MII PHY (0x01)
[    5.583661] PPP generic driver version 2.4.2
[    5.588113] PPP BSD Compression module registered
[    5.592835] PPP Deflate Compression module registered
[    5.597897] NET: Registered protocol family 24
[    5.602530] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.609222] ppc-of-ehci 4bffd0400.ehci: OF EHCI
[    5.613930] ppc-of-ehci 4bffd0400.ehci: new USB bus registered, assigned bus number 1
[    5.622735] ppc-of-ehci 4bffd0400.ehci: irq 31, io mem 0x4bffd0400
[    5.634615] ppc-of-ehci 4bffd0400.ehci: USB 2.0 started, EHCI 1.00
[    5.641001] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.647810] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.655038] usb usb1: Product: OF EHCI
[    5.658796] usb usb1: Manufacturer: Linux 4.4.0-rc5-Sam460ex-dirty ehci_hcd
[    5.665766] usb usb1: SerialNumber: PPC-OF USB
[    5.670666] hub 1-0:1.0: USB hub found
[    5.674481] hub 1-0:1.0: 1 port detected
[    5.678723] ehci-pci: EHCI PCI platform driver
[    5.683262] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.689634] ppc-of-ohci 4bffd0000.usb: OF OHCI
[    5.694231] ppc-of-ohci 4bffd0000.usb: new USB bus registered, assigned bus number 2
[    5.702026] ppc-of-ohci 4bffd0000.usb: irq 32, io mem 0x4bffd0000
[    5.825623] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    5.865156] ata1.00: ATA-8: WDC WD5000AAKS-00V1A0, 05.01D05, max UDMA/133
[    5.876598] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    5.894901] ata1.00: configured for UDMA/100
[    5.917867] scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 1D05 PQ: 0 ANSI: 5
[    5.932790] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.938463] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    5.950753] sd 0:0:0:0: [sda] Write Protect is off
[    5.960603] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.970679] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.988609] usb 1-1: new high-speed USB device number 2 using ppc-of-ehci
[    6.005549]  sda: RDSK (512) sda1 (DOS^G)(res 2 spb 1) sda2 (SFS^@)(res 2 spb 1) sda3 (SFS^@)(res 2 spb 1) sda4 (SFS^@)(res 2 spb 1) sda5 (SFS^@)(res 2 spb 1) sda6 (SFS^@)(res 2 spb 1) sda7 (NTFS)(res 2 spb 2) sda8 (EXT^C)(res 2 spb 1)
[    6.047924] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.116959] usb 1-1: New USB device found, idVendor=0424, idProduct=2517
[    6.129602] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.145694] hub 1-1:1.0: USB hub found
[    6.152695] hub 1-1:1.0: 7 ports detected
[    6.258622] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    6.290740] ata2.00: ATAPI: ASUS    DRW-24B3ST   i, 1.00, max UDMA/100
[    6.307716] ata2.00: configured for UDMA/100
[    6.323524] scsi 1:0:0:0: CD-ROM            ASUS     DRW-24B3ST   i   1.00 PQ: 0 ANSI: 5
[    6.366834] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    6.381600] cdrom: Uniform CD-ROM driver Revision: 3.20
[    6.393202] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    6.403804] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    6.430268] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.437081] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.444324] usb 1-1.1: new high-speed USB device number 3 using ppc-of-ehci
[    6.451304] usb usb2: Product: OF OHCI
[    6.455068] usb usb2: Manufacturer: Linux 4.4.0-rc5-Sam460ex-dirty ohci_hcd
[    6.462086] usb usb2: SerialNumber: PPC-OF USB
[    6.467082] hub 2-0:1.0: USB hub found
[    6.470900] hub 2-0:1.0: 1 port detected
[    6.475172] ohci-pci: OHCI PCI platform driver
[    6.479913] usbcore: registered new interface driver usblp
[    6.485551] usbcore: registered new interface driver usb-storage
[    6.491794] usbcore: registered new interface driver usbserial
[    6.497753] usbcore: registered new interface driver usbserial_generic
[    6.504364] usbserial: USB Serial support registered for generic
[    6.510683] mousedev: PS/2 mouse device common for all mice
[    6.516362] i2c /dev entries driver
[    6.522263] rtc-m41t80 8-0068: rtc core: registered m41t80 as rtc0
[    6.529423] ibm-iic 4ef600700.i2c: using standard (100 kHz) mode
[    6.535701] ibm-iic 4ef600800.i2c: using standard (100 kHz) mode
[    6.541796] md: linear personality registered for level -1
[    6.547306] md: raid0 personality registered for level 0
[    6.552626] md: raid1 personality registered for level 1
[    6.558000] md: raid10 personality registered for level 10
[    6.563753] md: raid6 personality registered for level 6
[    6.569120] md: raid5 personality registered for level 5
[    6.574449] md: raid4 personality registered for level 4
[    6.580453] usb 1-1.1: New USB device found, idVendor=1a40, idProduct=0101
[    6.587402] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    6.595886] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.603262] EDAC PPC4xx MC: v1.0.0
[    6.606702] usb 1-1.1: Product: USB 2.0 Hub
[    6.610898] EDAC PPC4xx MC: Reporting type: interrupt
[    6.616403] hub 1-1.1:1.0: USB hub found
[    6.620535] hidraw: raw HID events driver (C) Jiri Kosina
[    6.626314] hub 1-1.1:1.0: 4 ports detected
[    6.630808] usbcore: registered new interface driver usbhid
[    6.636453] usbhid: USB HID core driver
[    6.640981] usbcore: registered new interface driver snd-usb-audio
[    6.647367] usbcore: registered new interface driver snd-ua101
[    6.653487] usbcore: registered new interface driver snd-usb-usx2y
[    6.660061] ipip: IPv4 over IPv4 tunneling driver
[    6.665283] Initializing XFRM netlink socket
[    6.670342] NET: Registered protocol family 10
[    6.675969] sit: IPv6 over IPv4 tunneling driver
[    6.681111] NET: Registered protocol family 17
[    6.685616] NET: Registered protocol family 15
[    6.690323] Running MSI bitmap self-tests ...
[    6.696369] Key type encrypted registered
[    6.702025] rtc-m41t80 8-0068: setting system clock to 2015-12-21 13:22:59 UTC (1450704179)
[    6.710587] ALSA device list:
[    6.713601]   No soundcards found.
[    6.717533] md: Waiting for all devices to be available before autodetect
[    6.724368] md: If you don't use raid, use raid=noautodetect
[    6.730067] usb 1-1.2: new low-speed USB device number 4 using ppc-of-ehci
[    6.737571] md: Autodetecting RAID arrays.
[    6.741790] md: Scanned 0 and added 0 devices.
[    6.746335] md: autorun ...
[    6.749186] md: ... autorun DONE.
[    6.777002] EXT4-fs (sda8): mounting ext3 file system using the ext4 subsystem
[    6.794151] EXT4-fs (sda8): INFO: recovery required on readonly filesystem
[    6.801071] EXT4-fs (sda8): write access will be enabled during recovery
[    6.841802] usb 1-1.2: New USB device found, idVendor=04f2, idProduct=0116
[    6.848867] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.857020] usb 1-1.2: Product: USB Keyboard
[    6.861475] usb 1-1.2: Manufacturer: CHICONY
[    6.877190] input: CHICONY USB Keyboard as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F2:0116.0001/input/input0
[    6.940637] usb 1-1.1.1: new full-speed USB device number 5 using ppc-of-ehci
[    6.948358] hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB Keyboard] on usb-PPC-OF USB-1.2/input0
[    7.048062] usb 1-1.1.1: New USB device found, idVendor=0d8c, idProduct=000c
[    7.055647] usb 1-1.1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.064556] usb 1-1.1.1: Product: C-Media USB Audio Device   
[    7.100633] input: C-Media USB Audio Device    as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.3/0003:0D8C:000C.0002/input/input1
[    7.114624] usb 1-1.6: new full-speed USB device number 6 using ppc-of-ehci
[    7.172929] hid-generic 0003:0D8C:000C.0002: input,hidraw1: USB HID v1.00 Device [C-Media USB Audio Device   ] on usb-PPC-OF USB-1.1.1/input3
[    7.210292] usb 1-1.6: New USB device found, idVendor=046d, idProduct=c52b
[    7.217335] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.224812] usb 1-1.6: Product: USB Receiver
[    7.229128] usb 1-1.6: Manufacturer: Logitech
[    7.237511] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.0/0003:046D:C52B.0003/input/input2
[    7.300884] hid-generic 0003:046D:C52B.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input0
[    7.318919] input: Logitech USB Receiver as /devices/platform/plb/4bffd0400.ehci/usb1/1-1/1-1.6/1-1.6:1.1/0003:046D:C52B.0004/input/input3
[    7.382959] hid-generic 0003:046D:C52B.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input1
[    7.400708] hid-generic 0003:046D:C52B.0005: hidraw4: USB HID v1.11 Device [Logitech USB Receiver] on usb-PPC-OF USB-1.6/input2
[    7.412289] random: nonblocking pool is initialized
[    7.490621] usb 1-1.7: new high-speed USB device number 7 using ppc-of-ehci
[    7.589147] usb 1-1.7: New USB device found, idVendor=0424, idProduct=2240
[    7.596076] usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.603429] usb 1-1.7: Product: Ultra Fast Media 
[    7.608182] usb 1-1.7: Manufacturer: Generic
[    7.612477] usb 1-1.7: SerialNumber: 000000225001
[    7.617802] usb-storage 1-1.7:1.0: USB Mass Storage device detected
[    7.624332] scsi host2: usb-storage 1-1.7:1.0
[    7.969307] EXT4-fs (sda8): recovery complete
[    7.985307] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[    7.993026] VFS: Mounted root (ext3 filesystem) readonly on device 8:8.
[    8.026467] devtmpfs: mounted
[    8.030022] Freeing unused kernel memory: 236K (c09bf000 - c09fa000)
[    8.629822] scsi 2:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   1.98 PQ: 0 ANSI: 0
[    8.638965] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    8.646517] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.070838] systemd[1]: Failed to insert module 'kdbus': Function not implemented
[    9.151205] systemd[1]: systemd 228 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    9.169773] systemd[1]: Detected architecture ppc.

Welcome to Ubuntu 16.04!

[    9.207679] systemd[1]: Set hostname to <Sam460ex>.
[    9.416679] systemd-fstab-generator[118]: Mount point  is not a valid path, ignoring.
[   10.219579] systemd[112]: /lib/systemd/system-generators/systemd-fstab-generator terminated by signal ABRT.
[   10.558232] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[   10.642367] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   10.656027] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[   10.667028] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   10.677781] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[   10.689778] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   10.700003] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   10.717112] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[   10.729945] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   10.745677] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[   10.765121] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   10.778983] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   10.791793] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[   10.801968] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   10.817971] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   10.829793] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   10.843774] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   10.857015] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   10.871122] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   10.887075] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   10.907992] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[   10.996210] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   11.013015] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[   11.040005] systemd[1]: Starting Uncomplicated firewall...
         Starting Uncomplicated firewall...
[   11.057836] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   11.083761] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   11.198583] systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[   11.222547] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[   11.386006] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   11.402045] systemd[1]: Failed to start Load Kernel Modules.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[   11.424026] systemd[1]: systemd-modules-load.service: Unit entered failed state.
[   11.431893] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   11.470141] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   11.487493] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[   11.507993] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   11.566305] systemd[1]: Started Uncomplicated firewall.
[  OK  ] Started Uncomplicated firewall.
[   11.634865] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[   11.669957] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[   11.683899] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[   11.695938] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   11.711875] systemd[1]: Started Apply Kernel Variables.
[  OK  ] Started Apply Kernel Variables.
[   11.932002] systemd[1]: ureadahead.service: Main process exited, code=exited, status=5/NOTINSTALLED
[   11.950894] systemd[1]: ureadahead.service: Unit entered failed state.
[   11.957552] systemd[1]: ureadahead.service: Failed with result 'exit-code'.
[   12.065338] systemd[1]: Started Create Static Device Nodes in /dev.
[  OK  ] Started Create Static Device Nodes in /dev.
[   12.115525] systemd[1]: Starting udev Kernel Device Manager...
         Starting udev Kernel Device Manager...
[   12.293388] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Started udev Kernel Device Manager.
         Starting File System Check on Root Device...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[   13.826873] EXT4-fs (sda8): re-mounted. Opts: errors=remount-ro
[   13.836981] systemd-remount[154]: unhandled signal 11 at 0000000c nip 205309a4 lr 2053071c code 30001
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems (Pre).
         Starting udev Coldplug all Devices...
[  OK  ] Started Load/Save Random Seed.
[   14.089432] systemd-journald[132]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   15.404403] sata-dwc 4bffd1000.sata: no dma-channel property set. Use channel 0
[  OK  ] Found device /dev/ttyS0.
[   15.506671] sata-dwc 4bffd1000.sata: ioremap done for SATA register address
[   15.584664] sata-dwc 4bffd1000.sata: id 0, controller version 1.82
[   15.636719] sata-dwc 4bffd1000.sata: DMA initialized
[   15.678638] sata-dwc 4bffd1000.sata: SATA DMA registers=0xf6a20800
[   15.709687] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   15.789715] sata-dwc 4bffd1000.sata: sata_dwc_port_start: port_no=0
[   15.828059] sata-dwc 4bffd1000.sata: sata_dwc_port_start: clearing TXCHEN, RXCHEN in DMAC
[   15.888672] sata-dwc 4bffd1000.sata: sata_dwc_port_start: setting burst size in DBTSR
[   15.947417] sata-dwc 4bffd1000.sata: sata_dwc_port_start: done
[   16.011861] scsi host3: sata-dwc
[   16.040874] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[  OK  ] Created slice system-ifup.slice.
[   16.204644] ata3: SATA max UDMA/133 irq 36
[   16.232743] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[   16.247677] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000000
[  OK  ] Found device /sys/subsystem/ne[   16.268489] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000301
t/devices/eth0.
[   16.286707] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   16.305668] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000301
[   16.320664] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=2 val=val=0x00000300
[   16.545650] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   16.560655] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.583646] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.603626] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.623639] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.644628] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[  OK  ] Reached target Sound Card.
[   16.674903] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.687697] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x04050002
[   16.705642] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x04050002
[   16.725638] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.740306] sata-dwc 4bffd1000.sata: sata_dwc_enable_interrupts: INTMR = 0x0000000f, ERRMR = 0x0fff0f03
[   16.765630] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[  OK  ] Found device WDC_WD5000AAKS-00V1A0 NTFS.[   16.786271] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123

[   16.804631] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.822701] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=1 val=val=0x00000000
[   16.838673] sata-dwc 4bffd1000.sata: sata_dwc_scr_write: id=3 reg=1 val=val=0x00000000
[   16.855642] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
         Mounting /media/NTFS...
[   16.884718] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=2 val=val=0x00000300
[   16.910686] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.931697] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   16.944664] sata-dwc 4bffd1000.sata: sata_dwc_scr_read: id=3 reg=0 val=val=0x00000123
[   16.967666] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   16.981853] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   16.990731] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=eca27c88 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.002473] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   17.009793] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeca27c88, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   17.093717] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   17.109292] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   17.117563] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.129306] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   17.152364] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   17.159776] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   17.168393] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   17.175095] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   17.213676] ata3.00: ATA-8: WDC WD5000AAKS-00UU3A0, 01.03B01, max UDMA/133
[   17.228627] ata3.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 1/32)
[   17.241702] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xef)=SET FEATURES qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   17.255976] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   17.264246] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.275991] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   17.341690] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0xec)=IDENTIFY DEVICE qc tag=31 prot=ATA PIO ap active_tag=0x0000001f ap sactive=0x00000000
[   17.355880] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   17.364759] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=eca27bb8 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.376500] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   17.383813] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xeca27bb8, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   17.499702] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue ap id=3 cmd(0x27)=READ NATIVE MAX ADDRESS EXT qc tag=31 prot=ATA no data ap active_tag=0x0000001f ap sactive=0x00000000
[   17.515281] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   17.523552] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.535296] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   17.548378] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=31
[   17.555780] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   17.564400] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   17.571101] sata-dwc 4bffd1000.sata: QC complete cmd=0x27 status=0x00 ata3: protocol=1
[   17.677085] ata3.00: configured for UDMA/133
[   17.699982] scsi 3:0:0:0: Direct-Access     ATA      WDC WD5000AAKS-0 3B01 PQ: 0 ANSI: 5
[   17.714268] sd 3:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   17.723760] sd 3:0:0:0: Attached scsi generic sg3 type 0
[   17.735790] sd 3:0:0:0: [sdc] Write Protect is off
[   17.749707] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   17.760878] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   17.784490] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   17.793381] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd58100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   17.805120] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c313000 sg_len=4096
[   17.813306] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   17.822363] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd58100, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   17.835321] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   17.845353] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   17.858247] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   17.866268] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   17.872110] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   17.883592] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   17.892299] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   17.900659] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   17.910800] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   17.919076] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   17.926387] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   17.934660] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   17.941370] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   18.034681]  sdc: RDSK (512) sdc1 (DOS^G)(res 2 spb 1) sdc2 (SFS^@)(res 2 spb 1)
[   18.053050] sd 3:0:0:0: [sdc] Attached SCSI disk
[  OK  ] Mounted /media/NTFS.
[  OK  ] Reached target Local File Systems.
         Starting LSB: AppArmor initialization...
         Starting Clean up any mess left by 0dns-up...
         Starting Wait for all "auto" /etc/n... up for network-online.target...
         Starting Create Volatile Files and Directories...
         Starting Tell Plymouth To Write Out Runtime Data...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Clean up any mess left by 0dns-up.
         Starting Nameserver information manager...
[  OK  ] Started Nameserver information manager.
[  OK  ] Started LSB: AppArmor initialization.
         Starting LSB: Raise network interfaces....
[  OK  ] Started ifup for eth0.
[   20.489120] eth0: link is up, 1000 FDX, pause enabled
         Starting LSB: start Samba SMB/CIFS daemon (smbd)...
[   22.740823] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   22.749716] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd58100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   22.761455] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   22.768775] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd58100, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   22.782573] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   22.789894] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   22.847073] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   22.855966] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd58100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   22.867704] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c1bd000 sg_len=4096
[   22.875882] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   22.884938] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd58100, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   22.897896] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   22.907918] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   22.947476] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   22.955493] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   22.961336] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   22.972818] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   22.981524] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x80 lbam: 0x5f lbah: 0x38
[   22.990145] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   23.000389] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.008665] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.015978] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.024251] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.030960] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.040892] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.049785] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd58100 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.061525] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c1bc000 sg_len=4096
[   23.069710] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   23.078766] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd58100, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   23.091726] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   23.101746] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   23.110957] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   23.118964] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   23.124807] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   23.136289] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   23.144988] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x20 lbam: 0x60 lbah: 0x38
[   23.153608] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   23.163835] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.172111] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.179424] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.187696] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.194397] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.231806] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.240697] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd58e00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.252435] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb8d000 sg_len=4096
[   23.260614] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   23.269669] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd58e00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   23.282627] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   23.292649] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   23.301876] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   23.309883] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   23.315719] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   23.327201] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   23.335908] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   23.344268] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   23.354385] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.362657] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.369970] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.378234] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.384944] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.431784] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.440679] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.452418] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb8c000 sg_len=4096
[   23.460605] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   23.469661] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   23.482620] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   23.492640] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   23.501853] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   23.509866] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   23.515710] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   23.527192] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   23.535899] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x8 lbam: 0x0 lbah: 0x0
[   23.544260] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   23.554386] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.562657] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.569970] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.578234] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.584945] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.608755] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.617650] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.629389] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2bb19000 sg_len=4096
[   23.637575] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   23.646631] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   23.659590] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   23.669610] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   23.678841] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   23.686853] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   23.692689] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   23.704172] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   23.712879] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x60 lbah: 0x38
[   23.721499] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   23.731702] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.739981] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.747296] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.755561] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.762271] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.802365] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.811261] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.823000] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b885000 sg_len=4096
[   23.831186] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   23.840242] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   23.853201] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   23.863222] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   23.880273] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   23.888297] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   23.894140] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   23.905621] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   23.914328] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x28 lbam: 0x5f lbah: 0x38
[   23.922949] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   23.933174] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   23.941449] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   23.948763] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   23.957028] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   23.963737] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   23.972724] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   23.981616] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   23.993356] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c12a000 sg_len=4096
[   24.001542] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.010598] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.023557] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.033577] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.042784] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.050795] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.056630] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.068113] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.076819] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xf0 lbam: 0x5f lbah: 0x38
[   24.085440] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   24.095650] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   24.103924] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   24.111238] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   24.119510] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   24.126212] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   24.165184] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   24.174074] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   24.185813] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca00000 sg_len=4096
[   24.193999] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.203055] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.216013] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.226034] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.235280] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.243286] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.249130] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.260613] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.269320] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x30 lbam: 0x5f lbah: 0x38
[   24.277940] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   24.288143] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   24.296415] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   24.303729] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   24.312002] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   24.318712] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   24.350760] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   24.359654] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   24.371394] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c149000 sg_len=4096
[   24.379572] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.388628] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.401586] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.411608] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.420827] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.428833] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.434669] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.446151] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.454858] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xa0 lbam: 0x5e lbah: 0x38
[   24.463478] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   24.473691] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   24.481963] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   24.489275] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   24.497541] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   24.504250] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   24.528741] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   24.537632] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   24.549371] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb82000 sg_len=4096
[   24.557558] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.566614] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.579573] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.589593] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.603174] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.611196] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.617039] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.628521] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.637228] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xe0 lbam: 0x5d lbah: 0x38
[   24.645848] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   24.656075] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   24.664349] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   24.671663] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   24.679936] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   24.686647] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   24.698906] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   24.707798] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   24.719536] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2badc000 sg_len=4096
[   24.727713] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.736770] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.749729] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.759750] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.768978] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.776983] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.782820] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.794302] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.803009] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x88 lbam: 0x5d lbah: 0x38
[   24.811629] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   24.821844] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   24.830114] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   24.837427] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   24.845700] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   24.852410] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   24.890605] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   24.899499] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   24.911238] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cbef000 sg_len=4096
[   24.919424] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   24.928480] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   24.941438] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   24.951459] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   24.960693] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   24.968703] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   24.974539] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   24.986021] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   24.994728] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x50 lbam: 0x5d lbah: 0x38
[   25.003347] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.013562] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.021832] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.029146] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.037418] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.044128] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.076902] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.085791] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.097531] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cbee000 sg_len=4096
[   25.105708] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   25.114765] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   25.127724] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   25.137744] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   25.151095] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   25.159112] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   25.164956] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   25.176438] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   25.185144] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0xa0 lbam: 0x5c lbah: 0x38
[   25.193765] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.203990] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.212266] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.219580] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.227853] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.234563] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.243191] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.252075] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.263816] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca89000 sg_len=4096
[   25.272002] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   25.281058] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   25.294017] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   25.304036] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   25.313262] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   25.321272] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   25.327107] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   25.338590] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   25.347297] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x60 lbam: 0x5c lbah: 0x38
[   25.355916] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.366119] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.374392] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.381706] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.389979] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.396690] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.438584] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.447477] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.459215] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca88000 sg_len=4096
[   25.467402] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   25.476457] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   25.489416] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   25.499437] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   25.508671] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   25.516680] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   25.522525] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   25.534007] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   25.542714] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x50 lbam: 0x5c lbah: 0x38
[   25.551335] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.561548] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.569819] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.577132] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.585404] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.592106] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.621013] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.629907] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.641646] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb53000 sg_len=4096
[   25.649832] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   25.658887] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   25.671847] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   25.681868] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   25.691111] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   25.699120] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   25.704963] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   25.716446] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   25.725144] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x78 lbam: 0x5c lbah: 0x38
[   25.733764] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.743967] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.752240] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.759554] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.767826] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.774536] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.798465] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.807364] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.819102] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb52000 sg_len=4096
[   25.827280] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   25.836336] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   25.849294] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   25.859316] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   25.876534] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   25.884555] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   25.890399] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   25.901881] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   25.910587] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x20 lbam: 0x54 lbah: 0x38
[   25.919207] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   25.929423] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   25.937690] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   25.945005] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   25.953269] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   25.959979] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   25.969954] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   25.978848] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   25.990587] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c311000 sg_len=4096
[   25.998774] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.007829] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   26.020788] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   26.030808] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   26.040024] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   26.048034] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   26.053870] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   26.065353] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   26.074059] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x8 lbah: 0x0
[   26.082419] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   26.092552] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   26.100825] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   26.108139] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   26.116412] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   26.123122] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   26.159801] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   26.168692] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   26.180430] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c310000 sg_len=4096
[   26.188617] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.197673] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   26.210631] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   26.220652] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   26.229869] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   26.237878] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   26.243713] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   26.255197] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   26.263903] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x18 lbam: 0x0 lbah: 0x0
[   26.272350] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   26.282465] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   26.290739] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   26.298052] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   26.306324] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   26.313026] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   26.351992] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   26.360888] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   26.372627] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c34b000 sg_len=4096
[   26.380813] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.389869] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   26.402827] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   26.412849] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   26.422077] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   26.430083] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   26.435918] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   26.447401] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   26.456108] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x38 lbam: 0x0 lbah: 0x0
[   26.464554] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   26.474691] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   26.482961] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   26.490274] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   26.498539] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   26.505248] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   26.534092] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   26.542988] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   26.554727] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c34a000 sg_len=4096
[   26.562905] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.571961] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   26.584920] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   26.594940] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   26.604186] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   26.612192] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   26.618028] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   26.629511] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   26.638217] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x78 lbam: 0x0 lbah: 0x0
[   26.646664] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   26.656781] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   26.665052] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   26.672367] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   26.680638] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   26.687340] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   26.715551] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=14
[   26.724534] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec92dc00 nelem=14 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   26.736359] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ba96000 sg_len=4096
[   26.744546] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.753598] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c24b000 sg_len=4096
[   26.761775] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.770820] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c24a000 sg_len=4096
[   26.778997] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.788043] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2ca5d000 sg_len=4096
[   26.796219] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.805264] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2ca5c000 sg_len=4096
[   26.813442] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.822487] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2caa5000 sg_len=4096
[   26.830664] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.839709] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2caa4000 sg_len=4096
[   26.847887] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.856931] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c992000 sg_len=4096
[   26.865108] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.874154] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2ca1c000 sg_len=4096
[   26.882331] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.891376] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2badd000 sg_len=4096
[   26.899552] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   26.908598] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2c902000 sg_len=8192
[   26.916862] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   26.925907] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2c9d0000 sg_len=8192
[   26.934171] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   26.943216] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2cba0000 sg_len=8192
[   26.951480] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   26.960525] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=13 sg_addr=0x2cb9e000 sg_len=8192
[   26.968789] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   26.977838] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec92dc00, count: 14 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 14
[   26.990970] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   27.000991] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   27.010259] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   27.018269] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   27.024113] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   27.035596] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   27.044302] sata-dwc 4bffd1000.sata: feature: 0x90 nsect: 0x0 lbal: 0x80 lbam: 0x0 lbah: 0x0
[   27.052749] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   27.063151] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   27.071426] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   27.078738] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   27.087011] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   27.093720] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   27.101780] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   27.110659] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   27.122401] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c169000 sg_len=4096
[   27.130586] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.139634] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   27.152593] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   27.162612] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   27.171828] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   27.179840] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   27.185683] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   27.197167] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   27.205873] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x10 lbam: 0x0 lbah: 0x0
[   27.214319] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   27.224442] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   27.232717] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   27.240030] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   27.248295] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   27.255005] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   27.263457] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=3
[   27.272344] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=3 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   27.284085] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c168000 sg_len=4096
[   27.292271] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.301324] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2b933000 sg_len=4096
[   27.309501] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.318546] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b932000 sg_len=4096
[   27.326723] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.335771] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 3 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 3
[   27.348730] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   27.358750] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   27.367977] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   27.375985] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   27.381820] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   27.393303] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   27.402001] sata-dwc 4bffd1000.sata: feature: 0x18 nsect: 0x0 lbal: 0x20 lbam: 0x0 lbah: 0x0
[   27.410448] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   27.420593] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   27.428864] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   27.436177] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   27.444440] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   27.451142] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   27.459252] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=7
[   27.468133] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=7 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   27.479874] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ba7d000 sg_len=4096
[   27.488052] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.497105] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2ba7c000 sg_len=4096
[   27.505282] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.514327] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c10d000 sg_len=4096
[   27.522504] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.531550] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c10c000 sg_len=4096
[   27.539726] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.548772] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c1d5000 sg_len=4096
[   27.556948] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.565994] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c1d4000 sg_len=4096
[   27.574171] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.583217] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2ba97000 sg_len=4096
[   27.591401] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   27.600449] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 7 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 7
[   27.613408] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   27.623428] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   27.632634] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   27.640647] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   27.646482] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   27.657964] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   27.666663] sata-dwc 4bffd1000.sata: feature: 0x38 nsect: 0x0 lbal: 0x40 lbam: 0x0 lbah: 0x0
[   27.675110] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   27.685315] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   27.693586] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   27.700899] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   27.709172] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   27.715882] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   27.725334] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=15
[   27.734317] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec92dc00 nelem=15 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   27.746142] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0aa000 sg_len=8192
[   27.754329] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.763381] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2cbe2000 sg_len=8192
[   27.771558] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.780604] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c196000 sg_len=8192
[   27.788781] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.797827] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c3a6000 sg_len=8192
[   27.806012] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.815057] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2b972000 sg_len=8192
[   27.823243] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.832288] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c9fa000 sg_len=8192
[   27.840464] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.849510] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c092000 sg_len=8192
[   27.857687] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.866740] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2caaa000 sg_len=8192
[   27.874918] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.883971] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2cb16000 sg_len=8192
[   27.892149] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.901194] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2cad4000 sg_len=8192
[   27.909380] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.918434] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2ca90000 sg_len=8192
[   27.926706] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.935761] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2c116000 sg_len=8192
[   27.944032] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.953077] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2c180000 sg_len=8192
[   27.961341] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.970386] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=13 sg_addr=0x2ca10000 sg_len=8192
[   27.978650] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   27.987695] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=14 sg_addr=0x2b934000 sg_len=8192
[   27.995959] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.005008] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec92dc00, count: 15 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 15
[   28.018140] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   28.028161] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   28.037401] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   28.045413] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   28.051257] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   28.062740] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   28.071446] sata-dwc 4bffd1000.sata: feature: 0xf0 nsect: 0x0 lbal: 0x10 lbam: 0x1 lbah: 0x0
[   28.079893] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   28.090704] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   28.098991] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   28.106308] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   28.114580] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   28.121291] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   28.270192] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=11
[   28.279169] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec92d400 nelem=11 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   28.290995] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b936000 sg_len=8192
[   28.299182] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.308233] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c3a0000 sg_len=16384
[   28.316498] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.325551] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.334596] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c34c000 sg_len=16384
[   28.342860] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.351906] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.360951] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c1dc000 sg_len=16384
[   28.369222] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.378268] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.387313] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c1d0000 sg_len=16384
[   28.395577] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.404623] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.413668] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c340000 sg_len=12288
[   28.421940] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.430986] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.440031] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c0ed000 sg_len=4096
[   28.448207] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.457253] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c104000 sg_len=8192
[   28.465430] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.474476] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2c10a000 sg_len=8192
[   28.482660] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.491706] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2c0ce000 sg_len=8192
[   28.499882] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.508928] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2c334000 sg_len=16384
[   28.517279] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.526323] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.535373] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec92d400, count: 11 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 17
[   28.548505] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   28.558526] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   28.567782] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   28.575794] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   28.581631] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   28.593113] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   28.601819] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x2 lbah: 0x0
[   28.610180] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   28.620776] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   28.629058] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   28.636369] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   28.644641] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   28.651351] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   28.708030] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=11
[   28.717009] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec92d400 nelem=11 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   28.728834] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb18000 sg_len=16384
[   28.737107] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.746159] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.755204] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c0c8000 sg_len=16384
[   28.763467] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.772513] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.781559] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c324000 sg_len=16384
[   28.789831] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.798884] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.807930] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c314000 sg_len=16384
[   28.816194] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.825239] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.834284] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c110000 sg_len=12288
[   28.842557] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.851602] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.860647] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2bb0c000 sg_len=4096
[   28.868833] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.877878] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c0ec000 sg_len=4096
[   28.886055] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.895100] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c0ee000 sg_len=8192
[   28.903278] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   28.911116] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.920161] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.929206] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2c178000 sg_len=8192
[   28.937383] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   28.945213] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.954258] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.963303] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2cbe4000 sg_len=16384
[   28.971568] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   28.979405] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   28.988450] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   28.997496] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.006550] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2c0ac000 sg_len=12288
[   29.014900] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   29.022730] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.031775] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.040824] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec92d400, count: 11 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 21
[   29.053956] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   29.063977] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   29.073219] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   29.081229] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   29.087073] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   29.098556] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   29.107262] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x3 lbah: 0x0
[   29.115622] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   29.126236] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   29.134537] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   29.141855] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   29.150127] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   29.156837] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   29.189461] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=4
[   29.198354] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=4 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   29.210093] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0af000 sg_len=4096
[   29.218279] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.227331] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2cbb0000 sg_len=16384
[   29.235604] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   29.243442] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.252487] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.261532] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.270578] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2cbe8000 sg_len=16384
[   29.278851] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   29.286688] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.295733] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.304779] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.313825] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2cba4000 sg_len=4096
[   29.322010] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.331058] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 4 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 8
[   29.344017] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   29.354037] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   29.363300] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   29.371307] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   29.377142] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   29.388626] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   29.397332] sata-dwc 4bffd1000.sata: feature: 0x50 nsect: 0x0 lbal: 0x0 lbam: 0x5c lbah: 0x38
[   29.405865] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   29.416213] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   29.424490] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   29.431803] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   29.440075] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   29.446785] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   29.455262] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   29.464150] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   29.475891] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cba5000 sg_len=4096
[   29.484076] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.493133] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   29.506091] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   29.516111] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   29.525320] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   29.533329] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   29.539165] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   29.550647] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   29.559345] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x58 lbam: 0x5c lbah: 0x38
[   29.567966] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   29.578172] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   29.586442] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   29.593755] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   29.602019] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   29.608729] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   29.617105] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   29.625989] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   29.637731] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cba6000 sg_len=8192
[   29.645916] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.654964] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   29.667922] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   29.677942] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   29.687156] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   29.695170] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   29.701004] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   29.712488] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   29.721195] sata-dwc 4bffd1000.sata: feature: 0x10 nsect: 0x0 lbal: 0x68 lbam: 0x5c lbah: 0x38
[   29.729815] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   29.740036] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   29.748308] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   29.755621] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   29.763893] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   29.770595] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   29.778623] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   29.787508] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   29.799250] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c9fc000 sg_len=16384
[   29.807522] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.816575] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   29.825624] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 2
[   29.838581] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   29.848592] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   29.857797] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   29.865803] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   29.871638] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   29.883121] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   29.891819] sata-dwc 4bffd1000.sata: feature: 0x20 nsect: 0x0 lbal: 0x80 lbam: 0x5c lbah: 0x38
[   29.900440] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   29.910693] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   29.918968] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   29.926280] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   29.934544] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   29.941246] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   29.949762] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=6
[   29.958647] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=6 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   29.970387] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca94000 sg_len=4096
[   29.978573] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   29.987627] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2ca97000 sg_len=4096
[   29.995812] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.004857] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c108000 sg_len=8192
[   30.013034] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.022079] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2ca8c000 sg_len=8192
[   30.030256] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.039302] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2ca2c000 sg_len=16384
[   30.047574] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.056619] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.065664] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2ca30000 sg_len=4096
[   30.073841] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.082889] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 6 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 7
[   30.095848] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   30.105867] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   30.115086] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   30.123094] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   30.128931] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   30.140413] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   30.149120] sata-dwc 4bffd1000.sata: feature: 0x58 nsect: 0x0 lbal: 0xa8 lbam: 0x5c lbah: 0x38
[   30.157740] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   30.168095] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   30.176377] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   30.183694] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   30.191967] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   30.198677] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   30.328473] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=3
[   30.337364] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=3 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   30.349102] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca31000 sg_len=12288
[   30.357376] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.366428] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.375473] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2cad0000 sg_len=16384
[   30.383737] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.391575] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.400621] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.409666] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.418711] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2ca9c000 sg_len=12288
[   30.426976] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.434813] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.443859] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.452907] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 3 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 7
[   30.465866] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   30.475887] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   30.485142] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   30.493147] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   30.498983] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   30.510466] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   30.519172] sata-dwc 4bffd1000.sata: feature: 0x50 nsect: 0x0 lbal: 0x0 lbam: 0x5d lbah: 0x38
[   30.527706] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   30.538081] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   30.546357] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   30.553669] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   30.561941] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   30.568651] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   30.577125] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=3
[   30.586016] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=3 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   30.597757] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca9f000 sg_len=4096
[   30.605943] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.614995] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2ca60000 sg_len=16384
[   30.623260] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.631098] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.640144] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.649198] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.658251] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2caac000 sg_len=4096
[   30.666436] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.675484] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 3 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 5
[   30.688443] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   30.698463] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   30.707681] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   30.715690] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   30.721526] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   30.733008] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   30.741715] sata-dwc 4bffd1000.sata: feature: 0x30 nsect: 0x0 lbal: 0x58 lbam: 0x5d lbah: 0x38
[   30.750327] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   30.760615] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   30.768890] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   30.776203] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   30.784475] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   30.791177] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   30.799221] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=5
[   30.808107] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=5 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   30.819848] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2caad000 sg_len=12288
[   30.828112] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   30.837157] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.846202] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c17a000 sg_len=8192
[   30.854379] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.862209] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.871255] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.880308] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2ca5a000 sg_len=8192
[   30.888485] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.896315] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.905360] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.914406] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c186000 sg_len=8192
[   30.922583] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   30.930421] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.939466] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.948512] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c094000 sg_len=4096
[   30.956697] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   30.965744] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 5 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 9
[   30.978703] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   30.988723] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   30.997926] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   30.997933] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   30.997941] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   30.997948] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   30.997955] sata-dwc 4bffd1000.sata: feature: 0x50 nsect: 0x0 lbal: 0x90 lbam: 0x5d lbah: 0x38
[   30.997963] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x3a hob_lbam: 0x0 hob_lbah: 0x0
[   31.006022] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.006032] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.006038] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.006044] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.006052] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.006130] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.006140] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ef00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.006147] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c095000 sg_len=12288
[   31.006153] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.006159] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.006168] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ef00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 2
[   31.006176] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.006194] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
** 7 printk messages dropped ** [   31.006376] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
** 589 printk messages dropped ** [   31.392635] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2cb82000 sg_len=4096
** 320 printk messages dropped ** [   31.452556] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
** 11 printk messages dropped ** [   31.455443] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.455451] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.455458] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.455465] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.455870] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.455881] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.455889] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c3a6000 sg_len=4096
[   31.455897] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.455907] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.455915] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.455935] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.456057] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.456064] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.456072] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.456079] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.456086] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x18 lbah: 0x40
[   31.456093] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.456118] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.456128] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.456134] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.456141] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.456148] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.456398] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.456408] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.456415] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c3a7000 sg_len=4096
[   31.456422] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.456431] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.456439] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.456458] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.456544] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.456551] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.456559] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.456566] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.456573] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x18 lbam: 0x10 lbah: 0x40
[   31.456581] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.456624] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.456634] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.456641] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.456647] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.456654] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.457283] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.457294] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.457301] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ba96000 sg_len=4096
[   31.457308] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.457318] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.457326] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.457346] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.457420] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.457426] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.457435] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.457442] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.457449] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x38 lbam: 0x10 lbah: 0x40
[   31.457457] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.457484] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.457495] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.457502] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.457508] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.457515] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.457705] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.457714] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.457721] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ba97000 sg_len=4096
[   31.457728] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.457738] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.457745] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.457764] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.457842] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.457848] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.457856] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.457863] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.457870] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x78 lbam: 0x10 lbah: 0x40
[   31.457878] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.457989] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.458000] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.458006] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.458013] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.458020] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.458324] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.458334] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.458342] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c34a000 sg_len=4096
[   31.458349] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.458358] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.458366] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.458384] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.458470] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.458476] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.458484] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.458491] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.458498] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x10 lbam: 0x10 lbah: 0x40
[   31.458506] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.458530] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.458540] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.458546] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.458552] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.458559] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.458647] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=2
[   31.458656] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=2 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.458663] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c34b000 sg_len=4096
[   31.458669] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.458676] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c24a000 sg_len=8192
[   31.458683] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.458689] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.458696] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.458705] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 2 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 3
[   31.458712] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.458730] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.458810] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.458816] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.458824] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.458831] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.458838] sata-dwc 4bffd1000.sata: feature: 0x18 nsect: 0x0 lbal: 0x20 lbam: 0x10 lbah: 0x40
[   31.458845] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.458907] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.458917] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.458924] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.458930] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.458937] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.459008] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=4
[   31.459017] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=4 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.459024] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2ca5c000 sg_len=8192
[   31.459031] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.459038] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2caa4000 sg_len=8192
[   31.459044] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.459051] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c902000 sg_len=8192
[   31.459057] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.459063] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2cb8c000 sg_len=4096
[   31.459070] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459079] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 4 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 4
[   31.459086] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.459104] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.459180] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.459186] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.459195] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.459202] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.459209] sata-dwc 4bffd1000.sata: feature: 0x38 nsect: 0x0 lbal: 0x40 lbam: 0x10 lbah: 0x40
[   31.459216] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.459339] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.459352] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.459359] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.459365] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.459372] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.459481] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=10
[   31.459491] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec929200 nelem=10 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.459497] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb8d000 sg_len=4096
[   31.459505] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459511] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c168000 sg_len=8192
[   31.459518] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459525] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459531] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459537] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b932000 sg_len=8192
[   31.459544] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459550] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459556] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459563] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2ba7c000 sg_len=8192
[   31.459570] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459576] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459582] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459589] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c10c000 sg_len=8192
[   31.459595] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459602] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459608] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459615] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c1d4000 sg_len=8192
[   31.459621] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459627] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459634] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459640] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c1b6000 sg_len=8192
[   31.459647] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459653] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459659] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459666] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c12e000 sg_len=8192
[   31.459673] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459679] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459685] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459692] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2cb8a000 sg_len=8192
[   31.459699] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.459705] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459711] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459718] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2b972000 sg_len=4096
[   31.459724] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.459733] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec929200, count: 10 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 18
[   31.459741] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.459760] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.459838] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.459844] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.459853] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.459859] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.459867] sata-dwc 4bffd1000.sata: feature: 0x90 nsect: 0x0 lbal: 0x80 lbam: 0x10 lbah: 0x40
[   31.459874] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.460196] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.460210] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.460216] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.460223] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.460230] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.460833] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=9
[   31.460844] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec929200 nelem=9 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.460852] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b973000 sg_len=4096
[   31.460859] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460867] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c324000 sg_len=16384
[   31.460874] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.460880] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460887] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.460893] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460899] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c34c000 sg_len=16384
[   31.460906] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.460912] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460919] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.460925] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460931] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c1dc000 sg_len=16384
[   31.460938] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.460944] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460951] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.460957] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460964] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c1d0000 sg_len=16384
[   31.460970] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.460977] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460983] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.460989] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.460995] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2cb84000 sg_len=16384
[   31.461002] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.461008] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461015] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.461021] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461027] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c140000 sg_len=16384
[   31.461034] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.461040] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461047] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.461053] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461060] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c1b8000 sg_len=16384
[   31.461066] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.461073] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461079] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.461085] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461092] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2baf0000 sg_len=4096
[   31.461098] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.461108] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec929200, count: 9 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 23
[   31.461115] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.461135] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.461215] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.461222] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.461231] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.461238] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.461245] sata-dwc 4bffd1000.sata: feature: 0xf0 nsect: 0x0 lbal: 0x10 lbam: 0x11 lbah: 0x40
[   31.461253] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.461724] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.461738] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.461745] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.461752] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.461760] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.462790] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=9
[   31.462802] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec929200 nelem=9 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.462810] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2baf1000 sg_len=12288
[   31.462818] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462824] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462831] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2bae4000 sg_len=16384
[   31.462838] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.462844] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462851] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462857] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462864] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2bb30000 sg_len=16384
[   31.462870] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.462877] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462883] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462889] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462896] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2b974000 sg_len=16384
[   31.462902] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.462909] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462915] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462921] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462928] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c3a0000 sg_len=16384
[   31.462935] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.462941] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462947] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462953] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462960] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2b934000 sg_len=16384
[   31.462967] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.462973] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462979] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.462985] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.462992] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2c334000 sg_len=16384
[   31.462999] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.463005] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.463011] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.463018] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.463024] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c314000 sg_len=16384
[   31.463031] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.463037] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.463043] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.463050] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.463056] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2c0c8000 sg_len=4096
[   31.463063] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.463072] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec929200, count: 9 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 24
[   31.463081] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.463101] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.463194] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.463200] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.463209] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.463217] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.463224] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x12 lbah: 0x40
[   31.463232] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.463740] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.463754] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.463762] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.463769] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.463777] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.464559] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=6
[   31.464571] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=6 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.464578] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0c9000 sg_len=12288
[   31.464585] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464592] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464599] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2b878000 sg_len=16384
[   31.464606] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.464612] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464618] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464624] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464631] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b8b0000 sg_len=32768
[   31.464638] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.464644] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464650] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464656] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464663] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464669] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464676] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2ba98000 sg_len=32768
[   31.464682] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.464688] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464695] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464701] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464707] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464713] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464720] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c170000 sg_len=32768
[   31.464727] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.464733] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464739] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464745] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464752] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.464758] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464765] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2b998000 sg_len=4096
[   31.464771] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.464780] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 6 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 21
[   31.464788] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.464808] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.464906] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.464912] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.464921] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.464928] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.464935] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x13 lbah: 0x40
[   31.464943] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.465443] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.465455] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.465462] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.465469] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.465476] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.466483] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=6
[   31.466495] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=6 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.466503] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b999000 sg_len=8192
[   31.466511] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466518] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2b99c000 sg_len=16384
[   31.466524] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466530] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466537] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b980000 sg_len=32768
[   31.466543] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466549] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466556] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466562] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466568] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2b8c8000 sg_len=32768
[   31.466575] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466581] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466587] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466594] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466600] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2b870000 sg_len=32768
[   31.466606] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466613] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466619] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466625] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466632] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c3a8000 sg_len=8192
[   31.466638] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.466648] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 6 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 16
[   31.466656] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.466676] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.467801] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.469475] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.469483] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.469493] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.469500] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.469507] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x4 lbah: 0x40
[   31.469515] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[   31.469796] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.470296] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.470311] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.470319] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.470326] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.470334] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.471204] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=5
[   31.471216] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=5 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.471224] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c3aa000 sg_len=24576
[   31.471232] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471239] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471245] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471252] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c198000 sg_len=32768
[   31.471259] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471265] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471271] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471277] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471284] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c338000 sg_len=32768
[   31.471290] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471296] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471303] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471309] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471316] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c160000 sg_len=32768
[   31.471322] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471328] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471334] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471341] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471347] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c0e0000 sg_len=8192
[   31.471354] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.471364] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 5 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 16
[   31.471372] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.471393] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.471470] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.471477] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.471486] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.471493] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.471501] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0x5 lbah: 0x40
[   31.471509] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[   31.472029] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.472043] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.472050] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.472057] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.472064] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.473338] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=5
[   31.473352] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=5 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.473360] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0e2000 sg_len=24576
[   31.473368] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473374] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473380] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473387] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c0c0000 sg_len=32768
[   31.473393] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473400] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473406] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473413] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473420] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c0d0000 sg_len=32768
[   31.473426] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473432] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473438] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473445] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473451] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c098000 sg_len=32768
[   31.473458] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473464] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473470] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473476] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.473483] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c2c0000 sg_len=4096
[   31.473489] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.473499] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 5 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 16
[   31.473507] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.473528] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.473643] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.473650] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.473659] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.473666] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.473674] sata-dwc 4bffd1000.sata: feature: 0xf8 nsect: 0x0 lbal: 0x0 lbam: 0x6 lbah: 0x40
[   31.473681] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[   31.474185] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.474199] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.474207] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.474214] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.474222] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.475055] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=3
[   31.475067] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6eb00 nelem=3 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.475075] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c2c1000 sg_len=28672
[   31.475082] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475089] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475095] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475101] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475108] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2cb58000 sg_len=32768
[   31.475115] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.475121] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475127] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475133] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475140] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475146] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475152] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2cb40000 sg_len=4096
[   31.475159] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475168] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6eb00, count: 3 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 10
[   31.475176] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.475197] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.475276] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.475282] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.475291] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.475298] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.475305] sata-dwc 4bffd1000.sata: feature: 0x80 nsect: 0x0 lbal: 0x0 lbam: 0x7 lbah: 0x40
[   31.475313] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[   31.475567] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.475579] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.475586] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.475593] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.475600] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.475734] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=2
[   31.475743] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=2 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.475751] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2cb41000 sg_len=28672
[   31.475758] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475764] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475770] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475776] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475783] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c0a0000 sg_len=24576
[   31.475790] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.475796] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475802] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475809] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00002000 val: 0x00000800
[   31.475815] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.475824] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 2 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 8
[   31.475831] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.475850] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.475951] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.475958] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.475966] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.475973] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.475980] sata-dwc 4bffd1000.sata: feature: 0x68 nsect: 0x0 lbal: 0x88 lbam: 0x7 lbah: 0x40
[   31.475988] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x10 hob_lbam: 0x0 hob_lbah: 0x0
[   31.476266] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.476277] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.476284] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.476290] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.476297] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.476906] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.476918] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.476925] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0a6000 sg_len=4096
[   31.476932] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.476942] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.476950] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.476970] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.489852] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.492400] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.492407] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.492418] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.492425] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.492433] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x20 lbah: 0x40
[   31.492440] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.492466] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.492477] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.492485] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.492492] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.492499] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.493289] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.493300] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.493308] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b93a000 sg_len=4096
[   31.493316] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.493326] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.493334] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.493355] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.493445] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.493451] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.493460] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.493467] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.493474] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x0 lbah: 0x0
[   31.493482] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.493506] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.493516] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.493523] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.493530] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.493537] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.493780] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.493790] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.493797] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b939000 sg_len=4096
[   31.493804] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.493814] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.493821] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.493839] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.493938] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.493945] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.493953] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.493960] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.493967] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x18 lbam: 0x0 lbah: 0x0
[   31.493974] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.494001] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.494011] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.494018] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.494024] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.494031] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.494180] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.494190] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6e800 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.494196] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b938000 sg_len=4096
[   31.494203] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.494213] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6e800, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.494220] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.494238] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.494332] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.494339] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.494347] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.494354] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.494361] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x38 lbam: 0x0 lbah: 0x0
[   31.494368] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.494393] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.494403] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.494410] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.494416] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.494423] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.498149] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.501805] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=17
[   31.501818] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec8e2400 nelem=17 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.501825] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c0cf000 sg_len=4096
[   31.501833] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501840] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2cb56000 sg_len=8192
[   31.501847] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501853] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501859] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501866] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2cb18000 sg_len=8192
[   31.501872] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501879] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501885] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501892] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c340000 sg_len=8192
[   31.501898] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501904] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501911] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501917] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c116000 sg_len=8192
[   31.501924] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501930] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501936] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501943] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2c180000 sg_len=8192
[   31.501950] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501956] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501962] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501969] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2ca10000 sg_len=8192
[   31.501975] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.501981] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501988] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.501994] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c9fa000 sg_len=8192
[   31.502001] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502007] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502013] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502020] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2c092000 sg_len=8192
[   31.502027] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502033] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502039] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502046] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2caaa000 sg_len=8192
[   31.502052] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502059] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502065] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502071] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2cb16000 sg_len=8192
[   31.502078] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502084] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502091] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502097] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2cad4000 sg_len=8192
[   31.502104] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502110] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502116] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502123] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2ca90000 sg_len=8192
[   31.502129] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502136] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502142] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502148] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=13 sg_addr=0x2c9d0000 sg_len=8192
[   31.502155] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502161] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502168] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502174] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=14 sg_addr=0x2cba0000 sg_len=8192
[   31.502181] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502187] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502193] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502200] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=15 sg_addr=0x2cb9e000 sg_len=8192
[   31.502207] sata-dwc 4bffd1000.sata: SPLITTING: fis_len=4096(0x1000) len=8192(0x2000)
[   31.502213] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502219] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502226] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=16 sg_addr=0x2c0aa000 sg_len=4096
[   31.502232] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.502241] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec8e2400, count: 17 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 32
[   31.502250] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.502271] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.507977] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.507985] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.507996] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.508003] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.508010] sata-dwc 4bffd1000.sata: feature: 0x00 nsect: 0x0 lbal: 0x0 lbam: 0xd lbah: 0x40
[   31.508018] sata-dwc 4bffd1000.sata: hob_feature: 0x01 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.508803] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.508819] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.508826] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.508834] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.508841] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.511963] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=31
[   31.511975] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec8e2400 nelem=31 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.511983] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c174000 sg_len=4096
[   31.511991] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.511997] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2c173000 sg_len=4096
[   31.512004] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512010] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2c172000 sg_len=4096
[   31.512016] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512023] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2c171000 sg_len=4096
[   31.512029] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512036] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2c170000 sg_len=4096
[   31.512042] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512049] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2ba9f000 sg_len=4096
[   31.512055] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512061] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2ba9e000 sg_len=4096
[   31.512068] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512074] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2ba9d000 sg_len=4096
[   31.512081] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512087] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2ba9c000 sg_len=4096
[   31.512093] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512100] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2ba9b000 sg_len=4096
[   31.512106] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512113] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2ba9a000 sg_len=4096
[   31.512119] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512126] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2ba99000 sg_len=4096
[   31.512132] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512139] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2b983000 sg_len=4096
[   31.512145] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512151] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=13 sg_addr=0x2b982000 sg_len=4096
[   31.512158] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512164] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=14 sg_addr=0x2b981000 sg_len=4096
[   31.512171] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512177] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=15 sg_addr=0x2b980000 sg_len=4096
[   31.512183] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512190] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=16 sg_addr=0x2b99f000 sg_len=4096
[   31.512196] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512203] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=17 sg_addr=0x2b99e000 sg_len=4096
[   31.512209] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512216] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=18 sg_addr=0x2b99d000 sg_len=4096
[   31.512222] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512228] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=19 sg_addr=0x2b99c000 sg_len=4096
[   31.512235] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512241] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=20 sg_addr=0x2b99a000 sg_len=4096
[   31.512248] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512254] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=21 sg_addr=0x2b999000 sg_len=4096
[   31.512260] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512267] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=22 sg_addr=0x2c0a6000 sg_len=4096
[   31.512273] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512280] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=23 sg_addr=0x2c3a6000 sg_len=4096
[   31.512286] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512293] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=24 sg_addr=0x2b998000 sg_len=4096
[   31.512299] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512305] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=25 sg_addr=0x2c177000 sg_len=4096
[   31.512312] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512318] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=26 sg_addr=0x2b871000 sg_len=4096
[   31.512325] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512331] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=27 sg_addr=0x2b870000 sg_len=4096
[   31.512337] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512344] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=28 sg_addr=0x2b8cf000 sg_len=4096
[   31.512350] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512357] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=29 sg_addr=0x2b8ce000 sg_len=4096
[   31.512363] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512370] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=30 sg_addr=0x2b8cd000 sg_len=4096
[   31.512376] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.512385] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec8e2400, count: 31 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 31
[   31.512394] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.512414] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.512516] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.512523] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.512533] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.512540] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.512548] sata-dwc 4bffd1000.sata: feature: 0xf8 nsect: 0x0 lbal: 0x0 lbam: 0xe lbah: 0x40
[   31.512555] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.513154] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.513974] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.513992] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.514000] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.514007] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.514015] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.515366] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=16
[   31.515378] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec929400 nelem=16 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.515386] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2b8cc000 sg_len=4096
[   31.515394] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515401] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2b8cb000 sg_len=4096
[   31.515407] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515413] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b8ca000 sg_len=4096
[   31.515420] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515426] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2b8c9000 sg_len=4096
[   31.515432] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515439] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2b8c8000 sg_len=4096
[   31.515445] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515452] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2b987000 sg_len=4096
[   31.515458] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515464] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2b986000 sg_len=4096
[   31.515471] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515477] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2b985000 sg_len=4096
[   31.515483] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515490] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2b984000 sg_len=4096
[   31.515496] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515503] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2c3af000 sg_len=4096
[   31.515509] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515516] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2c3ae000 sg_len=4096
[   31.515522] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515529] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2c3ad000 sg_len=4096
[   31.515535] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515541] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2c3ac000 sg_len=4096
[   31.515548] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515554] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=13 sg_addr=0x2c3ab000 sg_len=4096
[   31.515560] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515567] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=14 sg_addr=0x2c3aa000 sg_len=4096
[   31.515573] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515580] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=15 sg_addr=0x2c3a9000 sg_len=4096
[   31.515586] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.515596] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec929400, count: 16 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 16
[   31.515604] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.515625] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.515706] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.515713] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.515723] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.515730] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.515737] sata-dwc 4bffd1000.sata: feature: 0x80 nsect: 0x0 lbal: 0x0 lbam: 0xf lbah: 0x40
[   31.515745] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.515994] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.516012] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.516020] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.516027] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.516034] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.517784] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=13
[   31.517796] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec929400 nelem=13 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.517804] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c3a8000 sg_len=4096
[   31.517812] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517818] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=1 sg_addr=0x2b877000 sg_len=4096
[   31.517825] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517831] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=2 sg_addr=0x2b876000 sg_len=4096
[   31.517837] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517844] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=3 sg_addr=0x2b875000 sg_len=4096
[   31.517850] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517857] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=4 sg_addr=0x2b874000 sg_len=4096
[   31.517863] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517870] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=5 sg_addr=0x2b873000 sg_len=4096
[   31.517876] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517882] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=6 sg_addr=0x2b872000 sg_len=4096
[   31.517889] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517895] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=7 sg_addr=0x2c33d000 sg_len=4096
[   31.517901] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517908] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=8 sg_addr=0x2c33c000 sg_len=4096
[   31.517914] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517921] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=9 sg_addr=0x2c33b000 sg_len=4096
[   31.517927] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517934] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=10 sg_addr=0x2c33a000 sg_len=4096
[   31.517940] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517946] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=11 sg_addr=0x2c339000 sg_len=4096
[   31.517953] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517959] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=12 sg_addr=0x2c338000 sg_len=4096
[   31.517966] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.517975] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec929400, count: 13 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 13
[   31.517983] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.518004] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.518092] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.518098] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.518107] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.518114] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.518121] sata-dwc 4bffd1000.sata: feature: 0x68 nsect: 0x0 lbal: 0x88 lbam: 0xf lbah: 0x40
[   31.518129] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.518337] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.518350] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.518357] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.518364] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.518372] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.520274] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   31.520287] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=edd6ee00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   31.520295] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x2c19f000 sg_len=4096
[   31.520303] sata-dwc 4bffd1000.sata: map_sg_to_lli setting ctl.high len: 0x00001000 val: 0x00000400
[   31.520313] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xedd6ee00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 1
[   31.520321] sata-dwc 4bffd1000.sata: sata_dwc_qc_issue: tag=0 ap->link.sactive = 0x00000001 sactive=0x00000001
[   31.520342] sata-dwc 4bffd1000.sata: sata_dwc_exec_command_by_tag cmd(0x60): READ FPDMA QUEUED tag=0
[   31.521708] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[   31.538754] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x00000082 active_tag=-84148995
[   31.538761] sata-dwc 4bffd1000.sata: sata_dwc_isr: NEWFP tag=0
[   31.538772] sata-dwc 4bffd1000.sata: sata_dwc_bmdma_start_by_tag qc=eca280b8 tag: 0 cmd: 0x60 dma_dir: from device start_dma? 1
[   31.538779] sata-dwc 4bffd1000.sata: taskfile cmd: 0x60 protocol: ATA NCQ flags:0x17 device: 40
[   31.538786] sata-dwc 4bffd1000.sata: feature: 0x08 nsect: 0x0 lbal: 0x0 lbam: 0x20 lbah: 0x0
[   31.538794] sata-dwc 4bffd1000.sata: hob_feature: 0x00 hob_nsect: 0x0 hob_lbal: 0x0 hob_lbam: 0x0 hob_lbah: 0x0
[   31.538827] sata-dwc 4bffd1000.sata: eot=0x00000001 err=0x00000000 pending=2 active port=0
[   31.538838] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   31.538845] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA NCQ
[   31.538852] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   31.538860] sata-dwc 4bffd1000.sata: QC complete cmd=0x60 status=0x00 ata3: protocol=4
[   31.546017] systemd-journald[132]: /dev/kmsg buffer overrun, some messages lost.
[  OK  ] Started LSB: start Samba SMB/CIFS daemon (smbd).
\r\r[  OK  ] Started Wait for all "auto" /etc/ne...be up for network-online.target.
[  OK  ] Started LSB: Raise network interfaces..
[  OK  ] Reached target System Initialization.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Listening on CUPS Scheduler.
         Starting Restore Sound Card State...
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
         Starting Console System Startup Logging...
[  OK  ] Started Trigger resolvconf update for networkd DNS.
[  OK  ] Reached target Paths.
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Modem Manager...
[  OK  ] Started Cgroup management daemon.
         Starting LSB: start and stop timidity...
         Starting LSB: daemon to balance interrupts for SMP systems...
[  OK  ] Started Run anacron jobs.
         Starting Restore /etc/resolv.conf i...e the ppp link was shut down....
         Starting LSB: handle special hotkeys of Apple computers...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
[   45.250230] cgroup: new mount options do not match the existing superblock, will be ignored
[  OK  ] Started Regular background program processing daemon.
         Starting Permit User Sessions...
[  OK  ] Started crash report submission daemon.
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting Network Manager...
         Starting Accounts Service...
         Starting Login Service...
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Network Manager.
         Starting Initialize hardware monitoring sensors...
         Starting LSB: automatic crash report generation...
         Starting System Logging Service...
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Make remote CUPS printers available locally.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: start Samba daemons for the AD DC...
         Starting LSB: Start xrdp and sesman daemons...
         Starting LSB: Tool to automatically...ubmit kernel crash signatures...
         Starting LSB: start Samba NetBIOS nameserver (nmbd)...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: Start NTP daemon...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Restore Sound Card State.
[  OK  ] Started Console System Startup Logging.
[  OK  ] Started LSB: start and stop timidity.
[  OK  ] Started LSB: daemon to balance interrupts for SMP systems.
[  OK  ] Started Restore /etc/resolv.conf if...ore the ppp link was shut down..
[  OK  ] Started LSB: handle special hotkeys of Apple computers.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started LSB: Tool to automatically ... submit kernel crash signatures.
[  OK  ] Started LSB: Start xrdp and sesman daemons.
[  OK  ] Started Login Service.
         Starting Manage, Install and Generate Color Profiles...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting LSB: set CPUFreq kernel parameters...
         Starting Light Display Manager...
[   51.067073] IPv6: ADDRCONF(NETDEV_UP): tunl0: link is not ready
         Starting Hold until boot process finishes up...
[   51.280261] IPv6: ADDRCONF(NETDEV_UP): sit0: link is not ready
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[   51.538467] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
[  OK  ] Started Manage, Install and Generate Color Profiles.
         Starting WPA supplicant...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Light Display Manager.
[  OK  ] Started Modem Manager.
[  OK  ] Started WPA supplicant.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.

Ubuntu Xenial Xerus (development branch) Sam460ex ttyS0

Sam460ex login: [   90.676144] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   90.685037] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ec10cb00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   90.696774] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   90.704087] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xec10cb00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   90.717887] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   90.725204] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   91.295855] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   91.304143] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   91.315883] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   91.328944] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   91.336254] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   91.344873] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   91.351575] sata-dwc 4bffd1000.sata: QC complete cmd=0xe5 status=0x00 ata3: protocol=1
[   91.489610] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   91.498508] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ecbecf00 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   91.510246] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   91.517559] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecbecf00, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   91.531352] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   91.538671] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   91.618710] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   91.627606] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ecbec400 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   91.639344] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   91.646665] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecbec400, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   91.664382] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   91.671709] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   91.820505] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=from device n_elem=1
[   91.829402] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=ecbec400 nelem=1 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   91.841140] sata-dwc 4bffd1000.sata: map_sg_to_lli: elem=0 sg_addr=0x0 sg_len=0
[   91.848452] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0xecbec400, count: 1 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   91.865801] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   91.873132] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA PIO
[   92.013482] sata-dwc 4bffd1000.sata: sata_dwc_qc_prep_by_tag: port=0 dma dir=none n_elem=0
[   92.021773] sata-dwc 4bffd1000.sata: map_sg_to_lli: sg=  (null) nelem=0 lli=ffa0c000 dma_lli=0x0x000000002ca9a000 dmadr=0xf6a1e400
[   92.033513] sata-dwc 4bffd1000.sata: dma_dwc_xfer_setup sg: 0x  (null), count: 0 lli: ffa0c000 dma_lli: 0x2ca9a000lx addr: f6a1e400 lli count: 0
[   92.130858] sata-dwc 4bffd1000.sata: sata_dwc_isr intpr=0x80000080 active_tag=0
[   92.138186] sata-dwc 4bffd1000.sata: sata_dwc_isr non-NCQ cmd interrupt, protocol: ATA no data
[   92.146800] sata-dwc 4bffd1000.sata: sata_dwc_qc_complete checkstatus? 1
[   92.153503] sata-dwc 4bffd1000.sata: QC complete cmd=0xb0 status=0x00 ata3: protocol=1

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 17:26                                                                                       ` Julian Margetson
@ 2015-12-21 17:55                                                                                         ` Andy Shevchenko
  2015-12-21 18:23                                                                                           ` Julian Margetson
  2015-12-21 18:25                                                                                             ` Måns Rullgård
  0 siblings, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 17:55 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Måns Rullgård, Tejun Heo, linux-ide,
	linux-kernel

On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>
>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>
>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>> <andy.shevchenko@gmail.com> wrote:
>>>>
>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>> wrote:
>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>> items on this board, however registers for SATA program it to 64. I
>>>> remember that I got no interrupt when I programmed transfer width
>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>> on
>>>> Intel SoCs.
>>>
>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>> exactly the values are written / read  in DMA. I can share it
>>> tomorrow.
>>
>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>> if it applies cleanly on top of recent vanilla kernel.

So, the original driver (with patch from Måns) works, right?

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 17:24                                                                                         ` Andy Shevchenko
@ 2015-12-21 18:16                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:16 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Viresh Kumar, Julian Margetson, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> +Viresh
>>>
>>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>>>
>>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>>> something else must be wrong as well.  The various Master Select fields
>>>>>> look like a good place to start.
>>>>>
>>>>> Master number (which is here would be either 1 or 0) should not affect
>>>>> as long as they are connected to the same AHB bus (I would be
>>>>> surprised if they are not).
>>>>
>>>> I think they are not.  The relevant part of the block diagram for the
>>>> 460EX looks something like this:
>>>>
>>>>       +-----+
>>>>       | CPU |
>>>>       +-----+
>>>>          |
>>>>  +---------------+
>>>>  |      BUS      |
>>>>  +---------------+
>>>>     |         |
>>>>  +-----+   +-----+
>>>>  | DMA |   | RAM |
>>>>  +-----+   +-----+
>>>>     |
>>>>  +------+
>>>>  | SATA |
>>>>  +------+
>>>>
>>>> The DMA-SATA link is private and ignores the address, which is the only
>>>> reason the driver can possibly work (it's programming a CPU virtual
>>>> address there).
>>>
>>> If you look at the original code the SMS and DMS are programmed
>>> statically independent on DMA direction, so LLP is programmed always
>>> to master 1. I don't think your scheme is reflecting this right. I
>>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>>> and the other CPU and DMA.
>>
>> Check the code again.  The original code swaps SMS and DMS depending on
>> direction, and it sets LMS to 1.  Put differently, it always sets the
>> memory side 1 and the device side to 0.  The dw_dma driver sets SMS and
>> DMS to the src/dst_master values provided through dma_request_channel()
>> regardless of the current direction and LMS always zero.
>
> I used to have a patch to implement this in dw_dmac driver. However, I
> dropped it at some point. Seems we need it back and now I possible
> have a good explanation why.

Are you still able to find that patch?  Shouldn't be too hard to do from
scratch if not.

>> If those values didn't matter, why would the fields exist in the
>> first place?
>
> Because someone can have more than one AHB bus on the system and
> connect DMA to all of them (up to 4).

Which apparently these guys did.  Well, not a full-blown AHB bus, but
they seem to be using two master interfaces.

>>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>>> that the problem is in master numbers by themselves.
>>
>> The 460EX is a PowerPC system.  Expect unusual topologies.
>
> Yeah, that's right.

BTW, there's a good reason for wiring it like this.  If the source and
destination are on different buses, the DMA engine can do a read and a
write in each cycle.  Otherwise the reads and writes have to be issued
alternately.

>>>>>> Also, the manual says the LLP_SRC_EN
>>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>>>
>>>>> Easy to fix, however I can't get how it might affect.
>>>>
>>>> From the Atmel doc:
>>>>
>>>>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>>   illegal, and causes indeterminate or erroneous behavior.
>>>
>>> I will check Synospys documentation later on.
>
> Yes, we have to clear those bits. I will do a patch or you already have one?

I'll send the patch soon.

>>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>>> I have a patch already.
>>>
>>> Good. Send with Fixes tag if it's upstream ready.
>>>
>>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>>> it off.
>>>
>>> I have ATNGW100.
>>
>> I have an AT32ATK1006.  Can you suggest a good test to exercise the DMA
>> engine?
>
> On that board I tried MMC (the only available user for me), though it
> is not reliable, I also tried the dmatest module.

Hmm, is there anywhere this damn driver actually works?  ;-)

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 18:16                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:16 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Viresh Kumar, Julian Margetson, Andy Shevchenko, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>
>>> +Viresh
>>>
>>> On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård <mans@mansr.com> wrote:
>>>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>>>>
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com> wrote:
>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>>> On 12/20/2015 1:11 PM, Måns Rullgård wrote:
>>>>>>>> Julian Margetson <runaway@candw.ms> writes:
>>>>>
>>>>>>> [   48.769671] ata3.00: failed command: READ FPDMA QUEUED
>>>>>>
>>>>>> Well, that didn't help.  I still think it's part of the problem, but
>>>>>> something else must be wrong as well.  The various Master Select fields
>>>>>> look like a good place to start.
>>>>>
>>>>> Master number (which is here would be either 1 or 0) should not affect
>>>>> as long as they are connected to the same AHB bus (I would be
>>>>> surprised if they are not).
>>>>
>>>> I think they are not.  The relevant part of the block diagram for the
>>>> 460EX looks something like this:
>>>>
>>>>       +-----+
>>>>       | CPU |
>>>>       +-----+
>>>>          |
>>>>  +---------------+
>>>>  |      BUS      |
>>>>  +---------------+
>>>>     |         |
>>>>  +-----+   +-----+
>>>>  | DMA |   | RAM |
>>>>  +-----+   +-----+
>>>>     |
>>>>  +------+
>>>>  | SATA |
>>>>  +------+
>>>>
>>>> The DMA-SATA link is private and ignores the address, which is the only
>>>> reason the driver can possibly work (it's programming a CPU virtual
>>>> address there).
>>>
>>> If you look at the original code the SMS and DMS are programmed
>>> statically independent on DMA direction, so LLP is programmed always
>>> to master 1. I don't think your scheme is reflecting this right. I
>>> could imagine two AHB buses, one of them connects CPU, SATA and RAM,
>>> and the other CPU and DMA.
>>
>> Check the code again.  The original code swaps SMS and DMS depending on
>> direction, and it sets LMS to 1.  Put differently, it always sets the
>> memory side 1 and the device side to 0.  The dw_dma driver sets SMS and
>> DMS to the src/dst_master values provided through dma_request_channel()
>> regardless of the current direction and LMS always zero.
>
> I used to have a patch to implement this in dw_dmac driver. However, I
> dropped it at some point. Seems we need it back and now I possible
> have a good explanation why.

Are you still able to find that patch?  Shouldn't be too hard to do from
scratch if not.

>> If those values didn't matter, why would the fields exist in the
>> first place?
>
> Because someone can have more than one AHB bus on the system and
> connect DMA to all of them (up to 4).

Which apparently these guys did.  Well, not a full-blown AHB bus, but
they seem to be using two master interfaces.

>>> In any case on all Intel SoCs and AVR32, and as far as I can tell on
>>> Spear13xx (Viresh?) there is not a case, that's why I hardly imagine
>>> that the problem is in master numbers by themselves.
>>
>> The 460EX is a PowerPC system.  Expect unusual topologies.
>
> Yeah, that's right.

BTW, there's a good reason for wiring it like this.  If the source and
destination are on different buses, the DMA engine can do a read and a
write in each cycle.  Otherwise the reads and writes have to be issued
alternately.

>>>>>> Also, the manual says the LLP_SRC_EN
>>>>>> and LLP_DST_EN flags should be cleared on the last in a chain of blocks.
>>>>>> The old sata_dwc driver does this whereas dw_dma does not.
>>>>>
>>>>> Easy to fix, however I can't get how it might affect.
>>>>
>>>> From the Atmel doc:
>>>>
>>>>   In Table 17-1 on page 185, all other combinations of LLPx.LOC = 0,
>>>>   CTLx.LLP_S_EN, CFGx.RELOAD_SR, CTLx.LLP_D_EN, and CFGx.RELOAD_DS are
>>>>   illegal, and causes indeterminate or erroneous behavior.
>>>
>>> I will check Synospys documentation later on.
>
> Yes, we have to clear those bits. I will do a patch or you already have one?

I'll send the patch soon.

>>>> Most likely nothing happens, but I think it ought to be fixed.  In fact,
>>>> I have a patch already.
>>>
>>> Good. Send with Fixes tag if it's upstream ready.
>>>
>>>> Come to think of it, I have an AVR32 dev somewhere.  Maybe I should dust
>>>> it off.
>>>
>>> I have ATNGW100.
>>
>> I have an AT32ATK1006.  Can you suggest a good test to exercise the DMA
>> engine?
>
> On that board I tried MMC (the only available user for me), though it
> is not reliable, I also tried the dmatest module.

Hmm, is there anywhere this damn driver actually works?  ;-)

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 16:44                                                                                                   ` Andy Shevchenko
@ 2015-12-21 18:19                                                                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Viresh Kumar, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 15:24 +0000, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>> 
>> 
>> Oh, that one again.  My patch still applies.  Here it is as applied
>> to
>> that revision of the file.
>> 
>> From what I can tell, that bug has always been there.  Probably
>> nobody
>> ever tested the driver in a PREEMPT or SMP build, nor with lock
>> debugging enabled.
>
> I guess it's a time to submit this one to upstream with proper Fixes:
> tag (which I suppose the initial commit of the driver).

Done.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 18:19                                                                                                       ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:19 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Viresh Kumar, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 15:24 +0000, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>> 
>> 
>> Oh, that one again.  My patch still applies.  Here it is as applied
>> to
>> that revision of the file.
>> 
>> From what I can tell, that bug has always been there.  Probably
>> nobody
>> ever tested the driver in a PREEMPT or SMP build, nor with lock
>> debugging enabled.
>
> I guess it's a time to submit this one to upstream with proper Fixes:
> tag (which I suppose the initial commit of the driver).

Done.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 17:55                                                                                         ` Andy Shevchenko
@ 2015-12-21 18:23                                                                                           ` Julian Margetson
  2015-12-21 18:27                                                                                               ` Måns Rullgård
  2015-12-21 18:25                                                                                             ` Måns Rullgård
  1 sibling, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 18:23 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Måns Rullgård, Tejun Heo, linux-ide,
	linux-kernel

On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>> <andy.shevchenko@gmail.com> wrote:
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>> wrote:
>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>> items on this board, however registers for SATA program it to 64. I
>>>>> remember that I got no interrupt when I programmed transfer width
>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>> on
>>>>> Intel SoCs.
>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>> exactly the values are written / read  in DMA. I can share it
>>>> tomorrow.
>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>> if it applies cleanly on top of recent vanilla kernel.
> So, the original driver (with patch from Måns) works, right?
>
The hard drive is recognized .
These system gets unresponsive with USB devices like the mouse and 
keyboard not responding  when I start Gparted.


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 17:55                                                                                         ` Andy Shevchenko
@ 2015-12-21 18:25                                                                                             ` Måns Rullgård
  2015-12-21 18:25                                                                                             ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:25 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>
>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>
>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>> wrote:
>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>> items on this board, however registers for SATA program it to 64. I
>>>>> remember that I got no interrupt when I programmed transfer width
>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>> on
>>>>> Intel SoCs.
>>>>
>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>> exactly the values are written / read  in DMA. I can share it
>>>> tomorrow.
>>>
>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>> if it applies cleanly on top of recent vanilla kernel.
>
> So, the original driver (with patch from Måns) works, right?

Looks that way to me.  At least it's able to read the partition table.
What happens after that is hard to tell, but I don't see any obvious
errors.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 18:25                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:25 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>
>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>
>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>
>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>> wrote:
>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>> items on this board, however registers for SATA program it to 64. I
>>>>> remember that I got no interrupt when I programmed transfer width
>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>> on
>>>>> Intel SoCs.
>>>>
>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>> exactly the values are written / read  in DMA. I can share it
>>>> tomorrow.
>>>
>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>> if it applies cleanly on top of recent vanilla kernel.
>
> So, the original driver (with patch from Måns) works, right?

Looks that way to me.  At least it's able to read the partition table.
What happens after that is hard to tell, but I don't see any obvious
errors.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 18:23                                                                                           ` Julian Margetson
@ 2015-12-21 18:27                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:27 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>> wrote:
>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>> on
>>>>>> Intel SoCs.
>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>> exactly the values are written / read  in DMA. I can share it
>>>>> tomorrow.
>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>> if it applies cleanly on top of recent vanilla kernel.
>> So, the original driver (with patch from Måns) works, right?
>>
> The hard drive is recognized .
> These system gets unresponsive with USB devices like the mouse and
> keyboard not responding  when I start Gparted.

Did you disable the SATA and DMA debug messages?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 18:27                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 18:27 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>> wrote:
>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>> on
>>>>>> Intel SoCs.
>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>> exactly the values are written / read  in DMA. I can share it
>>>>> tomorrow.
>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>> if it applies cleanly on top of recent vanilla kernel.
>> So, the original driver (with patch from Måns) works, right?
>>
> The hard drive is recognized .
> These system gets unresponsive with USB devices like the mouse and
> keyboard not responding  when I start Gparted.

Did you disable the SATA and DMA debug messages?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21  1:19                                                                                       ` Måns Rullgård
  (?)
@ 2015-12-21 19:08                                                                                       ` Andy Shevchenko
  2015-12-21 19:27                                                                                           ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 19:08 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 01:19 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> 
> > P.S. I also noticed that original driver enables interrupt per each
> > block
> 
> And then ignores all but the transfer complete interrupt.
> 
> > and sets protection control bits.
> 
> With no indication what the value it sets is supposed to mean.

Okay, let's summarize what we have:

0. AR: Get a working reference for PPC 460EX SATA driver
1. AR: Clear LLP_EN bits at the last block of LLP transfer
2. AR: Rename masters to 'memory' and 'peripheral' and change them per
DMA direction
3. AR: Set LMS (LLP master) to 'memory' when do LLP transfers
4. CHECK: PROTCTL bit (documentation says that recommended value is
0x01)
5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
6. CHECK: Block interrupts vs. one interrupt at the end of block chain
(Måns, I missed how any of them is ignored)
7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail, etc
(SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard SATA)


I can share my working branch with a set of patches regarding to
dw_dmac. We may do our work based on that code and after I'll submit
everything to upstream. Does it sound okay for you, guys?

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 18:27                                                                                               ` Måns Rullgård
  (?)
@ 2015-12-21 19:08                                                                                               ` Julian Margetson
  -1 siblings, 0 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 19:08 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/21/2015 2:27 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>>> wrote:
>>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>>> on
>>>>>>> Intel SoCs.
>>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>>> exactly the values are written / read  in DMA. I can share it
>>>>>> tomorrow.
>>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>>> if it applies cleanly on top of recent vanilla kernel.
>>> So, the original driver (with patch from Måns) works, right?
>>>
>> The hard drive is recognized .
>> These system gets unresponsive with USB devices like the mouse and
>> keyboard not responding  when I start Gparted.
> Did you disable the SATA and DMA debug messages?
>
Ah. Will try with debug disabled.



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 18:27                                                                                               ` Måns Rullgård
  (?)
  (?)
@ 2015-12-21 19:19                                                                                               ` Julian Margetson
  2015-12-21 19:27                                                                                                   ` Måns Rullgård
  2015-12-21 20:25                                                                                                 ` Andy Shevchenko
  -1 siblings, 2 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 19:19 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/21/2015 2:27 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>>> wrote:
>>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>>> on
>>>>>>> Intel SoCs.
>>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>>> exactly the values are written / read  in DMA. I can share it
>>>>>> tomorrow.
>>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>>> if it applies cleanly on top of recent vanilla kernel.
>>> So, the original driver (with patch from Måns) works, right?
>>>
>> The hard drive is recognized .
>> These system gets unresponsive with USB devices like the mouse and
>> keyboard not responding  when I start Gparted.
> Did you disable the SATA and DMA debug messages?
>
It is working.



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 18:16                                                                                             ` Måns Rullgård
  (?)
@ 2015-12-21 19:23                                                                                             ` Andy Shevchenko
  2015-12-21 19:50                                                                                                 ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 19:23 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Viresh Kumar, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 18:16 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> 
> > On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com>
> > wrote:
> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> > > 
> > I used to have a patch to implement this in dw_dmac driver.
> > However, I
> > dropped it at some point. Seems we need it back and now I possible
> > have a good explanation why.
> 
> Are you still able to find that patch?  Shouldn't be too hard to do
> from
> scratch if not.

Yes, I found a version of it, let me mock up tomorrow something
working.

> 
> > > If those values didn't matter, why would the fields exist in the
> > > first place?
> > 
> > Because someone can have more than one AHB bus on the system and
> > connect DMA to all of them (up to 4).
> 
> Which apparently these guys did.  Well, not a full-blown AHB bus, but
> they seem to be using two master interfaces.

To different buses? Intel HW uses two masters and they are quite equal
(at least from OS point of view, it might be HW adjusts it).

> 
> > > > In any case on all Intel SoCs and AVR32, and as far as I can
> > > > tell on
> > > > Spear13xx (Viresh?) there is not a case, that's why I hardly
> > > > imagine
> > > > that the problem is in master numbers by themselves.
> > > 
> > > The 460EX is a PowerPC system.  Expect unusual topologies.
> > 
> > Yeah, that's right.
> 
> BTW, there's a good reason for wiring it like this.  If the source
> and
> destination are on different buses, the DMA engine can do a read and
> a
> write in each cycle.  Otherwise the reads and writes have to be
> issued
> alternately.

Okay. We need first to have a confirmation. I would try to set other
bits under question to see if it helps first (CFG register in DMA).

> Most likely nothing happens, but I think it ought to be
> > > > > fixed.  In fact,
> > > > > I have a patch already.
> > > > 
> > > > Good. Send with Fixes tag if it's upstream ready.
> > > > 
> > > > > Come to think of it, I have an AVR32 dev somewhere.  Maybe I
> > > > > should dust
> > > > > it off.
> > > > 
> > > > I have ATNGW100.
> > > 
> > > I have an AT32ATK1006.  Can you suggest a good test to exercise
> > > the DMA
> > > engine?
> > 
> > On that board I tried MMC (the only available user for me), though
> > it
> > is not reliable, I also tried the dmatest module.
> 
> Hmm, is there anywhere this damn driver actually works?  ;-)

Yes, on Intel HW.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:08                                                                                       ` Andy Shevchenko
@ 2015-12-21 19:27                                                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:27 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 01:19 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > P.S. I also noticed that original driver enables interrupt per each
>> > block
>> 
>> And then ignores all but the transfer complete interrupt.
>> 
>> > and sets protection control bits.
>> 
>> With no indication what the value it sets is supposed to mean.
>
> Okay, let's summarize what we have:
>
> 0. AR: Get a working reference for PPC 460EX SATA driver

Do we consider Julian's latest result working?

> 1. AR: Clear LLP_EN bits at the last block of LLP transfer

Patch sent.

> 2. AR: Rename masters to 'memory' and 'peripheral' and change them per
> DMA direction

Good idea.  I'd call them memory and device though to match existing
dmaengine nomenclature.

> 3. AR: Set LMS (LLP master) to 'memory' when do LLP transfers

I started working on a patch for that already.

> 4. CHECK: PROTCTL bit (documentation says that recommended value is
> 0x01)

Any idea what the value of 0x3 used by the old sata driver means?
Presumably that's decided by the bus.

> 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
> 6. CHECK: Block interrupts vs. one interrupt at the end of block chain
> (Måns, I missed how any of them is ignored)

The interrupt handler looks at the StatusTfr and StatusErr registers and
ignores StatusBlock.

> 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail, etc
> (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard SATA)

I can test on AVR32.  That is as far as I know the only system I have
with this DMA engine.

> I can share my working branch with a set of patches regarding to
> dw_dmac. We may do our work based on that code and after I'll submit
> everything to upstream. Does it sound okay for you, guys?

I'm going away for the holidays, so I won't be able to do any serious
work on this until January, but I'll keep an eye on emails and may even
reply occasionally.  Before I go, I'll publish my patches so far
whatever shape they're in.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 19:27                                                                                           ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:27 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 01:19 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > P.S. I also noticed that original driver enables interrupt per each
>> > block
>> 
>> And then ignores all but the transfer complete interrupt.
>> 
>> > and sets protection control bits.
>> 
>> With no indication what the value it sets is supposed to mean.
>
> Okay, let's summarize what we have:
>
> 0. AR: Get a working reference for PPC 460EX SATA driver

Do we consider Julian's latest result working?

> 1. AR: Clear LLP_EN bits at the last block of LLP transfer

Patch sent.

> 2. AR: Rename masters to 'memory' and 'peripheral' and change them per
> DMA direction

Good idea.  I'd call them memory and device though to match existing
dmaengine nomenclature.

> 3. AR: Set LMS (LLP master) to 'memory' when do LLP transfers

I started working on a patch for that already.

> 4. CHECK: PROTCTL bit (documentation says that recommended value is
> 0x01)

Any idea what the value of 0x3 used by the old sata driver means?
Presumably that's decided by the bus.

> 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
> 6. CHECK: Block interrupts vs. one interrupt at the end of block chain
> (Måns, I missed how any of them is ignored)

The interrupt handler looks at the StatusTfr and StatusErr registers and
ignores StatusBlock.

> 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail, etc
> (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard SATA)

I can test on AVR32.  That is as far as I know the only system I have
with this DMA engine.

> I can share my working branch with a set of patches regarding to
> dw_dmac. We may do our work based on that code and after I'll submit
> everything to upstream. Does it sound okay for you, guys?

I'm going away for the holidays, so I won't be able to do any serious
work on this until January, but I'll keep an eye on emails and may even
reply occasionally.  Before I go, I'll publish my patches so far
whatever shape they're in.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:19                                                                                               ` Julian Margetson
@ 2015-12-21 19:27                                                                                                   ` Måns Rullgård
  2015-12-21 20:25                                                                                                 ` Andy Shevchenko
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:27 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>>>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>>>> wrote:
>>>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>>>> on
>>>>>>>> Intel SoCs.
>>>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>>>> exactly the values are written / read  in DMA. I can share it
>>>>>>> tomorrow.
>>>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>>>> if it applies cleanly on top of recent vanilla kernel.
>>>> So, the original driver (with patch from Måns) works, right?
>>>>
>>> The hard drive is recognized .
>>> These system gets unresponsive with USB devices like the mouse and
>>> keyboard not responding  when I start Gparted.
>> Did you disable the SATA and DMA debug messages?
>>
> It is working.

That's good news.  Thanks a lot for helping to test this.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 19:27                                                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:27 UTC (permalink / raw)
  To: Julian Margetson
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Julian Margetson <runaway@candw.ms> writes:

> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>> Julian Margetson <runaway@candw.ms> writes:
>>
>>> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>>>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>>>> wrote:
>>>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>>>> on
>>>>>>>> Intel SoCs.
>>>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>>>> exactly the values are written / read  in DMA. I can share it
>>>>>>> tomorrow.
>>>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>>>> if it applies cleanly on top of recent vanilla kernel.
>>>> So, the original driver (with patch from Måns) works, right?
>>>>
>>> The hard drive is recognized .
>>> These system gets unresponsive with USB devices like the mouse and
>>> keyboard not responding  when I start Gparted.
>> Did you disable the SATA and DMA debug messages?
>>
> It is working.

That's good news.  Thanks a lot for helping to test this.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:27                                                                                                   ` Måns Rullgård
  (?)
@ 2015-12-21 19:47                                                                                                   ` Julian Margetson
  -1 siblings, 0 replies; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 19:47 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/21/2015 3:27 PM, Måns Rullgård wrote:
> Julian Margetson <runaway@candw.ms> writes:
>
>> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>>> Julian Margetson <runaway@candw.ms> writes:
>>>
>>>> On 12/21/2015 1:55 PM, Andy Shevchenko wrote:
>>>>> On Mon, Dec 21, 2015 at 7:26 PM, Julian Margetson <runaway@candw.ms> wrote:
>>>>>> On 12/21/2015 12:48 PM, Andy Shevchenko wrote:
>>>>>>> On Sun, 2015-12-20 at 22:55 +0200, Andy Shevchenko wrote:
>>>>>>>> On Sun, Dec 20, 2015 at 10:17 PM, Andy Shevchenko
>>>>>>>> <andy.shevchenko@gmail.com> wrote:
>>>>>>>>> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård <mans@mansr.com>
>>>>>>>>> wrote:
>>>>>>>>> I noticed thanks to DWC_PARAMS that burst size is hardcoded to 32
>>>>>>>>> items on this board, however registers for SATA program it to 64. I
>>>>>>>>> remember that I got no interrupt when I programmed transfer width
>>>>>>>>> wrongly (64 bits against 32 bits) when I ported dw_dmac to be used
>>>>>>>>> on
>>>>>>>>> Intel SoCs.
>>>>>>>> One more thing, I have a patch to monitor DMA IO, we may check what
>>>>>>>> exactly the values are written / read  in DMA. I can share it
>>>>>>>> tomorrow.
>>>>>>> As promised the patch I have to debug IO of DW DMA. Didn't check though
>>>>>>> if it applies cleanly on top of recent vanilla kernel.
>>>>> So, the original driver (with patch from Måns) works, right?
>>>>>
>>>> The hard drive is recognized .
>>>> These system gets unresponsive with USB devices like the mouse and
>>>> keyboard not responding  when I start Gparted.
>>> Did you disable the SATA and DMA debug messages?
>>>
>> It is working.
> That's good news.  Thanks a lot for helping to test this.
>
No problem.
If you can influence anyone of the radeon guys to have a look at the 
ring test failure on the Sam460ex again,
I will  be happy to help test in that area as well .

http://lists.freedesktop.org/archives/dri-devel/2013-September/045050.html
https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-February/125060.html




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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:23                                                                                             ` Andy Shevchenko
@ 2015-12-21 19:50                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:50 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Viresh Kumar, Julian Margetson, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 18:16 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com>
>> > wrote:
>> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> > > 
>> > I used to have a patch to implement this in dw_dmac driver.
>> > However, I
>> > dropped it at some point. Seems we need it back and now I possible
>> > have a good explanation why.
>> 
>> Are you still able to find that patch?  Shouldn't be too hard to do
>> from scratch if not.
>
> Yes, I found a version of it, let me mock up tomorrow something
> working.
>
>> 
>> > > If those values didn't matter, why would the fields exist in the
>> > > first place?
>> > 
>> > Because someone can have more than one AHB bus on the system and
>> > connect DMA to all of them (up to 4).
>> 
>> Which apparently these guys did.  Well, not a full-blown AHB bus, but
>> they seem to be using two master interfaces.
>
> To different buses? Intel HW uses two masters and they are quite equal
> (at least from OS point of view, it might be HW adjusts it).

Judging by the block diagram in the 460EX datasheet [1], and by the fact
that the old SATA driver works despite using an invalid address, the DMA
FIFO of the controller isn't connected to the AHB bus at all but
directly to master 0 on the DW DMA controller.  Master 1 of the DMA
controller is connected to the AHB bus, which is bridged to the main
system bus.

I haven't managed to find a full manual for the 460EX.

[1] http://datasheet.octopart.com/PPC460EX-NUB800T-AMCC-datasheet-11553412.pdf

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 19:50                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 19:50 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Viresh Kumar, Julian Margetson, Tejun Heo,
	linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 18:16 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > On Mon, Dec 21, 2015 at 2:15 PM, Måns Rullgård <mans@mansr.com>
>> > wrote:
>> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> > > 
>> > I used to have a patch to implement this in dw_dmac driver.
>> > However, I
>> > dropped it at some point. Seems we need it back and now I possible
>> > have a good explanation why.
>> 
>> Are you still able to find that patch?  Shouldn't be too hard to do
>> from scratch if not.
>
> Yes, I found a version of it, let me mock up tomorrow something
> working.
>
>> 
>> > > If those values didn't matter, why would the fields exist in the
>> > > first place?
>> > 
>> > Because someone can have more than one AHB bus on the system and
>> > connect DMA to all of them (up to 4).
>> 
>> Which apparently these guys did.  Well, not a full-blown AHB bus, but
>> they seem to be using two master interfaces.
>
> To different buses? Intel HW uses two masters and they are quite equal
> (at least from OS point of view, it might be HW adjusts it).

Judging by the block diagram in the 460EX datasheet [1], and by the fact
that the old SATA driver works despite using an invalid address, the DMA
FIFO of the controller isn't connected to the AHB bus at all but
directly to master 0 on the DW DMA controller.  Master 1 of the DMA
controller is connected to the AHB bus, which is bridged to the main
system bus.

I haven't managed to find a full manual for the 460EX.

[1] http://datasheet.octopart.com/PPC460EX-NUB800T-AMCC-datasheet-11553412.pdf

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:19                                                                                               ` Julian Margetson
  2015-12-21 19:27                                                                                                   ` Måns Rullgård
@ 2015-12-21 20:25                                                                                                 ` Andy Shevchenko
  2015-12-21 20:29                                                                                                   ` Julian Margetson
  2015-12-21 20:33                                                                                                     ` Måns Rullgård
  1 sibling, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 20:25 UTC (permalink / raw)
  To: Julian Margetson, Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 15:19 -0400, Julian Margetson wrote:
> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
> > The hard drive is recognized .
> > > These system gets unresponsive with USB devices like the mouse
> > > and
> > > keyboard not responding  when I start Gparted.
> > Did you disable the SATA and DMA debug messages?
> > 
> It is working.

Indeed, thanks, Julian!

I might ask you to test my branch with set of patches when it will be
ready (apparently after Xmas) if you are okay with that.

Måns, also I would ask you to test on your hardware (AVR32) as well if
you have no objections.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 20:25                                                                                                 ` Andy Shevchenko
@ 2015-12-21 20:29                                                                                                   ` Julian Margetson
  2016-01-22 10:07                                                                                                     ` Andy Shevchenko
  2015-12-21 20:33                                                                                                     ` Måns Rullgård
  1 sibling, 1 reply; 154+ messages in thread
From: Julian Margetson @ 2015-12-21 20:29 UTC (permalink / raw)
  To: Andy Shevchenko, Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On 12/21/2015 4:25 PM, Andy Shevchenko wrote:
> On Mon, 2015-12-21 at 15:19 -0400, Julian Margetson wrote:
>> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>>> The hard drive is recognized .
>>>> These system gets unresponsive with USB devices like the mouse
>>>> and
>>>> keyboard not responding  when I start Gparted.
>>> Did you disable the SATA and DMA debug messages?
>>>
>> It is working.
> Indeed, thanks, Julian!
>
> I might ask you to test my branch with set of patches when it will be
> ready (apparently after Xmas) if you are okay with that.
>
> Måns, also I would ask you to test on your hardware (AVR32) as well if
> you have no objections.
>
I have no problem testing.

Regards
Julian



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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 20:25                                                                                                 ` Andy Shevchenko
@ 2015-12-21 20:33                                                                                                     ` Måns Rullgård
  2015-12-21 20:33                                                                                                     ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 20:33 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 15:19 -0400, Julian Margetson wrote:
>> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>> > The hard drive is recognized .
>> > > These system gets unresponsive with USB devices like the mouse
>> > > and
>> > > keyboard not responding  when I start Gparted.
>> > Did you disable the SATA and DMA debug messages?
>> > 
>> It is working.
>
> Indeed, thanks, Julian!
>
> I might ask you to test my branch with set of patches when it will be
> ready (apparently after Xmas) if you are okay with that.
>
> Måns, also I would ask you to test on your hardware (AVR32) as well if
> you have no objections.

Sure, but it will have to wait until January.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 20:33                                                                                                     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 20:33 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Julian Margetson, Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 15:19 -0400, Julian Margetson wrote:
>> On 12/21/2015 2:27 PM, Måns Rullgård wrote:
>> > The hard drive is recognized .
>> > > These system gets unresponsive with USB devices like the mouse
>> > > and
>> > > keyboard not responding  when I start Gparted.
>> > Did you disable the SATA and DMA debug messages?
>> > 
>> It is working.
>
> Indeed, thanks, Julian!
>
> I might ask you to test my branch with set of patches when it will be
> ready (apparently after Xmas) if you are okay with that.
>
> Måns, also I would ask you to test on your hardware (AVR32) as well if
> you have no objections.

Sure, but it will have to wait until January.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 19:27                                                                                           ` Måns Rullgård
  (?)
@ 2015-12-21 20:54                                                                                           ` Andy Shevchenko
  2015-12-21 21:06                                                                                               ` Måns Rullgård
  2015-12-22  0:08                                                                                               ` Måns Rullgård
  -1 siblings, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-21 20:54 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Mon, 2015-12-21 at 01:19 +0000, Måns Rullgård wrote:
> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> > >  
> > > > P.S. I also noticed that original driver enables interrupt per
> > > > each
> > > > block
> > > 
> > > And then ignores all but the transfer complete interrupt.
> > > 
> > > > and sets protection control bits.
> > > 
> > > With no indication what the value it sets is supposed to mean.
> > 
> > Okay, let's summarize what we have:
> > 
> > 0. AR: Get a working reference for PPC 460EX SATA driver
> 
> Do we consider Julian's latest result working?

I think so.

> 
> > 1. AR: Clear LLP_EN bits at the last block of LLP transfer
> 
> Patch sent.

Acked.

> 
> > 2. AR: Rename masters to 'memory' and 'peripheral' and change them
> > per
> > DMA direction
> 
> Good idea.  I'd call them memory and device though to match existing
> dmaengine nomenclature.

I remember how I called in my patch. So, there is no problem to rename,
but will see.

> 
> > 3. AR: Set LMS (LLP master) to 'memory' when do LLP transfers
> 
> I started working on a patch for that already.

Thanks.

> 
> > 4. CHECK: PROTCTL bit (documentation says that recommended value is
> > 0x01)
> 
> Any idea what the value of 0x3 used by the old sata driver means?
> Presumably that's decided by the bus.

Nope, documentation says that it is direct representation of hprot[3:1]
wires on the master interface. Also it refers to AMBA spec, so, if you
have access to AMBA spec I think we might get it from there.

> 
> > 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
> > 6. CHECK: Block interrupts vs. one interrupt at the end of block
> > chain
> > (Måns, I missed how any of them is ignored)
> 
> The interrupt handler looks at the StatusTfr and StatusErr registers
> and
> ignores StatusBlock.

I have to refresh my memory, since BLOCK interrupts should be enabled
(unmasked) separately. I have forgotten which type of interrupt is
generated in this case, BLOCK, or XFER after each block, or only one
XFER at the last block (LLP.LOC = 0) and BLOCK are ignored. So, will
check later.

> 
> > 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail,
> > etc
> > (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard
> > SATA)
> 
> I can test on AVR32.  That is as far as I know the only system I have
> with this DMA engine.

If you have Intel Haswell, BayTrail, Braswell, CherryTrail, Broadwell,
you have it as well as long you have LPSS block there. (Most of them
are Atoms).

> 
> > I can share my working branch with a set of patches regarding to
> > dw_dmac. We may do our work based on that code and after I'll
> > submit
> > everything to upstream. Does it sound okay for you, guys?
> 
> I'm going away for the holidays, so I won't be able to do any serious
> work on this until January, but I'll keep an eye on emails and may
> even
> reply occasionally.  Before I go, I'll publish my patches so far
> whatever shape they're in.

Okay, thanks! I will include them in my branch which I'm going to
publish on GitHUB.

Happy holidays!

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 20:54                                                                                           ` Andy Shevchenko
@ 2015-12-21 21:06                                                                                               ` Måns Rullgård
  2015-12-22  0:08                                                                                               ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 21:06 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

>> > 4. CHECK: PROTCTL bit (documentation says that recommended value is
>> > 0x01)
>> 
>> Any idea what the value of 0x3 used by the old sata driver means?
>> Presumably that's decided by the bus.
>
> Nope, documentation says that it is direct representation of hprot[3:1]
> wires on the master interface. Also it refers to AMBA spec, so, if you
> have access to AMBA spec I think we might get it from there.

That's assuming AMCC didn't change something.

>> > 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
>> > 6. CHECK: Block interrupts vs. one interrupt at the end of block
>> > chain
>> > (Måns, I missed how any of them is ignored)
>> 
>> The interrupt handler looks at the StatusTfr and StatusErr registers
>> and ignores StatusBlock.
>
> I have to refresh my memory, since BLOCK interrupts should be enabled
> (unmasked) separately. I have forgotten which type of interrupt is
> generated in this case, BLOCK, or XFER after each block, or only one
> XFER at the last block (LLP.LOC = 0) and BLOCK are ignored. So, will
> check later.

I interpreted the, admittedly a bit vague, documentation as meaning
BLOCK interrupts are signalled after each block and XFER interrupts
after the last block.

>> > 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail,
>> > etc (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard
>> > SATA)
>> 
>> I can test on AVR32.  That is as far as I know the only system I have
>> with this DMA engine.
>
> If you have Intel Haswell, BayTrail, Braswell, CherryTrail, Broadwell,
> you have it as well as long you have LPSS block there. (Most of them
> are Atoms).

I don't have any of those (or any Atom hardware).

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-21 21:06                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-21 21:06 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

>> > 4. CHECK: PROTCTL bit (documentation says that recommended value is
>> > 0x01)
>> 
>> Any idea what the value of 0x3 used by the old sata driver means?
>> Presumably that's decided by the bus.
>
> Nope, documentation says that it is direct representation of hprot[3:1]
> wires on the master interface. Also it refers to AMBA spec, so, if you
> have access to AMBA spec I think we might get it from there.

That's assuming AMCC didn't change something.

>> > 5. CHECK: Other bits in CFG register (FIFO_MODE, FCMODE)
>> > 6. CHECK: Block interrupts vs. one interrupt at the end of block
>> > chain
>> > (Måns, I missed how any of them is ignored)
>> 
>> The interrupt handler looks at the StatusTfr and StatusErr registers
>> and ignores StatusBlock.
>
> I have to refresh my memory, since BLOCK interrupts should be enabled
> (unmasked) separately. I have forgotten which type of interrupt is
> generated in this case, BLOCK, or XFER after each block, or only one
> XFER at the last block (LLP.LOC = 0) and BLOCK are ignored. So, will
> check later.

I interpreted the, admittedly a bit vague, documentation as meaning
BLOCK interrupts are signalled after each block and XFER interrupts
after the last block.

>> > 7. AR: Test everything on Intel SoCs such as Baytrail, CherryTrail,
>> > etc (SPI, UART, dmatest), AVR32 (MMC, dmatest), PPC 460EX (Onboard
>> > SATA)
>> 
>> I can test on AVR32.  That is as far as I know the only system I have
>> with this DMA engine.
>
> If you have Intel Haswell, BayTrail, Braswell, CherryTrail, Broadwell,
> you have it as well as long you have LPSS block there. (Most of them
> are Atoms).

I don't have any of those (or any Atom hardware).

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 20:54                                                                                           ` Andy Shevchenko
@ 2015-12-22  0:08                                                                                               ` Måns Rullgård
  2015-12-22  0:08                                                                                               ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-22  0:08 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > I can share my working branch with a set of patches regarding to
>> > dw_dmac. We may do our work based on that code and after I'll
>> > submit
>> > everything to upstream. Does it sound okay for you, guys?
>> 
>> I'm going away for the holidays, so I won't be able to do any serious
>> work on this until January, but I'll keep an eye on emails and may
>> even reply occasionally.  Before I go, I'll publish my patches so far
>> whatever shape they're in.
>
> Okay, thanks! I will include them in my branch which I'm going to
> publish on GitHUB.

Here's what I have: https://bitbucket.org/mansr/linux-dwc
Bitbucket because Github won't let me have more than one Linux
repo.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2015-12-22  0:08                                                                                               ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2015-12-22  0:08 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > I can share my working branch with a set of patches regarding to
>> > dw_dmac. We may do our work based on that code and after I'll
>> > submit
>> > everything to upstream. Does it sound okay for you, guys?
>> 
>> I'm going away for the holidays, so I won't be able to do any serious
>> work on this until January, but I'll keep an eye on emails and may
>> even reply occasionally.  Before I go, I'll publish my patches so far
>> whatever shape they're in.
>
> Okay, thanks! I will include them in my branch which I'm going to
> publish on GitHUB.

Here's what I have: https://bitbucket.org/mansr/linux-dwc
Bitbucket because Github won't let me have more than one Linux
repo.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-22  0:08                                                                                               ` Måns Rullgård
  (?)
@ 2015-12-22 10:58                                                                                               ` Andy Shevchenko
  2016-01-06 16:26                                                                                                   ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2015-12-22 10:58 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > > 
> > > > I can share my working branch with a set of patches regarding
> > > > to
> > > > dw_dmac. We may do our work based on that code and after I'll
> > > > submit
> > > > everything to upstream. Does it sound okay for you, guys?
> > > 
> > > I'm going away for the holidays, so I won't be able to do any
> > > serious
> > > work on this until January, but I'll keep an eye on emails and
> > > may
> > > even reply occasionally.  Before I go, I'll publish my patches so
> > > far
> > > whatever shape they're in.
> > 
> > Okay, thanks! I will include them in my branch which I'm going to
> > publish on GitHUB.
> 
> Here's what I have: https://bitbucket.org/mansr/linux-dwc
> Bitbucket because Github won't let me have more than one Linux
> repo.

Thanks, got it.

Will base my stuff on what you had done already.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-22 10:58                                                                                               ` Andy Shevchenko
@ 2016-01-06 16:26                                                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-06 16:26 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
>> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > > 
>> > > > I can share my working branch with a set of patches regarding
>> > > > to dw_dmac. We may do our work based on that code and after
>> > > > I'll submit everything to upstream. Does it sound okay for you,
>> > > > guys?
>> > > 
>> > > I'm going away for the holidays, so I won't be able to do any
>> > > serious work on this until January, but I'll keep an eye on
>> > > emails and may even reply occasionally.  Before I go, I'll
>> > > publish my patches so far whatever shape they're in.
>> > 
>> > Okay, thanks! I will include them in my branch which I'm going to
>> > publish on GitHUB.
>> 
>> Here's what I have: https://bitbucket.org/mansr/linux-dwc
>> Bitbucket because Github won't let me have more than one Linux
>> repo.
>
> Thanks, got it.
>
> Will base my stuff on what you had done already.

I've revived my AVR32 board, and after patching up some unrelated
regressions, the MMC controller is working with the DMA driver as
of 4.4-rc8 as well as with my patches applied.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-06 16:26                                                                                                   ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-06 16:26 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
>> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > > 
>> > > > I can share my working branch with a set of patches regarding
>> > > > to dw_dmac. We may do our work based on that code and after
>> > > > I'll submit everything to upstream. Does it sound okay for you,
>> > > > guys?
>> > > 
>> > > I'm going away for the holidays, so I won't be able to do any
>> > > serious work on this until January, but I'll keep an eye on
>> > > emails and may even reply occasionally.  Before I go, I'll
>> > > publish my patches so far whatever shape they're in.
>> > 
>> > Okay, thanks! I will include them in my branch which I'm going to
>> > publish on GitHUB.
>> 
>> Here's what I have: https://bitbucket.org/mansr/linux-dwc
>> Bitbucket because Github won't let me have more than one Linux
>> repo.
>
> Thanks, got it.
>
> Will base my stuff on what you had done already.

I've revived my AVR32 board, and after patching up some unrelated
regressions, the MMC controller is working with the DMA driver as
of 4.4-rc8 as well as with my patches applied.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-06 16:26                                                                                                   ` Måns Rullgård
  (?)
@ 2016-01-06 17:36                                                                                                   ` Andy Shevchenko
  2016-01-07  9:34                                                                                                     ` Andy Shevchenko
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-06 17:36 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, Jan 6, 2016 at 6:26 PM, Måns Rullgård <mans@mansr.com> wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>
>> On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>
>>> > On Mon, 2015-12-21 at 19:27 +0000, Måns Rullgård wrote:
>>> > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>> > >
>>> > > > I can share my working branch with a set of patches regarding
>>> > > > to dw_dmac. We may do our work based on that code and after
>>> > > > I'll submit everything to upstream. Does it sound okay for you,
>>> > > > guys?
>>> > >
>>> > > I'm going away for the holidays, so I won't be able to do any
>>> > > serious work on this until January, but I'll keep an eye on
>>> > > emails and may even reply occasionally.  Before I go, I'll
>>> > > publish my patches so far whatever shape they're in.
>>> >
>>> > Okay, thanks! I will include them in my branch which I'm going to
>>> > publish on GitHUB.
>>>
>>> Here's what I have: https://bitbucket.org/mansr/linux-dwc
>>> Bitbucket because Github won't let me have more than one Linux
>>> repo.
>>
>> Thanks, got it.
>>
>> Will base my stuff on what you had done already.
>
> I've revived my AVR32 board, and after patching up some unrelated
> regressions, the MMC controller is working with the DMA driver as
> of 4.4-rc8 as well as with my patches applied.

I'm going to publish my branch tomorrow. It has been tested a bit on
Intel hw, and works fine (yours patches are included with some slight
changes)

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-06 17:36                                                                                                   ` Andy Shevchenko
@ 2016-01-07  9:34                                                                                                     ` Andy Shevchenko
  2016-01-07 18:32                                                                                                         ` Måns Rullgård
  0 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-07  9:34 UTC (permalink / raw)
  To: Andy Shevchenko, Måns Rullgård
  Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
> On Wed, Jan 6, 2016 at 6:26 PM, Måns Rullgård <mans@mansr.com> wrote:
> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > 
> > > On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
> > > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > > > 
> > > > > Here's what I have: https://bitbucket.org/mansr/linux-dwc
> > > > Bitbucket because Github won't let me have more than one Linux
> > > > repo.
> > > 
> > > Thanks, got it.
> > > 
> > > Will base my stuff on what you had done already.
> > 
> > I've revived my AVR32 board, and after patching up some unrelated
> > regressions, the MMC controller is working with the DMA driver as
> > of 4.4-rc8 as well as with my patches applied.
> 
> I'm going to publish my branch tomorrow. It has been tested a bit on
> Intel hw, and works fine (yours patches are included with some slight
> changes)

So, Måns, Julian, I just have published my repository containing Måns'
and my patches regarding dw_dmac and sata_dwc_460ex drivers here

https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-07  9:34                                                                                                     ` Andy Shevchenko
@ 2016-01-07 18:32                                                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-07 18:32 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
>> On Wed, Jan 6, 2016 at 6:26 PM, Måns Rullgård <mans@mansr.com> wrote:
>> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > 
>> > > On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
>> > > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > > > 
>> > > > > Here's what I have: https://bitbucket.org/mansr/linux-dwc
>> > > > Bitbucket because Github won't let me have more than one Linux
>> > > > repo.
>> > > 
>> > > Thanks, got it.
>> > > 
>> > > Will base my stuff on what you had done already.
>> > 
>> > I've revived my AVR32 board, and after patching up some unrelated
>> > regressions, the MMC controller is working with the DMA driver as
>> > of 4.4-rc8 as well as with my patches applied.
>> 
>> I'm going to publish my branch tomorrow. It has been tested a bit on
>> Intel hw, and works fine (yours patches are included with some slight
>> changes)
>
> So, Måns, Julian, I just have published my repository containing Måns'
> and my patches regarding dw_dmac and sata_dwc_460ex drivers here
>
> https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext

I've picked out the relevant changes from your branch and made some
additional improvements.  A few notes:

- The __be32/__le32 typedefs for the DMA descriptor fields are necessary
  to avoid a million sparse warnings (and sparse is correct to warn).
- Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver may
  well be used on another big endian system some day.  The Kconfig logic
  for selecting this option could perhaps be improved though.

Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).

Code here:
https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-07 18:32                                                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-07 18:32 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
>> On Wed, Jan 6, 2016 at 6:26 PM, Måns Rullgård <mans@mansr.com> wrote:
>> > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > 
>> > > On Tue, 2015-12-22 at 00:08 +0000, Måns Rullgård wrote:
>> > > > Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > > > 
>> > > > > Here's what I have: https://bitbucket.org/mansr/linux-dwc
>> > > > Bitbucket because Github won't let me have more than one Linux
>> > > > repo.
>> > > 
>> > > Thanks, got it.
>> > > 
>> > > Will base my stuff on what you had done already.
>> > 
>> > I've revived my AVR32 board, and after patching up some unrelated
>> > regressions, the MMC controller is working with the DMA driver as
>> > of 4.4-rc8 as well as with my patches applied.
>> 
>> I'm going to publish my branch tomorrow. It has been tested a bit on
>> Intel hw, and works fine (yours patches are included with some slight
>> changes)
>
> So, Måns, Julian, I just have published my repository containing Måns'
> and my patches regarding dw_dmac and sata_dwc_460ex drivers here
>
> https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext

I've picked out the relevant changes from your branch and made some
additional improvements.  A few notes:

- The __be32/__le32 typedefs for the DMA descriptor fields are necessary
  to avoid a million sparse warnings (and sparse is correct to warn).
- Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver may
  well be used on another big endian system some day.  The Kconfig logic
  for selecting this option could perhaps be improved though.

Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).

Code here:
https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-07 18:32                                                                                                         ` Måns Rullgård
  (?)
@ 2016-01-08  8:57                                                                                                         ` Andy Shevchenko
  2016-01-08 10:57                                                                                                             ` Måns Rullgård
  2016-01-20 18:50                                                                                                             ` Måns Rullgård
  -1 siblings, 2 replies; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-08  8:57 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Thu, 2016-01-07 at 18:32 +0000, Måns Rullgård wrote:

> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
> > > 
> > So, Måns, Julian, I just have published my repository containing
> > Måns'
> > and my patches regarding dw_dmac and sata_dwc_460ex drivers here
> > 
> > https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext
> 
> I've picked out the relevant changes from your branch and made some
> additional improvements.  A few notes:
> 
> - The __be32/__le32 typedefs for the DMA descriptor fields are
> necessary
>   to avoid a million sparse warnings (and sparse is correct to warn).

Hmm… Which version of sparse are you using? I always run builds with
sparse enabled and didn't see anything.

> - Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver
> may
>   well be used on another big endian system some day.  The Kconfig
> logic
>   for selecting this option could perhaps be improved though.

Maybe runtime chosen accessors will be better than ifdefs?
I don't like the Kconfig option which limits application of the
(compiled) driver.

> 
> Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
> 
> Code here:
> https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata

Thanks for testing!

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-08  8:57                                                                                                         ` Andy Shevchenko
@ 2016-01-08 10:57                                                                                                             ` Måns Rullgård
  2016-01-20 18:50                                                                                                             ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-08 10:57 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Thu, 2016-01-07 at 18:32 +0000, Måns Rullgård wrote:
>
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
>> > > 
>> > So, Måns, Julian, I just have published my repository containing
>> > Måns' and my patches regarding dw_dmac and sata_dwc_460ex drivers
>> > here
>> > 
>> > https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext
>> 
>> I've picked out the relevant changes from your branch and made some
>> additional improvements.  A few notes:
>> 
>> - The __be32/__le32 typedefs for the DMA descriptor fields are necessary
>>   to avoid a million sparse warnings (and sparse is correct to warn).
>
> Hmm… Which version of sparse are you using? I always run builds with
> sparse enabled and didn't see anything.

You need to enable endian checking with CF=-D__CHECK_ENDIAN__

>> - Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver may
>>   well be used on another big endian system some day.  The Kconfig logic
>>   for selecting this option could perhaps be improved though.
>
> Maybe runtime chosen accessors will be better than ifdefs?

Are there any systems that could otherwise run the same kernel that use
this hardware with different byte order?  I doubt it.

> I don't like the Kconfig option which limits application of the
> (compiled) driver.

It's no more limited than a hard #ifdef AVR32 in the driver code.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-08 10:57                                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-08 10:57 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Thu, 2016-01-07 at 18:32 +0000, Måns Rullgård wrote:
>
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote:
>> > > 
>> > So, Måns, Julian, I just have published my repository containing
>> > Måns' and my patches regarding dw_dmac and sata_dwc_460ex drivers
>> > here
>> > 
>> > https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext
>> 
>> I've picked out the relevant changes from your branch and made some
>> additional improvements.  A few notes:
>> 
>> - The __be32/__le32 typedefs for the DMA descriptor fields are necessary
>>   to avoid a million sparse warnings (and sparse is correct to warn).
>
> Hmm… Which version of sparse are you using? I always run builds with
> sparse enabled and didn't see anything.

You need to enable endian checking with CF=-D__CHECK_ENDIAN__

>> - Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver may
>>   well be used on another big endian system some day.  The Kconfig logic
>>   for selecting this option could perhaps be improved though.
>
> Maybe runtime chosen accessors will be better than ifdefs?

Are there any systems that could otherwise run the same kernel that use
this hardware with different byte order?  I doubt it.

> I don't like the Kconfig option which limits application of the
> (compiled) driver.

It's no more limited than a hard #ifdef AVR32 in the driver code.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-08  8:57                                                                                                         ` Andy Shevchenko
@ 2016-01-20 18:50                                                                                                             ` Måns Rullgård
  2016-01-20 18:50                                                                                                             ` Måns Rullgård
  1 sibling, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 18:50 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

>> Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>> 
>> Code here:
>> https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>
> Thanks for testing!

Have you had time to look any more at these patches?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-20 18:50                                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 18:50 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

>> Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>> 
>> Code here:
>> https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>
> Thanks for testing!

Have you had time to look any more at these patches?

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 18:50                                                                                                             ` Måns Rullgård
  (?)
@ 2016-01-20 19:23                                                                                                             ` Andy Shevchenko
  2016-01-20 19:24                                                                                                                 ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-20 19:23 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> 
> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
> > > 
> > > Code here:
> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
> > 
> > Thanks for testing!
> 
> Have you had time to look any more at these patches?

Not yet.
I will look soon for sure.

One comment still regarding to lli types. We can avoid warnings by
using (__force u32) in macros.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 19:23                                                                                                             ` Andy Shevchenko
@ 2016-01-20 19:24                                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 19:24 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>> > > 
>> > > Code here:
>> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>> > 
>> > Thanks for testing!
>> 
>> Have you had time to look any more at these patches?
>
> Not yet.
> I will look soon for sure.
>
> One comment still regarding to lli types. We can avoid warnings by
> using (__force u32) in macros.

But that won't give the benefits of having the types checked.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-20 19:24                                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 19:24 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> 
>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>> > > 
>> > > Code here:
>> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>> > 
>> > Thanks for testing!
>> 
>> Have you had time to look any more at these patches?
>
> Not yet.
> I will look soon for sure.
>
> One comment still regarding to lli types. We can avoid warnings by
> using (__force u32) in macros.

But that won't give the benefits of having the types checked.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 19:24                                                                                                                 ` Måns Rullgård
  (?)
@ 2016-01-20 19:38                                                                                                                 ` Andy Shevchenko
  2016-01-20 19:46                                                                                                                     ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-20 19:38 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, Jan 20, 2016 at 9:24 PM, Måns Rullgård <mans@mansr.com> wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>
>> On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>
>>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>>> > >
>>> > > Code here:
>>> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>>> >
>>> > Thanks for testing!
>>>
>>> Have you had time to look any more at these patches?
>>
>> Not yet.
>> I will look soon for sure.
>>
>> One comment still regarding to lli types. We can avoid warnings by
>> using (__force u32) in macros.
>
> But that won't give the benefits of having the types checked.

You mean if we access the lli->field directly? I didn't quite get what
use case you are keeping in mind.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 19:38                                                                                                                 ` Andy Shevchenko
@ 2016-01-20 19:46                                                                                                                     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 19:46 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Wed, Jan 20, 2016 at 9:24 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>
>>> On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>
>>>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>>>> > >
>>>> > > Code here:
>>>> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>>>> >
>>>> > Thanks for testing!
>>>>
>>>> Have you had time to look any more at these patches?
>>>
>>> Not yet.
>>> I will look soon for sure.
>>>
>>> One comment still regarding to lli types. We can avoid warnings by
>>> using (__force u32) in macros.
>>
>> But that won't give the benefits of having the types checked.
>
> You mean if we access the lli->field directly? I didn't quite get what
> use case you are keeping in mind.

Yes, accessing any of those fields directly with my patch gives a sparse
warning.  It's situations like these those checks are intended for.
Defeating them seems foolish to me.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-20 19:46                                                                                                                     ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 19:46 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Wed, Jan 20, 2016 at 9:24 PM, Måns Rullgård <mans@mansr.com> wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>
>>> On Wed, 2016-01-20 at 18:50 +0000, Måns Rullgård wrote:
>>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>>>
>>>> > > Tested on AVR32 (DMA driver) and Sigma SMP8642 (SATA driver).
>>>> > >
>>>> > > Code here:
>>>> > > https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata
>>>> >
>>>> > Thanks for testing!
>>>>
>>>> Have you had time to look any more at these patches?
>>>
>>> Not yet.
>>> I will look soon for sure.
>>>
>>> One comment still regarding to lli types. We can avoid warnings by
>>> using (__force u32) in macros.
>>
>> But that won't give the benefits of having the types checked.
>
> You mean if we access the lli->field directly? I didn't quite get what
> use case you are keeping in mind.

Yes, accessing any of those fields directly with my patch gives a sparse
warning.  It's situations like these those checks are intended for.
Defeating them seems foolish to me.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 19:46                                                                                                                     ` Måns Rullgård
  (?)
@ 2016-01-20 19:51                                                                                                                     ` Andy Shevchenko
  2016-01-20 20:07                                                                                                                         ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-20 19:51 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, Jan 20, 2016 at 9:46 PM, Måns Rullgård <mans@mansr.com> wrote:

>>>> One comment still regarding to lli types. We can avoid warnings by
>>>> using (__force u32) in macros.
>>>
>>> But that won't give the benefits of having the types checked.
>>
>> You mean if we access the lli->field directly? I didn't quite get what
>> use case you are keeping in mind.
>
> Yes, accessing any of those fields directly with my patch gives a sparse
> warning.  It's situations like these those checks are intended for.
> Defeating them seems foolish to me.

Otherwise it makes that struct looks ugly.
Why not union, though it still ugly, but less.

-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 19:51                                                                                                                     ` Andy Shevchenko
@ 2016-01-20 20:07                                                                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 20:07 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Wed, Jan 20, 2016 at 9:46 PM, Måns Rullgård <mans@mansr.com> wrote:
>
>>>>> One comment still regarding to lli types. We can avoid warnings by
>>>>> using (__force u32) in macros.
>>>>
>>>> But that won't give the benefits of having the types checked.
>>>
>>> You mean if we access the lli->field directly? I didn't quite get what
>>> use case you are keeping in mind.
>>
>> Yes, accessing any of those fields directly with my patch gives a sparse
>> warning.  It's situations like these those checks are intended for.
>> Defeating them seems foolish to me.
>
> Otherwise it makes that struct looks ugly.
> Why not union, though it still ugly, but less.

What's so ugly about it?  IMO data should be declared as the type it
actually is, and here we have fields that might have a different byte
order from the host CPU.  The __be32 and __le32 types were invented to
make such situations clear and allow automatic (sparse) checking.  I'd
say the price of one small typedef is well worth it.  The actual code is
not impacted since it must use the accessor macros anyhow.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-20 20:07                                                                                                                         ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-20 20:07 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> On Wed, Jan 20, 2016 at 9:46 PM, Måns Rullgård <mans@mansr.com> wrote:
>
>>>>> One comment still regarding to lli types. We can avoid warnings by
>>>>> using (__force u32) in macros.
>>>>
>>>> But that won't give the benefits of having the types checked.
>>>
>>> You mean if we access the lli->field directly? I didn't quite get what
>>> use case you are keeping in mind.
>>
>> Yes, accessing any of those fields directly with my patch gives a sparse
>> warning.  It's situations like these those checks are intended for.
>> Defeating them seems foolish to me.
>
> Otherwise it makes that struct looks ugly.
> Why not union, though it still ugly, but less.

What's so ugly about it?  IMO data should be declared as the type it
actually is, and here we have fields that might have a different byte
order from the host CPU.  The __be32 and __le32 types were invented to
make such situations clear and allow automatic (sparse) checking.  I'd
say the price of one small typedef is well worth it.  The actual code is
not impacted since it must use the accessor macros anyhow.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-20 20:07                                                                                                                         ` Måns Rullgård
  (?)
@ 2016-01-22 10:04                                                                                                                         ` Andy Shevchenko
  2016-01-22 11:13                                                                                                                             ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-22 10:04 UTC (permalink / raw)
  To: Måns Rullgård, Andy Shevchenko
  Cc: Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
> 
> > > > > > One comment still regarding to lli types. We can avoid
> > > > > > warnings by
> > > > > > using (__force u32) in macros.
> > > > > 
> > > > > But that won't give the benefits of having the types checked.
> > > > 
> > > > You mean if we access the lli->field directly? I didn't quite
> > > > get what
> > > > use case you are keeping in mind.
> > > 
> > > Yes, accessing any of those fields directly with my patch gives a
> > > sparse
> > > warning.  It's situations like these those checks are intended
> > > for.
> > > Defeating them seems foolish to me.
> > 
> > Otherwise it makes that struct looks ugly.
> > Why not union, though it still ugly, but less.
> 
> What's so ugly about it?  IMO data should be declared as the type it
> actually is, and here we have fields that might have a different byte
> order from the host CPU.  The __be32 and __le32 types were invented
> to
> make such situations clear and allow automatic (sparse)
> checking.  I'd
> say the price of one small typedef is well worth it.  The actual code
> is
> not impacted since it must use the accessor macros anyhow.

Okay, let's move with current state.

I have few style minors and a question.

So, in type definitions can we use __dw32 instead of dw_u32?
In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?

Now the question: who do you prefer to submit the series (dw_dmac)? Me
or you?

In case you would like to do it (what I see in your dwc-sata branch
today):
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2015-12-21 20:29                                                                                                   ` Julian Margetson
@ 2016-01-22 10:07                                                                                                     ` Andy Shevchenko
  0 siblings, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-22 10:07 UTC (permalink / raw)
  To: Julian Margetson, Måns Rullgård
  Cc: Andy Shevchenko, Tejun Heo, linux-ide, linux-kernel

On Mon, 2015-12-21 at 16:29 -0400, Julian Margetson wrote:
> On 12/21/2015 4:25 PM, Andy Shevchenko wrote:
> > On Mon, 2015-12-21 at 15:19 -0400, Julian Margetson wrote:
> > > On 12/21/2015 2:27 PM, Måns Rullgård wrote:
> > > > The hard drive is recognized .
> > > > > These system gets unresponsive with USB devices like the
> > > > > mouse
> > > > > and
> > > > > keyboard not responding  when I start Gparted.
> > > > Did you disable the SATA and DMA debug messages?
> > > > 
> > > It is working.
> > Indeed, thanks, Julian!
> > 
> > I might ask you to test my branch with set of patches when it will
> > be
> > ready (apparently after Xmas) if you are okay with that.
> > 
> > Måns, also I would ask you to test on your hardware (AVR32) as well
> > if
> > you have no objections.
> > 
> I have no problem testing.

Can you test now what Måns has in his dwc-sata branch?

https://bitbucket.org/mansr/linux-dwc/branch/dwc-sata

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-22 10:04                                                                                                                         ` Andy Shevchenko
@ 2016-01-22 11:13                                                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-22 11:13 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > > > > > One comment still regarding to lli types. We can avoid
>> > > > > > warnings by
>> > > > > > using (__force u32) in macros.
>> > > > > 
>> > > > > But that won't give the benefits of having the types checked.
>> > > > 
>> > > > You mean if we access the lli->field directly? I didn't quite
>> > > > get what
>> > > > use case you are keeping in mind.
>> > > 
>> > > Yes, accessing any of those fields directly with my patch gives a
>> > > sparse
>> > > warning.  It's situations like these those checks are intended
>> > > for.
>> > > Defeating them seems foolish to me.
>> > 
>> > Otherwise it makes that struct looks ugly.
>> > Why not union, though it still ugly, but less.
>> 
>> What's so ugly about it?  IMO data should be declared as the type it
>> actually is, and here we have fields that might have a different byte
>> order from the host CPU.  The __be32 and __le32 types were invented
>> to
>> make such situations clear and allow automatic (sparse)
>> checking.  I'd
>> say the price of one small typedef is well worth it.  The actual code
>> is
>> not impacted since it must use the accessor macros anyhow.
>
> Okay, let's move with current state.
>
> I have few style minors and a question.
>
> So, in type definitions can we use __dw32 instead of dw_u32?

Sure, no problem.

> In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?

Is there a wrong indentation somewhere?  I don't see it.

> Now the question: who do you prefer to submit the series (dw_dmac)? Me
> or you?
>
> In case you would like to do it (what I see in your dwc-sata branch
> today):
> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

I'll fix the above, give your changes a review, and add my sign-off
before sending the series, today or during the weekend.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-22 11:13                                                                                                                             ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-22 11:13 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>> 
>> > > > > > One comment still regarding to lli types. We can avoid
>> > > > > > warnings by
>> > > > > > using (__force u32) in macros.
>> > > > > 
>> > > > > But that won't give the benefits of having the types checked.
>> > > > 
>> > > > You mean if we access the lli->field directly? I didn't quite
>> > > > get what
>> > > > use case you are keeping in mind.
>> > > 
>> > > Yes, accessing any of those fields directly with my patch gives a
>> > > sparse
>> > > warning.  It's situations like these those checks are intended
>> > > for.
>> > > Defeating them seems foolish to me.
>> > 
>> > Otherwise it makes that struct looks ugly.
>> > Why not union, though it still ugly, but less.
>> 
>> What's so ugly about it?  IMO data should be declared as the type it
>> actually is, and here we have fields that might have a different byte
>> order from the host CPU.  The __be32 and __le32 types were invented
>> to
>> make such situations clear and allow automatic (sparse)
>> checking.  I'd
>> say the price of one small typedef is well worth it.  The actual code
>> is
>> not impacted since it must use the accessor macros anyhow.
>
> Okay, let's move with current state.
>
> I have few style minors and a question.
>
> So, in type definitions can we use __dw32 instead of dw_u32?

Sure, no problem.

> In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?

Is there a wrong indentation somewhere?  I don't see it.

> Now the question: who do you prefer to submit the series (dw_dmac)? Me
> or you?
>
> In case you would like to do it (what I see in your dwc-sata branch
> today):
> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

I'll fix the above, give your changes a review, and add my sign-off
before sending the series, today or during the weekend.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-22 11:13                                                                                                                             ` Måns Rullgård
  (?)
@ 2016-01-22 11:56                                                                                                                             ` Andy Shevchenko
  2016-01-22 12:05                                                                                                                                 ` Måns Rullgård
  -1 siblings, 1 reply; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-22 11:56 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Fri, 2016-01-22 at 11:13 +0000, Måns Rullgård wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
> > On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:

> > In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?
> 
> Is there a wrong indentation somewhere?  I don't see it.

My git diff shows this in particular:

--- a/drivers/dma/dw/core.c
+++ b/drivers/dma/dw/core.c
@@ -45,10 +45,10 @@
                        DW_DMA_MSIZE_16;                        \
                u8 _dmsize = _is_slave ? _sconfig->dst_maxburst
:       \
                        DW_DMA_MSIZE_16;                        \
-               u8 _dms = (_is_slave && _dwc->direction ==
DMA_MEM_TO_DEV) ? \
-                       _dwc->p_master : _dwc-
>m_master;                \
-               u8 _sms = (_is_slave && _dwc->direction ==
DMA_DEV_TO_MEM) ? \
-                       _dwc->p_master : _dwc-
>m_master;                \
+               u8 _dms = (_is_slave && _dwc->direction ==
DMA_MEM_TO_DEV) ?    \
+                          _dwc->p_master : _dwc-
>m_master;                     \
+               u8 _sms = (_is_slave && _dwc->direction ==
DMA_DEV_TO_MEM) ?    \
+                          _dwc->p_master : _dwc-
>m_master;                     \

Means in your case the ' \' is used, in mine — '\t\' at the end of
lines.

> Now the question: who do you prefer to submit the series (dw_dmac)?
> > Me
> > or you?
> > 
> > In case you would like to do it (what I see in your dwc-sata branch
> > today):
> > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> I'll fix the above, give your changes a review, and add my sign-off
> before sending the series, today or during the weekend.

OK.

Just to be sure we are on the same page. I assume your dwc-sata branch
as for submitting.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy


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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-22 11:56                                                                                                                             ` Andy Shevchenko
@ 2016-01-22 12:05                                                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-22 12:05 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Fri, 2016-01-22 at 11:13 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
>> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> > In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?
>> 
>> Is there a wrong indentation somewhere?  I don't see it.
>
> My git diff shows this in particular:
>
> --- a/drivers/dma/dw/core.c
> +++ b/drivers/dma/dw/core.c
> @@ -45,10 +45,10 @@
>                         DW_DMA_MSIZE_16;                        \
>                 u8 _dmsize = _is_slave ? _sconfig->dst_maxburst :       \
>                         DW_DMA_MSIZE_16;                        \
> -               u8 _dms = (_is_slave && _dwc->direction == DMA_MEM_TO_DEV) ? \
> -                       _dwc->p_master : _dwc->m_master;                \
> -               u8 _sms = (_is_slave && _dwc->direction == DMA_DEV_TO_MEM) ? \
> -                       _dwc->p_master : _dwc->m_master;                \
> +               u8 _dms = (_is_slave && _dwc->direction == DMA_MEM_TO_DEV) ?    \
> +                          _dwc->p_master : _dwc->m_master;                     \
> +               u8 _sms = (_is_slave && _dwc->direction == DMA_DEV_TO_MEM) ?    \
> +                          _dwc->p_master : _dwc->m_master;                     \
>
> Means in your case the ' \' is used, in mine — '\t\' at the end of
> lines.

Oh, I see it now.  Two lines have a space rather than a tab since a tab
would push them over 80 columns.  Now those lines could be shortened by
simply dropping the "_is_slave" since this is necessarily true if the
other half of the && is.

>> Now the question: who do you prefer to submit the series (dw_dmac)?
>> > Me
>> > or you?
>> > 
>> > In case you would like to do it (what I see in your dwc-sata branch
>> > today):
>> > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> 
>> I'll fix the above, give your changes a review, and add my sign-off
>> before sending the series, today or during the weekend.
>
> OK.
>
> Just to be sure we are on the same page. I assume your dwc-sata branch
> as for submitting.

Yes, I'm not aware of anything that needs to change in that branch.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
@ 2016-01-22 12:05                                                                                                                                 ` Måns Rullgård
  0 siblings, 0 replies; 154+ messages in thread
From: Måns Rullgård @ 2016-01-22 12:05 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:

> On Fri, 2016-01-22 at 11:13 +0000, Måns Rullgård wrote:
>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> > On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
>> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:
>
>> > In DWC_DEFAULT_CTLLO() can we do tab indentation for \ ?
>> 
>> Is there a wrong indentation somewhere?  I don't see it.
>
> My git diff shows this in particular:
>
> --- a/drivers/dma/dw/core.c
> +++ b/drivers/dma/dw/core.c
> @@ -45,10 +45,10 @@
>                         DW_DMA_MSIZE_16;                        \
>                 u8 _dmsize = _is_slave ? _sconfig->dst_maxburst :       \
>                         DW_DMA_MSIZE_16;                        \
> -               u8 _dms = (_is_slave && _dwc->direction == DMA_MEM_TO_DEV) ? \
> -                       _dwc->p_master : _dwc->m_master;                \
> -               u8 _sms = (_is_slave && _dwc->direction == DMA_DEV_TO_MEM) ? \
> -                       _dwc->p_master : _dwc->m_master;                \
> +               u8 _dms = (_is_slave && _dwc->direction == DMA_MEM_TO_DEV) ?    \
> +                          _dwc->p_master : _dwc->m_master;                     \
> +               u8 _sms = (_is_slave && _dwc->direction == DMA_DEV_TO_MEM) ?    \
> +                          _dwc->p_master : _dwc->m_master;                     \
>
> Means in your case the ' \' is used, in mine — '\t\' at the end of
> lines.

Oh, I see it now.  Two lines have a space rather than a tab since a tab
would push them over 80 columns.  Now those lines could be shortened by
simply dropping the "_is_slave" since this is necessarily true if the
other half of the && is.

>> Now the question: who do you prefer to submit the series (dw_dmac)?
>> > Me
>> > or you?
>> > 
>> > In case you would like to do it (what I see in your dwc-sata branch
>> > today):
>> > Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> 
>> I'll fix the above, give your changes a review, and add my sign-off
>> before sending the series, today or during the weekend.
>
> OK.
>
> Just to be sure we are on the same page. I assume your dwc-sata branch
> as for submitting.

Yes, I'm not aware of anything that needs to change in that branch.

-- 
Måns Rullgård

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

* Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
  2016-01-22 12:05                                                                                                                                 ` Måns Rullgård
  (?)
@ 2016-01-22 12:15                                                                                                                                 ` Andy Shevchenko
  -1 siblings, 0 replies; 154+ messages in thread
From: Andy Shevchenko @ 2016-01-22 12:15 UTC (permalink / raw)
  To: Måns Rullgård
  Cc: Andy Shevchenko, Julian Margetson, Tejun Heo, linux-ide, linux-kernel

On Fri, Jan 22, 2016 at 2:05 PM, Måns Rullgård <mans@mansr.com> wrote:
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>> On Fri, 2016-01-22 at 11:13 +0000, Måns Rullgård wrote:
>>> Andy Shevchenko <andriy.shevchenko@linux.intel.com> writes:
>>> > On Wed, 2016-01-20 at 20:07 +0000, Måns Rullgård wrote:
>>> > > Andy Shevchenko <andy.shevchenko@gmail.com> writes:

>> +               u8 _dms = (_is_slave && _dwc->direction == DMA_MEM_TO_DEV) ?    \
>> +                          _dwc->p_master : _dwc->m_master;                     \
>> +               u8 _sms = (_is_slave && _dwc->direction == DMA_DEV_TO_MEM) ?    \
>> +                          _dwc->p_master : _dwc->m_master;                     \

> Oh, I see it now.  Two lines have a space rather than a tab since a tab
> would push them over 80 columns.  Now those lines could be shortened by
> simply dropping the "_is_slave" since this is necessarily true if the
> other half of the && is.

Yes, direction is precisely from the _is_slave space.

-- 
With Best Regards,
Andy Shevchenko

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

end of thread, other threads:[~2016-01-22 12:15 UTC | newest]

Thread overview: 154+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-15 23:25 [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Mans Rullgard
2015-12-15 23:25 ` [PATCH 2/3] ata: sata_dwc_460ex: add phy support Mans Rullgard
2015-12-16 11:14   ` Sergei Shtylyov
2015-12-16 11:24     ` Måns Rullgård
2015-12-15 23:25 ` [PATCH 3/3] ata: sata_dwc_460ex: get rid of global data Mans Rullgard
2015-12-17 15:06   ` Andy Shevchenko
2015-12-17 15:19     ` Måns Rullgård
2015-12-17 15:37       ` Andy Shevchenko
2015-12-17 15:57         ` Måns Rullgård
2015-12-15 23:34 ` [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Måns Rullgård
2015-12-17 14:59   ` Andy Shevchenko
2015-12-17 15:13     ` Måns Rullgård
2015-12-17 15:55       ` Andy Shevchenko
2015-12-17 16:04         ` Måns Rullgård
2015-12-17 16:53           ` Andy Shevchenko
2015-12-17 17:57             ` Julian Margetson
2015-12-17 17:59               ` Måns Rullgård
     [not found]                 ` <567302E8.5050303@candw.ms>
2015-12-17 18:51                   ` Måns Rullgård
     [not found]                     ` <5673061A.4070700@candw.ms>
2015-12-17 19:53                       ` Måns Rullgård
     [not found]                         ` <56732C04.9040100@candw.ms>
2015-12-18  0:06                           ` Måns Rullgård
2015-12-18  0:59                             ` Julian Margetson
2015-12-18  1:38                               ` Måns Rullgård
2015-12-18 11:48                             ` Julian Margetson
2015-12-18 12:04                               ` Måns Rullgård
2015-12-18 12:23                                 ` Andy Shevchenko
2015-12-18 12:49                                   ` Måns Rullgård
     [not found]                                     ` <5674271B.9090308@candw.ms>
2015-12-18 17:18                                       ` Måns Rullgård
2015-12-18 18:48                                         ` Andy Shevchenko
     [not found]                                         ` <56745BA4.1090607@candw.ms>
2015-12-18 22:33                                           ` Måns Rullgård
2015-12-18 22:49                                             ` Julian Margetson
2015-12-18 23:16                                               ` Måns Rullgård
2015-12-19  2:34                                                 ` Andy Shevchenko
2015-12-19 11:39                                                   ` Julian Margetson
2015-12-19 15:40                                                     ` Måns Rullgård
2015-12-19 15:40                                                       ` Måns Rullgård
     [not found]                                                       ` <567585CD.9080105@candw.ms>
2015-12-19 16:39                                                         ` Måns Rullgård
2015-12-19 16:39                                                           ` Måns Rullgård
2015-12-19 16:56                                                       ` Andy Shevchenko
2015-12-19 17:05                                                         ` Måns Rullgård
2015-12-19 17:05                                                           ` Måns Rullgård
2015-12-19 17:09                                                           ` Julian Margetson
2015-12-19 17:11                                                             ` Andy Shevchenko
2015-12-19 17:19                                                             ` Måns Rullgård
2015-12-19 17:19                                                               ` Måns Rullgård
2015-12-19 18:56                                                               ` Julian Margetson
2015-12-19 19:07                                                                 ` Måns Rullgård
2015-12-19 19:07                                                                   ` Måns Rullgård
2015-12-19 20:16                                                                   ` Julian Margetson
2015-12-19 20:39                                                                     ` Andy Shevchenko
2015-12-19 20:41                                                                       ` Måns Rullgård
2015-12-19 20:41                                                                         ` Måns Rullgård
2015-12-19 20:48                                                                         ` Julian Margetson
2015-12-19 20:55                                                                         ` Julian Margetson
2015-12-20 17:11                                                                           ` Måns Rullgård
2015-12-20 17:11                                                                             ` Måns Rullgård
2015-12-20 17:41                                                                             ` Andy Shevchenko
2015-12-20 17:54                                                                               ` Måns Rullgård
2015-12-20 17:54                                                                                 ` Måns Rullgård
2015-12-20 17:44                                                                             ` Julian Margetson
2015-12-20 18:49                                                                               ` Måns Rullgård
2015-12-20 18:49                                                                                 ` Måns Rullgård
2015-12-20 20:17                                                                                 ` Andy Shevchenko
2015-12-20 20:55                                                                                   ` Andy Shevchenko
2015-12-21  1:19                                                                                     ` Måns Rullgård
2015-12-21  1:19                                                                                       ` Måns Rullgård
2015-12-21 19:08                                                                                       ` Andy Shevchenko
2015-12-21 19:27                                                                                         ` Måns Rullgård
2015-12-21 19:27                                                                                           ` Måns Rullgård
2015-12-21 20:54                                                                                           ` Andy Shevchenko
2015-12-21 21:06                                                                                             ` Måns Rullgård
2015-12-21 21:06                                                                                               ` Måns Rullgård
2015-12-22  0:08                                                                                             ` Måns Rullgård
2015-12-22  0:08                                                                                               ` Måns Rullgård
2015-12-22 10:58                                                                                               ` Andy Shevchenko
2016-01-06 16:26                                                                                                 ` Måns Rullgård
2016-01-06 16:26                                                                                                   ` Måns Rullgård
2016-01-06 17:36                                                                                                   ` Andy Shevchenko
2016-01-07  9:34                                                                                                     ` Andy Shevchenko
2016-01-07 18:32                                                                                                       ` Måns Rullgård
2016-01-07 18:32                                                                                                         ` Måns Rullgård
2016-01-08  8:57                                                                                                         ` Andy Shevchenko
2016-01-08 10:57                                                                                                           ` Måns Rullgård
2016-01-08 10:57                                                                                                             ` Måns Rullgård
2016-01-20 18:50                                                                                                           ` Måns Rullgård
2016-01-20 18:50                                                                                                             ` Måns Rullgård
2016-01-20 19:23                                                                                                             ` Andy Shevchenko
2016-01-20 19:24                                                                                                               ` Måns Rullgård
2016-01-20 19:24                                                                                                                 ` Måns Rullgård
2016-01-20 19:38                                                                                                                 ` Andy Shevchenko
2016-01-20 19:46                                                                                                                   ` Måns Rullgård
2016-01-20 19:46                                                                                                                     ` Måns Rullgård
2016-01-20 19:51                                                                                                                     ` Andy Shevchenko
2016-01-20 20:07                                                                                                                       ` Måns Rullgård
2016-01-20 20:07                                                                                                                         ` Måns Rullgård
2016-01-22 10:04                                                                                                                         ` Andy Shevchenko
2016-01-22 11:13                                                                                                                           ` Måns Rullgård
2016-01-22 11:13                                                                                                                             ` Måns Rullgård
2016-01-22 11:56                                                                                                                             ` Andy Shevchenko
2016-01-22 12:05                                                                                                                               ` Måns Rullgård
2016-01-22 12:05                                                                                                                                 ` Måns Rullgård
2016-01-22 12:15                                                                                                                                 ` Andy Shevchenko
2015-12-21 16:48                                                                                     ` Andy Shevchenko
2015-12-21 17:20                                                                                       ` Julian Margetson
2015-12-21 17:26                                                                                       ` Julian Margetson
2015-12-21 17:55                                                                                         ` Andy Shevchenko
2015-12-21 18:23                                                                                           ` Julian Margetson
2015-12-21 18:27                                                                                             ` Måns Rullgård
2015-12-21 18:27                                                                                               ` Måns Rullgård
2015-12-21 19:08                                                                                               ` Julian Margetson
2015-12-21 19:19                                                                                               ` Julian Margetson
2015-12-21 19:27                                                                                                 ` Måns Rullgård
2015-12-21 19:27                                                                                                   ` Måns Rullgård
2015-12-21 19:47                                                                                                   ` Julian Margetson
2015-12-21 20:25                                                                                                 ` Andy Shevchenko
2015-12-21 20:29                                                                                                   ` Julian Margetson
2016-01-22 10:07                                                                                                     ` Andy Shevchenko
2015-12-21 20:33                                                                                                   ` Måns Rullgård
2015-12-21 20:33                                                                                                     ` Måns Rullgård
2015-12-21 18:25                                                                                           ` Måns Rullgård
2015-12-21 18:25                                                                                             ` Måns Rullgård
2015-12-21  0:47                                                                                   ` Måns Rullgård
2015-12-21  0:47                                                                                     ` Måns Rullgård
2015-12-21  0:53                                                                                     ` Måns Rullgård
2015-12-21  0:53                                                                                       ` Måns Rullgård
2015-12-21  0:58                                                                                   ` Måns Rullgård
2015-12-21  0:58                                                                                     ` Måns Rullgård
2015-12-21  8:40                                                                                     ` Andy Shevchenko
2015-12-21 12:15                                                                                       ` Måns Rullgård
2015-12-21 12:15                                                                                         ` Måns Rullgård
2015-12-21 17:24                                                                                         ` Andy Shevchenko
2015-12-21 18:16                                                                                           ` Måns Rullgård
2015-12-21 18:16                                                                                             ` Måns Rullgård
2015-12-21 19:23                                                                                             ` Andy Shevchenko
2015-12-21 19:50                                                                                               ` Måns Rullgård
2015-12-21 19:50                                                                                                 ` Måns Rullgård
     [not found]                                                                                       ` <5677D447.40906@candw.ms>
2015-12-21 12:16                                                                                         ` Måns Rullgård
2015-12-21 12:16                                                                                           ` Måns Rullgård
2015-12-21 13:18                                                                                           ` Julian Margetson
2015-12-21 13:24                                                                                             ` Måns Rullgård
2015-12-21 13:24                                                                                               ` Måns Rullgård
2015-12-21 14:40                                                                                               ` Julian Margetson
2015-12-21 15:24                                                                                                 ` Måns Rullgård
2015-12-21 15:24                                                                                                   ` Måns Rullgård
2015-12-21 16:44                                                                                                   ` Andy Shevchenko
2015-12-21 18:19                                                                                                     ` Måns Rullgård
2015-12-21 18:19                                                                                                       ` Måns Rullgård
2015-12-18 12:33                                 ` Julian Margetson
2015-12-18 12:38                                   ` Andy Shevchenko
2015-12-18 12:45                                   ` Måns Rullgård
     [not found]                                     ` <56740F9F.5020500@candw.ms>
2015-12-18 14:24                                       ` Andy Shevchenko
2015-12-18 14:27                                       ` Måns Rullgård
2015-12-18 10:08                           ` Andy Shevchenko
2015-12-18 11:24                             ` Måns Rullgård
2015-12-17 14:58 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.