Re: [Intel-gfx] v3.5 Oops in i2c_algo_bit.c:bit_xfer+0x23/0x870: i915 or i2c?

2012-08-13 Thread Jani Nikula
On Mon, 13 Aug 2012, Daniel Vetter dan...@ffwll.ch wrote:
 On Sun, Aug 12, 2012 at 11:49:22PM -0400, George Spelvin wrote:
 (Bringing this back to the mailing lists after a bit of uninteresting private
 conversation.)
 
  Honestly, I think we need a way to force disable gmbus with a module 
  parameter or something anyway. It's not the first time gmbus has been 
  implicated with an issue. Maybe it even exists already, but I couldn't 
  find this. So if you confirm that fixes the problem for you on the ml, 
  at least maybe such a patch will be the result.
 
  If you feel it's a software bug (which I agree it seems likely), a
  bisect is always much appreciated. Personally, I'll usually step back
  major releases until something works, or I hit 3.2ish. Even knowing it
  never worked through 3.2 is helpful.
 
 It's a friend's machine, which I normally only have remote access to,
 so it's a bit pf a pain, but I can manage.  I just thought a basic
 i3 motherboard was so common I couldn't possibly be the only one with
 this problem.
 
 Here's the 3.2 dmesg showing the fallback working, but this is an
 Ubuntu-patched kernel (linux-image-3.2.0-29-generic) that may be a fair
 distance from stock:

 One thing of interest would be the exact .config you use to build the
 kernel and the output of lsmod (after the kernel crashed). I guess the
 issue is with the combination of drivers you have (i2c_detect in the
 calltrace calls back into other registered i2c drivers ...).

Hi all, this smells a bit like [1], don't you think?

George, can you check the patch I just sent to (hopefully) fix that
issue? Thanks.


BR,
Jani.

[1] http://thread.gmane.org/gmane.linux.kernel/1339794
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


Re: [Intel-gfx] v3.5 Oops in i2c_algo_bit.c:bit_xfer+0x23/0x870: i915 or i2c?

2012-08-12 Thread Ben Widawsky

On 2012-08-08 21:50, George Spelvin wrote:
I'm trying to run a v3.5 kernel (plus some -stable patches from Ted 
Ts'o) on
an Ubuntu system.  Things are generally working except for the 
following

Oops on each boot, which prevents the graphics system from loading.

[   36.187972] [drm] Initialized drm 1.1.0 20060810
[   36.230306] kvm: VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL does not work
properly. Using workaround
[   36.487606] i915 :00:02.0: setting latency timer to 64
[   36.555464] [drm] GMBUS [i915 gmbus ssc] timed out, falling back
to bit banging on pin 0
[   36.555490] BUG: unable to handle kernel NULL pointer dereference
at 0028
[   36.555626] IP: [a01807b3] bit_xfer+0x23/0x870 
[i2c_algo_bit]

