Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-19 Thread Denis 'GNUtoo' Carikli
On Mon, 18 Mar 2013 15:13:32 +0100
Christian Gmeiner christian.gmei...@gmail.com wrote:

 2013/3/18 Paul Menzel paulepan...@users.sourceforge.net:
  Dear SeaBIOS,
 
 
  using the AMD/ATI based ASRock E350M1 [1] with coreboot and SeaBIOS
  1.7.2.1 as a payload and GRUB 2 (1.99-27 from Debian Sid/unstable)
  on the hard drive, letting coreboot load the VGA Option ROM and
  disabling »Option ROMs« in the menu »BIOS interfaces«
 
  config OPTIONROMS
  bool Option ROMS
  default y # I set it to n.
  help
  Support finding and running option roms during
  POST.
 
  I only see »AMD Wrestler …« printed to the screen (from the VGA
  Option ROM loaded by coreboot I guess) and I neither see the
  SeaBIOS header(?) with version nor the bootmenu. GRUB 2 does not
  show its (terminal) menu either and just shows funny, colorful
  characters covering the whole screen.
 
 
 http://www.coreboot.org/SeaBIOS#coreboot - do not load the vga option
 rom in coreboot - do it in seabios.
Maybe it's an issue in coreboot instead?
does it do the same thing with another payload? like grub2 directly
for instance ?

Denis.

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-19 Thread Peter Stuge
Paul Menzel wrote:
  http://www.coreboot.org/SeaBIOS#coreboot - do not load the vga
  option rom in coreboot - do it in seabios.
 
 Yes, thanks. Though I assumed »best results« would mean

Please don't assume. When something is unclear, creating an
opportunity for assumption, then documentation and/or code should be
improved, so that no assumption is needed.


 not that Linux does not find the ROM at all. If that is a known
 issue, a note should be added to the Kconfig description

It's quite natural since coreboot is not equipped to run option ROMs;
it does not have any BIOS interrupt services, which option ROMs
typically rely on, since option ROMs are a BIOS concept.


 or if coreboot is chosen as a target, then the Option ROM option
 should be enabled automatically, right?

Which option ROM option are you talking about? Please be specific,
use the CONFIG_ name. And since discussion now covers both coreboot
and SeaBIOS it helps further if you specify which project the
particular option is in.

There are use cases both for coreboot running option ROMs and SeaBIOS
running option ROMs, regardless of how SeaBIOS was started.

I tend to agree that coreboot should default to not run option ROMs,
and possibly the SeaBIOS configuration generated by the coreboot
build files should enable SeaBIOS running the option ROM in that
case, but it's not trivial to find a way that makes sense for every
case. Feel free to think about it and propose an improvement, it can
probably be better than it is at the moment.


//Peter


pgpxtLDJoL80L.pgp
Description: PGP signature
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-19 Thread Kevin O'Connor
On Wed, Mar 20, 2013 at 01:21:48AM +0100, Paul Menzel wrote:
 To summarize, I have to figure out if coreboot is able to run the VGA
 option ROM correctly and if yes, why SeaBIOS, GRUB and Linux cannot
 use(?) it.

If you want to use the option ROM during runtime, then SeaBIOS (and
only SeaBIOS) should run the option ROM.  Nothing else will work
reliably.

SeaBIOS needs to run the rom, because otherwise the 16bit runtime
hooks that the option ROM establishes will not be present during
runtime.

Running the option ROM in both coreboot and SeaBIOS is not desirable,
because option ROMs are not designed to initialize the hardware twice
- it could easily get confused.

So, why does coreboot even have the ability to run option ROMs?  This
feature is useful when not using SeaBIOS, as it allows coreboot to
initialize the VGA hardware.  Some programs can talk directly to the
vga hardware, but only if the vga hardware has been initialized.  This
doesn't work for anything that talks to the vga hardware via the VGA
option ROM - all of these users must use SeaBIOS and must let SeaBIOS
run the option ROM.

-Kevin

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


[SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-18 Thread Paul Menzel
Dear SeaBIOS,


using the AMD/ATI based ASRock E350M1 [1] with coreboot and SeaBIOS
1.7.2.1 as a payload and GRUB 2 (1.99-27 from Debian Sid/unstable) on
the hard drive, letting coreboot load the VGA Option ROM and disabling
»Option ROMs« in the menu »BIOS interfaces«

config OPTIONROMS
bool Option ROMS
default y # I set it to n.
help
Support finding and running option roms during POST.

I only see »AMD Wrestler …« printed to the screen (from the VGA Option
ROM loaded by coreboot I guess) and I neither see the SeaBIOS header(?)
with version nor the bootmenu. GRUB 2 does not show its (terminal) menu
either and just shows funny, colorful characters covering the whole
screen.

Linux is able to print something to the screen, but Linux’ Radeon driver
complains too that it does not find the BIOS ROM and kernel mode setting
(KMS) is disabled.

[0.00] Linux version 3.2.0-4-686-pae 
(debian-ker...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-15) ) #1 SMP 
Debian 3.2.39-2
[0.00] BIOS-provided physical RAM map:
[0.00]  BIOS-e820:  - 0009fc00 (usable)
[0.00]  BIOS-e820: 0009fc00 - 000a 
(reserved)
[0.00]  BIOS-e820: 000f - 0010 
(reserved)
[0.00]  BIOS-e820: 0010 - c7fe (usable)
[0.00]  BIOS-e820: c7fe - e000 
(reserved)
[0.00]  BIOS-e820: f800 - f900 
(reserved)
[0.00]  BIOS-e820: 0001 - 00021efffc00 (usable)
[…]
[   23.180795] calling  radeon_init+0x0/0x1000 [radeon] @ 496
[   23.180809] [drm] radeon kernel modesetting enabled.
[   23.190273] calling  patch_realtek_init+0x0/0x1000 
[snd_hda_codec_realtek] @ 685
[   23.190292] initcall patch_realtek_init+0x0/0x1000 
[snd_hda_codec_realtek] returned 0 after 1 usecs
[   23.190780] hda_codec: ALC892: SKU not ready 0x0100
[   23.194435] input: HDA Digital PCBeep as 
/devices/pci:00/:00:14.2/input/input5
[   23.203623] input: HDA ATI SB Headphone as 
/devices/pci:00/:00:14.2/sound/card1/input6
[   23.204868] initcall alsa_card_azx_init+0x0/0x1000 [snd_hda_intel] 
returned 0 after 240511 usecs
[   23.215517] radeon :00:01.0: setting latency timer to 64
[   23.215535] [drm] initializing kernel modesetting (PALM 
0x1002:0x9802 0x1002:0x9802).
[   23.215606] [drm] register mmio base: 0xF000
[   23.215609] [drm] register mmio size: 262144
[   23.215689] radeon :00:01.0: Invalid ROM contents
[   23.215887] [drm:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
[   23.216062] radeon :00:01.0: Fatal error during GPU init
[   23.216187] [drm] radeon: finishing device.
[   23.216191] [TTM] Memory type 2 has not been initialized
[   23.217253] radeon :00:01.0: no bo for sa manager
[   23.217382] vga_switcheroo: disabled
[   23.217781] radeon: probe of :00:01.0 failed with error -22
[   23.218165] initcall radeon_init+0x0/0x1000 [radeon] returned 0 
after 36383 usecs
[…]


Thanks,

Paul


[1] http://www.coreboot.org/ASRock_E350M1
[2] http://www.coreboot.org/SeaBIOS


signature.asc
Description: This is a digitally signed message part
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-18 Thread Christian Gmeiner
2013/3/18 Paul Menzel paulepan...@users.sourceforge.net:
 Dear SeaBIOS,


 using the AMD/ATI based ASRock E350M1 [1] with coreboot and SeaBIOS
 1.7.2.1 as a payload and GRUB 2 (1.99-27 from Debian Sid/unstable) on
 the hard drive, letting coreboot load the VGA Option ROM and disabling
 »Option ROMs« in the menu »BIOS interfaces«

 config OPTIONROMS
 bool Option ROMS
 default y # I set it to n.
 help
 Support finding and running option roms during POST.

 I only see »AMD Wrestler …« printed to the screen (from the VGA Option
 ROM loaded by coreboot I guess) and I neither see the SeaBIOS header(?)
 with version nor the bootmenu. GRUB 2 does not show its (terminal) menu
 either and just shows funny, colorful characters covering the whole
 screen.


http://www.coreboot.org/SeaBIOS#coreboot - do not load the vga option rom in
coreboot - do it in seabios.

--
Christian Gmeiner, MSc

___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios


Re: [SeaBIOS] VGA Option ROM not set up correctly when loaded by coreboot and not SeaBIOS

2013-03-18 Thread Paul Menzel
Am Montag, den 18.03.2013, 15:13 +0100 schrieb Christian Gmeiner:
 2013/3/18 Paul Menzel paulepan...@users.sourceforge.net:

  using the AMD/ATI based ASRock E350M1 [1] with coreboot and SeaBIOS
  1.7.2.1 as a payload and GRUB 2 (1.99-27 from Debian Sid/unstable) on
  the hard drive, letting coreboot load the VGA Option ROM and disabling
  »Option ROMs« in the menu »BIOS interfaces«
 
  config OPTIONROMS
  bool Option ROMS
  default y # I set it to n.
  help
  Support finding and running option roms during POST.
 
  I only see »AMD Wrestler …« printed to the screen (from the VGA Option
  ROM loaded by coreboot I guess) and I neither see the SeaBIOS header(?)
  with version nor the bootmenu. GRUB 2 does not show its (terminal) menu
  either and just shows funny, colorful characters covering the whole
  screen.
 
 http://www.coreboot.org/SeaBIOS#coreboot - do not load the vga option rom in
 coreboot - do it in seabios.

Yes, thanks. Though I assumed »best results« would mean, that when using
coreboot for loading the VGA Option ROM, that it might decrease
performance or something like that and not that Linux does not find the
ROM at all. If that is a known issue, a note should be added to the
Kconfig description or if coreboot is chosen as a target, then the
Option ROM option should be enabled automatically, right? If yes, please
say so and I am going to try to come up with a patch.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios