[Bug 400487] New: Broken video modes
https://bugzilla.novell.com/show_bug.cgi?id=400487 Summary: Broken video modes Product: openSUSE 11.0 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: schwab@novell.com QAContact: jsrain@novell.com Found By: --- No matter which resolution is selected in the boot screen, the graphics card is always programmed for 720x400 and textmode, but the framebuffer contents are filled according to the selected video mode. Even selecting VESA or textmode doesn't result in a working text mode. # hwinfo --gfxcard 10: PCI(AGP) 100.0: 0300 VGA compatible controller (VGA) [Created at pci.310] UDI: /org/freedesktop/Hal/devices/pci_10de_20 Unique ID: VCu0.OtJantzHSD2 Parent ID: vSkL.+oqW+GBE7wA SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 SysFS BusID: 0000:01:00.0 Hardware Class: graphics card Model: "Diamond Viper V550" Vendor: pci 0x10de "nVidia Corporation" Device: pci 0x0020 "Riva TNT" SubVendor: pci 0x1092 "Diamond Multimedia Systems" SubDevice: pci 0x0550 "Viper V550" Revision: 0x04 Memory Range: 0xe1000000-0xe1ffffff (rw,non-prefetchable) Memory Range: 0xe3000000-0xe3ffffff (rw,prefetchable) Memory Range: 0xe2ff0000-0xe2ffffff (ro,prefetchable,disabled) IRQ: 11 (no events) I/O Ports: 0x3c0-0x3df (rw) Module Alias: "pci:v000010DEd00000020sv00001092sd00000550bc03sc00i00" Driver Info #0: XFree86 v4 Server Module: nv Color Depths: 8, 15, 16, 24 Extensions: Options: Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #18 (PCI bridge) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c1 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |duwe@novell.com Component|Installation |Booting --- Comment #1 from Andreas Schwab <schwab@novell.com> 2008-06-16 06:38:24 MDT --- Looks like a bug in grub. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User chrubis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c2 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |duwe@novell.com AssignedTo|duwe@novell.com |snwint@novell.com --- Comment #2 from Cyril Hrubis <chrubis@novell.com> 2008-06-16 06:43:49 MDT --- More likely gfxboot (that's package which is responsible for nice graphics menu). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c3 --- Comment #3 from Andreas Schwab <schwab@novell.com> 2008-06-16 07:06:42 MDT --- Removing gfxmenu from menu.lst does not help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User snwint@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c4 Steffen Winterfeldt <snwint@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|snwint@novell.com |kernel-maintainers@forge.provo.novell.com --- Comment #4 from Steffen Winterfeldt <snwint@novell.com> 2008-06-16 07:21:04 MDT --- I'm a bit at a loss what this bug actually describes, but the video mode is set by the kernel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c5 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.provo.novell.com |matz@novell.com Component|Booting |Development Summary|Broken video modes |gcc 4.3 miscompiles kernel --- Comment #5 from Andreas Schwab <schwab@novell.com> 2008-06-17 04:57:03 MDT --- Apparently it's a compiler bug, the same kernel compiled with gcc 4.2 works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c6 --- Comment #6 from Andreas Schwab <schwab@novell.com> 2008-06-17 07:02:23 MDT --- Created an attachment (id=222494) --> (https://bugzilla.novell.com/attachment.cgi?id=222494) Contents of arch/x86/boot compiled with gcc 4.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c7 --- Comment #7 from Andreas Schwab <schwab@novell.com> 2008-06-17 07:02:53 MDT --- Created an attachment (id=222495) --> (https://bugzilla.novell.com/attachment.cgi?id=222495) Contents of arch/x86/boot compiled with gcc 4.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c8 --- Comment #8 from Andreas Schwab <schwab@novell.com> 2008-06-17 07:48:13 MDT --- Compiling video-vesa.o with gcc 4.2 is enough to make it work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c9 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kernel-maintainers@forge.provo.novell.com Component|Development |Development Product|openSUSE 11.0 |openSUSE 11.1 --- Comment #9 from Andreas Schwab <schwab@novell.com> 2009-01-08 02:40:32 MST --- Still the same. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c10 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |schwab@novell.com --- Comment #10 from Richard Guenther <rguenther@novell.com> 2009-01-08 02:55:22 MST --- Preprocessed source of video-vesa.c? Compiler options? ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c11 --- Comment #11 from Andreas Schwab <schwab@novell.com> 2009-01-08 03:22:08 MST --- Created an attachment (id=263792) --> (https://bugzilla.novell.com/attachment.cgi?id=263792) video-vesa.i gcc -Wp,-MD,arch/x86/boot/.video-vesa.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -D__KERNEL__ -Iinclude -I/usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/include -include include/linux/autoconf.h -Iinclude -I/usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/include -include include/linux/autoconf.h -g -Os -D_SETUP -D__KERNEL__ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include /usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/boot/code16gcc.h -fno-strict-aliasing -fomit-frame-pointer -ffreestanding -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 -m32 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(video_vesa)" -D"KBUILD_MODNAME=KBUILD_STR(video_vesa)" -D"DEBUG_HASH=14" -D"DEBUG_HASH2=58" -c -o arch/x86/boot/.tmp_video-vesa.o arch/x86/boot/video-vesa.c Everything is available from /work/SRC/old-versions/11.1/all/kernel-source/kernel-default.spec, of course. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c12 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|schwab@novell.com | --- Comment #12 from Andreas Schwab <schwab@novell.com> 2009-01-08 03:22:19 MST --- Created an attachment (id=263793) --> (https://bugzilla.novell.com/attachment.cgi?id=263793) video-vesa.i gcc -Wp,-MD,arch/x86/boot/.video-vesa.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -D__KERNEL__ -Iinclude -I/usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/include -include include/linux/autoconf.h -Iinclude -I/usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/include -include include/linux/autoconf.h -g -Os -D_SETUP -D__KERNEL__ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include /usr/src/packages/BUILD/kernel-default-2.6.27.7/linux-2.6.27/arch/x86/boot/code16gcc.h -fno-strict-aliasing -fomit-frame-pointer -ffreestanding -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 -m32 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(video_vesa)" -D"KBUILD_MODNAME=KBUILD_STR(video_vesa)" -D"DEBUG_HASH=14" -D"DEBUG_HASH2=58" -c -o arch/x86/boot/.tmp_video-vesa.o arch/x86/boot/video-vesa.c Everything is available from /work/SRC/old-versions/11.1/all/kernel-source/kernel-default.spec, of course. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c13 --- Comment #13 from Richard Guenther <rguenther@novell.com> 2009-01-08 03:51:05 MST --- Does grub properly reset the direction flag? Thus, does -mcld fix it? There seems to be no difference during tree-level optimizations. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User rguenther@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c14 --- Comment #14 from Richard Guenther <rguenther@novell.com> 2009-01-08 05:31:50 MST --- -mcld and/or a cld after the int $0x10 in the asms. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c15 --- Comment #15 from Andreas Schwab <schwab@novell.com> 2009-01-08 08:19:17 MST --- Neither makes any difference. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User matz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c16 Michael Matz <matz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |schwab@novell.com --- Comment #16 from Michael Matz <matz@novell.com> 2009-01-22 10:21:56 MST --- The only relevant difference that I can detect in the asm (comparing the output of gcc42-4.2.1_20070724-17.1 and gcc43-4.3.3_20081022-1.2) is in vesa_store_edid(), where the constant 0x4f15 is stored in a register which is reused in the second use after an int 0x10 call that could possibly clobber that register. The asm certainly misses a clobber. So, can you try adding one to this asm in vesa_store_edid: /* Note: The VBE DDC spec is different from the main VESA spec; we genuinely have to assume all registers are destroyed here. */ asm("pushw %%es; movw %2,%%es; "INT10"; popw %%es" : "+a" (ax), "+b" (bx) : "c" (cx), "D" (di) : "esi"); In particular add "edx" to the clobber list (that's the register used in my case), but the above also misses "ecx", "edi", which have to be added as in/out constraints (i.e. "+c") probably, not as clobbers. Note especially how the comment explicitely warns about assuming that all regs are destroyed, but how the asm makes no try to cater for that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User schwab@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c17 Andreas Schwab <schwab@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|schwab@novell.com | --- Comment #17 from Andreas Schwab <schwab@novell.com> 2009-01-26 08:25:45 MST --- Created an attachment (id=267657) --> (https://bugzilla.novell.com/attachment.cgi?id=267657) video-vesa.diff That did the trick. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User matz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c18 Michael Matz <matz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|matz@novell.com |kernel-maintainers@forge.pr | |ovo.novell.com --- Comment #18 from Michael Matz <matz@novell.com> 2009-01-26 10:33:29 MST --- Hence, kernel bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User jeffm@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c19 --- Comment #19 from Jeff Mahoney <jeffm@novell.com> 2009-02-03 14:04:18 MST --- Committed to SLE11, 11.1, and master. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=400487 User jeffm@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=400487#c20 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #20 from Jeff Mahoney <jeffm@novell.com> 2009-02-03 14:13:31 MST --- Closing as fixed. Upstream commit 7fc49f19813030f2e15ad2ccec5cb701f7f4a3ec from Andreas. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com