From patchwork Sun Aug 12 23:47:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Widawsky X-Patchwork-Id: 1310581 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 08659DF280 for ; Sun, 12 Aug 2012 23:55:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB2DC9E8E1 for ; Sun, 12 Aug 2012 16:55:29 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from shiva.chad-versace.us (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 787609E7A7; Sun, 12 Aug 2012 16:54:05 -0700 (PDT) Received: by shiva.chad-versace.us (Postfix, from userid 1005) id 732B8885C4; Sun, 12 Aug 2012 23:47:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on shiva.chad-versace.us X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 Received: from bwidawsk.net (unknown [209.20.75.48]) by shiva.chad-versace.us (Postfix) with ESMTPSA id 6ED6A885A4; Sun, 12 Aug 2012 23:47:18 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 12 Aug 2012 16:47:18 -0700 From: Ben Widawsky To: George Spelvin In-Reply-To: <20120809045014.21475.qmail@science.horizon.com> References: <20120809045014.21475.qmail@science.horizon.com> Message-ID: X-Sender: ben@bwidawsk.net User-Agent: Roundcube Webmail/0.8-rc Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [Intel-gfx] =?utf-8?q?v3=2E5__Oops_in_i2c=5Falgo=5Fbit=2Ec=3Abit?= =?utf-8?q?=5Fxfer+0x23/0x870=3A_i915_or_i2c=3F?= X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org 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 0000: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 0000000000000028 > [ 36.555626] IP: [] bit_xfer+0x23/0x870 > [i2c_algo_bit] > [ 36.555701] PGD 212cb0067 PUD 212caf067 PMD 0 > [ 36.555803] Oops: 0000 [#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:[] [] > bit_xfer+0x23/0x870 [i2c_algo_bit] > [ 36.557493] RSP: 0000:ffff880212c6d648 EFLAGS: 00010296 > [ 36.557544] RAX: ffff88021222c030 RBX: ffff880212c6d7e8 RCX: > 0000000000000000 > [ 36.557599] RDX: 0000000000000001 RSI: ffff880212c6d7e8 RDI: > ffff88021222c030 > [ 36.557655] RBP: ffff880212c6d6c8 R08: 0000000000000402 R09: > 0000000000000000 > [ 36.557710] R10: 0000000000000000 R11: 0000000000000006 R12: > 0000000000000001 > [ 36.557766] R13: ffff880212c6dfd8 R14: 0000000000000001 R15: > ffff88021222c030 > [ 36.557822] FS: 00007f5a7b85b700(0000) GS:ffff88021fcc0000(0000) > knlGS:0000000000000000 > [ 36.557899] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 36.557950] CR2: 0000000000000028 CR3: 0000000212cad000 CR4: > 00000000000007e0 > [ 36.558006] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 36.558062] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: > 0000000000000400 > [ 36.558119] Process modprobe (pid: 623, threadinfo > ffff880212c6c000, task ffff88020fdf5b80) > [ 36.558197] Stack: > [ 36.558239] 0000000000000001 ffff880212c6dfd8 0000000000000001 > 000000011222c000 > [ 36.558380] ffff880212c6d6c8 ffffffff8166341e ffff88020ff6ca72 > 000c510c00000018 > [ 36.558523] ffff880212c6d6d8 ffff880212c6d698 0000000000000082 > ffff880212c6d7e8 > [ 36.558671] Call Trace: > [ 36.558719] [] ? printk+0x61/0x63 > [ 36.558790] [] gmbus_xfer+0x56b/0x6f0 [i915] > [ 36.558847] [] i2c_transfer+0x9c/0xe0 > [ 36.558899] [] ? ep_poll_callback+0x10b/0x150 > [ 36.558953] [] > i2c_smbus_xfer_emulated+0x156/0x5d0 > [ 36.559010] [] ? idr_get_empty_slot+0x115/0x320 > [ 36.559064] [] i2c_smbus_xfer+0x113/0x130 > [ 36.559118] [] ? _raw_spin_lock+0xe/0x20 > [ 36.559173] [] ? klist_next+0x89/0x110 > [ 36.559225] [] i2c_default_probe+0xeb/0x130 > [ 36.559279] [] ? i2c_check_addr_busy+0x3b/0x60 > [ 36.559332] [] i2c_do_add_adapter+0x1bb/0x290 > [ 36.559382] [] ? > sysfs_do_create_link+0xeb/0x200 > [ 36.559433] [] ? put_device+0x17/0x20 > [ 36.559482] [] ? __process_new_driver+0x30/0x30 > [ 36.559535] [] __process_new_adapter+0x12/0x20 > [ 36.559590] [] bus_for_each_drv+0x4e/0xa0 > [ 36.559642] [] i2c_register_adapter+0x16d/0x270 > [ 36.559696] [] i2c_add_adapter+0xa3/0xb0 > [ 36.559759] [] intel_setup_gmbus+0xcc/0x1f0 > [i915] > [ 36.559821] [] i915_driver_load+0x2ac/0xb90 > [i915] > [ 36.559882] [] ? drm_get_minor+0x261/0x300 > [drm] > [ 36.559940] [] drm_get_pci_dev+0x186/0x2d0 > [drm] > [ 36.559995] [] ? > default_spin_lock_flags+0x9/0x10 > [ 36.560060] [] i915_pci_probe+0x16/0x20 [i915] > [ 36.560115] [] local_pci_probe+0x5c/0xd0 > [ 36.560168] [] pci_device_probe+0x111/0x120 > [ 36.560221] [] driver_probe_device+0x7e/0x220 > [ 36.560274] [] __driver_attach+0xab/0xb0 > [ 36.560327] [] ? > driver_probe_device+0x220/0x220 > [ 36.560375] [] bus_for_each_dev+0x55/0x90 > [ 36.560421] [] ? 0xffffffffa0322fff > [ 36.560470] [] driver_attach+0x1e/0x20 > [ 36.560522] [] bus_add_driver+0x198/0x270 > [ 36.560573] [] ? 0xffffffffa0322fff > [ 36.560625] [] driver_register+0x77/0x150 > [ 36.560677] [] ? 0xffffffffa0322fff > [ 36.560729] [] __pci_register_driver+0x5e/0xe0 > [ 36.560784] [] ? 0xffffffffa0322fff > [ 36.560839] [] drm_pci_init+0x11a/0x130 [drm] > [ 36.560892] [] ? 0xffffffffa0322fff > [ 36.560949] [] i915_init+0x8b/0x8d [i915] > [ 36.561004] [] do_one_initcall+0x12a/0x180 > [ 36.561057] [] sys_init_module+0x10b0/0x1f40 > [ 36.561111] [] ? free_notes_attrs+0x60/0x60 > [ 36.561165] [] system_call_fastpath+0x16/0x1b > [ 36.561218] Code: 5d c3 45 31 ff eb e9 90 55 48 89 e5 41 57 41 56 > 41 55 41 54 53 48 83 ec 58 66 66 66 66 90 48 8b 4f 18 49 89 ff 48 89 > f3 89 55 9c <48> 8b 41 28 48 89 4d 90 48 85 c0 74 0c ff d0 85 c0 89 > c1 > 0f 88 > [ 36.562478] RIP [] bit_xfer+0x23/0x870 > [i2c_algo_bit] > [ 36.562544] RSP > [ 36.562584] CR2: 0000000000000028 > [ 36.562667] ---[ end trace f73eb7bcfaa57c45 ]--- > > As far as I can tell, the passed i2c_adap->algo_data is NULL, > so the fetch of adap->pre_xfer is oopsing. > > Unfortunately, I'm trying to run ext4 + metadata_csum, which requires > 3.5+patches. I don't see anything relevant on the mailing list. > Do any DRM hackers have any ideas what's up? > > System is an i3-530 with 8GiB of RAM. (Its primary job is > file server, but the display also gets used sometime.) > > Thanks! > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel Adding intel-gfx. I'm not aware of a clean way to force disable gmbus in i915, but you can try this in the meanwhile: diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index 1991a44..fd04e89 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -494,7 +494,7 @@ int intel_setup_gmbus(struct drm_device *dev) bus->reg0 = port | GMBUS_RATE_100KHZ; /* gmbus seems to be broken on i830 */ - if (IS_I830(dev)) + if (1) bus->force_bit = true; intel_gpio_setup(bus, port);