[SeaBIOS] [PATCH v2 8/9] acpi: skip kbd init if not present

2020-04-08 Thread Gerd Hoffmann
Don't initialize the ps/2 keyboard in case the device is not listed in the ACPi DSDT table. Signed-off-by: Gerd Hoffmann --- src/hw/ps2port.c | 4 1 file changed, 4 insertions(+) diff --git a/src/hw/ps2port.c b/src/hw/ps2port.c index 2c334c06b7eb..c82521b42e16 100644 ---

[SeaBIOS] [PATCH v2 5/9] virtio-mmio: print device type

2020-04-08 Thread Gerd Hoffmann
--- src/hw/virtio-mmio.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/hw/virtio-mmio.c b/src/hw/virtio-mmio.c index adb28f730592..dabef7b7e53a 100644 --- a/src/hw/virtio-mmio.c +++ b/src/hw/virtio-mmio.c @@ -11,6 +11,19 @@ void

[SeaBIOS] [PATCH v2 1/9] virtio-mmio: device probing and initialization.

2020-04-08 Thread Gerd Hoffmann
Add virtio_mmio_setup_one() to setup virtio mmio devices. Add vp_init_mmio() to initialize device struct. Because virtio-pci and virtio-mmio are quite simliar we reuse the infrastructure we already have for virtio-pci and just setup struct vp_cap for virtio-mmio. Signed-off-by: Gerd Hoffmann

[SeaBIOS] [PATCH v2 0/9] virtio-mmio support and acpi dsdt parser

2020-04-08 Thread Gerd Hoffmann
Hi, This series adds virtio-mmio support and an acpi dsdt parser (for device discovery) to seabios. v2: * various acpi parser tweaks. * move parser to separate src file. * reorganize virtio-mmio probing a bit. take care, Gerd Gerd Hoffmann (9): virtio-mmio: device probing and

[SeaBIOS] [PATCH v2 9/9] acpi: find and register virtio-mmio devices

2020-04-08 Thread Gerd Hoffmann
Seach for virtio-mmio devices in the DSDT table, register the devices found. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-mmio.h | 1 + src/fw/paravirt.c| 2 ++ src/hw/virtio-mmio.c | 20 3 files changed, 23 insertions(+) diff --git a/src/hw/virtio-mmio.h

[SeaBIOS] [PATCH v2 7/9] acpi: add dsdt parser

2020-04-08 Thread Gerd Hoffmann
Create a list of devices found in the DSDT table. Add helper functions to find devices, walk the list and figure device informations like mmio ranges and irqs. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- src/util.h | 11 + src/fw/biostables.c | 9 +

[SeaBIOS] [PATCH v2 6/9] acpi: add xsdt support

2020-04-08 Thread Gerd Hoffmann
In case a xsdt table is present (and located below 4G) prefer it over rsdt. Signed-off-by: Gerd Hoffmann --- src/std/acpi.h | 11 +++ src/fw/biostables.c | 40 ++-- 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/src/std/acpi.h

[SeaBIOS] [PATCH v2 2/9] virtio-mmio: add support to vp_*() functions

2020-04-08 Thread Gerd Hoffmann
Add support for virtio-mmio to the vp_*() helper functions. Both legacy and 1.0 virto-mmio versions are supported. They are very simliar anyway, only the virtqueue initialization is slightly different. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-pci.c | 68

[SeaBIOS] [PATCH v2 3/9] virtio-mmio: add support for scsi devices.

2020-04-08 Thread Gerd Hoffmann
Add new fields to struct virtio_lun_s for mmio support, add mmio parameter to virtio_scsi_init_lun(), so both pci and mmio devices can be handled. Add and use bootprio_find_scsi_mmio_device() to figure boot priority of devices connected to a virtio-mmio scsi controller. Finally add

[SeaBIOS] [PATCH v2 4/9] virtio-mmio: add support for block devices.

2020-04-08 Thread Gerd Hoffmann
Add and use bootprio_find_mmio_device() to figure the boot priority of virtio-mmio block devices. Add init_virtio_blk_mmio to initialize one virtio-mmio block device. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-blk.h | 1 + src/util.h | 1 + src/boot.c | 9 ++

[SeaBIOS] Re: [PATCH 7/9] acpi: add dsdt parser

2020-04-08 Thread Kevin O'Connor
On Wed, Apr 08, 2020 at 02:39:39PM +0200, Gerd Hoffmann wrote: > > > +again: > > > +switch (ptr[offset]) { > > > +case 0: /* null name */ > > > +offset++; > > > +*(dst++) = 0; > > > +break; > [ ... ] > > > +case '^': > > > +*(dst++) = '^'; > > > +

[SeaBIOS] Re: [PATCH 7/9] acpi: add dsdt parser

2020-04-08 Thread Gerd Hoffmann
Hi, > > +/ > > + * DSDT parser > > + / > > I think this code is sufficiently large to demand it's own C file - > for example src/fw/dsdt_parser.c . Done. > >

[SeaBIOS] Re: [PATCH 8/9] acpi: skip kbd init if not present

2020-04-08 Thread Gerd Hoffmann
On Mon, Apr 06, 2020 at 07:26:07PM -0400, Kevin O'Connor wrote: > On Fri, Apr 03, 2020 at 10:31:20AM +0200, Gerd Hoffmann wrote: > > Don't initialize the ps/2 keyboard in case the device is not > > listed in the ACPi DSDT table. > > > > Signed-off-by: Gerd Hoffmann > > --- > > src/hw/ps2port.c