Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp538994pxb; Fri, 3 Sep 2021 07:43:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4ywgtadBYwxsMtA6YNG5wmyuxc/m4CxSTUStugcss7UwJMIfMhvTeDHNqr4120tY2TlRl X-Received: by 2002:a05:6402:b47:: with SMTP id bx7mr4410055edb.319.1630680213173; Fri, 03 Sep 2021 07:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630680213; cv=none; d=google.com; s=arc-20160816; b=gurDl6ky+lxVej5bsFjCtOq+fLz2I8LJjd7ouD2wfnJwGCjhCcPcMYcpCpdCGiYOFZ X9RcoFrrwMjXT594hrEzIPDv2v1dAhLBnfAcnwCsQmYbojJtJqm1QnZ2VgvdSSqf9Ls2 5bo3/b+hgmtAipSZqnpwsXrri7N+UjYoJcRrS0leK3VVHCpatNfZ++07hxWZHW1f+ZGg d4uJecd2XdZS2fYaNizssm+9WBHZ3box1HI6R7WtL3W4dzNtwshq40YT2XMv5QkLKlhs NNG/FHMY8VGHqT7s/4tVcFALHVEPKOTz6txVe2LSetz73XkDBnMlzIqcfyvuitVM3+l+ ETiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cgwrXJbGZw7LvqCtZ3SUKKuQrirCjvwKHoEkBgKAZaU=; b=pbMfNQYY3Iip/LDUqBPhRRbPFumDAOowTcCI1WFKDJz1hMw0oX8wX7/7VUEdAz612D 7wUqkZOgByGxmBExjql4Uf2+Hq3JPkO5eOiPyMJLg571tSoMNTSUtEYnnXERRCON4B0o ok9HPoEyEe+Lt+NEuqMbesob92hlFJ7gdJrOTg/3vjVUoLzBNAXLARPaohYcCm+qslTG NMZDRnioBl4a105e3BuUmOungiCV/fvtASDMgxxgcxz6r0CiYdNL+W6GetTBe2Az3gHr PivDpijeOj0pes5oLout6gPVDCaLghX44+04XZ9PSavYpz8jNwcTd5SRYQL2X6O7Fzx/ feWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=sXrYf6ZM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si5839272edz.215.2021.09.03.07.43.04; Fri, 03 Sep 2021 07:43:33 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=sXrYf6ZM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348882AbhICOG5 (ORCPT + 99 others); Fri, 3 Sep 2021 10:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235668AbhICOG4 (ORCPT ); Fri, 3 Sep 2021 10:06:56 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8291BC061757 for ; Fri, 3 Sep 2021 07:05:56 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id j15so5328662ila.1 for ; Fri, 03 Sep 2021 07:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cgwrXJbGZw7LvqCtZ3SUKKuQrirCjvwKHoEkBgKAZaU=; b=sXrYf6ZM3c1JtQU/3qv/sJb1LUKy8mMGlGmQeonO7HS0NJj0acwq/UI25oqmDf58n4 qqRtijFCHOMLwxe7o0aX434rsvKmUvLjOVufuM4CIU65JkY4dnAuVVh/yUuOFA53K7as wrmNbmyXbO48oXrm76jzfnEZTD5R96EUUtddyr5whSb6BCPQErXw2ZiT+9UcHDVqQ3Ym gl/7ldYNQ6tVd3gJ2X7QEyDRT6UoUVKtl7N/qvq4ceQZW+x+bHXnD0ql8A3oUwIK6DWQ MoRMRl2q4s/hwXjdjwk8R7yNN+ok+ntw32Sc2qtIKJSktRPkhB4Ggoa2lK+HxkUEf5PR fgKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cgwrXJbGZw7LvqCtZ3SUKKuQrirCjvwKHoEkBgKAZaU=; b=dr7HLUutekQgIOvnxwCqa3AcYxMcmDrggv10x31T6YoeFv1zrTvFxtB3FKmd9ycWMH JP3k5AWmQdxKosiwmcyVD8iTij5l1dr6f16pBbbmIU5cUDCnFIaP3xavmcyOt71fjGm3 Wt45Sf5Q1C4CKEF8pZMtACp3Z6VRNK9asOvmOSOpDWWYJK0aOU29KTQB48+nLEZeeBhG 2OxsX64Tbly+jCnxPs4w04B0DVXsqFLyGkceJ/Ui4UhlRCks0dhxttPWjhokuRHMNRbH wTlEtHs7LDa5eMoKtBy8jRdF6FdKUcVoBSRp7lrhJwZnSObbLqko3JmDovzPehY0tvt2 c5AA== X-Gm-Message-State: AOAM531IzJxSqKPeRG2rb8TqSk9Lf9RGpY2kCfmxIEarpsT6bA8o9EsO 5mUIOypnuANRPqauBToJsr/aG3glkmgmpg== X-Received: by 2002:a05:6e02:1d06:: with SMTP id i6mr2758385ila.113.1630677955708; Fri, 03 Sep 2021 07:05:55 -0700 (PDT) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id o2sm2674640ilg.47.2021.09.03.07.05.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Sep 2021 07:05:55 -0700 (PDT) Subject: Re: [PATCH v6] libata: Add ATA_HORKAGE_NO_NCQ_ON_ATI for Samsung 860 and 870 SSD. To: Hans de Goede , Kate Hsuan , Damien Le Moal Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210903094411.58749-1-hpa@redhat.com> From: Jens Axboe Message-ID: Date: Fri, 3 Sep 2021 08:05:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/3/21 8:03 AM, Hans de Goede wrote: > Hi, > > On 9/3/21 2:35 PM, Jens Axboe wrote: >> On 9/3/21 3:44 AM, Kate Hsuan wrote: >>> Many users are reporting that the Samsung 860 and 870 SSD are having >>> various issues when combined with AMD/ATI (vendor ID 0x1002) SATA >>> controllers and only completely disabling NCQ helps to avoid these >>> issues. >>> >>> Always disabling NCQ for Samsung 860/870 SSDs regardless of the host >>> SATA adapter vendor will cause I/O performance degradation with well >>> behaved adapters. To limit the performance impact to ATI adapters, >>> introduce the ATA_HORKAGE_NO_NCQ_ON_ATI flag to force disable NCQ >>> only for these adapters. >>> >>> Also, two libata.force parameters (noncqati and ncqati) are introduced >>> to disable and enable the NCQ for the system which equipped with ATI >>> SATA adapter and Samsung 860 and 870 SSDs. The user can determine NCQ >>> function to be enabled or disabled according to the demand. >>> >>> After verifying the chipset from the user reports, the issue appears >>> on AMD/ATI SB7x0/SB8x0/SB9x0 SATA Controllers and does not appear on >>> recent AMD SATA adapters. The vendor ID of ATI should be 0x1002. >>> Therefore, ATA_HORKAGE_NO_NCQ_ON_AMD was modified to >>> ATA_HORKAGE_NO_NCQ_ON_ATI. >> >> What's this patch against? > > linux-block/for-next + my pre-cursor patch from here: > > https://lore.kernel.org/linux-ide/20210823095220.30157-1-hdegoede@redhat.com/T/#u Still had to fixup a hunk, but it was trivial. In any case, I've applied both now, thanks! -- Jens Axboe