Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

From: Andy Shevchenko
Date: Fri Dec 18 2015 - 13:48:49 EST


On Fri, 2015-12-18 at 17:18 +0000, MÃns RullgÃrd wrote:
> Julian Margetson <runaway@xxxxxxxx> writes:
>
> > On 12/18/2015 8:49 AM, MÃns RullgÃrd wrote:
> > > Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx>
Intel Finland Oy

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/