[SeaBIOS] [PATCH v2] build: use -fcf-protection=none when available

2020-03-20 Thread Christian Ehrhardt
Some hardened gcc v9 compilers (such as the one in Ubuntu) default this option which for seabios leads to emulation errors when running in KVM (does not trigger in TCG) on older intel chips of the Penryn generation (~2006-2008). The symptom appears as endbr32/endbr64 interpretation failures and

[SeaBIOS] Re: [PATCH 2/6] paravirt/qemu: virtio-mmio device discovery

2020-03-20 Thread Gerd Hoffmann
On Thu, Mar 19, 2020 at 07:48:19PM -0400, Kevin O'Connor wrote: > On Thu, Mar 19, 2020 at 08:39:33AM +0100, Gerd Hoffmann wrote: > > Use bootorder fw_cfg file to find bootable virtio-mmio devices. > > Also add a new virtio-mmio.c source file, providing a function > > to register virtio-mmio

[SeaBIOS] Re: [PATCH] build: use -fcf-protection=none when available

2020-03-20 Thread Christian Ehrhardt
On Fri, Mar 20, 2020 at 12:20 AM Fangrui Song wrote: > On 2020-03-19, Christian Ehrhardt wrote: > >Some hardened gcc v9 compilers (such as the one in Ubuntu) > >default this option which for seabios leads to emulation errors > >when running in KVM (does not trigger in TCG) on older intel >

[SeaBIOS] Re: [PATCH 2/6] paravirt/qemu: virtio-mmio device discovery

2020-03-20 Thread Kevin O'Connor
On Fri, Mar 20, 2020 at 07:13:02AM +0100, Gerd Hoffmann wrote: > On Thu, Mar 19, 2020 at 07:48:19PM -0400, Kevin O'Connor wrote: > > On Thu, Mar 19, 2020 at 08:39:33AM +0100, Gerd Hoffmann wrote: > > > Use bootorder fw_cfg file to find bootable virtio-mmio devices. > > > Also add a new

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

2020-03-20 Thread Paul Menzel
Dear Kevin, dear Gerd, Am 06.03.20 um 18:01 schrieb 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

[SeaBIOS] Re: [PATCH] pci: add mmconfig support

2020-03-20 Thread Kevin O'Connor
On Fri, Mar 20, 2020 at 06:48:53AM +0100, Gerd Hoffmann wrote: > > > +static void *pci_mmconfig_addr(u16 bdf, u32 addr) > > > +{ > > > +if (!mmconfig) > > > +return NULL; > > > +return (void*)(mmconfig + ((u32)bdf << 12) + addr); > > > +} > > > + > > > void pci_config_writel(u16

[SeaBIOS] Sometimes USB disks do not show up on first boot, I have to press Ctrl+Alt+Delete a few times for it to appear

2020-03-20 Thread Dalao
I'm using coreboot with seabios on Thinkpad T420. I found that sometimes USB disks do not show up on first code boot (press the power button), possibly due to slow on detection? If I press Ctrl+Alt+Delete a few times, they will appear in the list. Recently I used clonezilla for backup and I

[SeaBIOS] Re: Sometimes USB disks do not show up on first boot, I have to press Ctrl+Alt+Delete a few times for it to appear

2020-03-20 Thread Paul Menzel
Dear Dalao, Am 20.03.20 um 20:58 schrieb Dalao: I'm using coreboot with seabios on Thinkpad T420. I found that sometimes USB disks do not show up on first code boot (press the power button), possibly due to slow on detection? If I press Ctrl+Alt+Delete a few times, they will appear in the

[SeaBIOS] Re: Sometimes USB disks do not show up on first boot, I have to press Ctrl+Alt+Delete a few times for it to appear

2020-03-20 Thread Dalao
> Please let’s fix the root cause. Please attach the logs of coreboot with log > level `DEBUG` and SeaBIOS log level set to at least 5 by attaching the output > of `cbmem -1` from a boot where the USB device was not detected, so the > developers know about the used versions and debug messages.

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

2020-03-20 Thread Kevin O'Connor
On Fri, Mar 20, 2020 at 04:41:09PM +0100, Paul Menzel wrote: > Am 06.03.20 um 18:01 schrieb 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