Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-17 Thread Kumar Gala
On Oct 14, 2011, at 1:31 PM, Hans J. Koch wrote: On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com 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

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-17 Thread Hans J. Koch
On Mon, Oct 17, 2011 at 11:00:55AM -0500, Kumar Gala wrote: On Oct 14, 2011, at 1:31 PM, Hans J. Koch wrote: On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need to

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-17 Thread Hans J. Koch
On Mon, Oct 17, 2011 at 07:18:59PM +0200, Hans J. Koch wrote: On Mon, Oct 17, 2011 at 11:00:55AM -0500, Kumar Gala wrote: On Oct 14, 2011, at 1:31 PM, Hans J. Koch wrote: On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-17 Thread Greg KH
On Mon, Oct 17, 2011 at 08:03:51PM +0200, Hans J. Koch wrote: On Mon, Oct 17, 2011 at 07:18:59PM +0200, Hans J. Koch wrote: On Mon, Oct 17, 2011 at 11:00:55AM -0500, Kumar Gala wrote: On Oct 14, 2011, at 1:31 PM, Hans J. Koch wrote: On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-17 Thread Hans J. Koch
On Mon, Oct 17, 2011 at 11:23:45AM -0700, Greg KH wrote: On Mon, Oct 17, 2011 at 08:03:51PM +0200, Hans J. Koch wrote: On Mon, Oct 17, 2011 at 07:18:59PM +0200, Hans J. Koch wrote: On Mon, Oct 17, 2011 at 11:00:55AM -0500, Kumar Gala wrote: On Oct 14, 2011, at 1:31 PM, Hans J. Koch

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-14 Thread Hans J. Koch
On Thu, Oct 13, 2011 at 10:50:58AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com 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

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-14 Thread Greg KH
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 kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need to extend the width of 'addr' in struct uio_mem. Numerous

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-14 Thread Hans J. Koch
On Fri, Oct 14, 2011 at 12:36:33PM -0600, Greg KH wrote: 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 kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-13 Thread Tabi Timur-B04825
On Wed, Oct 12, 2011 at 11:15 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Do we believe phys_addr_t is always greater than or equal to size need for logical virtual addresses? Yes: #ifdef CONFIG_PHYS_ADDR_T_64BIT typedef u64 phys_addr_t; #else typedef u32 phys_addr_t; #endif

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-13 Thread Geert Uytterhoeven
On Thu, Oct 13, 2011 at 16:10, Tabi Timur-B04825 b04...@freescale.com wrote: On Wed, Oct 12, 2011 at 11:15 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Do we believe phys_addr_t is always greater than or equal to size need for logical virtual addresses? Yes: #ifdef

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-13 Thread Timur Tabi
Geert Uytterhoeven wrote: You deleted this part: config PHYS_ADDR_T_64BIT def_bool 64BIT || ARCH_PHYS_ADDR_T_64BIT which enforces that PHYS_ADDR_T_64BIT is enabled if 64BIT is set. Ok, I didn't catch that before, but it makes sense now. Thanks. -- Timur Tabi Linux kernel

[PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-13 Thread Kumar Gala
From: Kai Jiang kai.ji...@freescale.com 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

[PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Kumar Gala
From: Kai Jiang kai.ji...@freescale.com 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

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Kumar Gala
On Oct 12, 2011, at 10:32 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com 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

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Geert Uytterhoeven
On Wed, Oct 12, 2011 at 18:07, Kumar Gala ga...@kernel.crashing.org wrote: On Oct 12, 2011, at 10:32 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Kumar Gala
On Oct 12, 2011, at 11:19 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 05:32:29PM +0200, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need to extend

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Kumar Gala
On Oct 12, 2011, at 3:23 PM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 01:40:22PM -0500, Kumar Gala wrote: On Oct 12, 2011, at 11:19 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 05:32:29PM +0200, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From:

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Hans J. Koch
On Wed, Oct 12, 2011 at 11:07:09AM -0500, Kumar Gala wrote: On Oct 12, 2011, at 10:32 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need to

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Hans J. Koch
On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com 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

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Hans J. Koch
On Wed, Oct 12, 2011 at 05:32:29PM +0200, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support 32-bit physical addresses for UIO_MEM_PHYS type we need to extend the width of 'addr' in struct uio_mem. Numerous

Re: [PATCH] uio: Support 36-bit physical addresses on 32-bit systems

2011-10-12 Thread Hans J. Koch
On Wed, Oct 12, 2011 at 01:40:22PM -0500, Kumar Gala wrote: On Oct 12, 2011, at 11:19 AM, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 05:32:29PM +0200, Hans J. Koch wrote: On Wed, Oct 12, 2011 at 09:35:45AM -0500, Kumar Gala wrote: From: Kai Jiang kai.ji...@freescale.com To support