I was having some trouble with kdump on Octeon, and due to the way memory is handled there the MIPS kernel's assumptions about memory were not correct. The first patch adds a fail-safes to make sure kernel memory is in the memory map. That way it appears in /proc/iomem. The second patch reserve the elfcorehdr from kdump if it appears in the kernel's managed memory. That way it won't get clobbered by the kernel if that happens.