Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1024321pxb; Thu, 26 Aug 2021 22:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJHUOH3rhkeLO7WuNnPuG+9FGydHUobyb1tmqcZIlNA1K8WgsjyZqkgAS4jQwZM/s2nDrM X-Received: by 2002:a17:906:2acc:: with SMTP id m12mr8405072eje.231.1630042578675; Thu, 26 Aug 2021 22:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630042578; cv=none; d=google.com; s=arc-20160816; b=ecSTlazgDRAqvfic05EFZ2UhmmKRQfxTazUiR0lIJXYp5HlMiSvxB5X/LqEnSJXVZe 5ESYwYu6t8EDEkgLY73f2jE0uYJQLvOJkUMV7Gsn1WVynFCXAF60SZmXbdgb3H6xBDxT GDxm3AN838+iqkrmtluX6vz/ENh7LA4PZSTCDjaEnXKzAMuYAeQqlwcvpUT/iAfa6l6g DZAFmuEMo5y18MSEUQVIl3AJKT+n4JKJflRlNGiJOX9VSME1Lqj/uxFy5tBy9tS4etOm fx1BOUrB0LC6WthKpYsV7Q92AshXGd0qoqKPq8kEuBvocetna/sBrJ77bhsndk07P4In h5hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nDJoWCqAn7xRSrZI8YAG5NUXcyahKOzT6a0Q77ySVoA=; b=yy18EuC2u6snMJ9x9k30m5MYzDjWTy7+QhSC8mScr6PBCcddnhr1yHHao4z1YQb2ks 2AcNV9SM1PCZfJDFOvORkVvn8SctQeELrm4tHPDdmJ6KqY7fPMG1QiBMqTxkIof7f7gk /kVAnCZQCw8z+za7uYawCFA/UaPodoe3jovPhSf/OOzGqGvZYC8zAhaQTbT/wPXucaPT YSSvfyt/pGmMwfN5lrE8e1/wOMgHjL3r8kAGHdkDXduK0l6BaXt5OblNyReWJjqwI4Ds phc45vDrr/1ds0u1NjBQ9aGTPRsHrnhZn7ld13NM6uaKdpQpFOtRN84tfdU8WHFxtsIe Tgbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EYr1eMWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yr5si4785493ejb.442.2021.08.26.22.35.54; Thu, 26 Aug 2021 22:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EYr1eMWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244276AbhH0Feq (ORCPT + 99 others); Fri, 27 Aug 2021 01:34:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:40808 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhH0Fep (ORCPT ); Fri, 27 Aug 2021 01:34:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630042436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nDJoWCqAn7xRSrZI8YAG5NUXcyahKOzT6a0Q77ySVoA=; b=EYr1eMWCeXs+8QthFwLD0tW+cfBkVqv/qQFAq+R0GKeWhha0N7f5Hl3zkGll8rtUCNT/oC 5yFZKvfG+47B5+YI3SauU/rN1+H7HNxAsuKMiHfqlN9wTZCZOY7LIohDo5/kpFKv9rKaoh MXsnSaTYMPCOQwlfSqNUNzL6w1Hfako= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-yamMueV4Nu2FNyxigaUoxg-1; Fri, 27 Aug 2021 01:33:55 -0400 X-MC-Unique: yamMueV4Nu2FNyxigaUoxg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 59745344AF; Fri, 27 Aug 2021 05:33:54 +0000 (UTC) Received: from fedora-t480.redhat.com (unknown [10.39.192.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id C975160C04; Fri, 27 Aug 2021 05:33:49 +0000 (UTC) From: Kate Hsuan To: Jens Axboe , Hans de Goede , Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kate Hsuan Subject: [PATCH v2 0/1] libata: add ATA_HORKAGE_NO_NCQ_TRIM for Samsung 860 and 870 SSDs Date: Fri, 27 Aug 2021 01:33:43 -0400 Message-Id: <20210827053344.15087-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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