Re: sata_mv: module reloading doesn't work

From: Dan Aloni
Date: Sun Apr 02 2006 - 18:43:10 EST


On Sun, Apr 02, 2006 at 11:59:45AM -0600, Eric D. Mudama wrote:
> On 4/2/06, Dan Aloni <da-x@xxxxxxxxxxxxx> wrote:
> > Hello,
> >
> > I'm testing the sata_mv driver to see whether reloading (rmmod
> > - insmod) works, and it seems something is broken there. The
> > first insmod goes okay - however all the insmods that follow
> > emit error=0x01 { AddrMarkNotFound } and status=0x50 { DriveReady
> > SeekComplete } from all the drives.
>
> More to Jeff/Mark etc... wouldn't this be expected? 0x50/0x01 is the
> contents of a reset signature FIS. If the module was removed, and
> upon insmod the bus came back up, the drive would complete ASR or
> COMRESET processing and post a signature FIS. Is the phy disabled
> when sata_mv is removed?

Should it be disabled or enabled? BTW it seems that the Marvell 3.6.1
propriety controller driver doesn't exhibit this problem so we can
exclude hardware faults.

It looks more like a problem between the controller and the driver.
I'm not an expert in PCI, but according to my observation so far,
the PCI_STATUS_SIG_TARGET_ABORT bit is turned on in the config space
after the driver is unloaded and that might indicate something bad.

kernel: PCI config space regs:
-kernel: 00: 608111ab 02b00317 01000009 00002008
+kernel: 00: 608111ab 02b80713 01000009 00002008

--
Dan Aloni, Linux specialist
XIV LTD, http://www.xivstorage.com
da-x@xxxxxxxxxxxxx, da-x@xxxxxxxxxxx, da-x@xxxxxxx, dan@xxxxxxxxx
-
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/