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	[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	[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	[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	[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	[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	[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
\r
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
\r
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	[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	[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	[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	[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	[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	[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
\r
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.
\r
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	[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_D