All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Guy Martin <gmsoft@tuxicoman.be>, linux-parisc@vger.kernel.org
Subject: Re: Issue with pata_sil680
Date: Mon, 20 Jan 2014 21:12:43 +0100	[thread overview]
Message-ID: <52DD833B.2010907@gmx.de> (raw)
In-Reply-To: <b1936c5daf63913a0a5d0c37b7ebc425@tuxicoman.be>

Hi Guy,

On 01/20/2014 01:24 PM, Guy Martin wrote:
> I tried to switch to the ATA drivers but I keep getting a panic
> whenever I load the pata_sil680 module on my C8000 
> 
> Kconfig : http://bpaste.net/show/170067/
> Kver : 3.12.8-gentoo
> 
> This is the backtrace :
> insmoterminator ~ # insmod pata_sil680.ko
> pata_sil680 0000:60:02.0: version 0.4.9
> pata_sil680 0000:60:02.0: sil680: BA5_EN = 1 clock = 00
> pata_sil680 0000:60:02.0: sil680: BA5_EN = 1 clock = 10
> sil680: 133MHz clock.
> Backtrace:
>  [<00000000401ad0c4>] handle_percpu_irq+0xbc/0xf8
>  [<00000000401a62c4>] generic_handle_irq+0x4c/0x68
>  [<00000000401062a4>] syscall_do_resched+0x28/0x34
>  [<000000004011e1f8>] execute_on_irq_stack+0x70/0xb8
....
> 
> If I hack the driver to enable MMIO, I have the following backtrace :
> scsi2 : pata_sil680
> scsi3 : pata_sil680
> ata1: PATA max UDMA/133 irq 71
> ata2: PATA max UDMA/133 irq 71
> scsi 3:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-4082B A208 PQ: 0 ANSI: 5
> ata2.00: configured for UDMA/66
> sr0: scsi3-mmc drive: 32x/32x writer dvd-ram cd/rw xa/form2 cdda tray
> cdrom: Uniform CD-ROM driver Revision: 3.20
> sr 3:0:0:0: Attached scsi CD-ROM sr0
> sr 3:0:0:0: Attached scsi generic sg1 type 5
>  [<00000000401ad0c4>] handle_percpu_irq+0xbc/0xf8
>  [<00000000401a62c4>] generic_handle_irq+0x4c/0x68
>  [<00000000401062a4>] syscall_do_resched+0x28/0x34
> 
> 
> With MMIO, it goes a little bit further as it detects the drive correctly but eventually fails the same way.
> 
> As far as I understand the backtrace, it would seem that an IRQ
> handler function pointer is set to NULL or some NULL pointer deref
> occurs in the IRQ handler. Also, this is not the original DVD drive
> from the C8000. I replaced it with a DVD burner.> 
> How idea what can be the issue ?

I'm just guessing here since I would need to test myself.
But James Bottomley found once, that the secondary port of the cmd64x controller
was not completely wired physically up on parisc.
He posted a patch series here:  
http://www.spinics.net/lists/linux-ide/msg40816.html
Maybe there is some similarity for pata_sil680 too, esp. since it seems from
the log above that you connected your DVD drive to the secondary port (scsi3).
What happens if you connect it to scsi2/the first pata port instead? 

Helge

  reply	other threads:[~2014-01-20 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 12:24 Issue with pata_sil680 Guy Martin
2014-01-20 20:12 ` Helge Deller [this message]
2014-01-21  7:05   ` Guy Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52DD833B.2010907@gmx.de \
    --to=deller@gmx.de \
    --cc=gmsoft@tuxicoman.be \
    --cc=linux-parisc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.