From patchwork Tue Jan 30 13:21:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lennert Buytenhek X-Patchwork-Id: 194181 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1234826dyb; Tue, 30 Jan 2024 05:58:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCVK28nFbGlP4GchHoJI+BTlUi9LqqoKgVJHvNZ7Hdc8g0ydUIYl0JKNk2fdRAn3kG/gkA X-Received: by 2002:a17:90a:b88d:b0:295:b44c:28ae with SMTP id o13-20020a17090ab88d00b00295b44c28aemr996966pjr.39.1706623100727; Tue, 30 Jan 2024 05:58:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706623100; cv=pass; d=google.com; s=arc-20160816; b=aH3vmwm/iXEH6JghlRV/iAn4gnIo4Wk6BOhfLzmwoUa5ycP9UupXWSwMPOwGScNupJ qyjAr6ONFI7xc5K9umGlLNOkzPxIy/JK2cMNdoCXn2OSMRqlPitQio00rY5umauDzV8G lIiQBVPUFcDD6jpI0YX+oh9nZjzWdl1wrRiIfuMG7YQjxAJOBtSxmmsnD4TBF8NO9jPF AY/DRYPbi0t3Tjz3SXltjlx8YtPpiUYGK5BVcutEKVzncdUbLuQnq9KD4X28wSVydanU NTyL2xPwNSJb+HPNd48hAl21NIHBCMO398qUUYTF61kod+aTC+rplf8nlZOuVO8QYHno 89sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=SFJrcx15An4OxTz21VX9vs5Mj1csOBnWg0ANGUi8M2M=; fh=jS+JFZCuoDLBT9WloK/QEqobe/lWMBymEk/kQD6Fh7w=; b=SDV2mELDROU2uX5wc4vJJyycb2xfb4fkjS1BBKu09v8eSSYiy4k2QlMt3RfFXGHHAW PehG5Baiowan1Lm+qkfCDqBOWfQxxwYy0Q2fNZBVuREwCBtLIT+9DhsOEVEWSSAaRWXG MSUXLUPUR6At2DQDcJ5NyGm03yIxewpds3oX5ZYrUy0GZ01YRMb85gVoazPYbZ2CHnsF NG/s39Z8R83xy7MY710TEVLCwqsj9XjipimzYwMTAoJ5nQECc5dhsVn/e8mXbTfypdcm byQfWsLGgDwWq3iR4EZ1oLM3QM4Xh0+2BJqmVF2TcB4fpjOQHBwJPf+au7CUxuMbxtyr bsDA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=wantstofly.org); spf=pass (google.com: domain of linux-kernel+bounces-44695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44695-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bt22-20020a17090af01600b00290b6513033si7581771pjb.153.2024.01.30.05.58.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:58:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=wantstofly.org); spf=pass (google.com: domain of linux-kernel+bounces-44695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44695-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1E335B2D088 for ; Tue, 30 Jan 2024 13:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F8956D1A6; Tue, 30 Jan 2024 13:21:59 +0000 (UTC) Received: from mail.wantstofly.org (hmm.wantstofly.org [213.239.204.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5AF066B51; Tue, 30 Jan 2024 13:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.239.204.108 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620917; cv=none; b=uxJPaCh6szxltrURcEhdY8fk7Rg3d7gYp5TDIKx/AGJtzmsBtTQ18QinIV84/Te5aIt9Q3wO3A5opo8FlxcVO+DPZLAwu1VGbb0Yx6IdW2F9j9lYqoSXgV2mqSkbn+EOAPONiIj0Ep+KzWQcjHG2Q5jgUE+4iwPc5jH3pvTWEoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620917; c=relaxed/simple; bh=sCwvg7fmZpYe2WFUpmLqoBWvtS4SSrCpp+/eMKYVJzs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=iBnSE4vuAqsuhthC2R3CrmRDDW2gyylJ7RNprbO6HMApA0Z/5077OjM3uMftCT7rXS9QeRYRLgU+sEC36ADgbOacQZHlnfCcldqj8d0kofiMHu35t+DNXCdYQNO98Ve2pK6BFzNNAmacfCOhetkhnVd9luYo8DzpD++ESd9WnSg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wantstofly.org; spf=pass smtp.mailfrom=wantstofly.org; arc=none smtp.client-ip=213.239.204.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wantstofly.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wantstofly.org Received: by mail.wantstofly.org (Postfix, from userid 1000) id C985D7F711; Tue, 30 Jan 2024 15:21:51 +0200 (EET) Date: Tue, 30 Jan 2024 15:21:51 +0200 From: Lennert Buytenhek To: Niklas Cassel , Damien Le Moal , linux-ide@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Robin Murphy , John Garry , Joerg Roedel , Szuying Chen , Jesse1_Chang@asmedia.com.tw, Richard_Hsu@asmedia.com.tw, Chloe_Chen@asmedia.com.tw Subject: [PATCH v2] ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x parts Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789524024566720631 X-GMAIL-MSGID: 1789524024566720631 ASMedia have confirmed that all ASM106x parts currently listed in ahci_pci_tbl[] suffer from the 43-bit DMA address limitation that we ran into on the ASM1061, and therefore, we need to apply the quirk added by commit 20730e9b2778 ("ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers") to the other supported ASM106x parts as well. Cc: stable@vger.kernel.org Signed-off-by: Lennert Buytenhek --- Changes in v2: - Add Cc: stable@ (requested by Damien) - Fix commit reference style (requested by Niklas) Link to v1: https://lore.kernel.org/linux-ide/ZbjgTmR5FbAnb-Ua@wantstofly.org/ --- drivers/ata/ahci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index d2460fa985b7..da2e74fce2d9 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -606,13 +606,13 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(PROMISE, 0x3781), board_ahci }, /* FastTrak TX8660 ahci-mode */ /* ASMedia */ - { PCI_VDEVICE(ASMEDIA, 0x0601), board_ahci }, /* ASM1060 */ - { PCI_VDEVICE(ASMEDIA, 0x0602), board_ahci }, /* ASM1060 */ + { PCI_VDEVICE(ASMEDIA, 0x0601), board_ahci_43bit_dma }, /* ASM1060 */ + { PCI_VDEVICE(ASMEDIA, 0x0602), board_ahci_43bit_dma }, /* ASM1060 */ { PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci_43bit_dma }, /* ASM1061 */ { PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci_43bit_dma }, /* ASM1061/1062 */ - { PCI_VDEVICE(ASMEDIA, 0x0621), board_ahci }, /* ASM1061R */ - { PCI_VDEVICE(ASMEDIA, 0x0622), board_ahci }, /* ASM1062R */ - { PCI_VDEVICE(ASMEDIA, 0x0624), board_ahci }, /* ASM1062+JMB575 */ + { PCI_VDEVICE(ASMEDIA, 0x0621), board_ahci_43bit_dma }, /* ASM1061R */ + { PCI_VDEVICE(ASMEDIA, 0x0622), board_ahci_43bit_dma }, /* ASM1062R */ + { PCI_VDEVICE(ASMEDIA, 0x0624), board_ahci_43bit_dma }, /* ASM1062+JMB575 */ { PCI_VDEVICE(ASMEDIA, 0x1062), board_ahci }, /* ASM1062A */ { PCI_VDEVICE(ASMEDIA, 0x1064), board_ahci }, /* ASM1064 */ { PCI_VDEVICE(ASMEDIA, 0x1164), board_ahci }, /* ASM1164 */