]> git.neil.brown.name Git - history.git/commit
[PATCH] ppc64: Fix /dev/mem idea of what is memory
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 27 Feb 2004 01:15:56 +0000 (17:15 -0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 27 Feb 2004 01:15:56 +0000 (17:15 -0800)
commite2d17c1336794d9db154ad39bbcdfb21e195a7c1
tree40658a29ee4a84b90b86f056215433dd26329128
parenteca92b62381f3e0698d3bc55597d91c390e4badc
[PATCH] ppc64: Fix /dev/mem idea of what is memory

This adds a hack to /dev/mem (along with the other ones already there)
to prevent mapping cacheable of the IO hole.

Without this, XFree blows up on machines with enough memory to go past
the IO hole.  It also tries to prevent memory from beeing mapped
uncached.  Cache paradoxes are evil and can kill the CPU.

The necessary page_is_ram() call was added by the previous patch doing
the proper IO hole accounting.
drivers/char/mem.c