Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Marvell 88SE6111 IDE Problems

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
58 posts
  • Previous
  • 1
  • 2
  • 3
Author
Message
emerald
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Sun Jul 31, 2005 3:39 pm

  • Quote

Post by emerald » Fri Jun 12, 2009 6:42 pm

The mv_thor is the driver Marvell supplied. The ahci driver supports the sata ports for quite a while now, the 'Marvell PATA support via legacy mode' driver (mv ?) supports the parallel ata ports of this chip now, so the Marvell provided driver is no longer necessary but everything is working with the in-kernel drivers now.

About renaming the harddisks it's possible it changed in some setups, so just rename it and everything should work well again.
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Top
aceistheplace
n00b
n00b
Posts: 1
Joined: Mon Jul 27, 2009 1:46 pm

Can't dectect SATA drives on a Marvell controller

  • Quote

Post by aceistheplace » Mon Jul 27, 2009 10:31 pm

This a question for Emerald.

I’ve been wrestling with a Marvell drive controller for some time now and since it appears you have a working knowledge of these devices, I hope you can help me.

I have an Asus P5E WS motherboard. It has a Marvell drive controller that supposedly can handle two PATA devices and four SATA drives. The chip is a 6145. At the moment, I have Linux installed on an IDE hard drive and also have SATA drives connected to the Marvel controller. I am running Linux version 2.6.30.3.

The problem is that while Linux see the PATA devices just fine, it never sees the SATA drives. As I understand it, the current libraries should be able to show both the PATA and SATA devices.

I’m not positive that the problem doesn’t lie with the BIOS. The regular BIOS has two options for the Marvell chip. The first option activates/deactivates the Marvell chip. This has to be in the activate mode for anything to work with the Marvell. The second option sets the mode for the Marvell chip. The choices are Disabled, Legacy, and RAID.

Setting the option to Legacy (which is where I currently have it) allows the BIOS to see the PATA devices in the boot device section, but not the SATA devices. At this setting, I can install Linux on the IDE drive. Setting the option to RAID (without actually setting up a RAID array) has the BIOS seeing both the PATA and SATA devices, but with the designation “RAID” in front of their names. However, with the option in this setting, the Linux install CD will boot, but not find any drives to install on, and then not even find itself at install time. This is also the case if I switch the setting after installing Linux on the IDE drive. In the Legacy mode it will boot from the IDE drive, in the RAID mode it will not.

Going into the separate Marvell BIOS, the only options are to setup a RAID array or not, I have not attempted to setup an array there.

Do you have any insight? Should I try installing your Marvell driver? Or maybe the AHCI-don’t-claim patch? Perhaps attempt to specify some code at install time so that Linux can detect the drives if the Marvell option is set to RAID in the BIOS?

thanks
Top
emerald
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Sun Jul 31, 2005 3:39 pm

  • Quote

Post by emerald » Mon Jul 27, 2009 10:38 pm

The in-kernel drivers support the marvell chip in legacy mode, so bios should be set to legacy mode. the sata ports will be handled by the ahci driver, so it's necessary to have this one too. I've built support for both, the ahci and marvell driver into the kernel and the pata and all 4 sata (2 esata) ports work as expected.
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Top
SimianRage
n00b
n00b
User avatar
Posts: 30
Joined: Thu Oct 03, 2002 6:48 am
Location: Indiana
Contact:
Contact SimianRage
Website

thanks

  • Quote

Post by SimianRage » Fri Sep 04, 2009 3:20 pm

Emerald, I just updated from a 2.6.28 to 2.6.30 kernel and as you stated I didn't need to use the patches anymore to get my IDE DVD working. Just wanted to say thanks a bunch for providing those patches and your knowledge as they were of great value over the past year or so.
Top
dAlexis
n00b
n00b
User avatar
Posts: 63
Joined: Sun Apr 18, 2004 9:23 am
Location: Moscow region,Russia

  • Quote

Post by dAlexis » Sun Oct 18, 2009 2:06 pm

Question about RAID mode and kernel drivers:

Kernel 2.6.31-r3,
CONFIG_SATA_MV=m
CONFIG_MD_RAID0=y

Dmesg says:

Code: Select all

