Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144989
b: refs/heads/master
c: 37cd8ed
h: refs/heads/master
i:
  144987: 92ad7fa
v: v3
  • Loading branch information
Gerhard Stenzel authored and Benjamin Herrenschmidt committed May 15, 2009
1 parent c0fb5c7 commit 27480d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49a849652513235a244dfbf5e58c54f796bd1148
refs/heads/master: 37cd8ed90fc5b11941110d2d0cea6807f86d4787
17 changes: 14 additions & 3 deletions trunk/arch/powerpc/platforms/cell/ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,23 @@ static int __init cbe_ptcal_enable_on_node(int nid, int order)

area->nid = nid;
area->order = order;
area->pages = alloc_pages_node(area->nid, GFP_KERNEL, area->order);
area->pages = alloc_pages_node(area->nid, GFP_KERNEL | GFP_THISNODE,
area->order);

if (!area->pages)
if (!area->pages) {
printk(KERN_WARNING "%s: no page on node %d\n",
__func__, area->nid);
goto out_free_area;
}

addr = __pa(page_address(area->pages));
/*
* We move the ptcal area to the middle of the allocated
* page, in order to avoid prefetches in memcpy and similar
* functions stepping on it.
*/
addr = __pa(page_address(area->pages)) + (PAGE_SIZE >> 1);
printk(KERN_DEBUG "%s: enabling PTCAL on node %d address=0x%016lx\n",
__func__, area->nid, addr);

ret = -EIO;
if (rtas_call(ptcal_start_tok, 3, 1, NULL, area->nid,
Expand Down

0 comments on commit 27480d2

Please sign in to comment.