Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347523 - sys-kernel/gentoo-sources-2.6.35: Xorg (intel) after switching VGA via KVM-Switch unusable
Summary: sys-kernel/gentoo-sources-2.6.35: Xorg (intel) after switching VGA via KVM-Sw...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 08:58 UTC by Gerhard Hintermayer
Modified: 2011-04-22 12:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my kernel config file (kernel-config-x86-2.6.35-gentoo-r12,80.79 KB, text/plain)
2010-12-02 09:06 UTC, Gerhard Hintermayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Hintermayer 2010-12-02 08:58:28 UTC
after a recent upgrade to gentoo-sources-2.6.35-r12 I discovered, that Xorg will crash, if I change the attached VGA screen via my KVM switch. after a lot of tries (xorg-server 1.7 and 1.8 and 1.9 affected) I realised that this must be kernel related, see attached the entry in messages. the machine has to be rebooted in order to use Xorg again. Probably upstream kernel bug in the intel kms part, but that's just my guess. 

Reproducible: Always

Steps to Reproduce:
1. Start X
2. change attached computer via KVM
3. change back to this computer via KVM

Actual Results:  
No output on screen anymore. Sometimes (after first KVM-switchaway and back) the screen is totally black and the mouse pointer is still working (even with different styles as the (not viewable) content of the screen determines. 

Expected Results:  
Xorg still usable after attaching another PC to KVM-switch

Dec  1 18:01:39 router2 kernel: ------------[ cut here ]------------
Dec  1 18:01:39 router2 kernel: Kernel BUG at f965456b [verbose debug info unavailable]
Dec  1 18:01:39 router2 kernel: invalid opcode: 0000 [#1] SMP
Dec  1 18:01:39 router2 kernel: last sysfs file: /sys/devices/virtual/vtconsole/vtcon1/uevent
Dec  1 18:01:39 router2 kernel: Modules linked in: xt_limit xt_tcpudp ipt_addrtype xt_dscp xt_string xt_owner xt_NFQUEUE xt_multiport xt_mark xt_hashlimit xt_conntrack xt_connmark nf_nat_irc nf_nat_ftp iptable_nat iptable_mangle ipt_LOG ipt_MASQUERADE nf_nat xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter fbcon font bitblit softcursor ppp_deflate zlib_deflate bsd_comp ppp_async crc_ccitt ppp_generic slhc ppdev parport_pc parport w83627ehf hwmon_vid nfsd ipv6 cpufreq_ondemand acpi_cpufreq freq_table mperf ip_tables x_tables dvb_pll cx22702 snd_hda_codec_intelhdmi snd_hda_codec_realtek cx88_dvb cx88_vp3054_i2c videobuf_dvb dvb_core rc_winfast snd_hda_intel ir_sony_decoder ir_jvc_decoder snd_hda_codec i915 cx8802 ir_rc6_decoder cx8800 cx88xx ir_rc5_decoder snd_pcm drm_kms_helper ir_nec_decoder ir_common ir_core v4l2_common snd_timer drm videodev tveeprom snd v4l1_compat btcx_risc i2c_i801 e1000e jmicron usblp ftdi_sio ide_core 8250_pnp usbserial i2c_algo_bit processor videobuf_dma_sg i2c_core rtc video backlight button soundcore pcspkr snd_page_alloc joydev thermal output thermal_sys xfs exportfs nfs auth_rpcgss lockd sunrpc jfs reiserfs raid10 raid1 raid0 dm_snapshot dm_mirror dm_region_hash dm_log dm_mod sbp2 ohci1394 ieee1394 sl811_hcd usbhid ohci_hcd uhci_hcd usb_storage hid ehci_hcd usbcore scsi_transport_fc sx8 DAC960 cciss sr_mod cdrom sg videobuf_core sd_mod pdc_adma sata_inic162x ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise scsi_wait_scan pata_sis libata scsi_mod
Dec  1 18:01:39 router2 kernel: 
Dec  1 18:01:39 router2 kernel: Pid: 5736, comm: kslowd001 Not tainted 2.6.35-gentoo-r12 #1 MS-9818/MS-9818
Dec  1 18:01:39 router2 kernel: EIP: 0060:[<f965456b>] EFLAGS: 00010286 CPU: 0
Dec  1 18:01:39 router2 kernel: EIP is at i915_gem_object_unpin+0x37/0x99 [i915]
Dec  1 18:01:39 router2 kernel: EAX: f68f2a40 EBX: 0002447e ECX: f72fa000 EDX: fffffff9
Dec  1 18:01:39 router2 kernel: ESI: f72e0000 EDI: 00024000 EBP: 00000000 ESP: f6bebbe8
Dec  1 18:01:39 router2 kernel: DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Dec  1 18:01:39 router2 kernel: Process kslowd001 (pid: 5736, ti=f6beb000 task=f6665480 task.ti=f6beb000)
Dec  1 18:01:39 router2 kernel: Stack:
Dec  1 18:01:39 router2 kernel: f6b0a000 f72e0000 f72fa000 f965f66c 00071184 00000004 00000020 00000286
Dec  1 18:01:39 router2 kernel: <0> 00000000 00001e00 02050000 fa9f1188 00000001 0007119c 000711a4 00071188
Dec  1 18:01:39 router2 kernel: <0> f72fa014 00000000 00000000 00000001 f72e0000 f640cb80 f72fa000 f6686980
Dec  1 18:01:39 router2 kernel: Call Trace:
Dec  1 18:01:39 router2 kernel: [<f965f66c>] ? intel_pipe_set_base+0x327/0x397 [i915]
Dec  1 18:01:39 router2 kernel: [<f96609a8>] ? intel_crtc_mode_set+0x12cc/0x1316 [i915]
Dec  1 18:01:39 router2 kernel: [<c012c84a>] ? process_timeout+0x0/0x5
Dec  1 18:01:39 router2 kernel: [<f957a295>] ? drm_crtc_helper_set_mode+0x19d/0x290 [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<f957aa9c>] ? drm_crtc_helper_set_config+0x534/0x6b7 [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<f957909b>] ? drm_fb_helper_set_par+0x54/0x8a [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<f95792a0>] ? drm_fb_helper_single_fb_probe+0x1cf/0x22f [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<f95793c4>] ? drm_fb_helper_hotplug_event+0xc4/0xd0 [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<f957a002>] ? output_poll_execute+0xca/0xfd [drm_kms_helper]
Dec  1 18:01:39 router2 kernel: [<c01527d5>] ? slow_work_execute+0x147/0x229
Dec  1 18:01:39 router2 kernel: [<c0152a34>] ? slow_work_thread+0x17d/0x27d
Dec  1 18:01:39 router2 kernel: [<c0133f26>] ? autoremove_wake_function+0
x0/0x29
Dec  1 18:01:39 router2 kernel: [<c01528b7>] ? slow_work_thread+0x0/0x27d
Dec  1 18:01:39 router2 kernel: [<c0133c33>] ? kthread+0x5f/0x64
Dec  1 18:01:39 router2 kernel: [<c0133bd4>] ? kthread+0x0/0x64
Dec  1 18:01:39 router2 kernel: [<c0102b76>] ? kernel_thread_helper+0x6/0x10
Dec  1 18:01:39 router2 kernel: Code: 48 08 89 da 81 e3 ff 3f fc ff c1 e2 0e 8b b1 28 02 00 00 c1 fa 1c 4a c1 e2 04 c0 fa 04 21 d7 c1 e7 0e 09 fb 84 d2 89 58 68 79 04 <0f> 0b eb fe 83 78 54 00 75 04 0f 0b eb fe 81 e3 00 c0 03 00 75
Dec  1 18:01:39 router2 kernel: EIP: [<f965456b>] i915_gem_object_unpin+0x37/0x99 [i915] SS:ESP 0068:f6bebbe8
Dec  1 18:01:39 router2 kernel: ---[ end trace bd8eff1adb841d85 ]---
Comment 1 Gerhard Hintermayer 2010-12-02 09:04:57 UTC
My display adapter is:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

emerge --info (ATTENTION this is the last working kernel which I tried and that did not produce the error):
Portage 2.1.9.24 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_P8800_@_2.66GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 01 Dec 2010 18:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dv dvb dvd dvdr emboss encode exif extras faac fam ffmpeg firefox flac fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv ieee1394 ipv6 ithreads jpeg lcms ldap libnotify lm_sensors mad mikmod mng modules mp3 mp4 mpeg mudflap mysql ncurses nls nntp nptl nptlonly nsplugin objc ogg opengl openmp pam pango pcre pdf perl png postgres ppds pppd python qt3support qt4 quicktime readline sdl session spell sqlite3 ssl startup-notification svg sysfs tcl tcpd threads thunar tiff truetype unicode usb vhosts vorbis x264 x86 xcb xcomposite xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status suexec unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="lcd2usb X" LINGUAS="en de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel fbdev vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Gerhard Hintermayer 2010-12-02 09:06:26 UTC
Created attachment 256115 [details]
my kernel config file
Comment 3 Gerhard Hintermayer 2010-12-02 11:23:18 UTC
I'm using xf86-video-intel-2.11.0 (even though the error is also with xf86-video-intel-2.12.0 and xf86-video-intel-2.13.0)

Xorg log file does'nt show any error entries 
Comment 4 Rafał Mużyło 2010-12-02 12:46:35 UTC
As recent xf86-video-intel is KMS-only, CONFIG_FB_INTEL=m may be a mistake
- i.e. in case of ati, CONFIG_FB_RADEON!=n definitely is.

Just a guess, though.
Comment 5 Gerhard Hintermayer 2010-12-02 12:53:00 UTC
(In reply to comment #4)
> As recent xf86-video-intel is KMS-only, CONFIG_FB_INTEL=m may be a mistake
> - i.e. in case of ati, CONFIG_FB_RADEON!=n definitely is.
> 
> Just a guess, though.
>
Thanks for your response.
I will try to remove the framebuffer module, was from earlier times where I did'nt get xorg running with the intel driver and tested with framebuffer. But with 2-6.34-r6 this was no problem, so I assume it is related to the (quite heavy) kernel changes in drivers/gpu/drm/i915/intel_display.c 
Comment 6 Gerhard Hintermayer 2010-12-02 18:48:29 UTC
(In reply to comment #4)
> As recent xf86-video-intel is KMS-only, CONFIG_FB_INTEL=m may be a mistake
> - i.e. in case of ati, CONFIG_FB_RADEON!=n definitely is.
> 
> Just a guess, though.
> 

Removing CONFIG_FB_INTEL and rebuilding the kernel did not help. Btw. the kernel bug gets triggered when I try to kill the hung (black) Xserver.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-12-09 22:22:42 UTC
Can you try with kernel 2.6.36 too?
Comment 8 Gerhard Hintermayer 2010-12-10 13:25:52 UTC
(In reply to comment #7)
> Can you try with kernel 2.6.36 too?
> 

I'll do so in the evening (CET) when I'm back home with gentoo-sources-2.6.36-r4.
Comment 9 Gerhard Hintermayer 2010-12-10 19:03:50 UTC
(In reply to comment #7)
> Can you try with kernel 2.6.36 too?
> 
OK, with kernel 2.6.36-gentoo-r4 still I still cannot switch away from the workstation without loosing X functionality.
After first KVM switch and switch back black screen and only mouse pointer. (did this from gdm login screen). Restarted X, switched away again and I still get the kernel bug. I probably should enable verbose debug info, right ?

Here's the log:

Dec 10 19:49:55 router2 kernel: Kernel BUG at fa858371 [verbose debug info unavailable]
Dec 10 19:49:55 router2 kernel: invalid opcode: 0000 [#1] SMP
Dec 10 19:49:55 router2 kernel: last sysfs file: /sys/devices/virtual/vtconsole/vtcon1/uevent
Dec 10 19:49:55 router2 kernel: Modules linked in: xt_limit xt_tcpudp ipt_addrtype xt_dscp xt_string xt_owner xt_NFQUEUE xt_multiport xt_mark xt_hashlimit xt_conntrack xt_connmark nf_nat_irc nf_nat_ftp iptable_nat iptable_mangle ipt_LOG ipt_MASQUERADE nf_nat xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ppp_deflate zlib_deflate bsd_comp ppp_async crc_ccitt fbcon font bitblit softcursor ppp_generic slhc ppdev parport_pc parport w83627ehf hwmon_vid ipv6 nfsd cpufreq_ondemand acpi_cpufreq freq_table mperf ip_tables x_tables dvb_pll cx22702 cx88_dvb cx88_vp3054_i2c videobuf_dvb dvb_core rc_winfast i915 ir_lirc_codec snd_hda_codec_intelhdmi cx8800 lirc_dev snd_hda_codec_realtek cx8802 ir_sony_decoder drm_kms_helper cx88xx ir_jvc_decoder ir_rc6_decoder drm ir_rc5_decoder snd_hda_intel ir_nec_decoder ir_common ir_core snd_hda_codec fb fbdev jmicron tveeprom ide_core snd_pcm i2c_algo_bit cfbcopyarea ftdi_sio usblp video usbserial snd_timer v4l2_common videodev v4l1_compat i2c_i801 videobuf_dma_sg cfbimgblt snd backlight e1000e cfbfillrect processor btcx_risc soundcore output i2c_core joydev snd_page_alloc thermal rtc pcspkr 8250_pnp thermal_sys button xfs exportfs nfs auth_rpcgss lockd sunrpc jfs reiserfs raid10 raid1 raid0 dm_snapshot dm_mirror dm_region_hash dm_log dm_mod sbp2 ohci1394 ieee1394 sl811_hcd usbhid ohci_hcd uhci_hcd usb_storage hid ehci_hcd usbcore scsi_transport_fc sx8 DAC960 cciss sr_mod cdrom sg videobuf_core sd_mod pdc_adma sata_inic162x ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise scsi_wait_scan pata_sis libata scsi_mod
Dec 10 19:49:55 router2 kernel: 
Dec 10 19:49:55 router2 kernel: Pid: 2073, comm: kworker/1:1 Not tainted 2.6.36-gentoo-r4 #1 MS-9818/MS-9818
Dec 10 19:49:55 router2 kernel: EIP: 0060:[<fa858371>] EFLAGS: 00010246 CPU: 1
Dec 10 19:49:55 router2 kernel: EIP is at i915_gem_object_pin+0x1b/0x108 [i915]
Dec 10 19:49:55 router2 kernel: EAX: f6beb200 EBX: f6beb200 ECX: 00000000 EDX: 0003c000
Dec 10 19:49:55 router2 kernel: ESI: f6aa7c00 EDI: 00001000 EBP: f6aa7c00 ESP: f71d0bf8
Dec 10 19:49:55 router2 kernel: DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Dec 10 19:49:55 router2 kernel: Process kworker/1:1 (pid: 2073, ti=f71d0000 task=f72d6750 task.ti=f71d0000)
Dec 10 19:49:55 router2 kernel: Stack:
Dec 10 19:49:55 router2 kernel: f6beb200 00000000 f6aa7c14 fa8616cf f66c1000 00000000 fa86178d 00000060
Dec 10 19:49:55 router2 kernel: <0> f6beb200 00000000 00000001 f7362000 f6af37c0 f6aa7c00 f60d9580 fa862b08
Dec 10 19:49:55 router2 kernel: <0> f72b25fc 00000000 80000000 003d0b89 00000001 80000000 ffffffff 00000000
Dec 10 19:49:55 router2 kernel: Call Trace:
Dec 10 19:49:55 router2 kernel: [<fa8616cf>] ? intel_pin_and_fence_fb_obj+0x6c/0x9b [i915]
Dec 10 19:49:55 router2 kernel: [<fa86178d>] ? intel_pipe_set_base+0x8f/0x13e [i915]
Dec 10 19:49:55 router2 kernel: [<fa862b08>] ? intel_crtc_mode_set+0x12cc/0x12ee [i915]
Dec 10 19:49:55 router2 kernel: [<fa85d481>] ? intel_update_watermarks+0x10c/0x117 [i915]
Dec 10 19:49:55 router2 kernel: [<fa85decb>] ? intel_crtc_dpms+0x79/0x10e [i915]
Dec 10 19:49:55 router2 kernel: [<f96c739c>] ? drm_crtc_helper_set_mode+0x1ae/0x2a3 [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<f96c7bf4>] ? drm_crtc_helper_set_config+0x594/0x71a [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<f96c618a>] ? drm_fb_helper_set_par+0x54/0x8a [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<f96c638f>] ? drm_fb_helper_single_fb_probe+0x1cf/0x22f [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<f96c64b3>] ? drm_fb_helper_hotplug_event+0xc4/0xd0 [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<f96c71af>] ? output_poll_execute+0xd6/0xfc [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<c02e53a1>] ? schedule+0x5f9/0x688
Dec 10 19:49:55 router2 kernel: [<c0133d46>] ? process_one_work+0x1b2/0x2bf
Dec 10 19:49:55 router2 kernel: [<f96c70d9>] ? output_poll_execute+0x0/0xfc [drm_kms_helper]
Dec 10 19:49:55 router2 kernel: [<c013416d>] ? worker_thread+0x177/0x2b6
Dec 10 19:49:55 router2 kernel: [<c0133ff6>] ? worker_thread+0x0/0x2b6
Dec 10 19:49:55 router2 kernel: [<c01364f6>] ? kthread+0x63/0x68
Dec 10 19:49:55 router2 kernel: [<c0136493>] ? kthread+0x0/0x68
Dec 10 19:49:55 router2 kernel: [<c0102b76>] ? kernel_thread_helper+0x6/0x10
Dec 10 19:49:55 router2 kernel: Code: eb 3b c0 0f af c8 83 c4 10 89 c8 5b 5e 5f 5d c3 57 89 d7 56 53 8b 50 70 89 c3 8b 70 08 81 e2 00 c0 03 00 81 fa 00 c0 03 00 75 04 <0f> 0b eb fe 83 78 54 00 74 71 85 ff 75 3b 8b 86 30 02 00 00 8b
Dec 10 19:49:55 router2 kernel: EIP: [<fa858371>] i915_gem_object_pin+0x1b/0x108 [i915] SS:ESP 0068:f71d0bf8
Comment 10 Mike Pagano gentoo-dev 2010-12-17 15:17:39 UTC
More debug info would be very helpful. Please compile and run with CONFIG_DEBUG_INFO=y
Comment 11 Gerhard Hintermayer 2010-12-18 17:17:08 UTC
(In reply to comment #10)
> More debug info would be very helpful. Please compile and run with
> CONFIG_DEBUG_INFO=y

Switched to 2.6.36-r5 (got stable meanwhile) and enabled CONFIG_DEBUG_INFO, now I get the following behavior:
After first KVM switch and switch back I find myself on VT1 with a mouse cursor - strange. When I switched away KVM from this station I was on the gdm login screen on VT8. I managed to manually switch to VT1 and back to VT8 with a working X for a few times only, but the basic bahaviour when using the KVM switch is, that I do not find myself on that VT where I left the station.
After these few (2 or 3) times X hung like in 2.6.35 and I had to kill it (in order to try to restart X), here (when killing) I now get:
Dec 18 17:48:53 router2 kernel: Kernel BUG at f93c13cd [verbose debug info unavailable]
Dec 18 17:48:53 router2 kernel: invalid opcode: 0000 [#1] SMP
Dec 18 17:48:53 router2 kernel: last sysfs file: /sys/devices/virtual/vtconsole/vtcon1/uevent
Dec 18 17:48:53 router2 kernel: Modules linked in: fbcon font bitblit softcursor xt_limit xt_tcpudp ipt_addrtype xt_dscp xt_string xt_owner xt_NFQUEUE xt_multiport xt_mark xt_hashlimit xt_conntrack xt_connmark nf_nat_irc nf_nat_ftp iptable_nat iptable_mangle ipt_LOG ipt_MASQUERADE nf_nat xt_DSCP ipt_REJECT nf_conntrack_irc nf_conntrack_ftp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ppp_deflate zlib_deflate bsd_comp ppp_async crc_ccitt ppp_generic slhc ppdev parport_pc parport w83627ehf hwmon_vid nfsd ipv6 cpufreq_ondemand acpi_cpufreq freq_table mperf ip_tables x_tables i915 dvb_pll cx22702 cx88_dvb drm_kms_helper drm cx88_vp3054_i2c videobuf_dvb dvb_core rc_winfast ir_lirc_codec snd_hda_codec_intelhdmi snd_hda_codec_realtek lirc_dev ir_sony_decoder cx8800 cx8802 ir_jvc_decoder ir_rc6_decoder cx88xx ir_rc5_decoder snd_hda_intel fb snd_hda_codec ir_common fbdev ir_nec_decoder ir_core v4l2_common videodev snd_pcm jmicron i2c_algo_bit e1000e ide_core tveeprom v4l1_compat cfbcopyarea ftdi_sio rtc videobuf_dma_sg btcx_risc 8250_pnp usbserial snd_timer i2c_i801 cfbimgblt usblp snd cfbfillrect joydev video i2c_core soundcore processor pcspkr button thermal backlight output snd_page_alloc thermal_sys xfs exportfs nfs auth_rpcgss lockd sunrpc jfs reiserfs raid10 raid1 raid0 dm_snapshot dm_mirror dm_region_hash dm_log dm_mod sbp2 ohci1394 ieee1394 sl811_hcd usbhid ohci_hcd uhci_hcd usb_storage hid ehci_hcd usbcore scsi_transport_fc sx8 DAC960 cciss sr_mod cdrom sg videobuf_core sd_mod pdc_adma sata_inic162x ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise scsi_wait_scan pata_sis libata scsi_mod
Dec 18 17:48:53 router2 kernel: 
Dec 18 17:48:53 router2 kernel: Pid: 2070, comm: kworker/1:1 Not tainted 2.6.36-gentoo-r5 #1 MS-9818/MS-9818
Dec 18 17:48:53 router2 kernel: EIP: 0060:[<f93c13cd>] EFLAGS: 00010246 CPU: 1
Dec 18 17:48:53 router2 kernel: EIP is at i915_gem_object_pin+0x1b/0x108 [i915]
Dec 18 17:48:53 router2 kernel: EAX: f677e200 EBX: f677e200 ECX: 00000000 EDX: 0003c000
Dec 18 17:48:53 router2 kernel: ESI: f6428000 EDI: 00001000 EBP: f6428000 ESP: f7303bf8
Dec 18 17:48:53 router2 kernel: DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Dec 18 17:48:53 router2 kernel: Process kworker/1:1 (pid: 2070, ti=f7303000 task=f71aa850 task.ti=f7303000)
Dec 18 17:48:53 router2 kernel: Stack:
Dec 18 17:48:53 router2 kernel: f677e200 00000000 f6428014 f93ca739 f670d000 00000000 f93ca7f7 00000309
Dec 18 17:48:53 router2 kernel: <0> f677e200 00000000 00000001 f7364000 f72a7080 f6428000 f71cd880 f93cbb72
Dec 18 17:48:53 router2 kernel: <0> f698af3c 00000000 80000000 003cfd59 00000001 80000000 ffffffff 00000000
Dec 18 17:48:53 router2 kernel: Call Trace:
Dec 18 17:48:53 router2 kernel: [<f93ca739>] ? intel_pin_and_fence_fb_obj+0x6c/0x9b [i915]
Dec 18 17:48:53 router2 kernel: [<f93ca7f7>] ? intel_pipe_set_base+0x8f/0x13e [i915]
Dec 18 17:48:53 router2 kernel: [<f93cbb72>] ? intel_crtc_mode_set+0x12cc/0x12ee [i915]
Dec 18 17:48:53 router2 kernel: [<f93c64dd>] ? intel_update_watermarks+0x10c/0x117 [i915]
Dec 18 17:48:53 router2 kernel: [<f93c6f27>] ? intel_crtc_dpms+0x79/0x10e [i915]
Dec 18 17:48:53 router2 kernel: [<f8e6839c>] ? drm_crtc_helper_set_mode+0x1ae/0x2a3 [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<f8e68bf4>] ? drm_crtc_helper_set_config+0x594/0x71a [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<f8e6718a>] ? drm_fb_helper_set_par+0x54/0x8a [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<f8e6738f>] ? drm_fb_helper_single_fb_probe+0x1cf/0x22f [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<f8e674b3>] ? drm_fb_helper_hotplug_event+0xc4/0xd0 [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<f8e681af>] ? output_poll_execute+0xd6/0xfc [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<c02e5721>] ? schedule+0x5f9/0x688
Dec 18 17:48:53 router2 kernel: [<c0133d4e>] ? process_one_work+0x1b2/0x2bf
Dec 18 17:48:53 router2 kernel: [<f8e680d9>] ? output_poll_execute+0x0/0xfc [drm_kms_helper]
Dec 18 17:48:53 router2 kernel: [<c0134175>] ? worker_thread+0x177/0x2b6
Dec 18 17:48:53 router2 kernel: [<c0133ffe>] ? worker_thread+0x0/0x2b6
Dec 18 17:48:53 router2 kernel: [<c01364fe>] ? kthread+0x63/0x68
Dec 18 17:48:53 router2 kernel: [<c013649b>] ? kthread+0x0/0x68
Dec 18 17:48:53 router2 kernel: [<c0102b76>] ? kernel_thread_helper+0x6/0x10
Dec 18 17:48:53 router2 kernel: Code: eb 3b c0 0f af c8 83 c4 10 89 c8 5b 5e 5f 5d c3 57 89 d7 56 53 8b 50 70 89 c3 8b 70 08 81 e2 00 c0 03 00 81 fa 00 c0 03 00 75 04 <0f> 0b eb fe 83 78 54 00 74 71 85 ff 75 3b 8b 86 30 02 00 00 8b
Dec 18 17:48:53 router2 kernel: EIP: [<f93c13cd>] i915_gem_object_pin+0x1b/0x108 [i915] SS:ESP 0068:f7303bf8

Unfortunately enabling CONFIG_DEBUG_INFO didn't solve the "vorbose debug info unavailable" message. Are there more debug options I should enable ?
Comment 12 Mike Pagano gentoo-dev 2010-12-18 17:48:48 UTC
Should have added this one, also. CONFIG_KALLSYMS 

Sorry about that, can you test with that enabled?

Comment 13 Gerhard Hintermayer 2010-12-18 17:55:28 UTC
(In reply to comment #12)
> Should have added this one, also. CONFIG_KALLSYMS 
> 
> Sorry about that, can you test with that enabled?
> 
Sure. Sorry for my confusion also, of course 2.6.36-r5 has not become stable yet, I just thought to check if the issue has already been solved there. Shall I run the test on the latest stable or with 2.6.36-r5 ? Probably both, right ;-) ? Maybe the kids give me some computer time this weekend - sigh.

Comment 14 Mike Pagano gentoo-dev 2010-12-18 18:06:14 UTC
Trying the latest 2.6.36 would be great, a stable request bug does exist.  Good luck gettin the time!  :)

(Don't you pay the bills ?)  ;)

Comment 15 Gerhard Hintermayer 2010-12-18 18:33:27 UTC
(In reply to comment #12)
> Should have added this one, also. CONFIG_KALLSYMS 
> 
> Sorry about that, can you test with that enabled?
> 
CONFIG_KALLSYMS=y was set running the 2.6.36-r5 test, should I enable anything else ? (below CONFIG_KALLSYMS ther's "# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set" in the config file, should I enable these also (didn't find it in menuconfig or xconfig, so where is that hidden ?)

Gerhard
Comment 16 Bruno 2010-12-18 20:19:15 UTC
What kind of KVM switch is it, e.g. is switching the input similar to unplugging monitor from one system and plugging it into the other one or is it more intelligent?

If the KVM switch is more like a plain old physical switch the Intel KMS driver is maybe detecting unplug which most probably causes some sort of reconfiguration (if the system has a second connector it might switch over to that one)

As such a more complete kernel log including KMS initialization as well as the time of switching away and back with KVM switch would help. (where possible, try both normal kernel output and also with DRM debugging enabled via debug parameter of drm module (can be changed at runtime by echoing to /sys/module/drm/parameters/debug even when drm is built-in).

When you do so, please check for changes below /sys/class/drm/card0/${CONNECTOR}/ between the time KVM switch is switched to intel system and when it's not.
Comment 17 Mike Pagano gentoo-dev 2010-12-18 21:20:57 UTC
(In reply to comment #15)

KALLSYMS and KALLSYMS_ALL,  thanks
Comment 18 Gerhard Hintermayer 2010-12-19 19:38:04 UTC
(In reply to comment #16)
> What kind of KVM switch is it, e.g. is switching the input similar to
> unplugging monitor from one system and plugging it into the other one or is it
> more intelligent?
> 
> If the KVM switch is more like a plain old physical switch the Intel KMS driver
> is maybe detecting unplug which most probably causes some sort of
> reconfiguration (if the system has a second connector it might switch over to
> that one)
> 
> As such a more complete kernel log including KMS initialization as well as the
> time of switching away and back with KVM switch would help. (where possible,
> try both normal kernel output and also with DRM debugging enabled via debug
> parameter of drm module (can be changed at runtime by echoing to
> /sys/module/drm/parameters/debug even when drm is built-in).
> 
> When you do so, please check for changes below
> /sys/class/drm/card0/${CONNECTOR}/ between the time KVM switch is switched to
> intel system and when it's not.
> 

Thanks Bruno, we're moving the right direction. The KVM switch is dumb - i.e. the display device shows up "disconnected" in "/sys/class/drm/card0/card0-VGA-1/status". I checked the Xorg log files (regarding your hint that Xorg might switch to another device when the current one gets disconnected and disabled all of them in xorg.conf (just as a precaution ;-) - didn't have any problems running 2.6.34-r6).
Nevertheless I always find myself on another VT when using the KVM switch than the one where I left it. Using <Ctrl><Alt><VT-Number> to switch back to the one where I left is possible for a few times, after that VT switching stops working and load goes up (no suspicious process showing up in ps) about ~ 2 per minute and I have to reboot the machine before load goes so high that it is unusable (that behaviour is not new, I forgot to post that in my original bug report, sorry).
So I think next step should be, that I enable drm debug and use the KVM switch and post the output. I'm sorry that I will not  be able to that before end of next week, because santa claus is quite busy before christmas and the kids won't be very happy that there are no presents, because daddy digged into a kernel bug ;-) 
So I wish you all a merry christmas and I'll come back to the bug after christmas.
Comment 19 Mike Pagano gentoo-dev 2011-03-06 20:22:28 UTC
Any new developments here?
Comment 20 Gerhard Hintermayer 2011-03-21 20:21:39 UTC
(In reply to comment #19)
> Any new developments here?

Sorry, forgot this on my todo list. I still stick to the old kernel to keep my system usable.
Should run some tests with 2.6.37 or 2.6.38, not stable though, but a lot of modifications in the drm code. Hope to find some time next week ...