Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
mb/clevo/kbl-u: Install Intel VGA INT15 handler
Timestamp - Option ROM initialization: 77806110188 FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'pci8086,5916.rom' CBFS: Found @ offset 11ce00 size 10000 In CBFS, ROM address for PCI: 00:02.0 = 0xffc6d048 PCI ROM image, vendor ID 8086, device ID 0406, ID mismatch: vendor ID 8086, device ID 5916 Copying VGA ROM Image from 0xffc6d048 to 0xc0000, 0x10000 bytes Timestamp - Option ROM copy done: 77877204844 Calling Option ROM... Unsupported software interrupt #0x15 eax 0x1905f34 Unsupported software interrupt #0x15 eax 0x5f51 Unsupported software interrupt #0x15 eax 0x5f40 Unsupported software interrupt #0x15 eax 0x5f52 Unsupported software interrupt #0x15 eax 0x5f49 Unsupported software interrupt #0x15 eax 0x3a95f49 Unsupported software interrupt #0x15 eax 0x5f14 Unsupported software interrupt #0x15 eax 0x405f35 ... Option ROM returned. VGA Option ROM was run Timestamp - Option ROM run done: 78406420234 PCI: 00:02.0 init finished in 210 msecs
Change-Id: I126481c745ae701dc438ac664be0f8ff5f6250c1 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- A src/mainboard/clevo/kbl-u/mainboard.c 1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/43852/1
diff --git a/src/mainboard/clevo/kbl-u/mainboard.c b/src/mainboard/clevo/kbl-u/mainboard.c new file mode 100644 index 0000000..01cfef4 --- /dev/null +++ b/src/mainboard/clevo/kbl-u/mainboard.c @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/device.h> +#include <drivers/intel/gma/int15.h> + +static void mainboard_enable(struct device *dev) +{ + install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, + GMA_INT15_PANEL_FIT_CENTERING, + GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); +} + +struct chip_operations mainboard_ops = { + .enable_dev = mainboard_enable, +};
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
Unfortunately, this seems to fail for variants.
/dev/shm/coreboot/src/mainboard/clevo/kbl-u/mainboard.c:8: undefined reference to `install_intel_vga_int15_handler'
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler Did you select INTEL_INT15 in Kconfig?
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler
Did you select INTEL_INT15 in Kconfig?
I did now
$ grep INT15 .config CONFIG_INTEL_INT15=y
but it still fails with the same error.
/dev/shm/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld.bfd: build/generated/ramstage.o: in function `mainboard_enable': /dev/shm/coreboot/src/mainboard/clevo/kbl-u/mainboard.c:8: undefined reference to `install_intel_vga_int15_handler'
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler
I did now […]
Check drivers/intel/gma/Makefile.inc:
ifeq ($(CONFIG_VGA_ROM_RUN),y) ramstage-$(CONFIG_INTEL_INT15) += int15.c endif
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler
Check drivers/intel/gma/Makefile.inc: […]
Maybe something is out-of-sync, did you try a `make clean`? If it doesn't help, you can check with `make V=1` if `int15.o` is included in the linking.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler
Maybe something is out-of-sync, did you try a `make clean`? If it doesn't […]
``` $ grep -e INT15 -e VGA_ROM .config CONFIG_S3_VGA_ROM_RUN=y CONFIG_VGA_ROM_RUN=y CONFIG_INTEL_INT15=y ```
Thank you. `make clean` did the trick. I did `rm -rf build; make -j80` before, `make clean` seems to be do more.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
The VBIOS Option ROM does not light up the screen, and TianoCore is also not showing anything.
``` PCI: 00:02.0 init FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'vbt.bin' CBFS: Found @ offset 705c0 size 4a3 Found a VBT of 6144 bytes after decompression GMA: Found VBT in CBFS GMA: Found valid VBT in CBFS FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'pci8086,5916.rom' CBFS: Found @ offset 102e00 size 10000 In CBFS, ROM address for PCI: 00:02.0 = 0xffc53048 Copying VGA ROM Image from 0xffc53048 to 0xc0000, 0x10000 bytes Calling Option ROM... intel_vga_int15_handler: AX=5f34 BX=0190 CX=0002 DX=03da intel_vga_int15_handler: AX=5f51 BX=c000 CX=0000 DX=03da intel_vga_int15_handler: AX=5f40 BX=0000 CX=0004 DX=0008 DISPLAY=0 intel_vga_int15_handler: AX=5f52 BX=400a CX=000f DX=0008 Unknown INT15 function 5f52! int15 call returned error. intel_vga_int15_handler: AX=5f49 BX=19ff CX=0000 DX=1dcc Unknown INT15 function 5f49! int15 call returned error. intel_vga_int15_handler: AX=5f49 BX=0050 CX=0300 DX=0040 Unknown INT15 function 5f49! int15 call returned error. intel_vga_int15_handler: AX=5f14 BX=078f CX=0002 DX=0008 Unknown INT15 function 5f14! int15 call returned error. intel_vga_int15_handler: AX=5f35 BX=c000 CX=0002 DX=03da ... Option ROM returned. VGA Option ROM was run PCI: 00:02.0 init finished in 326 msecs ```
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... File src/mainboard/clevo/kbl-u/mainboard.c:
https://review.coreboot.org/c/coreboot/+/43852/1/src/mainboard/clevo/kbl-u/m... PS1, Line 8: install_intel_vga_int15_handler
When changing Kconfig settings, I usually run `make oldconfig` to regenerate the .config file
Hello Felix Singer, build bot (Jenkins), Nico Huber, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43852
to look at the new patch set (#2).
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
mb/clevo/kbl-u: Install Intel VGA INT15 handler
The interrupt handler is needed, otherwise running the VBIOS Option ROM in coreboot fails:
Timestamp - Option ROM initialization: 77806110188 FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'pci8086,5916.rom' CBFS: Found @ offset 11ce00 size 10000 In CBFS, ROM address for PCI: 00:02.0 = 0xffc6d048 PCI ROM image, vendor ID 8086, device ID 0406, ID mismatch: vendor ID 8086, device ID 5916 Copying VGA ROM Image from 0xffc6d048 to 0xc0000, 0x10000 bytes Timestamp - Option ROM copy done: 77877204844 Calling Option ROM... Unsupported software interrupt #0x15 eax 0x1905f34 Unsupported software interrupt #0x15 eax 0x5f51 Unsupported software interrupt #0x15 eax 0x5f40 Unsupported software interrupt #0x15 eax 0x5f52 Unsupported software interrupt #0x15 eax 0x5f49 Unsupported software interrupt #0x15 eax 0x3a95f49 Unsupported software interrupt #0x15 eax 0x5f14 Unsupported software interrupt #0x15 eax 0x405f35 ... Option ROM returned. VGA Option ROM was run Timestamp - Option ROM run done: 78406420234 PCI: 00:02.0 init finished in 210 msecs
Change-Id: I126481c745ae701dc438ac664be0f8ff5f6250c1 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/mainboard/clevo/kbl-u/Kconfig A src/mainboard/clevo/kbl-u/mainboard.c 2 files changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/43852/2
Benjamin Doron has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 5:
Patch Set 1:
The VBIOS Option ROM does not light up the screen, and TianoCore is also not showing anything.
PCI: 00:02.0 init FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'vbt.bin' CBFS: Found @ offset 705c0 size 4a3 Found a VBT of 6144 bytes after decompression GMA: Found VBT in CBFS GMA: Found valid VBT in CBFS FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'pci8086,5916.rom' CBFS: Found @ offset 102e00 size 10000 In CBFS, ROM address for PCI: 00:02.0 = 0xffc53048 Copying VGA ROM Image from 0xffc53048 to 0xc0000, 0x10000 bytes Calling Option ROM... intel_vga_int15_handler: AX=5f34 BX=0190 CX=0002 DX=03da intel_vga_int15_handler: AX=5f51 BX=c000 CX=0000 DX=03da intel_vga_int15_handler: AX=5f40 BX=0000 CX=0004 DX=0008 DISPLAY=0 intel_vga_int15_handler: AX=5f52 BX=400a CX=000f DX=0008 Unknown INT15 function 5f52! int15 call returned error. intel_vga_int15_handler: AX=5f49 BX=19ff CX=0000 DX=1dcc Unknown INT15 function 5f49! int15 call returned error. intel_vga_int15_handler: AX=5f49 BX=0050 CX=0300 DX=0040 Unknown INT15 function 5f49! int15 call returned error. intel_vga_int15_handler: AX=5f14 BX=078f CX=0002 DX=0008 Unknown INT15 function 5f14! int15 call returned error. intel_vga_int15_handler: AX=5f35 BX=c000 CX=0002 DX=03da ... Option ROM returned. VGA Option ROM was run PCI: 00:02.0 init finished in 326 msecs
According to the BSF script file for the SKL/KBL/CFL/AML VGABIOS, these are the int15 functions called that coreboot does not support: 5f52h: Hook to get Panel Color Depth from Setup (Mobile only) 5f49h: Hook to get the backlight inverter type, polarity and initial brightness 5f14h: Get Miscellaneous Status (Mobile only)
The information provided by the first two should be available in the VBT inside the VGABIOS. You could try using the Intel BMP (Binary Modification Program) to disable these hooks. The last hook is apparently required for DisplayPort Redriver suppoort.
Hello Felix Singer, build bot (Jenkins), Nico Huber, Angel Pons, Michael Niewöhner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43852
to look at the new patch set (#11).
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
mb/clevo/kbl-u: Install Intel VGA INT15 handler
The interrupt handler is needed, otherwise running the VBIOS Option ROM in coreboot fails:
Timestamp - Option ROM initialization: 77806110188 FMAP: area COREBOOT found @ 350200 (4914688 bytes) CBFS: Locating 'pci8086,5916.rom' CBFS: Found @ offset 11ce00 size 10000 In CBFS, ROM address for PCI: 00:02.0 = 0xffc6d048 PCI ROM image, vendor ID 8086, device ID 0406, ID mismatch: vendor ID 8086, device ID 5916 Copying VGA ROM Image from 0xffc6d048 to 0xc0000, 0x10000 bytes Timestamp - Option ROM copy done: 77877204844 Calling Option ROM... Unsupported software interrupt #0x15 eax 0x1905f34 Unsupported software interrupt #0x15 eax 0x5f51 Unsupported software interrupt #0x15 eax 0x5f40 Unsupported software interrupt #0x15 eax 0x5f52 Unsupported software interrupt #0x15 eax 0x5f49 Unsupported software interrupt #0x15 eax 0x3a95f49 Unsupported software interrupt #0x15 eax 0x5f14 Unsupported software interrupt #0x15 eax 0x405f35 ... Option ROM returned. VGA Option ROM was run Timestamp - Option ROM run done: 78406420234 PCI: 00:02.0 init finished in 210 msecs
Change-Id: I126481c745ae701dc438ac664be0f8ff5f6250c1 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/mainboard/clevo/kbl-u/Kconfig M src/mainboard/clevo/kbl-u/ramstage.c 2 files changed, 10 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/43852/11
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 11: Code-Review+2
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 11: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... File src/mainboard/clevo/kbl-u/ramstage.c:
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... PS11, Line 21: mainboard_enable Please use the imperative, `enable_mainboard`.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... File src/mainboard/clevo/kbl-u/ramstage.c:
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... PS11, Line 21: mainboard_enable
Please use the imperative, `enable_mainboard`.
Most boards use this name here, I would +2 a change that renames all of them at once
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... File src/mainboard/clevo/kbl-u/ramstage.c:
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... PS11, Line 21: mainboard_enable
Most boards use this name here, I would +2 a change that renames all of them at once
Coreboot coding style guide says "use descriptive names". `mainboard_enable` is maybe some sort of descriptive but simply wrong. "enable mainboard" -> "enable_mainboard". Just because XYZ does this, it's not inherently correct.
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... File src/mainboard/clevo/kbl-u/ramstage.c:
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... PS11, Line 21: mainboard_enable
Coreboot coding style guide says "use descriptive names". […]
uhm, I probably misunderstood, what you meant here. did you mean "change all boards to use `enable_mainboard`"?
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 12:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... File src/mainboard/clevo/kbl-u/ramstage.c:
https://review.coreboot.org/c/coreboot/+/43852/11/src/mainboard/clevo/kbl-u/... PS11, Line 21: mainboard_enable
uhm, I probably misunderstood, what you meant here. […]
Yeah, I meant that last thing. I don't care about the name, as long as it's the same among all boards. *mumbles something about consistency*
Attention is currently required from: Paul Menzel. Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43852 )
Change subject: mb/clevo/kbl-u: Install Intel VGA INT15 handler ......................................................................
Patch Set 12: Code-Review-1
(1 comment)
Patchset:
PS12: I don't think we need this. Kaby Lake has libgfxinit support. So why maintaining code for an unnecessary proprietary blob?