linux/drivers
Igor Pylypiv 1005f83005 ata: libata-scsi: Honor the D_SENSE bit for CK_COND=1 and no error
commit 28ab976911 upstream.

SAT-5 revision 8 specification removed the text about the ANSI INCITS
431-2007 compliance which was requiring SCSI/ATA Translation (SAT) to
return descriptor format sense data for the ATA PASS-THROUGH commands
regardless of the setting of the D_SENSE bit.

Let's honor the D_SENSE bit for ATA PASS-THROUGH commands while
generating the "ATA PASS-THROUGH INFORMATION AVAILABLE" sense data.

SAT-5 revision 7
================

12.2.2.8 Fixed format sense data

Table 212 shows the fields returned in the fixed format sense data
(see SPC-5) for ATA PASS-THROUGH commands. SATLs compliant with ANSI
INCITS 431-2007, SCSI/ATA Translation (SAT) return descriptor format
sense data for the ATA PASS-THROUGH commands regardless of the setting
of the D_SENSE bit.

SAT-5 revision 8
================

12.2.2.8 Fixed format sense data

Table 211 shows the fields returned in the fixed format sense data
(see SPC-5) for ATA PASS-THROUGH commands.

Cc: stable@vger.kernel.org # 4.19+
Reported-by: Niklas Cassel <cassel@kernel.org>
Closes: https://lore.kernel.org/linux-ide/Zn1WUhmLglM4iais@ryzen.lan
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240702024735.1152293-4-ipylypiv@google.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-03 09:00:34 +02:00
..
accel The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
accessibility Char/Misc bugfix for 6.10-rc1 2024-05-24 08:43:25 -07:00
acpi ACPI: processor_idle: Fix invalid comparison with insertion sort for latency 2024-07-02 20:35:29 +02:00
amba
android binder: fix max_thread type inconsistency 2024-05-04 18:59:47 +02:00
ata ata: libata-scsi: Honor the D_SENSE bit for CK_COND=1 and no error 2024-08-03 09:00:34 +02:00
atm atm/fore200e: Delete unused 'fore200e_boards' 2024-05-06 18:26:47 -07:00
auxdisplay - Fix-ups 2024-05-22 10:45:12 -07:00
base drivers: core: synchronize really_probe() and dev_uevent() 2024-06-04 18:14:51 +02:00
bcma
block null_blk: Fix description of the fua parameter 2024-08-03 09:00:32 +02:00
bluetooth Bluetooth: btnxpuart: Add handling for boot-signature timeout errors 2024-08-03 08:59:47 +02:00
bus tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
cache
cdrom cdrom: rearrange last_media_change check to avoid unintentional overflow 2024-05-15 12:59:55 -06:00
cdx
char char: tpm: Fix possible memory leak in tpm_bios_measurements_open() 2024-08-03 09:00:33 +02:00
clk clk: en7523: fix rate divider for slic and spi clocks 2024-08-03 09:00:16 +02:00
clocksource RISC-V Patches for the 6.10 Merge Window, Part 1 2024-05-22 09:56:00 -07:00
comedi
connector
counter counter: ti-eqep: enable clock at probe 2024-06-22 13:48:11 +09:00
cpufreq cpufreq/amd-pstate: Fix the scaling_max_freq setting on shared memory CPPC systems 2024-08-03 08:59:30 +02:00
cpuidle pmdomain core: 2024-05-16 08:50:32 -07:00
crypto crypto: mxs-dcp - Ensure payload is zero when using key slot 2024-08-03 09:00:18 +02:00
cxl cxl: documentation: add missing files to cxl driver-api 2024-06-25 14:45:27 -07:00
dax The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
dca
devfreq PM / devfreq: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions 2024-05-09 00:30:37 +09:00
dio
dma dmaengine: ioatdma: Fix missing kmem_cache_destroy() 2024-06-11 23:39:26 +05:30
dma-buf Merge remote-tracking branch 'drm/drm-fixes' into drm-misc-fixes 2024-05-28 22:21:34 +02:00
dpll dpll: fix return value check for kmemdup 2024-05-13 16:53:53 -07:00
edac EDAC, i10nm: make skx_common.o a separate module 2024-08-03 08:59:09 +02:00
eisa alpha: remove DECpc AXP150 (Jensen) support 2024-05-03 22:09:50 +02:00
extcon extcon: adc-jack: Document missing struct members 2024-05-09 01:03:39 +09:00
firewire firewire: core: record card index in bus_reset_handle tracepoints event 2024-06-15 14:59:26 +09:00
firmware x86/efistub: Revert to heap allocated boot_params for PE entrypoint 2024-08-03 09:00:29 +02:00
fpga Char/Misc and other driver subsystem changes for 6.10-rc1 2024-05-22 12:26:46 -07:00
fsi
gnss
gpio gpiolib: of: add polarity quirk for TSC2005 2024-07-05 11:00:45 +02:00
gpu drm/xe: Use write-back caching mode for system memory on DGFX 2024-08-03 09:00:31 +02:00
greybus greybus: Fix use-after-free bug in gb_interface_release due to race condition. 2024-05-04 18:59:41 +02:00
hid for-linus-2024060801 2024-06-08 10:48:11 -07:00
hsi
hte
hv Drivers: hv: Cosmetic changes for hv.c and balloon.c 2024-06-06 06:03:29 +00:00
hwmon hwmon: (max6697) Fix swapped temp{1,8} critical alarms 2024-08-03 08:59:15 +02:00
hwspinlock
hwtracing coresight: Fix ref leak when of_coresight_parse_endpoint() fails 2024-08-03 09:00:09 +02:00
i2c This tag includes three fixes for the Renesas R-Car driver: 2024-07-13 10:50:55 +02:00
i3c i3c: dw: Add hot-join support. 2024-05-23 00:29:19 +02:00
idle
iio iio: adc: adi-axi-adc: don't allow concurrent enable/disable calls 2024-08-03 09:00:08 +02:00
infiniband RDMA/mana_ib: Set correct device into ib 2024-08-03 09:00:19 +02:00
input Input: elan_i2c - do not leave interrupt disabled on suspend failure 2024-08-03 09:00:13 +02:00
interconnect interconnect: qcom: qcm2290: Fix mas_snoc_bimc RPM master ID 2024-08-03 09:00:11 +02:00
iommu iommu/vt-d: Fix identity map bounds in si_domain_init() 2024-08-03 09:00:18 +02:00
ipack
irqchip irqchip/loongson-liointc: Set different ISRs for different cores 2024-06-23 17:09:26 +02:00
isdn
leds leds: flash: leds-qcom-flash: Test the correct variable in init 2024-08-03 09:00:04 +02:00
macintosh macintosh/therm_windtunnel: fix module unload. 2024-08-03 09:00:17 +02:00
mailbox mailbox: mtk-cmdq: Move devm_mbox_controller_register() after devm_pm_runtime_enable() 2024-08-03 09:00:28 +02:00
mcb mcb: lpc: Convert to platform remove callback returning void 2024-04-29 10:53:31 +02:00
md md/raid5: fix spares errors about rcu usage 2024-08-03 09:00:32 +02:00
media media: venus: fix use after free in vdec_close 2024-08-03 09:00:33 +02:00
memory memory: fsl_ifc: Make FSL_IFC config visible and selectable 2024-08-03 08:59:20 +02:00
memstick
message SCSI misc on 20240514 2024-05-14 18:25:53 -07:00
mfd mfd: omap-usb-tll: Use struct_size to allocate tll 2024-08-03 09:00:03 +02:00
misc eeprom: ee1004: Call i2c_new_scanned_device to instantiate thermal sensor 2024-08-03 09:00:14 +02:00
mmc mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length 2024-07-11 17:48:54 +02:00
most
mtd mtd: make mtd_test.c a separate module 2024-08-03 09:00:13 +02:00
mux mux: remove usage of the deprecated ida_simple_xx() API 2024-04-29 08:20:07 -07:00
net net: netconsole: Disable target before netpoll cleanup 2024-08-03 09:00:30 +02:00
nfc nfc/nci: Add the inconsistency check between the input data length and count 2024-05-29 13:08:31 +01:00
ntb
nubus
nvdimm virtio: features, fixes, cleanups 2024-05-23 12:04:36 -07:00
nvme nvmet-auth: fix nvmet_auth hash error handling 2024-08-03 08:59:14 +02:00
nvmem nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option 2024-08-03 09:00:15 +02:00
of of/irq: Disable "interrupt-map" parsing for PASEMI Nemo 2024-07-08 15:42:20 -06:00
opp OPP: ti: Fix ti_opp_supply_probe wrong return values 2024-08-03 08:59:20 +02:00
parisc
parport parport: amiga: Mark driver struct with __refdata to prevent section mismatch 2024-06-04 18:08:31 +02:00
pci PCI: dwc: Fix index 0 incorrectly being interpreted as a free ATU slot 2024-08-03 09:00:16 +02:00
pcmcia
peci
perf perf: arm_pmuv3: Avoid assigning fixed cycle counter with threshold 2024-08-03 08:59:13 +02:00
phy phy: qcom: qmp-combo: Switch from V6 to V6 N4 register offsets 2024-06-03 19:30:47 +05:30
pinctrl pinctrl: renesas: r8a779g0: Fix TPU suffixes 2024-08-03 09:00:24 +02:00
platform platform/x86: asus-wmi: fix TUF laptop RGB variant 2024-08-03 09:00:05 +02:00
pmdomain pmdomain: qcom: rpmhpd: Skip retention level for Power Domains 2024-07-09 12:47:46 +02:00
pnp PNP: Hide pnp_bus_type from the non-PNP code 2024-05-28 21:53:51 +02:00
power power: supply: ingenic: Fix some error handling paths in ingenic_battery_get_property() 2024-08-03 09:00:27 +02:00
powercap powercap: intel_rapl_tpmi: Enable PMU support 2024-04-30 21:10:37 +02:00
pps pps: remove usage of the deprecated ida_simple_xx() API 2024-04-29 08:20:06 -07:00
ps3
ptp ptp: fix integer overflow in max_vclocks_store 2024-06-18 13:26:44 -07:00
pwm pwm: atmel-tcb: Fix race condition and convert to guards 2024-08-03 08:59:14 +02:00
rapidio rapidio: remove choice for enumeration 2024-05-14 23:36:19 +09:00
ras RAS/AMD/ATL: Use system settings for MI300 DRAM to normalized address translation 2024-06-16 11:22:57 +02:00
regulator regulator: axp20x: AXP717: fix LDO supply rails and off-by-ones 2024-06-12 21:30:43 +01:00
remoteproc remoteproc: k3-r5: Fix IPC-only mode detection 2024-08-03 09:00:27 +02:00
reset reset: hisilicon: hi6220: add missing MODULE_DESCRIPTION() macro 2024-06-21 13:49:25 +02:00
rpmsg virtio: features, fixes, cleanups 2024-05-23 12:04:36 -07:00
rtc rtc: interface: Add RTC offset to alarm after fix-up 2024-08-03 09:00:25 +02:00
s390 s390/dasd: fix error checks in dasd_copy_pair_store() 2024-08-03 09:00:26 +02:00
sbus
scsi scsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages 2024-08-03 09:00:15 +02:00
sh
siox
slimbus Linux 6.9-rc7 2024-05-08 19:21:51 +01:00
soc soc: mediatek: mtk-mutex: Add MDP_TCC0 mod to MT8188 mutex table 2024-08-03 08:59:25 +02:00
soundwire soundwire: fix usages of device_get_named_child_node() 2024-06-03 17:35:24 +05:30
spi spi: atmel-quadspi: Add missing check for clk_prepare 2024-08-03 08:59:09 +02:00
spmi spmi: pmic-arb: Add multi bus support 2024-05-08 19:46:11 +01:00
ssb
staging staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set 2024-06-27 15:47:30 +02:00
target Assorted commits that had missed the last merge window... 2024-05-21 13:11:44 -07:00
tc
tee Fix optee missing-field-initializers warning 2024-06-27 17:10:38 +02:00
thermal thermal/drivers/broadcom: Fix race between removal and clock disable 2024-08-03 09:00:30 +02:00
thunderbolt thunderbolt: debugfs: Fix margin debugfs node creation condition 2024-05-31 13:13:39 +03:00
tty serial: qcom-geni: do not kill the machine on fifo underrun 2024-07-04 12:30:30 +02:00
ufs scsi: ufs: mcq: Fix missing argument 'hba' in MCQ_OPR_OFFSET_n 2024-08-03 09:00:07 +02:00
uio
usb usb: typec-mux: nb7vpq904m: unregister typec switch on probe error and remove 2024-08-03 09:00:09 +02:00
vdpa Merge tag 'stable/vduse-virtio-net' into vhost 2024-05-22 08:32:48 -04:00
vfio vfio/pci: Init the count variable in collecting hot-reset devices 2024-07-10 08:47:46 -06:00
vhost vhost/vsock: always initialize seqpacket_allow 2024-08-03 09:00:15 +02:00
video - Fix-ups 2024-05-22 10:45:12 -07:00
virt The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
virtio virtio: features, fixes, cleanups 2024-05-23 12:04:36 -07:00
w1
watchdog watchdog: add missing MODULE_DESCRIPTION() macros 2024-06-15 12:49:57 +02:00
xen xen: branch for v6.10-rc1 2024-05-24 10:24:49 -07:00
zorro zorro: Use helpers from ioport.h 2024-04-29 16:45:53 +02:00
Kconfig
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00