Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753490AbcDSJ3x (ORCPT ); Tue, 19 Apr 2016 05:29:53 -0400 Received: from mail-cys01nam02on0080.outbound.protection.outlook.com ([104.47.37.80]:50208 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751871AbcDSJ3u convert rfc822-to-8bit (ORCPT ); Tue, 19 Apr 2016 05:29:50 -0400 X-Greylist: delayed 867 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Apr 2016 05:29:50 EDT Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; codeaurora.org; dkim=none (message not signed) header.d=none;codeaurora.org; dmarc=bestguesspass action=none header.from=xilinx.com; From: Nava kishore Manne To: Arnd Bergmann , Rob Herring CC: "linux-arm-kernel@lists.infradead.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , Hyun Kwon , "pawel.moll@arm.com" , "ijc+devicetree@hellion.org.uk" , "gregkh@linuxfoundation.org" , Radhey Shyam Pandey , Michal Simek , "balbi@ti.com" , "linux-kernel@vger.kernel.org" , "galak@codeaurora.org" , Soren Brinkmann Subject: RE: [PATCH] Axi-usb: Add support for 64-bit addressing. Thread-Topic: [PATCH] Axi-usb: Add support for 64-bit addressing. Thread-Index: AQHRk8WZlLKG10rzmkeZRXKmMvnZoZ+F2pEAgAfN8gCAAacsgIAAAaqAgAG4uRA= Date: Tue, 19 Apr 2016 09:15:01 +0000 Message-ID: References: <1460360506-14692-1-git-send-email-navam@xilinx.com> <4542055.HvdgVkDRYK@wuerfel> <20160418142909.GA5608@rob-hp-laptop> <4449845.qT8BZnpD4R@wuerfel> In-Reply-To: <4449845.qT8BZnpD4R@wuerfel> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.93.136] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-22270.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(2980300002)(438002)(377454003)(189002)(24454002)(199003)(13464003)(586003)(86362001)(93886004)(11100500001)(5004730100002)(23726003)(102836003)(2906002)(3846002)(6116002)(1220700001)(1096002)(5003600100002)(33656002)(55846006)(92566002)(87936001)(50466002)(5890100001)(5250100002)(97756001)(47776003)(81166005)(46406003)(189998001)(4326007)(19580405001)(19580395003)(54356999)(6806005)(5008740100001)(107886002)(4001430100002)(63266004)(50986999)(2920100001)(106466001)(5001770100001)(2900100001)(76176999)(106116001)(2950100001)(107986001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1NAM02HT078;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;MLV:ovrnspm;MX:1;A:1;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;LANG:en; X-MS-Office365-Filtering-Correlation-Id: a8aa3489-372d-420f-4287-08d3683319a4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:SN1NAM02HT078; X-Microsoft-Antispam-PRVS: <9dd4f7ddbbc44231ba54e302596b0be0@SN1NAM02HT078.eop-nam02.prod.protection.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(13018025)(13015025)(5005006)(8121501046)(13023025)(13017025)(13024025)(3002001)(10201501046);SRVR:SN1NAM02HT078;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM02HT078; X-Forefront-PRVS: 0917DFAC67 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2016 09:15:06.7475 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2498 Lines: 56 > -----Original Message----- > From: Arnd Bergmann [mailto:arnd@arndb.de] > Sent: Monday, April 18, 2016 8:05 PM > To: Rob Herring > Cc: linux-arm-kernel@lists.infradead.org; Nava kishore Manne > ; mark.rutland@arm.com; devicetree@vger.kernel.org; > Nava kishore Manne ; Hyun Kwon > ; pawel.moll@arm.com; ijc+devicetree@hellion.org.uk; > gregkh@linuxfoundation.org; Radhey Shyam Pandey ; > Michal Simek ; balbi@ti.com; linux- > kernel@vger.kernel.org; galak@codeaurora.org; Soren Brinkmann > > Subject: Re: [PATCH] Axi-usb: Add support for 64-bit addressing. > > On Monday 18 April 2016 09:29:09 Rob Herring wrote: > > > > Right, you don't need to know the exact bus width for determining the > > register/descriptor set is 32 or 64 bit addesses. I'm fine with a > > property for that, but if limiting the actual connected address bits > > is needed, then dma-ranges should be used. > > The other way round: dma-ranges is needed to allow 64-bit addressing, the > default is to only allow 32-bit addressing (and arm64 has a known bug here, it > just allows it anyway when it shouldn't). AXI-USB IP configurable for 32-bit or 64-bit addressing. In any of the configuration I mean if it is a 32-bit or 64-bit addressing there is a flexibility for the dma to choose the Memory range supported by the AXI-USB... For example if AXI-USB (dma ) is configured for 40-bit addressing. Theoretically it can access memory up to 1TB if it is true we can get the Address width using log2 of the dma-ranges size as you mentioned above. But in real use case user won't map the entire memory He will map only the memory of his own choice... For example user mapped 2GB then dma-ranges property will be like below. dma-ranges = <0x00000000 0x00000000 0x80000000>; In this case log2 of the dma-ranges size won't give exact value for address width. That's why used separate h/w property for getting address width of the IP... Will address the remaining comments in v2. Regards, Navakishore. > Arnd This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.