Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4738418rwe; Mon, 17 Apr 2023 18:20:08 -0700 (PDT) X-Google-Smtp-Source: AKy350ZfeNLN6Ymk+xX2Y4AhV1D4kyrO+GP6oc9hgG7jhYM0K4kogp8NkteOuYzK2hPe1Ol7y1Bx X-Received: by 2002:a17:902:f98b:b0:1a6:9d1b:e18f with SMTP id ky11-20020a170902f98b00b001a69d1be18fmr377889plb.45.1681780808658; Mon, 17 Apr 2023 18:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681780808; cv=none; d=google.com; s=arc-20160816; b=XexPPxbxzMerATBWTrcZuMo+A4SXzaqDpMyZRHtcxA1pB+cC8GhapPbIlsW3rlWDZH b77pSf80rxDCTpccLKxIN3s/aDuprbmSf7A6aeLXfDw9iDyfyGp0QjbpFXshUFIimGaY gMYx/3vP9hvpeJrHuUuT3TBMx846FjephZhQ6OIHb6gx+97ZIe8s8l3j2q+acIW69xcm eozRL/gxqYPXJqRGSHCTnqVAlnd6e4EOxCbMqp6DwwDbwSIHX6gTn83vdKcnfz2doGmf eOkdK/XpfRP030c9OgvixlF7KcK8n5Lvuyqd7b9g+1L62PzLC0uqtjsUm47XcG4P9B/Y nc5w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WRWnuT3yvN9U0yKW+MReL7D7j6XICQYdt7dq4jZAcMk=; b=oqCa+UxbEhi5U9gdV/repY89f7NajUsTMzNcbnzijZS7kArPYWqxqFrpQS6zGTl1nt /nLZNMddaop9r/XYSXhkwubGBO5x71OL0CenJo/vgm9o2OWVcl/KD5SabBe6FPr/j1JA 2s6gPXDs5IqxKCLA22gGI4mg6DBbJZRBsePIhRy08JF44KOfq+Xq7xYA5CiLRQplnDSd M4xCX3EL5F9SEfHGG4cDU3Tl9+ROgWuQvbVm7FfxrZV2bYo6YpKFim8Nzt+St5OuGF0J ycJVmstpsCQd4lXutGcOj1DZQvbcSnJnZMZGSkHSbVEZpdl2iijV06CfBASXLZVlohuh hAVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk1-20020a17090b4a0100b0024730b93a6asi12016206pjb.147.2023.04.17.18.19.57; Mon, 17 Apr 2023 18:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjDRBRd (ORCPT + 99 others); Mon, 17 Apr 2023 21:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjDRBR2 (ORCPT ); Mon, 17 Apr 2023 21:17:28 -0400 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B8C83AA2; Mon, 17 Apr 2023 18:17:27 -0700 (PDT) From: Patrick McLean To: linux-kernel@vger.kernel.org Cc: linux-ide@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org, Dave Airlie , Thomas Zimmermann , dri-devel@lists.freedesktop.org, Patrick McLean Subject: [PATCH 2/2] ata: libata-core: Apply ATI NCQ horkage to ASPEED as well Date: Mon, 17 Apr 2023 18:17:20 -0700 Message-Id: <20230418011720.3900090-3-chutzpah@gentoo.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230418011720.3900090-1-chutzpah@gentoo.org> References: <20230418011720.3900090-1-chutzpah@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have some machines with ASPEED SATA controllers, and are seeing the same NCQ issues that ATI controllers (I am not sure if it's a rebranded ATI controller, or they both have some faulty implementation). This NCQ breakage is consistent across a few different types of drives. Instead of maintaining a list of drives that are broken with ASPEED controllers as well as ATI, let's just treat ASPEED controllers like ATI ones, and disable NCQ on drives that have ATA_HORKAGE_NO_NCQ_ON_ATI set on them. We have been running this patch on several machines for over a week now without reproducing an issue that was happening almost daily before. Signed-off-by: Patrick McLean --- drivers/ata/libata-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 14c17c3bda4e..051492e8e9f9 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -2219,7 +2219,8 @@ static int ata_dev_config_ncq(struct ata_device *dev, } if (dev->horkage & ATA_HORKAGE_NO_NCQ_ON_ATI && - ata_dev_check_adapter(dev, PCI_VENDOR_ID_ATI)) { + (ata_dev_check_adapter(dev, PCI_VENDOR_ID_ATI) || + ata_dev_check_adapter(dev, PCI_VENDOR_ID_ASPEED))) { snprintf(desc, desc_sz, "NCQ (not used)"); return 0; } -- 2.40.0