Re: [RFC PATCH 4/6] powerpc/powernv: Convert pointers to physical addresses in OPAL call args

2022-11-08 Thread Christophe Leroy
Le 04/11/2022 à 18:27, Andrew Donnellan a écrit : > A number of OPAL calls take addresses as arguments (e.g. buffers with > strings to print, etc). These addresses need to be physical addresses, as > OPAL runs in real mode. > > Since the hardware ignores the top two bits of the address in real m

Re: [RFC PATCH 4/6] powerpc/powernv: Convert pointers to physical addresses in OPAL call args

2022-11-06 Thread Russell Currey
On Sat, 2022-11-05 at 04:27 +1100, Andrew Donnellan wrote: > A number of OPAL calls take addresses as arguments (e.g. buffers with > strings to print, etc). These addresses need to be physical > addresses, as > OPAL runs in real mode. > > Since the hardware ignores the top two bits of the address

[RFC PATCH 4/6] powerpc/powernv: Convert pointers to physical addresses in OPAL call args

2022-11-04 Thread Andrew Donnellan
A number of OPAL calls take addresses as arguments (e.g. buffers with strings to print, etc). These addresses need to be physical addresses, as OPAL runs in real mode. Since the hardware ignores the top two bits of the address in real mode, passing addresses in the kernel's linear map works fine e