Re: [PATCH 5/5] xen/ppc: Implement early serial console on PowerNV

2023-08-02 Thread Jan Beulich
On 02.08.2023 00:54, Shawn Anastasio wrote: > On 8/1/23 6:19 AM, Jan Beulich wrote: >> On 28.07.2023 23:35, Shawn Anastasio wrote: >>> +static void opal_putchar(char c) >> >> Can't this be __init? > > Unlike OpenFirmware, OPAL calls are expected to be used by the OS during > its entire lifecycle,

Re: [PATCH 5/5] xen/ppc: Implement early serial console on PowerNV

2023-08-01 Thread Shawn Anastasio
On 8/1/23 6:19 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> --- a/xen/arch/ppc/include/asm/asm-defns.h >> +++ b/xen/arch/ppc/include/asm/asm-defns.h >> @@ -23,6 +23,18 @@ >> addis reg,%r2,name@toc@ha; >> \ >> addi

Re: [PATCH 5/5] xen/ppc: Implement early serial console on PowerNV

2023-08-01 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > --- a/xen/arch/ppc/include/asm/asm-defns.h > +++ b/xen/arch/ppc/include/asm/asm-defns.h > @@ -23,6 +23,18 @@ > addis reg,%r2,name@toc@ha; > \ > addi reg,reg,name@toc@l Noticing only now, because

[PATCH 5/5] xen/ppc: Implement early serial console on PowerNV

2023-07-28 Thread Shawn Anastasio
Implement the OPAL firmware calls required to write to the serial console on PowerNV systems. Unlike pseries/Open Firmware, the OPAL firmware interface can be used past early boot and as such the relevant functions are not marked as __init. Signed-off-by: Shawn Anastasio --- xen/arch/ppc/include