Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp983216rdb; Tue, 30 Jan 2024 04:50:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaVxzO7XfmpSaM+vlGpIcin17A1UNKgFtLxKo26rS8ITjr+1xBvBabDjPNsXGLOqiA3Lg6 X-Received: by 2002:a05:6358:16c3:b0:178:7f8b:c04a with SMTP id r3-20020a05635816c300b001787f8bc04amr3130583rwl.58.1706619026322; Tue, 30 Jan 2024 04:50:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706619026; cv=pass; d=google.com; s=arc-20160816; b=ElUoI+pYXU9vovkTjCBzN/uLJLcKcSUHoDEWx44VSf+QX4M4cJVejPawQzPAxKJvc6 9YW6W3boX2SXMktA9oHvzVkWZZT/kTtUt+lKS8qvQXa+t6bjVFYGAxiXFPHLGu5+QzjL ADxCReWL9uiqwVgW9w8+1pbWI9wM8z5pv4Jn9xT3INMIhr2QtzJjnXRXpCHRfwqskSeR KV6Ewu8C27oHxsG5WtI6yY69bzoaH95fuUTsh01DXuDck7P0HyoTmj3MGwWy62WLquEc axuSIvDgj3h5bIqGJp6NecDTIA9EXKxkHn7W9kHVqAF2iTP195RH8Qrp7qjJcfmJWfh5 MAxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=PI0eiSvzWoaUOsSedNjMhbbpiR8TysjS5jrEAdgq1Jo=; fh=7/RKo+3RlPYRi6bZLl8a4Q9mRSMBEkYGBfJp68TbLBg=; b=fS4b3vG3K1HkbJr5MXkWx0q5oTizqoKpBePZj6NKWKRqvxxXgqXtJfwvAkMigbZJDj g/HYA75U+adTn7SATL8f5kt1/4sxP7XfeFe4mtpcXxKXUOMSLowzxrOKvcFqJrisreSf c6QWZbFqYEc4EuqRE6+XMpjlAlkptZjbpKMKCAkQB5kEV2SPHycMyDmb9hPEXYVJ8GVA 63xDU/lRI9Dh+9UsTkhkfFblHW6VNHoO2z0Du0uEIgMsQw0fj8aE+emXH+XnndlkXLWF FPiik5CwxgtiIBFedLyLV9061qNlWTTBbDyEL6i6O7iuoO1Nj8krbgF5HoB27E4vhqCu aEGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="P/iuWvou"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j191-20020a6380c8000000b005ce0b38a6dbsi7325773pgd.580.2024.01.30.04.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="P/iuWvou"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 D2C05B267EF for ; Tue, 30 Jan 2024 12:26:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BA0E67E98; Tue, 30 Jan 2024 12:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P/iuWvou" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3D9B76A006; Tue, 30 Jan 2024 12:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706617597; cv=none; b=MXZsXK1TawrrPjOxXDjVR1HDZIvM0/Pn6RD/THQ7ALDax94/xaEAwDo08YC8or2WEIobU19shSlJr+eBrvZ8b0cytUWM8ihARGnSNgyt7Y0l+6m3PzShzMhKBzG8z6meFLbS1Pno1MDs5DjcKzx2bd5nysEph1hELTgIDbRBffg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706617597; c=relaxed/simple; bh=pMHAd/MSWd3d0LOHEUFPp259bp/dNc4+vR9bQ1FB1qg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d+xTsBgKA+7petmj0PGXXerhhCE3JY2bgu0gxW+VgeRh35KexuIH/7b5z+STO6CK4w0ryYJdo1Vw90IKcTR4AYKhGSWzYteAyrx1F1P4dCeN31Zj+FFY80M8Ake9H/zPV4l5PP+Z6OCXlO7khaj+q9FVPBMUv6T/u1+f3QTt93g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P/iuWvou; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9578BC433F1; Tue, 30 Jan 2024 12:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706617596; bh=pMHAd/MSWd3d0LOHEUFPp259bp/dNc4+vR9bQ1FB1qg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=P/iuWvoupx0VYnvbBZVrrxx3EQ0Rh7GxRWlmLLWgpGYMzobnH+UCYgroT9IR1JR/t TxwJVnskRUQzXZNwh1g+4lO3L2Cw9Vwk1R5vO9rAs8Z3WEDuyyaU0bRIJpl9jGk9tG pbW7NaDaOfS+Di+zLJ5Lf0Jns0fxmxocSYsuBhcqXSrfN1HWbevtQLzevhF8NgnE4i j4N4nR7I80HgU24AMDD3dA3FLhqBDrxrnE4veDOABHIICIuSphjCWmvlnd4qd6+ngl a8ytIykDVuIWnvNPLLVQpoauR9taqftzrFy+tz7VLSraWoScoteyzVbP71wl9W98jh q+HAEzEUgoOIw== Message-ID: <2d111b04-4307-4f47-b3a4-208f571d04a8@kernel.org> Date: Tue, 30 Jan 2024 21:26:32 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x parts Content-Language: en-US To: Lennert Buytenhek Cc: Niklas Cassel , linux-ide@vger.kernel.org, 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 References: <6ab581f1-385c-49af-bff3-aacd1cdbe1d8@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/30/24 20:59, Lennert Buytenhek wrote: > On Tue, Jan 30, 2024 at 08:46:23PM +0900, Damien Le Moal wrote: > >>> 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 to the other supported ASM106x parts as well. >>> >>> Signed-off-by: Lennert Buytenhek >> >> I think this needs a cc: stable tag. > > The commit that is likely responsible for surfacing this issue is > 791c2b17fb40 which went into v6.6 -- so would this then be appropriate, > or do you think this should be backported to older versions as well? Hmmm... given this is a hardware "bug", it seems safer to backport to all stable & lts. From what I understand, the device may be doing bad DMA, regardless of what the iommu is doing. Niklas ? you followed this more carefully than I did :) > > Cc: stable@vger.kernel.org # 6.6.x > > >>> --- >>> 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 */ -- Damien Le Moal Western Digital Research