powerpc/pseries: Support compression of oops text via pstore
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Thu, 27 Jun 2013 08:33:13 +0000 (14:03 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 08:10:49 +0000 (18:10 +1000)
commit40847e56609c21692ebe593abbf72c1e7f4af206
treed172321146ecebc805379e06cab6de09008919e9
parentfbfe86fc0c53911cf243479f7d26c37dcb1243f1
powerpc/pseries: Support compression of oops text via pstore

The patch set supports compression of oops messages while writing to NVRAM,
this helps in capturing more of oops data to lnx,oops-log. The pstore file
for oops messages will be in decompressed format making it readable.

In case compression fails, the patch takes care of copying the header added
by pstore and last oops_data_sz bytes of big_oops_buf to NVRAM so that we
have recent oops messages in lnx,oops-log.

In case decompression fails, it will result in absence of oops file but still
have files (in /dev/pstore) for other partitions.

Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/nvram.c