[   36.555701] PGD 212cb0067 PUD 212caf067 PMD 0
[   36.555803] Oops:  [#1] SMP
[   36.555885] CPU 3
[   36.555907] Modules linked in: snd_seq_midi joydev i915(+)
snd_rawmidi snd_seq_midi_event snd_seq drm_kms_helper snd_timer
snd_seq_device kvm_intel drm kvm snd serio_raw soundcore i2c_algo_bit
snd_page_alloc lpc_ich video mei microcode mac_hid eeprom it87
hwmon_vid coretemp lp parport raid10 raid456 async_pq async_xor
firewire_ohci firewire_core xor async_memcpy async_raid6_recov
hid_microsoft floppy crc_itu_t r8169 pata_jmicron usbhid hid mptsas
mptscsih mptbase scsi_transport_sas raid6_pq async_tx raid1 raid0
multipath linear
[   36.557232]
[   36.557271] Pid: 623, comm: modprobe Not tainted 3.5.0 #3 Gigabyte
Technology Co., Ltd. H57M-USB3/H57M-USB3
[   36.557398] RIP: 0010:[a01807b3]  [a01807b3]
bit_xfer+0x23/0x870 [i2c_algo_bit]
[   36.557493] RSP: :880212c6d648  EFLAGS: 00010296
[   36.557544] RAX: 88021222c030 RBX: 880212c6d7e8 RCX:

[   36.557599] RDX: 0001 RSI: 880212c6d7e8 RDI:
88021222c030
[   36.557655] RBP: 880212c6d6c8 R08: 0402 R09:

[   36.557710] R10:  R11: 0006 R12:
0001
[   36.557766] R13: 880212c6dfd8 R14: 0001 R15:
88021222c030
[   36.557822] FS:  7f5a7b85b700() GS:88021fcc()
knlGS:
[   36.557899] CS:  0010 DS:  ES:  CR0: 8005003b
[   36.557950] CR2: 0028 CR3: 000212cad000 CR4:
07e0
[   36.558006] DR0:  DR1:  DR2:

[   36.558062] DR3:  DR6: 0ff0 DR7:
0400
[   36.558119] Process modprobe (pid: 623, threadinfo
880212c6c000, task 88020fdf5b80)
[   36.558197] Stack:
[   36.558239]  0001 880212c6dfd8 0001
00011222c000
[   36.558380]  880212c6d6c8 8166341e 88020ff6ca72
000c510c0018
[   36.558523]  880212c6d6d8 880212c6d698 0082
880212c6d7e8
[   36.558671] Call Trace:
[   36.558719]  [8166341e] ? printk+0x61/0x63
[   36.558790]  [a02e5a0b] gmbus_xfer+0x56b/0x6f0 [i915]
[   36.558847]  [814ee7dc] i2c_transfer+0x9c/0xe0
[   36.558899]  [811be91b] ? ep_poll_callback+0x10b/0x150
[   36.558953]  [814ee976] 
i2c_smbus_xfer_emulated+0x156/0x5d0

[   36.559010]  [81321d25] ? idr_get_empty_slot+0x115/0x320
[   36.559064]  [814eefb3] i2c_smbus_xfer+0x113/0x130
[   36.559118]  [8166e51e] ? _raw_spin_lock+0xe/0x20
[   36.559173]  [81642fd9] ? klist_next+0x89/0x110
[   36.559225]  [814ef61b] i2c_default_probe+0xeb/0x130
[   36.559279]  [814ee18b] ? i2c_check_addr_busy+0x3b/0x60
[   36.559332]  [814f077b] i2c_do_add_adapter+0x1bb/0x290
[   36.559382]  [811ed1cb] ? 
sysfs_do_create_link+0xeb/0x200

[   36.559433]  [81411897] ? put_device+0x17/0x20
[   36.559482]  [814f0880] ? __process_new_driver+0x30/0x30
[   36.559535]  [814f0892] __process_new_adapter+0x12/0x20
[   36.559590]  [814140ee] bus_for_each_drv+0x4e/0xa0
[   36.559642]  [814f029d] i2c_register_adapter+0x16d/0x270
[   36.559696]  [814f0443] i2c_add_adapter+0xa3/0xb0
[   36.559759]  [a02e5cfc] intel_setup_gmbus+0xcc/0x1f0 
[i915]
[   36.559821]  [a02a938c] i915_driver_load+0x2ac/0xb90 
[i915]
[   36.559882]  [a03f1b41] ? drm_get_minor+0x261/0x300 
[drm]
[   36.559940]  [a03f4236] drm_get_pci_dev+0x186/0x2d0 
[drm]
[   36.559995]  [8103c3e9] ? 
default_spin_lock_flags+0x9/0x10

[   36.560060]  [a02f2142] i915_pci_probe+0x16/0x20 [i915]
[   36.560115]  [813522ac] local_pci_probe+0x5c/0xd0
[   36.560168]  [81352431] pci_device_probe+0x111/0x120
[   36.560221]  [81415ede] driver_probe_device+0x7e/0x220
[   36.560274]  [8141612b] __driver_attach+0xab/0xb0
[   36.560327]  [81416080] ? 
driver_probe_device+0x220/0x220

[   36.560375]  [81414195] bus_for_each_dev+0x55/0x90
[   36.560421]  [a0323000] ? 0xa0322fff
[   36.560470]  [814158de]