Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4633634ybl; Wed, 22 Jan 2020 01:41:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwN7CZDp2PzIaZQ7w3L+XrFmZ4jeThFI0/4sz9DuijquQPHsUk3y/7q8VnRYIzMzun4sP3P X-Received: by 2002:aca:534f:: with SMTP id h76mr6348611oib.23.1579686089115; Wed, 22 Jan 2020 01:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579686089; cv=none; d=google.com; s=arc-20160816; b=J/RcfrfYXLscBHNYa3eG9OrV8oQkJ31P60vs6YleiS5E3uC7hpDHPpLUWM8CJc4Sg7 21ocHGLlUl58KaCUX36R6YCdjP0OnLznpckDI2FZM2YzLzOACeCnWdWZ88YCid9hyFM3 D5FchZSxtUQuryCOflIlIx55s2oQib58dLUutQPHFb2VC6M9PGVPyJ/bnOYxe3GhIwfW 2uLTzYsBjkNmo1txWf6wcW+GmWzkWHOwOA7suiegg5wxu8t/GGMLTYREyVgKOzMRpzEh XDgGYr+o1AJ/udyZvkGci5PkSYCvbenwjFu5mX9t74WEddMBakBjxIvzQrzUd3I/IjGc IeOg== 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=91F3QG759iO+VSnvH82/IncFaztd66A3AMHA3RhrJLs=; b=gxZrSiCE8UBp/kxyM2JZ5W7dD+qPV+PB8Hr46bpr9umKQuFZCyE6tkT3Mmd3Yb9Iqc 8Ruop0UR9ue3TGh5l3Dgesaoec5NnoDxqjWa903///DUcdQDIausc+9OVZO4OHgZR3hy 0Gbt9A5HzLZFN5SGCjH1Lefvyr08mV8XZWxiTeovFmSNVi6bfCbyXvrt+p8/A0CojTPQ qlSzZtXyyXE7uHajl8aJsFHSPP+s2a9Q8qS7R2JaqRDbfOr6EzZ2r0Q3jZPaw905Hf07 R/9EwIA+x90lTCgH+OzLEPBEU/QnmoRVDtYxqjfu3+NmNSt4RslH+KMxachyGeoD5o8Z 4PCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vIgnLpc2; 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 i3si11599241otc.272.2020.01.22.01.41.17; Wed, 22 Jan 2020 01:41:29 -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=vIgnLpc2; 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 S1732257AbgAVJj3 (ORCPT + 99 others); Wed, 22 Jan 2020 04:39:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:57476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731074AbgAVJj2 (ORCPT ); Wed, 22 Jan 2020 04:39:28 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 6644524687; Wed, 22 Jan 2020 09:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579685967; bh=/Sat1VrLYYW/Qf0KeRlh3+lDYC+VTYYth1oaVFx3RnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vIgnLpc274gW9SE1qxrbhskOaS5m1Yue8uiItKYLpzP1rgLfB3MgGb+uZfhAIwjE/ bsZ0dyioNftxbKWiT0VNBkMviZ6ZxbwHXYzP7bW7E4wPXEf+Wh1EfADfeEP+sXjuEi nwRCOGyOYBqZn0qi1oP+p/4c0MpvuUR6mIwYNDc8= 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 4.14 55/65] Revert "arm64: dts: juno: add dma-ranges property" Date: Wed, 22 Jan 2020 10:29:40 +0100 Message-Id: <20200122092759.408506990@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092750.976732974@linuxfoundation.org> References: <20200122092750.976732974@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 @@ -5,7 +5,6 @@ /* * Devices shared by all Juno boards */ - dma-ranges = <0 0 0 0 0x100 0>; memtimer: timer@2a810000 { compatible = "arm,armv7-timer-mem";