android_kernel_google_msm/drivers/ata
Mikulas Patocka 5b63a11b22 sata_sil: disable trim
commit d98f1cd0a3b70ea91f1dfda3ac36c3b2e1a4d5e2 upstream.

When I connect an Intel SSD to SATA SIL controller (PCI ID 1095:3114), any
TRIM command results in I/O errors being reported in the log. There is
other similar error reported with TRIM and the SIL controller:
https://bugs.centos.org/view.php?id=5880

Apparently the controller doesn't support TRIM commands. This patch
disables TRIM support on the SATA SIL controller.

ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata7.00: BMDMA2 stat 0x50001
ata7.00: failed command: DATA SET MANAGEMENT
ata7.00: cmd 06/01:01:00:00:00/00:00:00:00:00/a0 tag 0 dma 512 out
         res 51/04:01:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error)
ata7.00: status: { DRDY ERR }
ata7.00: error: { ABRT }
ata7.00: device reported invalid CHS sector 0
sd 8:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 8:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current] [descriptor]
sd 8:0:0:0: [sdb] tag#0 Add. Sense: Unaligned write command
sd 8:0:0:0: [sdb] tag#0 CDB: Write same(16) 93 08 00 00 00 00 00 21 95 88 00 20 00 00 00 00
blk_update_request: I/O error, dev sdb, sector 2200968

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:34 +08:00
..
acard-ahci.c
ahci.c ahci: avoton port-disable reset-quirk 2015-09-18 09:20:39 +08:00
ahci.h ahci: un-staticize ahci_dev_classify 2015-09-18 09:20:39 +08:00
ahci_platform.c
ata_generic.c
ata_piix.c ata_piix: Add Device IDs for Intel 9 Series PCH 2014-12-01 18:02:24 +08:00
Kconfig libata: make it clear that sata_inic162x is experimental 2013-08-04 16:25:54 +08:00
libahci.c AHCI: Fix softreset failed issue of Port Multiplier 2016-10-26 23:15:34 +08:00
libata-acpi.c
libata-core.c libata: increase the timeout when setting transfer mode 2016-03-21 09:17:45 +08:00
libata-eh.c libata: Ignore spurious PHY event on LPM policy change 2015-09-18 09:20:37 +08:00
libata-pmp.c ata: pmp: add quirk for Marvell 4140 SATA PMP 2016-03-21 09:17:44 +08:00
libata-scsi.c libata: add ATA_HORKAGE_NOTRIM 2016-03-21 09:17:45 +08:00
libata-sff.c libata: prevent HSM state change race between ISR and PIO 2015-04-14 17:33:54 +08:00
libata-transport.c libata: Fix display of sata speed 2013-12-04 10:50:14 -08:00
libata-transport.h
libata.h
Makefile
pata_acpi.c
pata_ali.c
pata_amd.c
pata_arasan_cf.c
pata_artop.c
pata_at32.c
pata_at91.c pata_at91: fix ata_host_activate() failure handling 2014-06-07 16:02:00 -07:00
pata_atiixp.c
pata_atp867x.c
pata_bf54x.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_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
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
pata_radisys.c
pata_rb532_cf.c
pata_rdc.c
pata_rz1000.c
pata_samsung_cf.c
pata_sc1200.c
pata_scc.c pata_scc: propagate return value of scc_wait_after_reset 2014-09-25 11:49:11 +08:00
pata_sch.c
pata_serverworks.c pata_serverworks: disable 64-KB DMA transfers on Broadcom OSB4 IDE Controller 2015-02-02 17:04:47 +08:00
pata_sil680.c
pata_sis.c
pata_sl82c105.c
pata_triflex.c
pata_via.c
pdc_adma.c
sata_dwc_460ex.c sata_dwc_460ex: fix resource leak on error path 2015-04-14 17:33:50 +08:00
sata_fsl.c sata_fsl: fix error handling of irq_of_parse_and_map 2015-04-14 17:33:39 +08:00
sata_inic162x.c libata: make it clear that sata_inic162x is experimental 2013-08-04 16:25:54 +08:00
sata_mv.c
sata_nv.c
sata_promise.c sata_promise: fix hardreset lockdep error 2013-01-17 08:50:44 -08:00
sata_promise.h
sata_qstor.c
sata_sil.c sata_sil: disable trim 2016-10-26 23:15:34 +08:00
sata_sil24.c libata: allow sata_sil24 to opt-out of tag ordered submission 2015-04-14 17:33:54 +08:00
sata_sis.c
sata_svw.c sata_svw: check DMA start bit before reset 2012-12-03 11:47:11 -08:00
sata_sx4.c
sata_uli.c
sata_via.c
sata_vsc.c
sis.h