Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3696327pxb; Mon, 24 Jan 2022 15:37:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVgkOJvPc5uwWSQE+oIFF5j2ZvzUe2Vxj1HYgK6UZLAPvcOylNw/fJ7W2JahQ8ekpJg1Sp X-Received: by 2002:a17:90b:1b0b:: with SMTP id nu11mr585317pjb.121.1643067464017; Mon, 24 Jan 2022 15:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067464; cv=none; d=google.com; s=arc-20160816; b=hWvxdl7pZPbH6VK5E2jFhkeF2TRmZRSmcJgh/jQYBslzk1r35ai5StN+KX3QpZbIjS 2C5UaNq2/aBn3Rf1uCm3IA3oo/E9JqcikpugFcRDk825fef+JK4NP3bxxKffh/AwN1Ah 3Fxs8Ac6W3P5Tf+y7X/KHcP/S1GWsuZD8rMWMy6yHaVtAQ3ShbC0blYbef5OAGo9yRCo bqX4kHX6w6AmdNZz3LEPXsI+3ewRX0eoObT0zw3ybHh/YdU1KcxyBCad8kz2ofSQUmnb IUe38MeXykxEEaY3QcolC4K4FcPMZzzslO+WpzQcRMlX/TmsUJF4OAsbSMXWttGt4+Kg OnKg== 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=B3PZd7/jI8+2/QHgCsD32rB8im6ijpsvBRvn7dGp6CE=; b=kzcYRXGPaWB9mV6nuXo9YCGT+UCGX0iZ8idyVhyTT441lYQRXRi9mBTpYpfs3W7TBk ao5Qbm8c3Oemh9eLGTghXQK9IFTjwk97Pw+qhkVHVb1FOsUNldsmoml/NrkX/+R0NYN7 hcksYkq6XFuvBUknZ/E6KusH7mdTpHbotHUTeeOpUEGDP9hMBsbD4PFxZ7YeRpzAe2cp EbO7dj78aQpVRVGJHGn7mhSXk/kdK85choK/7QLqwyvUsf5zAokFxDjrSZfnu1EdgkvQ hGpwQeZLeHyhpYzWRqeCEULxgve+GI6PS6t3SCt0rmONZxYH8thSEPyg+i3VdFr0/I+y WCKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="CKFZ/W+E"; 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 w13si14122317plq.358.2022.01.24.15.37.32; Mon, 24 Jan 2022 15:37:44 -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="CKFZ/W+E"; 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 S1850092AbiAXX1Z (ORCPT + 99 others); Mon, 24 Jan 2022 18:27:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1588121AbiAXWbl (ORCPT ); Mon, 24 Jan 2022 17:31:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44298C02B86B; Mon, 24 Jan 2022 12:56:14 -0800 (PST) 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 D9DE460916; Mon, 24 Jan 2022 20:56:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7283C340E7; Mon, 24 Jan 2022 20:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057773; bh=WpOyy6PjwGpfsS2pWgBqOag+9MmARwpgbKe9wRIksXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CKFZ/W+EyF5deTdMRPVKYZ7Ow9alcn3mGa3ZvgjOqmon3iM2ESh63X5SAeZ6GQ49t Ur86ahDRIDDLnMa2Dc5dvohQGNvDZDNeG5yV/RqtyS4z0M01lIsqq/frrJbCiMDqtd LyWC8ZgFHBvBonSXtTkANr5HJwBnUt42i84b66dE= 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 5.16 0074/1039] PCI: Add function 1 DMA alias quirk for Marvell 88SE9125 SATA controller Date: Mon, 24 Jan 2022 19:31:03 +0100 Message-Id: <20220124184127.660334615@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 @@ -4103,6 +4103,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 */