dmesg | grep ahci
ahci 0000:00:12.0: version 3.0
ahci 0000:00:12.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
ahci 0000:00:12.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
ahci 0000:00:12.0: flags: 64bit ncq sntf ilck led clo pmp pio
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
ahci 0000:05:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ahci 0000:05:00.0: controller can't do NCQ, turning off CAP_NCQ
ahci 0000:05:00.0: controller can't do PMP, turning off CAP_PMP
ahci 0000:05:00.0: MV_AHCI HACK: port_map 7 -> 3
ahci 0000:05:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
ahci: SSS flag set, parallel bus scan disabled
ahci 0000:05:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl RAID mode
ahci 0000:05:00.0: flags: 64bit stag led slum part
ahci 0000:05:00.0: setting latency timer to 64
scsi4 : ahci
scsi5 : ahci
scsi6 : ahci
ahci 0000:07:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
ahci 0000:07:00.0: controller can't do NCQ, turning off CAP_NCQ
ahci 0000:07:00.0: controller can't do PMP, turning off CAP_PMP
ahci 0000:07:00.0: MV_AHCI HACK: port_map 7 -> 3
ahci 0000:07:00.0: Disabling your PATA port. Use the boot option 'ahci.marvell_enable=0' to avoid this.
ahci: SSS flag set, parallel bus scan disabled
ahci 0000:07:00.0: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x3 impl RAID mode
ahci 0000:07:00.0: flags: 64bit stag led slum part
ahci 0000:07:00.0: setting latency timer to 64
scsi7 : ahci
scsi8 : ahci
scsi9 : ahci

Pata support not compiled (only SATA drives are attached: Asus M3A32 MVP Deluxe )

RAID drives (for me - sdc&sdd) are visible, but no raid autodetect and other raid tools dont't see the RAID, created by marvell raid bios. Partition was created in Vista, but I think that raid bios must set right marks on drives. Any advice?
Maybe, marvell driver is (was?) better, because better raid bios handling?
"The Matrix has you!" - "Let it be...."
Top
emerald
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Sun Jul 31, 2005 3:39 pm

  • Quote

Post by emerald » Tue Oct 20, 2009 8:50 pm

I don't know if Linux supports the Marvel controller in RAID mode at all, so no guarantee given. About your Marvell bios RAID, I don't know if it can be recognized at all, dmraid should do the job for all supported software (fakeraid) raid setups. If you want to try the Marvell provided driver you can use it with an older kernel and try if it works, I won't be keeping the thing up and working for newer kernels since I don't use it at all anymore and in-kernel drivers support the controller as needed. So it would be yours to do. (I don't even know if the Marvell driver provides RAID functionality at all.)
Other than that I'd highly recommend not to to use the Marvell bios RAID at all but only plain harddisks. I for my part loathe all those fakeraid setups, they make you have alot more work and (in my experience) provide hardly any improvement in data rate or anything. And in case your mainboard dies you really have alot of work just to get your data back from those RAID thingies.
Knowledge is scary....

... running Gentoo Linux ...
... and Windows in a 'small corner'(C) - i.e. vmware - :D ...
System Profile

Don't open the Red Door !
Top
ecore
n00b
n00b
Posts: 1
Joined: Tue Apr 13, 2010 2:33 pm

  • Quote

Post by ecore » Tue Apr 13, 2010 3:09 pm

emerald wrote:The in-kernel drivers support the marvell chip in legacy mode, so bios should be set to legacy mode. the sata ports will be handled by the ahci driver, so it's necessary to have this one too. I've built support for both, the ahci and marvell driver into the kernel and the pata and all 4 sata (2 esata) ports work as expected.
Hi, emerald:

I have a Marvell 88SE6141 SATA2 controller chip on my Asus P5WD2-E Premium board, and I couldn't use it under Linux ... I've tried a lot, for example, adding the device id into ahci.c (recent kernels support 6121 and 6145, but do not support 6141, which seems strange to me), but instead of just working, it reports Failed to IDENTIFY and give err_mask 0x80 or 0x04 to me during booting, and no HDD attached could be seen; I also tried to apply the mv_thor (mv61xx) driver to my kernels (2.6.28.9, ..., 2.6.33.2), and it fails to build, then I modified some of the content of the mv61xx driver's source, such as changing the renamed scsi structure and enum with 'blk_' prefix and so on, it compiles, it loads and report successfully initialized the Marvell 6141 chip, but when I add a HDD to one of the 6141's SATA ports, nothing happens, and dmesg shows a HotPlug error with intStatus = 0x80000000, it doesn't work if I reboot the machine with the HDD attached (I think it should not be 'HotPlug'), increasing the debugging level of the mv61xx shows nothing really useful ...

Would you please give me some advice on using the Marvell 6141 chip or could I supply more information?

Thanks!
Top
Fry-kun
n00b
n00b
Posts: 1
Joined: Thu Mar 10, 2011 1:47 am

  • Quote

Post by Fry-kun » Thu Mar 10, 2011 1:50 am

Emerald,

First, thanks for maintaining the mv_thor patches for as long as you did.
Next, apparently there's a problem with the AHCI implementation -- it doesn't support port multipliers. Do you know enough about the mv_thor driver and/or AHCI driver to help me figure out what the problem is? I'm guessing it's some initialization quirk to bring the controller into PMP mode
Top
Post Reply

58 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic