lkml.org 
[lkml]   [2010]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: per_cpu_ptr_to_phys() failure on UV x86_64
Hello,

On 06/17/2010 06:20 PM, Cliff Wickman wrote:
> phys_addr_t per_cpu_ptr_to_phys(void *addr)
> {
> + if ((unsigned long)addr < VMALLOC_START ||
> + (unsigned long)addr >= VMALLOC_END)
> + return __pa(addr);
> if (pcpu_addr_in_first_chunk(addr)) {
> - if ((unsigned long)addr < VMALLOC_START ||
> - (unsigned long)addr >= VMALLOC_END)
> - return __pa(addr);
> - else
> - return page_to_phys(vmalloc_to_page(addr));
> + return page_to_phys(vmalloc_to_page(addr));
> } else
> return page_to_phys(pcpu_addr_to_page(addr));
> }

(scratching head...) So, that means it's given an address for which
!pcpu_addr_in_first_chunk() but outside of vmalloc area. Strange.
I'll find out what's going on.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-06-17 19:11    [from the cache]
©2003-2011 Jasper Spaans