Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547596pxb; Mon, 24 Jan 2022 11:57:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiBrqneWTB28u7xw7yrcdKn3mO4NYCh0ryC1aL8Hoeh30w8HpIBz5/0GO6JjRXRvj5+CFx X-Received: by 2002:a17:902:d4c3:b0:14b:2eda:be2a with SMTP id o3-20020a170902d4c300b0014b2edabe2amr11261633plg.84.1643054246630; Mon, 24 Jan 2022 11:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054246; cv=none; d=google.com; s=arc-20160816; b=K2MYWetyPjUG+w6u1QZVNhxR3o+ubitKXfYp7E452J4aR8MiHKnWmdsU30fxp5veWS vSkYTeDbBH4O6SM0FjFNGtacr8HuLzCuXHezKa2N4WSXBmBugEqipya/8Efj26BW5RUI JAucGff1gfCsMgVY/2UHgCKkuCivfwRM+vXt/r0RqwNQiFSzIrL/YGMURLeONkZBNgvb +rrAfSyYcXhhweeKoOEAZB1j71BlkVkLDw69cvU6MrRmVOpvQq+7jrKx12M8OJjgdQEZ z+4I0ih31AwLBjaFlkvStyxIs7zddz/EFxClyvxUsMY5iKxRqsASWbr68Gs3SOodPddw CzRw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cS6EqTP6Xas3Ha+351VPz21RkjmZ94b/Gmz31zuIEbg=; b=IAXLLg7m8+0Wr96BKmKuIIkm+GRhTVeoUFJoiBjNSRRWyBWePW2w8rIhAo0NYvA4ut MQe8MLHgAm/dN+nAIpmGLaNLUU+/vlrszDP5IdjbR4ORU3h8Quj21Wu2VXMD7z+yNunQ 3vxEK5YygHgp1hHd57BoCSqIuQK/gy26I/w6C9/+j5KpV4SO5bMmUm8vp6RT7upY+Fs4 ihDk2JvPEyKbXOozhLzTXJxEv/bPP0TcF9QZ8f+cWf+v5OyiSNGvDkSSwMcubcoZ533p WXb60BvvE4EKDGw11QXxzjWq+37sjpTNcfTIKOBFhyO1nTOeBwJKc/v+4FEMi6Ai9r3p G6VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WlzGpqCM; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l71si11611079pge.724.2022.01.24.11.57.14; Mon, 24 Jan 2022 11:57:26 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=WlzGpqCM; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343760AbiAXSvn (ORCPT + 99 others); Mon, 24 Jan 2022 13:51:43 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:49300 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245741AbiAXSue (ORCPT ); Mon, 24 Jan 2022 13:50:34 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B00BA614B8; Mon, 24 Jan 2022 18:50:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 964E3C340E7; Mon, 24 Jan 2022 18:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050233; bh=vY09gumFJYAuICoH+Y13Ik7CFxOnZVlQler2X++ILY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WlzGpqCMAWHRDcc+me/bY1QWCHDagjCnKdurLVjwhTH9fbL5t5YowdFG9LGa97aNg Zw92ixAeuOC3YXlPHQG+GN3jvX1wnx1RUPAt3vkv48vpH3c5bJLpdn6zWGCI+nAKi9 qoZvxX1YleZ9La3Iyw7S6ODkUhXtkwPJ4YHCqYMM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sam Bingner , Yifeng Li , Bjorn Helgaas , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= Subject: [PATCH 4.4 019/114] PCI: Add function 1 DMA alias quirk for Marvell 88SE9125 SATA controller Date: Mon, 24 Jan 2022 19:41:54 +0100 Message-Id: <20220124183927.712313393@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yifeng Li commit e445375882883f69018aa669b67cbb37ec873406 upstream. Like other SATA controller chips in the Marvell 88SE91xx series, the Marvell 88SE9125 has the same DMA requester ID hardware bug that prevents it from working under IOMMU. Add it to the list of devices that need the quirk. Without this patch, device initialization fails with DMA errors: ata8: softreset failed (1st FIS failed) DMAR: DRHD: handling fault status reg 2 DMAR: [DMA Write NO_PASID] Request device [03:00.1] fault addr 0xfffc0000 [fault reason 0x02] Present bit in context entry is clear DMAR: DRHD: handling fault status reg 2 DMAR: [DMA Read NO_PASID] Request device [03:00.1] fault addr 0xfffc0000 [fault reason 0x02] Present bit in context entry is clear After applying the patch, the controller can be successfully initialized: ata8: SATA link up 1.5 Gbps (SStatus 113 SControl 330) ata8.00: ATAPI: PIONEER BD-RW BDR-207M, 1.21, max UDMA/100 ata8.00: configured for UDMA/100 scsi 7:0:0:0: CD-ROM PIONEER BD-RW BDR-207M 1.21 PQ: 0 ANSI: 5 Link: https://lore.kernel.org/r/YahpKVR+McJVDdkD@work Reported-by: Sam Bingner Tested-by: Sam Bingner Tested-by: Yifeng Li Signed-off-by: Yifeng Li Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof WilczyƄski Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3657,6 +3657,9 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_M quirk_dma_func1_alias); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9123, quirk_dma_func1_alias); +/* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c136 */ +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9125, + quirk_dma_func1_alias); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9128, quirk_dma_func1_alias); /* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c14 */