Re: [PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-05 Thread Vivek Goyal
On Wed, Jun 04, 2014 at 12:24:20PM +0200, Borislav Petkov wrote: > On Tue, Jun 03, 2014 at 09:06:53AM -0400, Vivek Goyal wrote: > > @@ -322,7 +327,71 @@ int release_resource(struct resource *old) > > > > EXPORT_SYMBOL(release_resource); > > > > -#if !defined(CONFIG_ARCH_HAS_WALK_MEMORY) > >

Re: [PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-05 Thread Vivek Goyal
On Wed, Jun 04, 2014 at 12:24:20PM +0200, Borislav Petkov wrote: On Tue, Jun 03, 2014 at 09:06:53AM -0400, Vivek Goyal wrote: @@ -322,7 +327,71 @@ int release_resource(struct resource *old) EXPORT_SYMBOL(release_resource); -#if !defined(CONFIG_ARCH_HAS_WALK_MEMORY) +/* + *

Re: [PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-04 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:06:53AM -0400, Vivek Goyal wrote: > @@ -322,7 +327,71 @@ int release_resource(struct resource *old) > > EXPORT_SYMBOL(release_resource); > > -#if !defined(CONFIG_ARCH_HAS_WALK_MEMORY) > +/* > + * Finds the lowest iomem reosurce exists with-in [res->start.res->end) >

Re: [PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-04 Thread Borislav Petkov
On Tue, Jun 03, 2014 at 09:06:53AM -0400, Vivek Goyal wrote: @@ -322,7 +327,71 @@ int release_resource(struct resource *old) EXPORT_SYMBOL(release_resource); -#if !defined(CONFIG_ARCH_HAS_WALK_MEMORY) +/* + * Finds the lowest iomem reosurce exists with-in [res-start.res-end) + * the

[PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-03 Thread Vivek Goyal
I have added two more functions to walk through resources. Current walk_system_ram_range() deals with pfn and /proc/iomem can contain partial pages. By dealing in pfn, callback function loses the info that last page of a memory range is a partial page and not the full page. So I implemented

[PATCH 04/13] resource: Provide new functions to walk through resources

2014-06-03 Thread Vivek Goyal
I have added two more functions to walk through resources. Current walk_system_ram_range() deals with pfn and /proc/iomem can contain partial pages. By dealing in pfn, callback function loses the info that last page of a memory range is a partial page and not the full page. So I implemented