linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ASMedia ASM1166/ASM1064 port restrictions will break cards with port-multipliers
@ 2024-03-15 21:19 Ioannis Barkas
  2024-03-17  9:46 ` Niklas Cassel
  0 siblings, 1 reply; 12+ messages in thread
From: Ioannis Barkas @ 2024-03-15 21:19 UTC (permalink / raw)
  To: linux-ide

Hello there,

This issue came to surface when I used my ASM1166 card with an
external SATA II JMB393 RAID PMP module.

In kernel 6.8 I get:
ahci 0000:02:00.0: AHCI 0001.0301 32 slots 32 ports 6 Gbps 0x3f impl SATA mode
ahci 0000:02:00.0: flags: 64bit ncq sntf stag pm led only pio slum
part deso sadm sds apst

In kernel 6.6 I get:
ahci 0000:02:00.0: AHCI 0001.0301 32 slots 32 ports 6 Gbps 0xffffff3f
impl SATA mode
ahci 0000:02:00.0: flags: 64bit ncq sntf stag pm led only pio slum
part deso sadm sds apst

PMP is attached at port #1 of the ASM116. Two SSDs are at port A and B
of the PMP.

In kernel 6.8 I can only see one SSD:
ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

In kernel 6.6 I can see both SSDs:
ata7: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata15: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

ASM1166 is not declaring PMP compliance at its capabilities but it
works on its own way if it is not touched. Upon touching it PMP
support is effectively disabled so only the first attached device is
visible. I believe the hflag is needed here.

The safest option would be a configurable parameter to set it per
case. My PMP can be set to RAID mode so it is possible to break RAID
arrays if a PMP is used on that ASMedia host or older ones.

Best regards,
Ioannis

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <CAFDm6W19R3KHDO09c94Uwry9mdG+whAVy=u4Sdpt30A2MK1KPA@mail.gmail.com>]

end of thread, other threads:[~2024-03-17  9:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-15 21:19 ASMedia ASM1166/ASM1064 port restrictions will break cards with port-multipliers Ioannis Barkas
2024-03-17  9:46 ` Niklas Cassel
     [not found] <CAFDm6W19R3KHDO09c94Uwry9mdG+whAVy=u4Sdpt30A2MK1KPA@mail.gmail.com>
2024-03-13  6:36 ` Andrey Melnikov
2024-03-13 17:37   ` Cryptearth
2024-03-13 21:21     ` Hans de Goede
2024-03-13 21:52       ` Re[2]: " Conrad Kostecki
2024-03-13 22:20         ` Hans de Goede
2024-03-16 14:01           ` Andrey Jr. Melnikov
2024-03-17  1:34             ` Cryptearth
2024-03-14 15:58     ` Niklas Cassel
2024-03-15 15:01       ` Hans de Goede
2024-03-16 11:33         ` Cryptearth
2024-03-17  9:36         ` Niklas Cassel

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).