Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Discs on second SATA controller not properly detected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1153
Location: Vienna (Austria)

PostPosted: Sat Aug 16, 2014 10:39 am    Post subject: Discs on second SATA controller not properly detected Reply with quote

Hi all,

I'm fighting with a strange issue. I bought me a new SATA controller (Digitus DS-30104-1 based on a Marvell 88SE9230), as the old one didn't recognize my discs.
Well and now i have the same issue with the new one - leading me to the meaning that this issue may not be a controller or disc issue.

First a few background infos:
I'm using an AMD system with Kernel 3.12.21-gentoo-r1 (motherboard is MSI 970A-G43 (7693-030R)) with 6 discs. Two combined to a RAID 1 as system discs and 4 combined to RAID5 for data.
This setup works perfect as it should. Now i wanted to expand my RAID 5 array and therefore i installed the new controller.
All discs i tried on the new controller (it doesn't matter which card or disc) are not recognized, while the BIOS of the related card shows the disc (in a default, non RAID setup)
The same issue also affects the system when using a completely different controller card (e.g. the previous SATA controller card).
It's like the system ignores the discs being present... Maybe some EFI issue? I have no idea...


This are the cards (the 00:11.0 is the on board controller and 02:00.0 the one in the PCIe slot)
Quote:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
02:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 11)



The controller is detected properly and the kernel shows me additional 8 channels (sata7 to sata12), as the listing below shows.
The card itself has just 6 physical ports, So i think sata7 to sata 12 are the real ones, and sata13 and sat14 are virtual ones (maybe from the RAID BIOS?)
Code:

[    1.975112] ahci 0000:00:11.0: AHCI 0001.0200 32 slots 6 ports 6 Gbps 0x3f impl SATA mode
[    2.002879] ata1: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b100 irq 19
[    2.005879] ata2: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b180 irq 19
[    2.008786] ata3: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b200 irq 19
[    2.011631] ata4: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b280 irq 19
[    2.014399] ata5: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b300 irq 19
[    2.017103] ata6: SATA max UDMA/133 abar m1024@0xfe50b000 port 0xfe50b380 irq 19
[    2.034164] ahci 0000:02:00.0: AHCI 0001.0200 32 slots 8 ports 6 Gbps 0xff impl SATA mode
[    2.062200] ata7: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410100 irq 73
[    2.064463] ata8: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410180 irq 73
[    2.066616] ata9: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410200 irq 73
[    2.068681] ata10: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410280 irq 73
[    2.070721] ata11: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410300 irq 73
[    2.072696] ata12: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410380 irq 73
[    2.074625] ata13: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410400 irq 73
[    2.076523] ata14: SATA max UDMA/133 abar m2048@0xfe410000 port 0xfe410480 irq 73


It doesn't matter if i try to do a hot swap or a shutdown + plugin the hdd + boot up. The disc never comes up on linux.
And i also tried echo "0 0 0" > /sys/class/scsi_host/host13/scan and echo "- - -" > /sys/class/scsi_host/host13/scan without success.

The only message i get with dmesg is the following:
Code:
[ 7736.963582] ata7: hard resetting link
[ 7737.832744] ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
[ 7742.827911] ata7.00: qc timeout (cmd 0xec)
[ 7743.327429] ata7.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 7743.327440] ata7: hard resetting link
[ 7744.186621] ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
[ 7754.176937] ata7.00: qc timeout (cmd 0xec)
[ 7754.686444] ata7.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 7754.686455] ata7: hard resetting link
[ 7755.545622] ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
[ 7785.516644] ata7.00: qc timeout (cmd 0xec)
[ 7786.026210] ata7.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 7786.026221] ata7: hard resetting link
[ 7786.875318] ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 310)
[ 7787.384825] ata7: EH complete


I'm really clueless about the cause and would be happy if someone could give me a hint or so.

Thanks in advance,

Regards,

Rob
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sat Aug 16, 2014 11:45 am    Post subject: Reply with quote

NightDragon,

Tell us about your hardware set up, in particular, your power supply and how all of your HDD are connected to it.
With lots of HDD, its easy for the HDD spin up current to overwhelm the PSU.

Your phantom ports way be two IDE ports or the chip on your new card may actually support 8 SATA ports but only 6 are actually used.

Your entire dmesg would be useful. Use wgetpaste to put it onto a pastebin site.
Likewise your kernel .config file.

I can't find a Digitus DS-30104-1 six pot card on Google but the four port cards are single lane PCIe.
Thats a very bad thing as one SATA III port can max out a single lane PCIe port.
That suggests that these devices might need SATA Port Multiplier support in the kernel.

The Marvell 88SE9230 Datasheet says that its only a 4 port chipset, therefore, there is some SATA Port multiplication gonit on somewhere. This may even explain your two phantom ports.

Try [*] SATA Port Multiplier support (NEW) in your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Sat Aug 16, 2014 11:56 am    Post subject: Reply with quote

You should disable IOMMU support, or use the upcoming 3.17 kernel, all marvell sata controller sent wrong DMA device id.
The card itself work fine here. This card only support up to 4 port (2 can be routed to esata by jumpers). The controller present 8 sata channel, and the last one connected to "Marvell Console", the hardware controller interface. All other 7 sata channel is virtual, routed by raid controller, it's not port-by-port to physical ports.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum