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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 181F9C76196 for ; Mon, 3 Apr 2023 13:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=761Np2tAvf8HyIALMY4blr/HNBN7ZxzGTJg3zlSFZYs=; b=KQZTFYi5bh2Zju WI/crA2vfTBUjU1XcOqVkikcTA2ROxipmAbsJt3hepLhKvdslLwWx/o0bbtN+xjENgI4YO4Qw6HBU K+54wwNH/z0x25Oiahv7DzSANL6mS6OmujYbiMkClxak6tIefBdQrp9YbVUYXYQEFAqfNHxw6PevH CewLCIrWn09pu7CFfBYzbqD8A4nrF8wofOVqfvj5n3bOXIkmhfwhyGNixCowDRxUdgJOyT4gJWJ+U OZdsqs6P3bFG8hJ6cdiUxudTpgUmtAxhmTx/0YTAO5nlOeoFk8nvnqcKC52JoWUX30jyZt8oCIxOD QPQJ+CFazIZScDuK2tZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjK4Q-00FQiU-36; Mon, 03 Apr 2023 13:18:02 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjK4O-00FQht-1k for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2023 13:18:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SpuK2a3wX26UmFGy/i63X6Bi715aQcQ+QI13BV8QfSE=; b=uLQowZ19fx+/EyT3UcKz2mfWmL SeNcgi+i7qXAaHWSKZM5RukXuwFx/fipqZ9O+4+S0KyHxQ7kSXp18YvcJ86pMmLtlpM2O1NeIbh8c 5OBdII5Zth65SIxf6k20cPnpqcFoBYmn6VmTYYreNSOZexopcSA0/sO7fIDSRtpt9PjCj1QsbNSVY 3LHXpAlSNuI7nIr+eqOFQ/R0ng+ewPVXtr1aw5k+CpGVwgAZJn3RrMT33L1TNUx0cMBlcPhiwdd4I mxLuWSzWqriEFlaso0MLdmxs7+Nnmtqz0OsPhnlEod5uKHiiCFh8ZzwGM/qATLltycGVdK9Jeh7OP yfgpbGBw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45106) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pjK4E-0002pL-Mr; Mon, 03 Apr 2023 14:17:50 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pjK49-0004Gl-FQ; Mon, 03 Apr 2023 14:17:45 +0100 Date: Mon, 3 Apr 2023 14:17:45 +0100 From: "Russell King (Oracle)" To: Christoph Fritz Cc: Kever Yang , U-Boot Mailing List , Quentin Schulz , Heiko Stuebner , Tony Xie , JuliusWerner , DanHandley , Rockchip , linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org, tf-a@lists.trustedfirmware.org, =?utf-8?B?5byg5a2m5bm/?= Subject: Re: rk3399 issue: no DMA in Linux with mainline TF-A and U-Boot SPL Message-ID: References: <80286c54-c617-d790-b7dc-efd4e52259eb@rock-chips.com> <31b64d9aa694524d60c814469d620c8e15479222.camel@googlemail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <31b64d9aa694524d60c814469d620c8e15479222.camel@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_061800_581353_99393135 X-CRM114-Status: GOOD ( 18.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Apr 03, 2023 at 12:11:40PM +0200, Christoph Fritz wrote: > > = > > =A0=A0=A0=A0 The ARM PL330 DMA driver in kernel only relate to: > > = > > - DTS kernel used, can be check in /proc/device-tree/ > > = > > - kernel driver which should mach the compatible name. > = > drivers/dma/pl330.c needs also a successfully matched amba, but this > fails when using mainline TF-A and U-Boot SPL. > = > I'm using the same kernel and devicetree on both tests, the only thing > changed is TF-A and U-Boot SPL vs mini-loader and rk3399_bl31. > = > > This driver should has nothing to do with U-Boot SPL or TF-A, because w= e = > > don't have any special setting for PL330 in loader stage. > = > It is drivers/amba/bus.c, which is unable to find an AMBA_CID on the > ARM bus. The DMA driver not loading is just a symptom of this issue. That brings up the obvious question: why is it unable to find the AMBA CID? Is that because some resource needed to read it hasn't been enabled yet? If the AMBA CID is not accessible, presumably the rest of the PL330 also isn't accessible, so even if we could bind the driver, it still wouldn't work? -- = RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel