Re: [PATCH 2/2] hw/char: sifive_uart: Print uart charecters async

2024-08-18 Thread Alistair Francis
On Thu, Aug 15, 2024 at 6:27 PM Mark Cave-Ayland wrote: > > On 15/08/2024 02:54, Alistair Francis wrote: > > > The current approach of using qemu_chr_fe_write() and ignoring the > > return values results in dropped charecters [1]. > > > > Let's update the SiFive UART to use a async sifive_uart_xmi

Re: [PATCH 2/2] hw/char: sifive_uart: Print uart charecters async

2024-08-15 Thread Mark Cave-Ayland
On 15/08/2024 02:54, Alistair Francis wrote: The current approach of using qemu_chr_fe_write() and ignoring the return values results in dropped charecters [1]. Let's update the SiFive UART to use a async sifive_uart_xmit() function to transmit the charecters and apply back preassure to the gue

[PATCH 2/2] hw/char: sifive_uart: Print uart charecters async

2024-08-14 Thread Alistair Francis
The current approach of using qemu_chr_fe_write() and ignoring the return values results in dropped charecters [1]. Let's update the SiFive UART to use a async sifive_uart_xmit() function to transmit the charecters and apply back preassure to the guest with the SIFIVE_UART_TXFIFO_FULL status. Thi