ahci: remove pmp link online check in FBS EH
PATCH 1/1 ahci: remove pmp link online check in FBS EH
ata_link_online() check in ahci_error_intr() is unnecessary, it should be removed otherwise may lead to lockup with FBS enabled PMP.
http://marc.info/?l=linux-ide&m=137050421603272&w=2
Reported-by Yu Liu <[email protected]>
Signed-off-by Shane Huang <[email protected]>
--- drivers/ata/libahci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/ata/libahci.c +1 -2
@@ -1560,8 +1560,7 @@ static void ahci_error_intr(struct ata_port *ap, u32 irq_stat)u32 fbs =readl (port_mmio +PORT_FBS );int pmp = fbs >>PORT_FBS_DWE_OFFSET ; -if ((fbs &PORT_FBS_SDE ) && (pmp < ap->nr_pmp_links) && -ata_link_online (&ap->pmp_link[pmp])) { +if ((fbs &PORT_FBS_SDE ) && (pmp < ap->nr_pmp_links)) { link = &ap->pmp_link[pmp]; fbs_need_dec = true; }
Signature · 1 line
1.8.1.2
Quoted 5 lines · Shane Huang
ata_link_online()check inahci_error_intr()is unnecessary, it should be removed otherwise may lead to lockup with FBS enabled PMP.
http://marc.info/?l=linux-ide&m=137050421603272&w=2
This works for me.
Thanks Shane and Tejun!
Liu Yu
Tejun Heo
AppliedQuoted 7 lines · Shane Huang
ata_link_online()check inahci_error_intr()is unnecessary, it should be removed otherwise may lead to lockup with FBS enabled PMP.
http://marc.info/?l=linux-ide&m=137050421603272&w=2Reported-by Yu Liu <[email protected]>Signed-off-by Shane Huang <[email protected]>
Applied to libata/for-3.10-fixes. Thanks.
Signature · 1 line
tejun