Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp875250pxb; Wed, 1 Sep 2021 11:51:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwul+fT1PcZYHUwzHRrrNGV++EpGkKbPuEYXYNb+djz/TmlfT+5emV/qkvkjvRdKNt/v8jA X-Received: by 2002:a05:6402:1455:: with SMTP id d21mr1047480edx.161.1630522313399; Wed, 01 Sep 2021 11:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630522313; cv=none; d=google.com; s=arc-20160816; b=qY3pKPVAP6v+Fr7l3BcKQkL2IrFlbZThxvSMhefcsqZi+UmlNS1PfUyIQzmeyz+JDe fO/GyCr65JJZ1qg1AMTWaRCyffYDF7K/72AwfDJVOzHDtvAG9iu5UmGIORct8/4qEvBf 99hyUzp6pPTdQUATvE2pqxRDoVNPWp/dPTEQt+Rq+hwBL+zndqaegnqVX6c9Hm0miGw/ xRFv3FZnM2bRmc3K1iV+HVK2N60froPp96AP4RfVc2//1NP73JiNhQ64UKe24bDn6Eh+ 5NajgYlM+0bwzLTt1Gey7o9XmLUEA1ZZO3VO1wtXCK+8hSrxljH3MYU+WXog8rpfw6CA 4Cpg== 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:references:cc :to:from:subject:dkim-signature; bh=NUMgUGMek2BTIcQrz1eRbN4kQSB1Pe9L2E40QgP/xs8=; b=IIUz/22jTu7kgfzl4esTXl8nqmDic0p1LTxpL1K220SbhAJK4GGBLnvZf4GFpcBQsI /X9MMfkRFulk7khBSYf1HuZsMy/KanmkiZ/ZSAoixnKmJUxaj9MyyIKL9QApuf0liovV R/0yIkhmDfODT5FFKQBcKmf+96KZMWVYGY1gHG4eUyYCTSlQU8EHxQD4ya2cu/7weZTZ iWePb+uunSxk51FD/zyNN2bd3a1gQOkQgh6fUqhm+q5a4914NeCH3VQybC4hJz+3Ye6Z hcS7L+7WDiTES3TUS7SaviqYgLjZsz94Jzql0QBupLIMBWNOodVi/NkN03yXwXax90K8 /7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PwDTRQax; 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 u15si412355edd.40.2021.09.01.11.51.29; Wed, 01 Sep 2021 11:51:53 -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=PwDTRQax; 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 S243668AbhIAJjk (ORCPT + 99 others); Wed, 1 Sep 2021 05:39:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24840 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243509AbhIAJjj (ORCPT ); Wed, 1 Sep 2021 05:39:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630489123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NUMgUGMek2BTIcQrz1eRbN4kQSB1Pe9L2E40QgP/xs8=; b=PwDTRQax26L2BOWk8CGwkI6v/emlFwmMloMRci9/q/81QjvNJASxeuan415Ez4FM7OXj+/ KzCOtqvT4tRgTxBw64r+yd9bb5yoC1jHNqEjk8heEwem0yURy1uSixxYy88R7EMgF7JL04 55W23x54AKFgMe0qbd9FI7mfhmsBiUQ= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-549--zeSp4kDP7KMOCcKBsCAzA-1; Wed, 01 Sep 2021 05:38:41 -0400 X-MC-Unique: -zeSp4kDP7KMOCcKBsCAzA-1 Received: by mail-ej1-f69.google.com with SMTP id s11-20020a170906060b00b005be824f15daso1148690ejb.2 for ; Wed, 01 Sep 2021 02:38:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NUMgUGMek2BTIcQrz1eRbN4kQSB1Pe9L2E40QgP/xs8=; b=kMlaz2MnjaF3iBte2xQVu2bHYrCzCl71U4VBzyI08Rg3cGpltkXRDWQNbFkB6kOaph XrT9HRGeoBSjQtmGO8sPoVVc8H5TotY8lqxFOxTR/weRS6dxqAYK5krOt25LOBMtM0py bRd6a0QnhbVWrRbPOK+VAkh0jD2feN0QRa/vekEfpE8q15Ud2gsmz4d9OetoMAsXjwjS Uy72X4AkJnG5RERx5M2JXkCnrEWKn93IaQruNbOO+dHCHsYsqe18CrsYvKzdrOPlRdBf olUUMe/b+CfV9bjdWtpVzv+FNX/jY4/JyyZ2nXcerE4unrDgwUlj+FDpY1Ir2B4IPAi/ ZtOw== X-Gm-Message-State: AOAM532hQc7rQRv1u2hR8wp6Rv3imWu50tLVWPCXFWzCsvaMgxBKWNe6 0GKvm30LYe/GqmITqd4nH7+PnCc/6CA6vWRyCE0LI1FUgHg7Xudh31OkwWo20aDuVz8pukjAWai Np2WDXs0gBxOgRYuN0hM4h34F X-Received: by 2002:a17:906:8258:: with SMTP id f24mr36087121ejx.375.1630489120721; Wed, 01 Sep 2021 02:38:40 -0700 (PDT) X-Received: by 2002:a17:906:8258:: with SMTP id f24mr36087099ejx.375.1630489120489; Wed, 01 Sep 2021 02:38:40 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id q18sm9654169ejc.84.2021.09.01.02.38.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 02:38:40 -0700 (PDT) Subject: Re: [PATCH v4] libata: Add ATA_HORKAGE_NO_NCQ_ON_AMD for Samsung 860 and 870 SSD. From: Hans de Goede To: torvic9@mailbox.org, "linux-kernel@vger.kernel.org" , "hpa@redhat.com" Cc: "linux-ide@vger.kernel.org" , "axboe@kernel.dk" , "damien.lemoal@wdc.com" References: <1876334901.51676.1630481868266@office.mailbox.org> Message-ID: <2df1c3d5-301d-dc46-7f9f-d28be2933bd3@redhat.com> Date: Wed, 1 Sep 2021 11:38:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.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 Hi, On 9/1/21 10:55 AM, Hans de Goede wrote: > Hi Tor, > > On 9/1/21 9:37 AM, torvic9@mailbox.org wrote: >> (Sorry for not doing a proper reply) >> >> Hello, >> Noob here. >> I have a Samsung 860 Pro connected to a AMD X570 chipset mainboard and >> it just works flawlessly on 5.13 and 5.14. >> Are you sure that *every* 860/870 is concerned by this problem on >> *every* AMD controller? > > I am pretty sure that every 860 / 870 EVO is affected, > I am not sure if the PRO is also affected. So while reading https://bugzilla.kernel.org/show_bug.cgi?id=201693 again to add a comment asking if anyone was seeing this on a pro to I found existing comments of both queued-trims being an issue on the 860 pro, as well as the 860 pro having issues with some AMD sata controllers. So it seems safe to say that the 860 pro has the same issues as the 860 and 870 evo models. Chances are you don't have discard support enabled causing you to not see the queued-trim issues (which means you also won't see any difference from disabling support for queued-trim commands). So this just leaves your question of: "concerned by this problem on *every* AMD controller?" Where "this problem" is needing to completely disable NCQ and I guess the answer is no, not every AMD controller is affected. Still the plan is to err on the safe side for now, allowing overriding this from the kernel cmdline with: libata.force=ncqamd I will add a comment to: https://bugzilla.kernel.org/show_bug.cgi?id=201693 Asking for PCI-ids of the controllers where people are seeing this and then maybe we can narrow down the "AMD" check in a future follow up patch. Regards, Hans