qemu-patch-raspberry4/hw/ide
Anton Nefedov 947858b0ba ide: abort TRIM operation for invalid range
ATA8-ACS3, 7.9 DATA SET MANAGEMENT - 06h, DMA

    7.9.5 Error Outputs
    If the Trim bit is set to one and:
      a) the device detects an invalid LBA Range Entry; or
      b) count is greater than IDENTIFY DEVICE data word 105
         (see 7.16.7.55),
    then the device shall return command aborted.
    A device may trim one or more LBA Range Entries before it returns
    command aborted. See table 209.

This check is not in the common ide_dma_cb() as the range for TRIM
is harder to reach: it is not in LBA/count registers and the buffer has
to be parsed first.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Message-id: 1512735034-35327-4-git-send-email-anton.nefedov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
2018-01-19 16:04:56 -05:00
..
ahci-allwinner.c hw/ide/ahci: Move allwinner code into a separate file 2017-10-31 13:48:59 -04:00
ahci.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
ahci_internal.h AHCI: Rework IRQ constants 2017-09-18 19:41:11 -04:00
atapi.c IDE: replace DEBUG_AIO with trace events 2017-09-18 15:01:26 -04:00
cmd646.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
core.c ide: abort TRIM operation for invalid range 2018-01-19 16:04:56 -05:00
ich.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
isa.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
macio.c macio: add missing registers to VMStateDescription 2017-10-17 10:34:00 +11:00
Makefile.objs hw/ide: Emulate SiI3112 SATA controller 2018-01-10 12:53:00 +11:00
microdrive.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
mmio.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
pci.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
piix.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00
qdev.c hw/block: Use errp directly rather than local_err 2017-12-19 10:25:03 +00:00
sii3112.c hw/ide: Emulate SiI3112 SATA controller 2018-01-10 12:53:00 +11:00
trace-events hw/ide: Emulate SiI3112 SATA controller 2018-01-10 12:53:00 +11:00
via.c hw/ide: remove old i386 dependency 2017-12-18 17:07:02 +03:00