History log of /freebsd-12.1/sys/powerpc/powernv/opal_dev.c (Results 1 – 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0
# 78f4e2fe 08-Aug-2018 Breno Leitao <[email protected]>

powerpc64/powernv: re-read RTC after polling

If OPAL_RTC_READ is busy and does not return the information on the first run,
as returning OPAL_BUSY_EVENT, the system will crash since ymd and hmsm var

powerpc64/powernv: re-read RTC after polling

If OPAL_RTC_READ is busy and does not return the information on the first run,
as returning OPAL_BUSY_EVENT, the system will crash since ymd and hmsm variable
will contain junk values.

This is happening because we were not calling OPAL_RTC_READ again after
OPAL_POLL_EVENTS' return, which would finally replace the old/junk hmsm and ymd
values.

The code was also mixing OPAL_RTC_READ and OPAL_POLL_EVENTS return values.

This patch fix this logic and guarantee that we call OPAL_RTC_READ after
OPAL_POLL_EVENTS return, and guarantee the code will only proceed if
OPAL_RTC_READ returns OPAL_SUCCESS.

Reviewed by: jhibbits
Approved by: jhibbits (mentor)
Differential Revision: https://reviews.freebsd.org/D16617

show more ...


Revision tags: release/11.2.0
# eb96cc13 21-Feb-2018 Wojciech Macek <[email protected]>

PowerNV: add missing RTC_WRITE support

Add function which can store RTC values to OPAL.

Submitted by: Wojciech Macek <[email protected]>
Obtained from: Semihalf
Sponsored by:

PowerNV: add missing RTC_WRITE support

Add function which can store RTC values to OPAL.

Submitted by: Wojciech Macek <[email protected]>
Obtained from: Semihalf
Sponsored by: IBM, QCM Technologies

show more ...


# 504d9b60 12-Jan-2018 Wojciech Macek <[email protected]>

PowerNV: update OPAL driver

Update OPAL driver with:
- better console support
- proper AP configuration
- enhanced IRQ/OFW mapping
- RTC support

Created by: Nathan Whitehorn <nwhitehorn@

PowerNV: update OPAL driver

Update OPAL driver with:
- better console support
- proper AP configuration
- enhanced IRQ/OFW mapping
- RTC support

Created by: Nathan Whitehorn <[email protected]>
Submitted by: Wojciech Macek <[email protected]>
Sponsored by: FreeBSD Foundation

show more ...


# 32d1354a 11-Jan-2018 Wojciech Macek <[email protected]>

PowerNV: add reset, poweroff, OPAL console

Add basic power control (reset, power off) and bind
ttyuX to opal console so that init will start login there.

Created by: Nathan Whitehorn <nw

PowerNV: add reset, poweroff, OPAL console

Add basic power control (reset, power off) and bind
ttyuX to opal console so that init will start login there.

Created by: Nathan Whitehorn <[email protected]>
Submitted by: Wojciech Macek <[email protected]>
Sponsored by: FreeBSD Foundation

show more ...