Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pstore: Add pstore type id for PPC64 opal nvram partition

This patch adds a new PPC64 partition type to be used for opal
specific nvram partition. A new partition type is needed as none
of the existing type matches this partition type.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Hari Bathini and committed by
Michael Ellerman
ae011d2e 78989f0a

+4
+3
fs/pstore/inode.c
··· 364 364 case PSTORE_TYPE_PMSG: 365 365 scnprintf(name, sizeof(name), "pmsg-%s-%lld", psname, id); 366 366 break; 367 + case PSTORE_TYPE_PPC_OPAL: 368 + sprintf(name, "powerpc-opal-%s-%lld", psname, id); 369 + break; 367 370 case PSTORE_TYPE_UNKNOWN: 368 371 scnprintf(name, sizeof(name), "unknown-%s-%lld", psname, id); 369 372 break;
+1
include/linux/pstore.h
··· 40 40 PSTORE_TYPE_PPC_OF = 5, 41 41 PSTORE_TYPE_PPC_COMMON = 6, 42 42 PSTORE_TYPE_PMSG = 7, 43 + PSTORE_TYPE_PPC_OPAL = 8, 43 44 PSTORE_TYPE_UNKNOWN = 255 44 45 }; 45 46