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,

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:58

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 > > >> > > >> To supp

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 > >> > >> To support >32-bit physical addresses for UIO_MEM_PHYS type we need to > >> extend th

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 >> >> 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 PP

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 > > > > > > To support >32-bit physical addresses for UIO_MEM_PHYS type we need to > > > e

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 > > > > 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-14 Thread Hans J. Koch
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 physi

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

2011-10-13 Thread Kumar Gala
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, logica

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 d

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 wrote: > On Wed, Oct 12, 2011 at 11:15 AM, Geert Uytterhoeven > 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 u

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 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 This isn

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 > >>> > >>> To support >32

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 > > > > 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 Hans J. Koch
On Wed, Oct 12, 2011 at 09:35:45AM -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 physi

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 > >> > >> To support >32-bit physical addresses for UIO_MEM_PHYS type we need to > >> extend t

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 w

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 >>> >>> To support >32-bit physical addresses for UIO_MEM_PHYS type we need to >>> extend the widt

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 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 >>> >>> To support >32-bit physical addresses for UIO_MEM_PHYS type we need to >>> extend the width of 'addr' in

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 >> >> 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 P

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

2011-10-12 Thread Kumar Gala
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, logica