Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827438ybl; Wed, 22 Jan 2020 05:29:35 -0800 (PST) X-Google-Smtp-Source: APXvYqycLB+qFdyfshnas2rh2iU2qCmYMVUERFMKtPPZxRddictCu50sKev8i7yIPjt54CJcJMiX X-Received: by 2002:a9d:634e:: with SMTP id y14mr7671977otk.162.1579699774904; Wed, 22 Jan 2020 05:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699774; cv=none; d=google.com; s=arc-20160816; b=QEJEwPiL/7nXu/c/RFkLTTSuZA+pDuViXq114GHQ0ITO/+G3w4IHTYjTSE+NEOlluB RtCWVcaKeWiFgFJqpyLBQalBjBiJsTTePIxpOKCqYPZWBQG5Zs18qw9f83d3wb2B15Kj qpF+1tS+Ea1G2UxAVXrYOZ4pHvVU2Fg9WhacQTNr0h7161AxXEh6jtAoFCLuQTbZvHmz sfdS69nrexl0bbaQyogY5TAW0mj+woVvQW+aPoXmAJc/tdoSUgLSocseWCtirxLdnmPa 6e9HXx3S9t5wQECRoVNTG4eDMdUT1oHndInP1E/XM0FzartYMKxWZYpFmTUsgzEBxu1O 2eww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DuEJxcLMEHuVRbuyC3QboTdP8I8fXUaemTh9GVy8Bpw=; b=KHK503GcliSaULoSOwIA5gdLkRYSCW0aiIe4Bpii6KoA7iummxinSKrHBHmAi0zC0f EZIf90XJBtS9mFaDbZT3a4vxx/b9foOQ8QtoI7NQGg2XMM6nmQbWycVp3fqTLepfmQH0 8nha8WXf4HDOhOU3pZ8/lqd2xlVpONjMhDdto81fQ2FPWM0jueXtMKXt0l2J4YY4giug nEofR8OvmFbVTFdAUc9s9pKwWU/5hPDSwXr4IFkiPaIqRlt2a03XQtilDAGpMqVEHcfF eHVL66kmpyGokUNaH6kL/TkD+6gu3hCKKtydFGzMVI7qVR637lOWtPujty6qB5oEx9EY MU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N90Vo7Is; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u12si23245900otq.51.2020.01.22.05.29.23; Wed, 22 Jan 2020 05:29:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N90Vo7Is; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730155AbgAVN23 (ORCPT + 99 others); Wed, 22 Jan 2020 08:28:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:50732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730876AbgAVN21 (ORCPT ); Wed, 22 Jan 2020 08:28:27 -0500 Received: from localhost (unknown [84.241.205.26]) (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 5E5E42467A; Wed, 22 Jan 2020 13:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699707; bh=2tlsQcBQTsqZUcrgW4yjKs3w3iSmEgYakIwCnX2Xn44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N90Vo7Is30EMBLVbPD8Ww93TRA93Bortj9jaitS9hNfVfBKryoJ0sAC/zOcEDfWhL Pi+XEVy56RgN5LIKWZ8OyNA+vdc6PDayQ61bmsJK8VVdiMpOIPKT+z1sQOzT4rD8BE a/v7Q/vKx6BNnZRy9w7g2bFxOfydI9I9ElShDWQA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Herring , Liviu Dudau , Lorenzo Pieralisi , Robin Murphy , Sudeep Holla Subject: [PATCH 5.4 192/222] Revert "arm64: dts: juno: add dma-ranges property" Date: Wed, 22 Jan 2020 10:29:38 +0100 Message-Id: <20200122092847.424461279@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sudeep Holla commit 54fb3fe0f211d4729a2551cf9497bd612189af9d upstream. This reverts commit 193d00a2b35ee3353813b4006a18131122087205. Commit 951d48855d86 ("of: Make of_dma_get_range() work on bus nodes") reworked the logic such that of_dma_get_range() works correctly starting from a bus node containing "dma-ranges". Since on Juno we don't have a SoC level bus node and "dma-ranges" is present only in the root node, we get the following error: OF: translation of DMA address(0) to CPU address failed node(/sram@2e000000) OF: translation of DMA address(0) to CPU address failed node(/uart@7ff80000) ... OF: translation of DMA address(0) to CPU address failed node(/mhu@2b1f0000) OF: translation of DMA address(0) to CPU address failed node(/iommu@2b600000) OF: translation of DMA address(0) to CPU address failed node(/iommu@2b600000) OF: translation of DMA address(0) to CPU address failed node(/iommu@2b600000) So let's fix it by dropping the "dma-ranges" property for now. This should be fine since it doesn't represent any kind of device-visible restriction; it was only there for completeness, and we've since given in to the assumption that missing "dma-ranges" implies a 1:1 mapping anyway. We can add it later with a proper SoC bus node and moving all the devices that belong there along with the "dma-ranges" if required. Fixes: 193d00a2b35e ("arm64: dts: juno: add dma-ranges property") Cc: Rob Herring Cc: Liviu Dudau Cc: Lorenzo Pieralisi Acked-by: Robin Murphy Signed-off-by: Sudeep Holla Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 - 1 file changed, 1 deletion(-) --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -6,7 +6,6 @@ /* * Devices shared by all Juno boards */ - dma-ranges = <0 0 0 0 0x100 0>; memtimer: timer@2a810000 { compatible = "arm,armv7-timer-mem";