]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] PPC64: Don't try to claim memory from OF at 1GB mark
authorOlof Johansson <olof@lixom.net>
Mon, 29 Aug 2005 02:42:10 +0000 (21:42 -0500)
committerPaul Mackerras <paulus@samba.org>
Tue, 30 Aug 2005 03:32:08 +0000 (13:32 +1000)
commit40b790927280cbd7a80c1c10830060ca866ad589
tree9bf8a09179f60ddddbebceb4df34445eff12de16
parent4c07d6b195dd36f7a302338a58982557993e3bcc
[PATCH] PPC64: Don't try to claim memory from OF at 1GB mark

Some RS64-based machines (p620, F80, others) have problems with firmware
returning 0xdeadbeef instead of failure to allocations that end at the
1GB mark.

We have two options:
1. Detect the undocumented 0xdeadbeef return value and interpret it as
a failure.
2. Avoid allocating that high.

(2) is really the cleaner solution here. 768MB is plenty of room so use
that as the max alloc_top instead of 1GB.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/prom_init.c