aboutsummaryrefslogtreecommitdiff
path: root/drivers/dax/device.c
diff options
context:
space:
mode:
authorGravatar Conrad Kostecki <conikost@gentoo.org> 2024-03-13 22:46:50 +0100
committerGravatar Niklas Cassel <cassel@kernel.org> 2024-03-19 12:06:54 +0100
commit6cd8adc3e18960f6e59d797285ed34ef473cc896 (patch)
tree1efa178f5e5453e50983d729aa7ab4536afd15d0 /drivers/dax/device.c
parentMerge tag 'dlm-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland... (diff)
downloadlinux-6cd8adc3e18960f6e59d797285ed34ef473cc896.tar.gz
linux-6cd8adc3e18960f6e59d797285ed34ef473cc896.tar.bz2
linux-6cd8adc3e18960f6e59d797285ed34ef473cc896.zip
ahci: asm1064: asm1166: don't limit reported ports
Previously, patches have been added to limit the reported count of SATA ports for asm1064 and asm1166 SATA controllers, as those controllers do report more ports than physically having. While it is allowed to report more ports than physically having in CAP.NP, it is not allowed to report more ports than physically having in the PI (Ports Implemented) register, which is what these HBAs do. (This is a AHCI spec violation.) Unfortunately, it seems that the PMP implementation in these ASMedia HBAs is also violating the AHCI and SATA-IO PMP specification. What these HBAs do is that they do not report that they support PMP (CAP.SPM (Supports Port Multiplier) is not set). Instead, they have decided to add extra "virtual" ports in the PI register that is used if a port multiplier is connected to any of the physical ports of the HBA. Enumerating the devices behind the PMP as specified in the AHCI and SATA-IO specifications, by using PMP READ and PMP WRITE commands to the physical ports of the HBA is not possible, you have to use the "virtual" ports. This is of course bad, because this gives us no way to detect the device and vendor ID of the PMP actually connected to the HBA, which means that we can not apply the proper PMP quirks for the PMP that is connected to the HBA. Limiting the port map will thus stop these controllers from working with SATA Port Multipliers. This patch reverts both patches for asm1064 and asm1166, so old behavior is restored and SATA PMP will work again, but it will also reintroduce the (minutes long) extra boot time for the ASMedia controllers that do not have a PMP connected (either on the PCIe card itself, or an external PMP). However, a longer boot time for some, is the lesser evil compared to some other users not being able to detect their drives at all. Fixes: 0077a504e1a4 ("ahci: asm1166: correct count of reported ports") Fixes: 9815e3961754 ("ahci: asm1064: correct count of reported ports") Cc: stable@vger.kernel.org Reported-by: Matt <cryptearth@googlemail.com> Signed-off-by: Conrad Kostecki <conikost@gentoo.org> Reviewed-by: Hans de Goede <hdegoede@redhat.com> [cassel: rewrote commit message] Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'drivers/dax/device.c')
0 files changed, 0 insertions, 0 deletions