public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hansverk@cisco.com>
To: xjtuwjp@gmail.com, lindar_liu@usish.com
Cc: linux-scsi@vger.kernel.org
Subject: The pm80xx driver hangs in 3.10 with the Adaptec 71605H HBA
Date: Fri, 12 Jul 2013 13:02:06 +0200	[thread overview]
Message-ID: <201307121302.06856.hansverk@cisco.com> (raw)

Hi!

I am trying to get my Adaptec 71605H HBA to work with kernel 3.10.
Unfortunately it hangs while waiting for a completion.

After registering all the interrupts the pm8001_pci_probe() function calls
pm8001_init_sas_add(). That function calls PM8001_CHIP_DISP->get_nvmd_req()
and waits for a completion that never happens.

I tried to use the drivers available from the Adaptec website, and after
hacking them so they compiled again with 3.10 I just copied those sources
over to the kernel, recompiled and tested those. And lo and behold, that
actually worked! So the Adaptec drivers do something that the current kernel
drivers don't.

The patch I applied to the 3.10 kernel to effectively update the current
drivers with those from Adaptec is here:

http://hverkuil.home.xs4all.nl/0002-pm80xx-copy-over-adaptec-drivers.patch

The original drivers from Adaptec are here:

http://www.adaptec.com/en-us/downloads/rh/rhel_6/productid=asa-71605h&dn=adaptec+71605h.html

I tried to find relevant differences that might explain why the adaptec
version works while the current 3.10 doesn't, but nothing jumped out to
me.

It's no problem to test any patches you have, or to do some debugging if
someone can point me in the right direction.

Regards,

	Hans

             reply	other threads:[~2013-07-12 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12 11:02 Hans Verkuil [this message]
     [not found] ` <CAD+HZHUc7wULDUpKq24rmcVC9MCcgaoO4i1LxGcW-q-y-c3tcQ@mail.gmail.com>
     [not found]   ` <201307121419.50786.hansverk@cisco.com>
     [not found]     ` <E5DEE6F468524847995699AD11E8088501B28CAA@BBY1EXM11.pmc_nt.nt.pmc-sierra.bc.ca>
2013-07-14  8:45       ` The pm80xx driver hangs in 3.10 with the Adaptec 71605H HBA Hans Verkuil
2013-07-15  8:53         ` Jack Wang
2013-07-15 12:37           ` Anand Kumar Santhanam
2013-07-15 13:02             ` Hans Verkuil
2013-07-15 13:08             ` Jack Wang

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=201307121302.06856.hansverk@cisco.com \
    --to=hansverk@cisco.com \
    --cc=lindar_liu@usish.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=xjtuwjp@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox