Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp261724ybh; Wed, 11 Mar 2020 00:20:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs5o5eGyLR3UskZ/bQApt1VJ4rHHB3q0rqQqDhGQcPdKXIaDZSdeZbIXwY8W3h1Jh3L2OGt X-Received: by 2002:aca:cd0e:: with SMTP id d14mr921201oig.167.1583911254285; Wed, 11 Mar 2020 00:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583911254; cv=none; d=google.com; s=arc-20160816; b=cpC0ddmSWlYJWTYyRH5A9S6wY46+oleQDegzZIFXcBwO+IT+ki36TQfz+u4qDnEHDK vqnPLUlxGkkmH/dsyNvuG+6j7ACWS4A3QtbYcnagmU7LT26HZXoEnKVqNI8PfN+1W6Hy GxhmaB02liGnNwm0k+bbCIm+JiEr6kkhWphgo/D5j3DxEkOspCfxHFnlGVQ0pAJOiQ+v DoOueHXFfBnwfgY8dfEfHHmuQ/Q2G1q7g0pdg3Mrs5q+IBJ7lo2SncM4tfZxvCYhXpib 8Lx6j22W07I4ExeQTmCdTsD/Qz+T3sNoGvoHZOq1L/VOmZrrFnwcGH58QbbqlD0Qj+Hg I7Jg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2XfN97zGDMprK+/GnAZ4QQKqgfCDzQBygFK9oOWO4Gc=; b=Enr8kZpFxl0HTDl8ocC5JIBWRPwuMqj24CNAgmc+tEXr1w7EsG56MVwQjoumEF/DFO QPc++Z38nsxW1xRiqzzHwtCkmonjkPk0k/ZKBK/Zrb5d/J4GhDN3RikDIkNgKdilgDxM 0inSUIZ+w1vDKrEo4AbdNFCenMBtWm7jmFpFezRMuOZ4hiklD3VQ27ly8iMg0mdHmYx1 n0bYsXziv8kVPgdc4E+KKQi4E5maLsbKxhBmVwYZ8XH0MHRA+b+Jm6WZAnHnRN1Z3boP Ti/WeSXNhl9p521M7Ibm0SKrAwc1GVTVLLjx31Hf2WqhyayR888kWhbO2XsHRESWlJgD 2c0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VtmtlSe6; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si690413oti.34.2020.03.11.00.20.42; Wed, 11 Mar 2020 00:20:54 -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=@ti.com header.s=ti-com-17Q1 header.b=VtmtlSe6; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728442AbgCKHUT (ORCPT + 99 others); Wed, 11 Mar 2020 03:20:19 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37048 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728126AbgCKHUT (ORCPT ); Wed, 11 Mar 2020 03:20:19 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02B7K9mJ055887; Wed, 11 Mar 2020 02:20:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583911209; bh=2XfN97zGDMprK+/GnAZ4QQKqgfCDzQBygFK9oOWO4Gc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=VtmtlSe6aqrvpaNdJhhjseJ/7U8Y5oh48kJrMWOXurK1Lv0A1wdp0BgEphPoiv9SG 0ZfsGobVUh3FJVpJ0btaFTen5FK6Vk07JvWXMYaS/9qZ4smboA+TknO/bhTUD7tcE/ 8hqKniq6So8QQhtqU+pplnvjPCw5tNlGHm56FgIw= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02B7K9BZ016479 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Mar 2020 02:20:09 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 11 Mar 2020 02:20:09 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 11 Mar 2020 02:20:09 -0500 Received: from [192.168.2.14] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02B7K6YX052872; Wed, 11 Mar 2020 02:20:07 -0500 Subject: Re: [PATCH] ARM: dts: dra7: Add bus_dma_limit for L3 bus To: Tony Lindgren , Tero Kristo CC: , , , , , , , References: <20200310115309.31354-1-rogerq@ti.com> <20200310154829.GS37466@atomide.com> From: Roger Quadros Message-ID: Date: Wed, 11 Mar 2020 09:20:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200310154829.GS37466@atomide.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/2020 17:48, Tony Lindgren wrote: > * Tero Kristo [200310 14:46]: >> On 10/03/2020 13:53, Roger Quadros wrote: >>> The L3 interconnect can access only 32-bits of address. >>> Add the dma-ranges property to reflect this limit. >>> >>> This will ensure that no device under L3 is >>> given > 32-bit address for DMA. >>> >>> Issue was observed only with SATA on DRA7-EVM with 4GB RAM >>> and CONFIG_ARM_LPAE enabled. This is because the controller >>> can perform 64-bit DMA and was setting the dma_mask to 64-bit. >>> >>> Setting the correct bus_dma_limit fixes the issue. >> >> This seems kind of messy to modify almost every DT node because of this.... >> Are you sure this is the only way to get it done? No way to modify the sata >> node only which is impacted somehow? >> >> Also, what if you just pass 0xffffffff to the dma-ranges property? That >> would avoid modifying every node I guess. > > Also, I think these interconnects are not limited to 32-bit access. But from Table 2-1. L3_MAIN Memory Map Start address 0x0000_0000 End address 0xFFFF_FFFF So it is 32-bit limit, right? > So yeah I too would prefer a top level dma-ranges property assuming > that works. > > I guess there dma-ranges should not be 0xffffffff though if > limited to 2GB :) > > Regards, > > Tony > -- cheers, -roger Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki