Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274209
b: refs/heads/master
c: 7680057
h: refs/heads/master
i:
  274207: e649712
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Sep 29, 2011
1 parent c5a36b8 commit 3a385cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d15f02eb4e8992cfacfca2ff306e5585bcf721d1
refs/heads/master: 7680057cc4c7d9caada12767831bfd9738dd7b43
10 changes: 10 additions & 0 deletions trunk/arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,16 @@ static void prom_query_opal(void)
{
long rc;

/* We must not query for OPAL presence on a machine that
* supports TNK takeover (970 blades), as this uses the same
* h-call with different arguments and will crash
*/
if (PHANDLE_VALID(call_prom("finddevice", 1, 1,
ADDR("/tnk-memory-map")))) {
prom_printf("TNK takeover detected, skipping OPAL check\n");
return;
}

prom_printf("Querying for OPAL presence... ");
rc = opal_query_takeover(&RELOC(prom_opal_size),
&RELOC(prom_opal_align));
Expand Down

0 comments on commit 3a385cf

Please sign in to comment.