From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 93BE2B6F9A for ; Sat, 15 Oct 2011 05:39:53 +1100 (EST) Date: Fri, 14 Oct 2011 12:36:33 -0600 From: Greg KH To: "Hans J. Koch" Subject: Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems Message-ID: <20111014183633.GA30068@suse.de> References: <1318521058-15662-1-git-send-email-galak@kernel.crashing.org> <20111014183144.GD28556@local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20111014183144.GD28556@local> Cc: linuxppc-dev@ozlabs.org, Kai Jiang , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Oct 14, 2011 at 08:31:45PM +0200, Hans J. Koch wrote: > On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar Gala wrote: > > From: Kai Jiang > > > > To support >32-bit physical addresses for UIO_MEM_PHYS type we need to > > extend the width of 'addr' in struct uio_mem. Numerous platforms like > > embedded PPC, ARM, and X86 have support for systems with larger physical > > address than logical. > > > > Since 'addr' may contain a physical, logical, or virtual address the > > easiest solution is to just change the type to 'phys_addr_t' which > > should always be greater than or equal to the sizeof(void *) such that > > it can properly hold any of the address types. > > > > For physical address we can support up to a 44-bit physical address on a > > typical 32-bit system as we utilize remap_pfn_range() for the mapping of > > the memory region and pfn's are represnted by shifting the address by > > the page size (typically 4k). > > > > Signed-off-by: Kai Jiang > > Signed-off-by: Minghuan Lian > > Signed-off-by: Kumar Gala > > Signed-off-by: "Hans J. Koch" > > That looks good to me. There's an unnecessary cast (see below), but I fixed that > on the way. > > Greg, please pull this from branch uio-for-gregkh from > > git://hansjkoch.de/git/linux-hjk Care to send it as an email? I can apply it easier that way as I have limited internet access while on the road. greg k-h