aboutsummaryrefslogtreecommitdiff
path: root/core/flash.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-06-20 17:45:38 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-20 17:45:38 +1000
commit6865d6f04e7a5e12db2b365f899dc8a902fc304c (patch)
treebade9796c377c2c285976e1ffe783d343cc5d57f /core/flash.c
parentbe430d881285f72df6dd932c06811d62463dfe88 (diff)
downloadskiboot-6865d6f04e7a5e12db2b365f899dc8a902fc304c.zip
skiboot-6865d6f04e7a5e12db2b365f899dc8a902fc304c.tar.gz
skiboot-6865d6f04e7a5e12db2b365f899dc8a902fc304c.tar.bz2
fwts: add annotations for core flash/nvram functionality
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/flash.c')
-rw-r--r--core/flash.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/flash.c b/core/flash.c
index 734e0fa..6c0d2ff 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -277,12 +277,24 @@ int flash_register(struct blocklevel_device *bl, bool is_system_flash)
if (!flash) {
unlock(&flash_lock);
+ /**
+ * @fwts-label NoFlashSlots
+ * @fwts-advice System has more flash chips than skiboot
+ * was configured to know about. Your system will not be
+ * able to access some of the flash it has.
+ */
prlog(PR_ERR, "FLASH: No flash slots available\n");
return OPAL_RESOURCE;
}
rc = ffs_init(0, flash->size, bl, &ffs, 0);
if (rc) {
+ /**
+ * @fwts-label NoFFS
+ * @fwts-advice System flash isn't formatted as expected.
+ * This could mean several OPAL utilities do not function
+ * as expected. e.g. gard, pflash.
+ */
prlog(PR_WARNING, "FLASH: No ffs info; "
"using raw device only\n");
ffs = NULL;