Page MenuHomeFreeBSD

powerpc/powernv: Add OPAL NVRAM driver
ClosedPublic

Authored by jhibbits on Sep 13 2019, 3:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 12, 3:28 AM
Unknown Object (File)
Sun, Jan 4, 10:29 PM
Unknown Object (File)
Sun, Dec 28, 10:38 AM
Unknown Object (File)
Thu, Dec 25, 6:48 PM
Unknown Object (File)
Nov 19 2025, 4:39 PM
Unknown Object (File)
Nov 3 2025, 12:46 AM
Unknown Object (File)
Sep 29 2025, 2:53 AM
Unknown Object (File)
Sep 26 2025, 4:54 AM
Subscribers
None

Details

Summary

Add a very basic OPAL NVRAM driver, which can be used by the IBM
power-utils toolkit for reading and writing NVRAM on powernv systems.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26453
Build 24884: arc lint + arc unit

Event Timeline

LGTM.

sys/powerpc/powernv/opal_nvram.c
148

Isn't a NULL check of contigmalloc() return value needed here?

This revision is now accepted and ready to land.Sep 13 2019, 7:47 PM
sys/powerpc/powernv/opal_nvram.c
148

You're right. Even though I specify M_WAITOK, from code inspection it only allows me 3 retries before it gives up and returns NULL.