Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-06 Thread Oleksii
Hi all, On Wed, 2023-02-01 at 09:06 +, Julien Grall wrote: > Hi Andrew, > > On 01/02/2023 00:21, Andrew Cooper wrote: > > On 31/01/2023 11:17 pm, Alistair Francis wrote: > > > On Tue, Jan 31, 2023 at 10:03 PM Julien Grall > > > wrote: > > > > On 31/01/2023 11:44, Alistair Francis wrote: > >

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-04 Thread Alistair Francis
On Thu, Feb 2, 2023 at 3:34 AM Bobby Eshleman wrote: > > On Wed, Feb 01, 2023 at 09:06:21AM +, Julien Grall wrote: > > Hi Andrew, > > > > On 01/02/2023 00:21, Andrew Cooper wrote: > > > On 31/01/2023 11:17 pm, Alistair Francis wrote: > > > > On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-01 Thread Bobby Eshleman
On Wed, Feb 01, 2023 at 09:06:21AM +, Julien Grall wrote: > Hi Andrew, > > On 01/02/2023 00:21, Andrew Cooper wrote: > > On 31/01/2023 11:17 pm, Alistair Francis wrote: > > > On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: > > > > On 31/01/2023 11:44, Alistair Francis wrote: > > > > > On

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-01 Thread Julien Grall
On 01/02/2023 09:06, Julien Grall wrote: Hi Andrew, On 01/02/2023 00:21, Andrew Cooper wrote: On 31/01/2023 11:17 pm, Alistair Francis wrote: On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: On 31/01/2023 11:44, Alistair Francis wrote: On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote:

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-01 Thread Julien Grall
Hi Andrew, On 01/02/2023 00:21, Andrew Cooper wrote: On 31/01/2023 11:17 pm, Alistair Francis wrote: On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: On 31/01/2023 11:44, Alistair Francis wrote: On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote: From my understanding, on RISC-V, the us

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-31 Thread Andrew Cooper
On 31/01/2023 11:17 pm, Alistair Francis wrote: > On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: >> On 31/01/2023 11:44, Alistair Francis wrote: >>> On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote: >>> >> From my understanding, on RISC-V, the use of PC-relative address is >> only guaranteed

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-31 Thread Alistair Francis
On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: > > > > On 31/01/2023 11:44, Alistair Francis wrote: > > On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote: > >> > >> Hi Alistair, Bobby and community, > >> > >> I would like to ask your help with the following check: > >> +/* > >> + * early_*() c

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-31 Thread Julien Grall
On 31/01/2023 11:44, Alistair Francis wrote: On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote: Hi Alistair, Bobby and community, I would like to ask your help with the following check: +/* + * early_*() can be called from head.S with MMU-off. + * + * The following requiremets should be honou

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-31 Thread Alistair Francis
On Sat, Jan 28, 2023 at 12:15 AM Oleksii wrote: > > Hi Alistair, Bobby and community, > > I would like to ask your help with the following check: > +/* > + * early_*() can be called from head.S with MMU-off. > + * > + * The following requiremets should be honoured for early_*() to > + * work corre

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-27 Thread Oleksii
Hi Alistair, Bobby and community, I would like to ask your help with the following check: +/* + * early_*() can be called from head.S with MMU-off. + * + * The following requiremets should be honoured for early_*() to + * work correctly: + *It should use PC-relative addressing for accessing sy

[PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-01-27 Thread Oleksii Kurochko
Because printk() relies on a serial driver (like the ns16550 driver) and drivers require working virtual memory (ioremap()) there is not print functionality early in Xen boot. The patch introduces the basic stuff of early_printk functionality which will be enough to print 'hello from C environment