Page MenuHomeFreeBSD

[PowerPC] Fix panic when attempting to handle an HMI from an idle thread
ClosedPublic

Authored by bdragon on Dec 30 2019, 1:31 AM.
Referenced Files
Unknown Object (File)
Dec 20 2023, 12:47 AM
Unknown Object (File)
Sep 27 2023, 12:20 AM
Unknown Object (File)
Aug 4 2023, 2:44 PM
Unknown Object (File)
Aug 4 2023, 2:43 PM
Unknown Object (File)
Aug 4 2023, 2:42 PM
Unknown Object (File)
Aug 4 2023, 2:32 PM
Unknown Object (File)
May 15 2023, 3:07 PM
Unknown Object (File)
May 15 2023, 2:49 PM
Subscribers

Details

Summary

OK, so sfs_ finally managed to get a good trace of a kernel panic that was happening when attempting to use webengine.

Turns out the root cause was an HMI waking up an idle thread.

Inside our opal_hmi_handler2, we were using vtophys() to set up a flags variable to have opal write the status flags.

Unfortunately, we are still running in interrupt context on an idle thread a the time, so we aren't allowed to muck with the kernel pmap.

So, instead, preallocate the flags variable in pcpu where we can just pass its DMAP address directly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Dec 30 2019, 2:57 AM
This revision was automatically updated to reflect the committed changes.