kernel-fxtec-pro1x/drivers/ata
Jiri Slaby 3b69fe0d6d ata: sata_mv, avoid trigerrable BUG_ON
commit e9f691d899188679746eeb96e6cb520459eda9b4 upstream.

There are several reports that the BUG_ON on unsupported command in
mv_qc_prep can be triggered under some circumstances:
https://bugzilla.suse.com/show_bug.cgi?id=1110252
https://serverfault.com/questions/888897/raid-problems-after-power-outage
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1652185
https://bugs.centos.org/view.php?id=14998

Let sata_mv handle the failure gracefully: warn about that incl. the
failed command number and return an AC_ERR_INVALID error. We can do that
now thanks to the previous patch.

Remove also the long-standing FIXME.

[v2] use %.2x as commands are defined as hexa.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-01 13:14:54 +02:00
..
acard-ahci.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
ahci.c ahci: Add Intel Comet Lake H RAID PCI ID 2020-04-02 15:28:21 +02:00
ahci.h
ahci_brcm.c ata: ahci_brcm: BCM7425 AHCI requires AHCI_HFLAG_DELAY_ENGINE 2020-01-09 10:19:01 +01:00
ahci_ceva.c
ahci_da850.c
ahci_dm816.c
ahci_imx.c
ahci_mtk.c
ahci_mvebu.c ata: ahci: mvebu: do Armada 38x configuration only on relevant SoCs 2019-12-05 09:21:06 +01:00
ahci_octeon.c
ahci_platform.c
ahci_qoriq.c
ahci_seattle.c
ahci_st.c
ahci_sunxi.c
ahci_tegra.c
ahci_xgene.c
ata_generic.c
ata_piix.c
Kconfig
libahci.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
libahci_platform.c ata: libahci_platform: Export again ahci_platform_<en/dis>able_phys() 2020-01-09 10:19:01 +01:00
libata-acpi.c
libata-core.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
libata-eh.c
libata-pmp.c libata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETACH is set 2020-04-17 10:48:52 +02:00
libata-scsi.c libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks 2020-09-09 19:04:31 +02:00
libata-sff.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
libata-trace.c
libata-transport.c
libata-transport.h
libata-zpodd.c
libata.h
Makefile
pata_acpi.c
pata_ali.c
pata_amd.c
pata_arasan_cf.c
pata_artop.c
pata_atiixp.c
pata_atp867x.c
pata_bk3710.c
pata_cmd64x.c
pata_cmd640.c
pata_cs5520.c
pata_cs5530.c
pata_cs5535.c
pata_cs5536.c
pata_cypress.c
pata_efar.c
pata_ep93xx.c
pata_falcon.c
pata_ftide010.c
pata_gayle.c
pata_hpt3x2n.c
pata_hpt3x3.c
pata_hpt37x.c
pata_hpt366.c
pata_icside.c
pata_imx.c
pata_isapnp.c
pata_it821x.c
pata_it8213.c
pata_ixp4xx_cf.c
pata_jmicron.c
pata_legacy.c
pata_macio.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
pata_marvell.c
pata_mpc52xx.c
pata_mpiix.c
pata_netcell.c
pata_ninja32.c
pata_ns87410.c
pata_ns87415.c
pata_octeon_cf.c
pata_of_platform.c
pata_oldpiix.c
pata_opti.c
pata_optidma.c
pata_palmld.c
pata_pcmcia.c
pata_pdc202xx_old.c
pata_pdc2027x.c
pata_piccolo.c
pata_platform.c
pata_pxa.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
pata_radisys.c
pata_rb532_cf.c
pata_rdc.c
pata_rz1000.c
pata_samsung_cf.c
pata_sc1200.c
pata_sch.c
pata_serverworks.c
pata_sil680.c
pata_sis.c
pata_sl82c105.c
pata_triflex.c
pata_via.c
pdc_adma.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_dwc_460ex.c
sata_fsl.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_gemini.c
sata_gemini.h
sata_highbank.c
sata_inic162x.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_mv.c ata: sata_mv, avoid trigerrable BUG_ON 2020-10-01 13:14:54 +02:00
sata_nv.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_promise.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_promise.h
sata_qstor.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_rcar.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_sil.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_sil24.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_sis.c
sata_svw.c
sata_sx4.c ata: make qc_prep return ata_completion_errors 2020-10-01 13:14:54 +02:00
sata_uli.c
sata_via.c
sata_vsc.c
sis.h