[SeaBIOS] Re: [PATCH 3/3] kvm: add support for reading tsc frequency via cpuid.

2020-03-06 Thread Kevin O'Connor
On Fri, Mar 06, 2020 at 04:44:16PM +0100, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > src/fw/paravirt.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c > index 4fcd8f570673..8b463af96c3e 100644 > --- a/src/fw/paravirt.c > +++ b/

[SeaBIOS] Re: [PATCH 1/3] timer: factor out tsctimer_configure()

2020-03-06 Thread Kevin O'Connor
On Fri, Mar 06, 2020 at 04:44:14PM +0100, Gerd Hoffmann wrote: > Factor out TimerKHz and ShiftTSC calculation to tsctimer_configure(). > > Signed-off-by: Gerd Hoffmann > --- > src/hw/timer.c | 21 + > 1 file changed, 13 insertions(+), 8 deletions(-) > > diff --git a/src/hw/t

[SeaBIOS] Check if Wikipedia is correct and not outdated

2020-03-06 Thread Fred .Flintstone
Hi Please check if Wikipedia is correct and not outdated. The SeaBIOS article. https://en.wikipedia.org/wiki/SeaBIOS The BIOS comparison which includes SeaBIOS. https://en.wikipedia.org/wiki/BIOS#Vendors_and_products Thanks! ___ SeaBIOS mailing list -

[SeaBIOS] Re: [PATCH v2] std/tcg: Replace zero-length array with flexible-array member

2020-03-06 Thread Stefan Berger
On 3/6/20 8:33 AM, Kevin O'Connor wrote: On Wed, Mar 04, 2020 at 02:51:27PM +0100, Paul Menzel wrote: Date: Tue, 3 Mar 2020 16:24:46 +0100 GCC 10 gives the warnings below: In file included from out/ccode32flat.o.tmp.c:54: ./src/tcgbios.c: In function 'tpm20_write_EfiSpecIdEventStruct

[SeaBIOS] Re: [PATCH] std/tcg: Replace zero-length array with flexible-array member

2020-03-06 Thread Stefan Berger
On 3/3/20 11:50 AM, Paul Menzel wrote: Date: Tue, 3 Mar 2020 16:24:46 +0100 GCC 10 gives the warnings below: In file included from out/ccode32flat.o.tmp.c:54: ./src/tcgbios.c: In function 'tpm20_write_EfiSpecIdEventStruct': ./src/tcgbios.c:290:30: warning: array subscript '() +

[SeaBIOS] Re: [PATCH 3/3] kvm: add support for reading tsc frequency via cpuid.

2020-03-06 Thread Philippe Mathieu-Daudé
On 3/6/20 4:44 PM, Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 4fcd8f570673..8b463af96c3e 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -67,6 +67,11 @@

[SeaBIOS] Re: [PATCH 1/3] timer: factor out tsctimer_configure()

2020-03-06 Thread Philippe Mathieu-Daudé
On 3/6/20 4:44 PM, Gerd Hoffmann wrote: Factor out TimerKHz and ShiftTSC calculation to tsctimer_configure(). Signed-off-by: Gerd Hoffmann --- src/hw/timer.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/hw/timer.c b/src/hw/timer.c index bdcb3

[SeaBIOS] [PATCH 3/3] kvm: add support for reading tsc frequency via cpuid.

