Kevin O'Connor [Fri, 24 Dec 2010 16:15:26 +0000 (11:15 -0500)]
Add romfile_loadfile() helper function.
Add function to find, malloc, and copy a romfile. Use it in the
bootsplash and bootorder code.
Gleb Natapov [Thu, 23 Dec 2010 09:29:38 +0000 (11:29 +0200)]
Read bootorder file into memory.
Read bootorder file, parse it and put it into array for easy
consumption.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Kevin O'Connor [Fri, 24 Dec 2010 15:39:32 +0000 (10:39 -0500)]
Add strchr() function.
Gleb Natapov [Thu, 23 Dec 2010 09:29:39 +0000 (11:29 +0200)]
Add romfile_name() function.
romfile_name() return file name given file handler. Works for qemu and
coreboot.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Gleb Natapov [Thu, 23 Dec 2010 09:29:36 +0000 (11:29 +0200)]
Add BAID for ahci cdrom.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Gleb Natapov [Thu, 23 Dec 2010 09:29:35 +0000 (11:29 +0200)]
Provide full EDD 3.0 info for virtio disk
Fill out entire EDD 3.0 structure for virtio disk. Currently only EDD 1.0
part is filled which is missing such important info as device path. Use
SCSI device type since virtio is not defined by EDD spec and virtio disk pci
device uses SCSI class.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Kevin O'Connor [Fri, 24 Dec 2010 15:23:10 +0000 (10:23 -0500)]
Enhance layoutrom.py to work around a binutils quirk.
Some binutils (report of 2.20.1) don't create dummy symbols for each
section - work around that.
Gleb Natapov [Tue, 7 Dec 2010 11:50:54 +0000 (13:50 +0200)]
Create separate IPL entry for each CD/DVD
Current code creates only one IPL entry of type IPL_TYPE_CDROM even if
there are more then one CDROM drive present. If CDROM that the entry
refers to is not bootable there is no way to retry boot from another
CDROM. Fix this by creating IPL entry for each CDROM drive found. First
CDROM will always be placed in IPL entry 3 for backwards compatibility.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Gerd Hoffmann [Thu, 9 Dec 2010 07:39:48 +0000 (08:39 +0100)]
ahci: set controller id
Fill the controller id in the drive struct with the port number so we
get a sane boot menu ordering with multiple hard disks attached.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Gerd Hoffmann [Thu, 9 Dec 2010 07:39:47 +0000 (08:39 +0100)]
ahci: fix off-by-one in port count
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Kevin O'Connor [Sun, 12 Dec 2010 19:01:47 +0000 (14:01 -0500)]
ahci: enable io/mem/dma
Make sure IO, MMIO and DMA are enabled in pci config space
before using the device.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Gerd Hoffmann [Thu, 9 Dec 2010 07:39:45 +0000 (08:39 +0100)]
ahci: set dma feature flag
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Kevin O'Connor [Sun, 5 Dec 2010 17:52:02 +0000 (12:52 -0500)]
Check if capability enabled in XXX_cmd_data functions.
Make sure to check if CONFIG_AHCI, CONFIG_ATA, CONFIG_USB_MSC is
enabled in their respective cmd_data functions. This reduces the
compile size when they are not enabled.
Kevin O'Connor [Sun, 5 Dec 2010 17:38:33 +0000 (12:38 -0500)]
Require a "_cfuncXX_" symbol prefix for inter-mode c function references.
The compiler can get confused when referencing a C function in a
different mode. (It reasonably assumes that the C function in the
current mode is desired.) To avoid this compiler confusion, introduce
symbol prefixes (_cfunc16_, _cfunc32flat_, _cfunc32seg_) that must be
used on C function symbols that are referenced from other compilation
modes.
This makes it less likely compiler confusion will occur. It will also
makes it easier to implement and use vtable like operation structures.
Gerd Hoffmann [Mon, 29 Nov 2010 08:42:13 +0000 (09:42 +0100)]
add ahci support
This patch adds AHCI support to seabios. Tested with virtual hardware
only (upcoming ahci support in qemu). Coded by looking at the
recommandations in the intel ahci specs, so I don't expect much trouble
on real hardware. Tested booting fedora install from hard disk and a
opensuse live iso from cdrom.
[ v2: disable by default ]
[ v2: add check for malloc failure ]
[ v2: wind up disk write support ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Gerd Hoffmann [Mon, 29 Nov 2010 08:42:12 +0000 (09:42 +0100)]
ata: make helpers available
Make ata helper functions available outside ata.c, so others (i.e.
upcoming ahci support) can use them. Prefix them with ata_ to avoid
name clashes. Also don't hard-code buffer size for the model name.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Gerd Hoffmann [Mon, 29 Nov 2010 08:42:11 +0000 (09:42 +0100)]
util: add memset_fl()
Gerd Hoffmann [Mon, 29 Nov 2010 08:42:10 +0000 (09:42 +0100)]
pci: add helper functions for mmio bar access from real mode.
This patch adds helper pci_readl and pci_writel which can be used
to access pci mmio bars from real mode. They work in 32bit mode
too. ahci support needs this, also ohci for bulk transfers, and
probably more devices in the future.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Kevin O'Connor [Thu, 25 Nov 2010 14:17:31 +0000 (09:17 -0500)]
Enhance call32() to pass a parameter to called function.
Support passing a parameter to the 32bit function, as well as
returning the result of the function back to the 16bit code.
Also, make call32 available outside of stacks.c.
Kevin O'Connor [Thu, 25 Nov 2010 13:52:50 +0000 (08:52 -0500)]
Don't pass return address to transition(32,16,16big) on stack.
It's difficult to have a uniform view of the stack when transition
modes, so pass the return address in a register. As a result, the
transition functions only access memory via the %cs selector now.
Isaku Yamahata [Thu, 28 Oct 2010 06:54:36 +0000 (15:54 +0900)]
pciinit: use pci_region functions.
This patch cleans up pci region allocation with pci_region.
Now it is aware of overflow.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Thu, 28 Oct 2010 06:54:35 +0000 (15:54 +0900)]
pci: introduce pci_region to manage pci io/memory/prefmemory regions.
This patch adds helper functions to manage pci area.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Kevin O'Connor [Thu, 21 Oct 2010 01:59:11 +0000 (21:59 -0400)]
mark irq9 active high in DSDT
In PIIX4 SCI (irq9) is active high. Seabios marks it so in interrupt
override table, but some OSes (FreeBSD) require the same information to
be present in DSDT too. Make it so.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Kevin O'Connor [Mon, 18 Oct 2010 01:38:38 +0000 (21:38 -0400)]
Report meaningful error if pyserial not present in tools/readserial.py
Kevin O'Connor [Sun, 26 Sep 2010 22:32:13 +0000 (18:32 -0400)]
Show size of non-relocatable runtime code during build.
Kevin O'Connor [Sat, 25 Sep 2010 18:53:15 +0000 (14:53 -0400)]
Cleanup - it's no longer necessary to manually reset global variables.
Now that a soft-reboot forces a hard-reboot, it is no longer necessary
to manually reset global variables.
Kevin O'Connor [Sat, 25 Sep 2010 16:48:43 +0000 (12:48 -0400)]
Allow rom to grow to 256K.
Enable rom size to be over 128K.
Apparently, only the first 128K of the rom are mirrored to the
0xc0000-0xfffff area under qemu, so make sure to copy the rom (via
make_bios_writable) in the non-init part of the startup code. This
ensure the copy code is itself available.
Kevin O'Connor [Sat, 25 Sep 2010 16:46:38 +0000 (12:46 -0400)]
Fix typo preventing relocated space from being used for option roms.
Gleb Natapov [Wed, 15 Sep 2010 16:31:44 +0000 (18:31 +0200)]
fix virtio-blk failure after reboot
vring_virtqueue should be zeroed otherwise old values will be reused
after reboot.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Kevin O'Connor [Mon, 20 Sep 2010 02:13:18 +0000 (22:13 -0400)]
Add a debug method to AML code.
Add DBUG() method to AML - it can write output to the standard qemu
bios debug port (port 0x402).
Kevin O'Connor [Mon, 20 Sep 2010 02:10:08 +0000 (22:10 -0400)]
Warn that ohci bulk is not supported.
Print a meaningful warning message when trying to use OHCI bulk.
Kevin O'Connor [Thu, 16 Sep 2010 02:06:19 +0000 (22:06 -0400)]
Enable optionroms to use freed space due to CONFIG_RELOCATE_INIT.
The space in the e-segment is available for option roms after
relocating the init code.
Also, zero all of the option rom space when !CONFIG_OPTIONROMS_DEPLOYED.
Kevin O'Connor [Sat, 25 Sep 2010 15:34:06 +0000 (11:34 -0400)]
Move the 32bit init code to high memory at runtime.
Add support for moving the 32bit init code out of the e/f-segments and
into temporary ram. Update the relocations in the code so that it can
live at its new address.
This frees up memory for other uses in the e/f segments.
Kevin O'Connor [Thu, 16 Sep 2010 01:59:11 +0000 (21:59 -0400)]
Move init code from _start() to post().
Move the shadow calls from _start() to post() - this ensures all the
one time init code is in post().
Also, reorg post so that malloc setup is done before ivt/bda/ebda
setup.
This is in preparation for relocating the 32bit flat init code.
Kevin O'Connor [Wed, 15 Sep 2010 04:25:32 +0000 (00:25 -0400)]
Add memalign_tmp() helper function.
Kevin O'Connor [Thu, 16 Sep 2010 01:48:16 +0000 (21:48 -0400)]
Try to hard-reboot on rerun of post even on emulators.
Extend the hard-reboot logic to qemu and kvm. On qemu, a reboot will
not reset the memory settings for 0xc0000-0xfffff, so copy that memory
area manually before rebooting. Unfortunately, kvm does not keep a
pristine copy of the BIOS at 0xffff0000, so detect that case and
shutdown the machine.
Kevin O'Connor [Tue, 14 Sep 2010 01:19:27 +0000 (21:19 -0400)]
Don't do shadow copying of optionroms when CONFIG_OPTIONROMS_DEPLOYED.
When CONFIG_OPTIONROMS_DEPLOYED is set, there is no need to copy the
0xc0000-0xf0000 space around - SeaBIOS ignores what's there when it
that mode.
Kevin O'Connor [Tue, 14 Sep 2010 00:22:07 +0000 (20:22 -0400)]
Try to hard-reboot processor on rerun of post under coreboot.
Add several methods for rebooting a processor.
Detect a rerun of POST under coreboot and attempt to reboot the
processor.
Kevin O'Connor [Wed, 15 Sep 2010 04:26:19 +0000 (00:26 -0400)]
Enhance build to emit relocation information.
Add support for determining which relocations need to be adjusted to
relocate the "32bit flat init" code. Place those relocations in the
output object.
Kevin O'Connor [Thu, 16 Sep 2010 01:38:16 +0000 (21:38 -0400)]
Separate out init code from the rest of the 32bit flat code.
Enhance tools/layoutrom.py code so that it can detect which sections
are used from the "32bit flat" runtime code. All other "32bit flat"
sections can then be assured to be initialization code only.
This is in preparation for relocating the 32bit initialization code.
Kevin O'Connor [Thu, 16 Sep 2010 01:28:31 +0000 (21:28 -0400)]
Modify tools/layoutrom.py to use classes instead of tuples.
Using classes and updating the values in the classes makes the code
easier to understand.
Kevin O'Connor [Mon, 13 Sep 2010 22:04:02 +0000 (18:04 -0400)]
Use str.startswith() in python scripts.
Use the builtin startswith() string method instead of implementing it
manually.
Kevin O'Connor [Mon, 13 Sep 2010 17:18:09 +0000 (13:18 -0400)]
Prep version for next release.
Kevin O'Connor [Mon, 13 Sep 2010 16:58:44 +0000 (12:58 -0400)]
Update version to 0.6.1
Kevin O'Connor [Fri, 3 Sep 2010 01:18:20 +0000 (21:18 -0400)]
Support Samsung SE-S084 USB DVD drive (and probably many others)
A full implementation of ATAPI USB support would need to translate / filter
certain package types or some devices might not work. No previously working
devices break with the patch, so it is fine to commit.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Isaku Yamahata [Mon, 30 Aug 2010 02:32:01 +0000 (11:32 +0900)]
pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().
old_addr is initialized, but not used.
remove the useless variable.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Kevin O'Connor [Sat, 28 Aug 2010 18:58:15 +0000 (14:58 -0400)]
Minor - indentation change to jpeg.c.
Kevin O'Connor [Sat, 28 Aug 2010 18:55:32 +0000 (14:55 -0400)]
Enhance tools/readserial.py to support reading from a pipe.
Add option parsing support to tool.
Enable option (-f) to read from a pipe - which is useful when
redirecting qemu's debugging log to a pipe with:
-chardev pipe,id=seabios,path=seabioslog -device isa-debugcon,iobase=0x402,chardev=seabios
Kevin O'Connor [Sat, 28 Aug 2010 16:54:23 +0000 (12:54 -0400)]
Make tools/transdump.py more resilient to unknown input.
Kevin O'Connor [Thu, 26 Aug 2010 01:43:19 +0000 (21:43 -0400)]
Update qemu_cfg_read to use "rep insb".
Use rep insb instead of manual loop - the host may be able to optimize
the rep insb instruction.
Kevin O'Connor [Thu, 26 Aug 2010 01:07:48 +0000 (21:07 -0400)]
Only show bootsplash during boot menu.
When the bootsplash picture is shown, it's not possible to see text.
So, only display the picture while prompting the user for the boot
menu.
Gleb Natapov [Mon, 23 Aug 2010 07:23:45 +0000 (10:23 +0300)]
add write support to virtio-blk
Windows XP does write to sector 0 during installation and prints
mysterious error if write fails. Interestingly if write drops data,
but returns OK to Windows installer installation proceed without
complains and completes successfully.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Lubomir Rintel [Fri, 20 Aug 2010 11:37:54 +0000 (13:37 +0200)]
Don't try to talk to APIC on 486
It only has one cpuid level, therefore it can't report whether it
has an APIC. It probably hasn't; assume that. Without this,
SeaBIOS would get stuck on qemu -M isapc.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Kevin O'Connor [Wed, 4 Aug 2010 01:30:03 +0000 (21:30 -0400)]
Add ACPI SSDT/DSDT support for CPU hotplug.
Move the SSDT defined processors from _PR to _SB namespace.
Extend the dynamically generated SSDT to include per cpu hotplug
methods. These methods just call methods defined in the DSDT. Also
dynamically generate a NTFY method and a CPON array of the
online/available CPUs. Add file src/ssdt-proc.dsl with directions for
generating the per-cpu processor object AML code.
Extend the DSDT to include methods for handling cpu hotplug
notifications and methods for handling cpu status requests originating
from the SSDT methods.
Kevin O'Connor [Wed, 4 Aug 2010 00:58:43 +0000 (20:58 -0400)]
Add additional debug status messages to bootsplash code.
Kevin O'Connor [Fri, 30 Jul 2010 22:53:10 +0000 (18:53 -0400)]
Allow qemu to use bootsplash code via fwcfg interface.
All the bootsplash code to pull the jpeg file from either cbfs (on
coreboot) or fwcfg (on qemu).
Kevin O'Connor [Fri, 30 Jul 2010 22:51:29 +0000 (18:51 -0400)]
Add tools/trandump.py tool for converting hexdump() output.
Add tool for converting the output from hexdump() back into its
original binary form. This can be useful for use with tools such as
hexdump and objdump.
Kevin O'Connor [Fri, 30 Jul 2010 18:09:31 +0000 (14:09 -0400)]
Default bootsplash on (for coreboot users).
Kevin O'Connor [Fri, 30 Jul 2010 18:07:03 +0000 (14:07 -0400)]
Autodetect video mode based on bootsplash jpeg dimensions.
Replace video mode settings in config.h with a system to auto-detect a
video mode for the given bootsplash.jpg file.
Kevin O'Connor [Fri, 30 Jul 2010 17:25:21 +0000 (13:25 -0400)]
Rename "decdata" to "jpeg" in bootsplash - to be consistent with jpeg.c.
Also rename "jpeg" to "filedata" to avoid a conflict.
Kevin O'Connor [Fri, 30 Jul 2010 17:07:08 +0000 (13:07 -0400)]
Breakup jpeg_decode into parsing and displaying phases.
Split the screen display code out of the jpeg parsing code.
Allow ability for caller to obtain jpeg dimensions.
Kevin O'Connor [Fri, 30 Jul 2010 16:27:14 +0000 (12:27 -0400)]
Avoid using BSS variables in jpeg.c.
Using BSS increases the rom size (and reduce space for option roms).
So, move BSS variables in the jpeg.c code to malloc'd memory.
Also, move struct and error declarations from jpeg.h to jpeg.c.
Kevin O'Connor [Thu, 29 Jul 2010 01:31:38 +0000 (21:31 -0400)]
Add FUNC16() helper macro for converting a 16bit func to a segoff_s.
Kevin O'Connor [Tue, 27 Jul 2010 05:14:11 +0000 (01:14 -0400)]
Handle unaligned sizes in iomemcpy().
This fixes a bug causing truncation of uncompressed files in
cbfs_copyfile().
Kevin O'Connor [Tue, 27 Jul 2010 04:00:53 +0000 (00:00 -0400)]
Cleanup bootsplash vesa signature detection.
Kevin O'Connor [Tue, 27 Jul 2010 03:47:26 +0000 (23:47 -0400)]
Be sure to disable bootsplash on all BIOS boot cases.
Disable the bootsplash on cbfs payload exec, and if something hooks
int19.
Also, be sure to only disable the bootsplash (revert to text mode)
once.
Kevin O'Connor [Tue, 27 Jul 2010 03:25:39 +0000 (23:25 -0400)]
Add call16_int10 helper to bootsplash.c.
Kevin O'Connor [Tue, 27 Jul 2010 03:16:12 +0000 (23:16 -0400)]
Don't do "double buffering" in bootsplash code.
Not all vgabios support off screen framebuffers. Instead, decompress
the picture into ram, and then copy it into the framebuffer. This
ensures a fast display time without requiring any special vga support.
Kevin O'Connor [Tue, 27 Jul 2010 03:02:26 +0000 (23:02 -0400)]
Check that malloc succeeds in bootsplash code.
Perform all the memory allocations up front and verify that all of
them succeed.
Kevin O'Connor [Tue, 27 Jul 2010 02:43:18 +0000 (22:43 -0400)]
Bootsplash fixes and cleanups.
VESA structs must be in first 1Meg - so use malloc_tmplow().
Use 'struct segoff_s' for segment/offset pairs in vesa structs.
Don't call start/finish_preempt() around jpeg_decode() - the preempt
only works when calling functions in 16bit mode.
Some indentation and debug output enhancements.
Kevin O'Connor [Tue, 27 Jul 2010 02:34:37 +0000 (22:34 -0400)]
Minor - clarify bit logic in mptable.c.
Kevin O'Connor [Tue, 27 Jul 2010 02:33:54 +0000 (22:33 -0400)]
Fix integer truncating bug in calc_future_timer().
Be sure to promote to u64 before multiplication.
Isaku Yamahata [Mon, 26 Jul 2010 05:02:45 +0000 (14:02 +0900)]
seabios: pciinit: fix 64bit bar initilization.
When 64bit bar allocation failed, leave it untouched as 32bit bar case.
There is no point to set higher bit to all 1, it is just leftover from
debug code.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Kevin O'Connor [Sun, 25 Jul 2010 18:46:21 +0000 (14:46 -0400)]
Minor - introduce GDT_GRANLIMIT macro.
Add macro to improve readability of GDT limit definitions.
Kevin O'Connor [Sun, 25 Jul 2010 18:04:01 +0000 (14:04 -0400)]
Avoid code addresses >64K in big real mode.
Kvm has some limitations with code addresses in big real mode, so
avoid doing that.
Isaku Yamahata [Tue, 20 Jul 2010 07:50:46 +0000 (16:50 +0900)]
seabios: smm: move out piix4 specific smram logic to dev-i440fx.c
move out piix4 specific smram logic to dev-i440fx.c.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:50:45 +0000 (16:50 +0900)]
seabios: shadow: make device finding more generic.
pam register offset is north bridge specific.
So determine the offset based on found north bridge.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:37:19 +0000 (16:37 +0900)]
seabios: acpi: clean up of finding pm device.
Make it table driven to other chip set.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:37:18 +0000 (16:37 +0900)]
seabios: acpi: split out piix4 pm logic.
split out piix4 pm logic.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:37:17 +0000 (16:37 +0900)]
seabios: acpi: move acpi definitions to acpi.h from acpi.c
Move ACPI_TABLE_HEADER_DEF and struct fadt_descriptor_rev1
from acpi.h to acpi.c for later use.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:37:16 +0000 (16:37 +0900)]
seabios: acpi: move out endian conversion helper function.
move out cpu_to_le{32, 16} from acpi.c to util.h.
Those will be used by other files later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 20 Jul 2010 07:37:15 +0000 (16:37 +0900)]
seabios: pci: introduce helper function to find device from table and initialize it.
introduce helper function to find device from table and initialize it.
pci_find_init_device(). This will be used later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 21 Jun 2010 15:46:19 +0000 (09:46 -0600)]
smbios: Allow all fields to be set via qemu_cfg_smbios_load_field()
The protocol we use between qemu and seabios already allows any field
to be specified (via smbios_add_field() in qemu). This patch makes
seabios look for qemu specified values for nearly every field we set
in the types 0,1,3,4,16,17,32 smbios tables. No change in current
default values for any fields.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Kevin O'Connor [Sat, 10 Jul 2010 17:12:37 +0000 (13:12 -0400)]
seabios: pciinit: use pci device initializer helper function.
This patch makes use of pci device initialization helper function
to convert if/switch clause to table driven.
So this makes it easier to add q35 initialization code.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Wed, 7 Jul 2010 03:14:01 +0000 (12:14 +0900)]
seabios: pci: introduce helper function to initialize a given device.
introduce helper function to initialize a given device,
This will be used later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Stefan Hajnoczi [Wed, 7 Jul 2010 12:34:22 +0000 (13:34 +0100)]
virtio: Clear interrupt status register in virtio-blk
The VRING_AVAIL_F_NO_INTERRUPT flag is a hint that interrupts should be
suppressed. It does not guarantee that interrupts will not be raised.
Therefore, make sure to clear the interrupt after each virtio-blk read.
This avoids a stuck interrupt interfering with the OS loaded later in
the boot process.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:53 +0000 (17:57 +0900)]
seabios: pciinit: initialize pci bridge filtering registers.
initialize pci bridge filtering registers.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:52 +0000 (17:57 +0900)]
seabios: pciinit: pci bridge bus initialization.
pci bridge bus initialization.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:51 +0000 (17:57 +0900)]
seabios: pciinit: make bar offset calculation pci bridge aware.
This patch makes pci bar offset calculation pci bridge aware.
The offset of pci bridge rom is different from normal device.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:50 +0000 (17:57 +0900)]
seabios: pciinit: factor out bar offset calculation.
This patch factors out bar offset calculation.
Later the calculation logic will be enhanced.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:49 +0000 (17:57 +0900)]
seabios: pciinit: make pci bar assigner preferchable memory aware.
Make pci bar assigner preferchable memory aware.
This is needed for PCI bridge support because memory space and
prefetchable memory space is filtered independently based on
memory base/limit and prefetchable memory base/limit of pci bridge.
On bus 0, such a distinction isn't necessary so keep existing behavior
by checking bus=0.
With this patch, pci mem assignment area has been decreased.
To make seabios behave as before for compatible reason,
define CONFIG_OLD_PCIMEM_ASSIGNMENT.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:48 +0000 (17:57 +0900)]
seabios: pciinit: make pci memory space assignment 64bit aware.
make pci memory space assignment 64bit aware.
If 64bit memory space is found while assigning pci memory space,
clear higher bit and skip to next bar.
This patch is preparation for q35 chipset initialization which
has 64bit bar.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:47 +0000 (17:57 +0900)]
seabios: pciinit: factor out pci bar region allocation logic.
factor out pci bar region allocation logic.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Isaku Yamahata [Tue, 22 Jun 2010 08:57:46 +0000 (17:57 +0900)]
seabios: pci: introduce foreachpci_in_bus() helper macro.
This patch introduces foreachpci_in_bus() helper macro for
depth first recursion. foreachpci() is for width first recursion.
The macro will be used later to initialize pci bridge
that requires depth first recursion.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Kevin O'Connor [Sun, 4 Jul 2010 12:32:38 +0000 (08:32 -0400)]
Add romfile_size() wrapper for accessing cbfs/qemu_cfg files.
Kevin O'Connor [Mon, 28 Jun 2010 11:34:53 +0000 (07:34 -0400)]
Initial bootsplash support.
Support displaying a jpeg file (stored in cbfs) during bootup.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Kevin O'Connor [Sat, 19 Jun 2010 16:07:57 +0000 (12:07 -0400)]
Update TODO
Remove already completed items.
Kevin O'Connor [Sat, 19 Jun 2010 16:05:57 +0000 (12:05 -0400)]
Fix bvprintf() to respect padding for hex printing.
Fix bvprintf to respect space padding when printing hex numbers
and the caller specifies alignment without zero padding, eg. %2x
as opposed to %02x
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Kevin O'Connor [Sun, 13 Jun 2010 20:05:17 +0000 (16:05 -0400)]
Unify optionrom cbfs/qemu_cfg rom pulling code.
Make the qemu_cfg optionrom extraction code use an interface more
similar to the cbfs file interface.
Introduce a set of "romfile_" wrappers that select between cbfs and
qemu cfg interface. Use these new wrappers in the optionrom code.
Stefan Reinauer [Wed, 9 Jun 2010 07:45:28 +0000 (09:45 +0200)]
SeaBIOS VGA hooks
Add VGA hooks to operate the following mainboards with coreboot + SeaBIOS:
- Kontron 986LCD-M
- Getac P470 (Laptop)
- Roda RK886EX (Laptop)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>