From patchwork Thu Nov 28 15:42:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 180438 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp302244ile; Thu, 28 Nov 2019 07:42:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwWqa/du/gZuuopJoZVqfVYl1iKliWf2zIVhXBRkjhFZ/04Wx1eJTCLEiV1EH4uzjS95qfK X-Received: by 2002:a50:ed12:: with SMTP id j18mr39645148eds.172.1574955771197; Thu, 28 Nov 2019 07:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574955771; cv=none; d=google.com; s=arc-20160816; b=FQ7u4u6908spNU0Hs4MjVEHI1fwjOROwiqiqA0EaqdW/Uvx/Urgc/BMufGjKmaXPhy wlHrId99etNGbeD3H/19dlD+vs3pYCR3l+P79Piy1L3jlgFEZliGBkYaRW/1OEDwNQ4y yZXlt5j2BJM1CrhKvAuVrBGsHTrPIJS4QqjJnqeQrKddWBnfw0Pd8RdAkkux2AlL/NRl M2LlwbXe/XPu91eTBtRWmpszKNuHUaUBP56adUK/WhIP1sE5WyoTGUqLHAuJl3HWljKK Ib94Hin7BRzSpwm0igNTCdRU/oNO31yAKwqJCv6RFouJS1d/RhuABIIXpg/OsdlAr5Gp l42Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=OTeh/16NExrYYo3E83OkbLK0nJ2itf2N025Du5aquic=; b=UfgV97zti9mUMMN5X4SSNjP9Y9kOd+MAPorlJzipi6KP3IyXiFL/rkwbDzasFu/sJ3 sXMijfsxZmTA8c6u5HSXunW+KfZOR2kSiw7EK6MEREVO9Ldn5FVMQ+2HQ+d8iPt6YW6d r2zNnQe90G13tWoLaM6BZkwwhlwTh8c6lbwyGNrHKBkcgVSC2DJcLj9FMiYFqnVPMmdb gI0Z5ZgZIGZnnAkxUb7RVBGXcKoEE2xSSKl8kY3UwK8u2h/Syn4nEZpKtpNpwhwbzE85 mFuewTYOtUHt2CSRiQi4Xx7DvzXn2UN1aj/k7qzGxglUWX/4dco4gbVAVAEE4bq/Z5mT 69fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 24si14127608eje.293.2019.11.28.07.42.51; Thu, 28 Nov 2019 07:42:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbfK1Pmu (ORCPT + 8 others); Thu, 28 Nov 2019 10:42:50 -0500 Received: from foss.arm.com ([217.140.110.172]:37586 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfK1Pmu (ORCPT ); Thu, 28 Nov 2019 10:42:50 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6305330E; Thu, 28 Nov 2019 07:42:49 -0800 (PST) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6276F3F68E; Thu, 28 Nov 2019 07:42:48 -0800 (PST) From: Sudeep Holla To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , Rob Herring , Liviu Dudau , Robin Murphy , Lorenzo Pieralisi Subject: [PATCH] Revert "arm64: dts: juno: add dma-ranges property" Date: Thu, 28 Nov 2019 15:42:42 +0000 Message-Id: <20191128154242.1035-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191126165355.6696-1-sudeep.holla@arm.com> References: <20191126165355.6696-1-sudeep.holla@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. 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. Cc: Rob Herring Cc: Liviu Dudau Cc: Robin Murphy Cc: Lorenzo Pieralisi Signed-off-by: Sudeep Holla --- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 - 1 file changed, 1 deletion(-) -- 2.17.1 Acked-by: Robin Murphy diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index 9e3e8ce6adfe..1f3c80aafbd7 100644 --- 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";