From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEA34C43381 for ; Tue, 19 Mar 2019 14:25:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7DDEE213F2 for ; Tue, 19 Mar 2019 14:25:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TKNIHYJx"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="g1Vt2pZ4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DDEE213F2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GCYgzUnYGf9n52KWedNfI+pbstrSztH8kRXNasGjWKo=; b=TKNIHYJxhZpOhK g5Ci0gqBc6UFtsD2NiJHctzWAA7tHdO4Jssztow05KdK9aBhJ+2lX3IkauuJrW6ZQX5kVL9Er4pXG aQEuW+P+qQtxAXSd+Ycap9VC2TWhRw3UnHUuY4DrUXIkQ8jLyeseV014K9McCqUttlQuolzt8aROK rzvFvcMGKEVKomOSMxrHUrazrm5PQpQJ+uAY4q8PP2Pps9s0kq+KH//xL0+Sxgl+lemru9XEZJoQi W4PlhZfNrCQN+pvGOoZE0MY6NKkOP8dkNVMqY5DPTESy0J9RyTj296/VtN9pWsN0Q3dmdjlBzgC4U Rkxvan0gbR35F20MQc+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Ffy-0001lZ-Mj; Tue, 19 Mar 2019 14:25:10 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Ffv-0001Uy-KL for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 14:25:08 +0000 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D3DA2133D; Tue, 19 Mar 2019 14:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553005506; bh=ShJrO75kVwVfj0TZZkY25BHwM7NrVg9eygGGfJtKH2M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g1Vt2pZ4YXOsVZTHEO9lx9M5N1zdr81U6O1zpTLsdZdBkyarkr3kYKibJmudFabr6 t+8T1hUsJlb72osycB9mvyfjZ6TMb6MKkh+JJEghpaL7i6p2Bt6ZD2DRRZr1STXKY5 SRo1tUM3ocisdMYcYnWTa/QWJ1ReIrScmrSTE+vM= Date: Tue, 19 Mar 2019 15:25:03 +0100 From: Greg Kroah-Hartman To: Andy Shevchenko Subject: Re: [PATCH v1] dmaengine: idma64: Use actual device for DMA transfers Message-ID: <20190319142503.GA13758@kroah.com> References: <20190318153930.25641-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190318153930.25641-1-andriy.shevchenko@linux.intel.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_072507_694760_D35A9D3A X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Haojian Zhuang , linux-spi@vger.kernel.org, Vinod Koul , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, dmaengine@vger.kernel.org, Robert Jarzmik , Daniel Mack Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 18, 2019 at 06:39:30PM +0300, Andy Shevchenko wrote: > Intel IOMMU, when enabled, tries to find the domain of the device, > assuming it's a PCI one, during DMA operations, such as mapping or > unmapping. Since we are splitting the actual PCI device to couple of > children via MFD framework (see drivers/mfd/intel-lpss.c for details), > the DMA device appears to be a platform one, and thus not an actual one > that performs DMA. In a such situation IOMMU can't find or allocate > a proper domain for its operations. As a result, all DMA operations are > failed. > > In order to fix this, supply parent of the platform device > to the DMA engine framework and fix filter functions accordingly. > > We may rely on the fact that parent is a real PCI device, because no > other configuration is present in the wild. > > Signed-off-by: Andy Shevchenko For the tty/serial/ portion: Acked-by: Greg Kroah-Hartman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel