Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3299604ybb; Tue, 31 Mar 2020 02:24:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsE4Jd7Kv6mjiqreAcSTGgiD8sIirFv3+YkCEvYqJgXw1/Vt91jX/82tl2pDOr2Mz9SZHxA X-Received: by 2002:aca:4d49:: with SMTP id a70mr1480440oib.152.1585646643776; Tue, 31 Mar 2020 02:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585646643; cv=none; d=google.com; s=arc-20160816; b=d8u/CyQicv8c1C1Ivk6sCJUjtroTPRXdw9pkGDuRTU488ftA5RjCVjbuWNAcRUfdiz zlu8Mec8+/h0oQ+UU19R2hADM5XrjH09EXXAF6Klic6ZYRdx+WZmmP8JJX9T8vYxnxM8 AYzrSQQu8IoPgkpnbhHTrZPKRZ8HdfVmOMhtbnAD6S3sbQyQ6mxh7PCeFbDvooszFDpW zm3K5ofuyCVcdhjiUOTA1Ac0hMyg0QoviakIjTanGDgLQFUxhBh3EGxokBxzNBi7excG yQ/wQSHFNIlIbCODZTfYPTM/vRkjkUgRaaZN3VbW19+Zu3vriQqnFx6SpOZVIGHGOn39 hP9w== 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=SumRE53f5ufx95JHl+JKM+v2kopY7vASwcxNb0YsgMM=; b=GnF6zobptlZh6orgKBvO5FmUHoSozJRiIDwHzeqMm9RielUxCj/dEXRe10VMD8teGf Bv147G3vPIlfiO4Iwp9HT4TCEgSfyjn8g2mKi/CMAPIBQDFSDivhHllu2L8BoCjUO8Zh GnJy4BBWFd0w0rkO6TO8OwLULKRvpN8BuNjWy3kdQmiaMMfkIGCJg+RDjgI/c5+sea8T yf4myNncq9preYVd/tirb+2FWL19WEg954dbBf65rQaGEZtN6dy2yzO+ORAZko99C16t aXP+iUVRhxlSqqK3Vliz7lsXYKmTRBtzzMRQmKhr2qnLYwjNrt0r2VqmIwQxBCDGS3ha spPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LSfou71g; 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 o1si7718859oti.70.2020.03.31.02.23.51; Tue, 31 Mar 2020 02:24:03 -0700 (PDT) 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=LSfou71g; 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 S1731125AbgCaJGU (ORCPT + 99 others); Tue, 31 Mar 2020 05:06:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:47602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731116AbgCaJGP (ORCPT ); Tue, 31 Mar 2020 05:06:15 -0400 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 6FC2C20787; Tue, 31 Mar 2020 09:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645574; bh=WdrpLdSsYq3kQgncJPzNCgTZYn/K/kVhYZKhp/uifWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LSfou71gnQyjgYZD3l8+3f3yK0SQ0ADD8M82qIH4qs94wyPYm9u9xFIY1Y/yjgG56 74uMRFOVU2c7BVjLzaDoPSU+d0gO1oa84zf26TaqVDSqY9OOjS0V4NKgH/sOsJIN9/ RnRzoeGZ2y+/cw2OqwyGqWRziBam5MKyYcIsJ1sM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roger Quadros , stable@kernel.org, Tony Lindgren Subject: [PATCH 5.5 095/170] ARM: dts: dra7: Add bus_dma_limit for L3 bus Date: Tue, 31 Mar 2020 10:58:29 +0200 Message-Id: <20200331085434.336896278@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@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: Roger Quadros commit cfb5d65f25959f724081bae8445a0241db606af6 upstream. The L3 interconnect's memory map is from 0x0 to 0xffffffff. Out of this, System memory (SDRAM) can be accessed from 0x80000000 to 0xffffffff (2GB) DRA7 does support 4GB of SDRAM but upper 2GB can only be accessed by the MPU subsystem. Add the dma-ranges property to reflect the physical address limit of the L3 bus. Issues ere observed only with SATA on DRA7-EVM with 4GB RAM and CONFIG_ARM_LPAE enabled. This is because the controller supports 64-bit DMA and its driver sets the dma_mask to 64-bit thus resulting in DMA accesses beyond L3 limit of 2G. Setting the correct bus_dma_limit fixes the issue. Signed-off-by: Roger Quadros Cc: stable@kernel.org Signed-off-by: Tony Lindgren Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -148,6 +148,7 @@ #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0xc0000000>; + dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>; ti,hwmods = "l3_main_1", "l3_main_2"; reg = <0x0 0x44000000 0x0 0x1000000>, <0x0 0x45000000 0x0 0x1000>;