From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755899AbaCKWOP (ORCPT ); Tue, 11 Mar 2014 18:14:15 -0400 Received: from va3ehsobe010.messaging.microsoft.com ([216.32.180.30]:59271 "EHLO va3outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754440AbaCKWOM convert rfc822-to-8bit (ORCPT ); Tue, 11 Mar 2014 18:14:12 -0400 X-Forefront-Antispam-Report: CIP:149.199.60.83;KIP:(null);UIP:(null);IPV:NLI;H:xsj-gw1;RD:unknown-60-83.xilinx.com;EFVD:NLI X-SpamScore: -3 X-BigFish: VPS-3(zz98dI9371Ic89bh936eI1432Izz1f42h2148h208ch1ee6h1de0h1fdah2149h2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275bh1de097hz2fh95h839h93fhc61hd24hf0ah119dh1288h12a5h12a9h12bdh137ah13b6h1441h14ddh1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1b0ah224fh1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h209eh2216h2336h2438h2461h2487h24d7h2516h2545h255eh25f6h2605h906i1155h) Date: Tue, 11 Mar 2014 15:13:59 -0700 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Olof Johansson CC: Michal Simek , "linux-arm-kernel@lists.infradead.org" , Michal Simek , Josh Cartwright , Steffen Trumtrar , Rob Herring , Peter Crosthwaite , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , Russell King , Grant Likely , "devicetree@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ARM: zynq: Add OCM driver References: <299e37ab245da9132808c6d4265a17b9a417bf62.1389022555.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-RCIS-Action: ALLOW Message-ID: Content-Transfer-Encoding: 8BIT X-OriginatorOrg: xilinx.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2014-03-11 at 02:31PM -0700, Olof Johansson wrote: > Hi Michal, > > Sorry for the late review, I didn't notice the driver when it was > posted and I only saw it now with the pull request. Comments below. > > > On Mon, Jan 6, 2014 at 7:36 AM, Michal Simek wrote: > > The driver provide memory allocator which can > > be used by others drivers to allocate memory inside OCM. > > All location for 64kB blocks are supported > > and driver is trying to allocate the largest continuous > > block of memory. > > I don't think you explain what OCM is anywhere, what is it? Since > you're reusing the generic SRAM driver I'm suspecting it's related? It stands for 'On-Chip Memory'. For Zynq that is a RAM consisting of four 64k chunks that can be individually mapped to a high or low address. Sören