Entire disabling NCQ for Samsugn 860/870 SSD will cause I/O performance drop. In this case, a flag ATA_HORKAGE_NONCQ_ON_ASMEDIA_AMD_MARVELL is introduced to used to performe additional check for these SSDs. If it finds it's parent ATA controller is AsMedia/AMD/Marvell, the NCQ will be disabled. Otherwise, the NCQ is kept to enable. Kate Hsuan (1): libata: libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs drivers/ata/libata-core.c | 37 ++++++++++++++++++++++++++++++++----- include/linux/libata.h | 3 +++ 2 files changed, 35 insertions(+), 5 deletions(-) -- 2.31.1