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)
Wed, Sep 9, 7:38 PM
Unknown Object (File)
Mon, Sep 7, 5:27 PM
Unknown Object (File)
Sat, Sep 5, 12:15 PM
Unknown Object (File)
Fri, Sep 4, 10:34 PM
Unknown Object (File)
Fri, Sep 4, 2:44 PM
Unknown Object (File)
Fri, Sep 4, 12:56 AM
Unknown Object (File)
Wed, Sep 2, 10:20 PM
Unknown Object (File)
Tue, Sep 1, 7:19 PM
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.