linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Marvell 88SE6121 PATA in 2.6.25 (ahci)
@ 2008-05-05  4:55 Mike Hokenson
  2008-05-05 14:52 ` Jeff Garzik
  2008-05-15 13:07 ` Alan Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Hokenson @ 2008-05-05  4:55 UTC (permalink / raw)
  To: linux-ide

Hi list,

I just noticed my Marvell 88SE6121 PATA controller isn't working in
2.6.25. pata_marvell.c is more or less untouched (removal of a return
in a void), but drivers/ata/ahci.c had some changes:

!       { PCI_VDEVICE(MARVELL, 0x6121), board_ahci_mv },        /* 6121 */

        /*
         * Temporary Marvell 6145 hack: PATA port presence
         * is asserted through the standard AHCI port
         * presence register, as bit 4 (counting from 0)
         */
        if (hpriv->flags & AHCI_HFLAG_MV_PATA) {
!               if (pdev->device == 0x6121)
!                       mv = 0x3;
!               else
!                       mv = 0xf;
                dev_printk(KERN_ERR, &pdev->dev,
                           "MV_AHCI HACK: port_map %x -> %x\n",
                           port_map,
                           port_map & mv);

                port_map &= mv;
        }

I'm using AHCI for an Intel ICH controller which runs two SATA hard
drives and one SATA DVD drive.

My dmesg used to look like this:

ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
PCI: Setting latency timer of device 0000:03:00.0 to 64
scsi6 : pata_marvell
scsi7 : pata_marvell
ata7: PATA max UDMA/100 cmd 0xcc00 ctl 0xc880 bmdma 0xc400 irq 10
ata8: PATA max UDMA/133 cmd 0xc800 ctl 0xc480 bmdma 0xc408 irq 10
BAR5:00:02 01:7F 02:22 03:CA 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:07 0D:00 0E:00 0F:00 
ata7.00: ATAPI: DVD RW DRU-820A, 1.0c, max UDMA/66
ata7.00: configured for UDMA/66
BAR5:00:02 01:7F 02:22 03:CA 04:00 05:00 06:00 07:00 08:00 09:00 0A:00 0B:00 0C:07 0D:00 0E:00 0F:00 
scsi 6:0:0:0: CD-ROM            SONY     DVD RW DRU-820A  1.0c PQ: 0 ANSI: 5
sr1: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
sr 6:0:0:0: Attached scsi CD-ROM sr1
sr 6:0:0:0: Attached scsi generic sg3 type 5

and now looks like this:

ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16
ahci 0000:03:00.0: controller can't do NCQ, turning off CAP_NCQ
ahci 0000:03:00.0: MV_AHCI HACK: port_map 7 -> 3
ahci 0000:03:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl IDE mode
ahci 0000:03:00.0: flags: 64bit stag led pmp slum part 
PCI: Setting latency timer of device 0000:03:00.0 to 64
scsi6 : ahci
scsi7 : ahci
ata7: SATA max UDMA/133 abar m1024@0xfe9ffc00 port 0xfe9ffd00 irq 16
ata8: SATA max UDMA/133 abar m1024@0xfe9ffc00 port 0xfe9ffd80 irq 16
ata9: DUMMY
ata7: SATA link down (SStatus 0 SControl 300)
ata8: SATA link down (SStatus 0 SControl 300)

So, I guess the AHCI driver has taken over for the PATA controller,
but something must not be right... The controller doesn't see link
and the drive doesn't show up anywhere, but the BIOS sees it fine.

Any ideas? Should I disable PATA_MARVELL?

Thanks,

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-15 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05  4:55 Marvell 88SE6121 PATA in 2.6.25 (ahci) Mike Hokenson
2008-05-05 14:52 ` Jeff Garzik
2008-05-05 18:41   ` Mike Hokenson
2008-05-15 13:07 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).