2020-03-06 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- src/fw/paravirt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c index 4fcd8f570673..8b463af96c3e 100644 --- a/src/fw/paravirt.c +++ b/src/fw/paravirt.c @@ -67,6 +67,11 @@ static void kvm_detect(void) if (strcmp

[SeaBIOS] [PATCH 2/3] timer: add tsctimer_setfreq()

2020-03-06 Thread Gerd Hoffmann
Add function to set tsc frequency directly, without calibration. Also tweak timer setup functions a bit: skip setup in case TimerPort has not the default value any more, i.e. another timer has been setup already. Signed-off-by: Gerd Hoffmann --- src/util.h | 1 + src/hw/timer.c | 18 +++

[SeaBIOS] [PATCH 1/3] timer: factor out tsctimer_configure()

2020-03-06 Thread Gerd Hoffmann
Factor out TimerKHz and ShiftTSC calculation to tsctimer_configure(). Signed-off-by: Gerd Hoffmann --- src/hw/timer.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/hw/timer.c b/src/hw/timer.c index bdcb3bfca211..ce3d63cd75f6 100644 --- a/src/hw/ti

[SeaBIOS] Re: [PATCH] sercon: vbe modeset is int 10h function 4f02 not 4f00

2020-03-06 Thread Ottavio Caruso
On 06/03/2020 09:03, Gerd Hoffmann wrote: > Fixes console redirection for NetBSD primary bootloader. > > https://bugs.launchpad.net/bugs/1743191 > Signed-off-by: Gerd Hoffmann > --- > src/sercon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/sercon.c b/src/sercon.c >

[SeaBIOS] Re: [PATCH] sercon: vbe modeset is int 10h function 4f02 not 4f00

2020-03-06 Thread Kevin O'Connor
On Fri, Mar 06, 2020 at 10:03:21AM +0100, Gerd Hoffmann wrote: > Fixes console redirection for NetBSD primary bootloader. > > https://bugs.launchpad.net/bugs/1743191 > Signed-off-by: Gerd Hoffmann > --- > src/sercon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/

[SeaBIOS] Re: [PATCH v2] std/tcg: Replace zero-length array with flexible-array member

2020-03-06 Thread Kevin O'Connor
On Wed, Mar 04, 2020 at 02:51:27PM +0100, Paul Menzel wrote: > Date: Tue, 3 Mar 2020 16:24:46 +0100 > > GCC 10 gives the warnings below: > > In file included from out/ccode32flat.o.tmp.c:54: > ./src/tcgbios.c: In function 'tpm20_write_EfiSpecIdEventStruct': > ./src/tcgbios.c:290:30: w

[SeaBIOS] Re: [PATCH v3] hw/usb-hid: handle devices with illegal max packet size

2020-03-06 Thread Kevin O'Connor
On Sun, Dec 15, 2019 at 09:26:17PM -0600, Matt DeVillier wrote: > On Sun, Dec 15, 2019 at 6:26 PM Kevin O'Connor wrote: > > > > On Sat, Dec 14, 2019 at 11:26:17AM -0600, Matt DeVillier wrote: > > > Some USB keyboards report 9 or 10-byte max packet sizes, instead > > > of the 8-byte max specified b

[SeaBIOS] Re: [PATCH 2/2] hw/usb-hid: Don't abort if setting key repeat rate fails

2020-03-06 Thread Kevin O'Connor
On Thu, Dec 12, 2019 at 09:51:19PM -0600, Matt DeVillier wrote: > Since the USB stack doesn't handle stalled pipes, > don't abort keyboard setup if the set_idle command fails, > since it's a non-critical feature. Instead, log a warning. > > Test: build/boot Google Pixel Slate, observe keyboard fun

[SeaBIOS] Re: [PATCH] sercon: vbe modeset is int 10h function 4f02 not 4f00

2020-03-06 Thread Paul Menzel
Dear Gerd, Maybe in imperative mood: > Correct VBE modeset to int 10h function 4f02 not 4f00 On 2020-03-06 10:03, Gerd Hoffmann wrote: > Fixes console redirection for NetBSD primary bootloader. Add how to reproduce this: wget http://ftp.netbsd.org/pub/NetBSD/NetBSD-7.1.1/amd64/installati

[SeaBIOS] [PATCH] sercon: vbe modeset is int 10h function 4f02 not 4f00

2020-03-06 Thread Gerd Hoffmann
Fixes console redirection for NetBSD primary bootloader. https://bugs.launchpad.net/bugs/1743191 Signed-off-by: Gerd Hoffmann --- src/sercon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sercon.c b/src/sercon.c index a5dadb7261af..66a1f2412e77 100644 --- a/src/sercon.