From: Anton Blanchard Date: Tue, 11 Jan 2011 19:50:51 +0000 (+0000) Subject: powerpc: Fix corruption when grabbing FWNMI data X-Git-Tag: v2.6.38-rc2~12^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d368514c3097a48a109b6ba64e12047106c7473d;p=pandora-kernel.git powerpc: Fix corruption when grabbing FWNMI data The FWNMI code uses a global buffer without any locks to read the RTAS error information. If two CPUs take a machine check at once then we will corrupt this buffer. Since most FWNMI rtas messages are not of the extended type, we can create a 64bit percpu buffer and use it where possible. If we do receive an extended RTAS log then we fall back to the old behaviour of using the global buffer. Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed