freebsd-dev/sys/powerpc/powernv
Brandon Bergren 5c74d551d2 [PowerPC] Fix setting of time in OPAL
There were multiple bugs in the OPAL RTC code which had never been
discovered, as the default configuration of OPAL machines is to
have the BMC / FSP control the RTC.

* Fix calling convention for setting the time -- the variables are passed
directly in CPU registers, not via memory.

* Fix bug in the bcd encoding routines. (from jhibbits)

Tested on POWER9 Talos II (BE) and POWER9 Blackbird (LE).

Reviewed by:	jhibbits (in irc)
Sponsored by:	Tag1 Consulting, Inc.
2020-09-10 01:49:53 +00:00
..
opal_async.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_console.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_dbg.c [PPC64] Enable opal console use as a GDB DBGPORT 2019-12-09 13:09:32 +00:00
opal_dev.c [PowerPC] Fix setting of time in OPAL 2020-09-10 01:49:53 +00:00
opal_flash.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_hmi.c [PowerPC] Fix panic when attempting to handle an HMI from an idle thread 2019-12-30 02:56:47 +00:00
opal_i2c.c powerpc/powernv: Add asynchronous token management for powernv 2019-03-01 02:49:47 +00:00
opal_i2cm.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_nvram.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_pci.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_sensor.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal.h [PowerPC64] Fix invalid OPAL call in xive_bind(). 2020-08-21 03:23:10 +00:00
opalcall.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
platform_powernv.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv_centaur.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv_xscom.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
xive.c [PowerPC64] Fix xive order calculation in qemu TCG 2020-09-08 23:48:49 +00:00