Bug 74161 - [BYT and probably others] crash on module reload
Summary: [BYT and probably others] crash on module reload
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Todd Previte
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on: 74033
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-28 21:07 UTC by Jesse Barnes
Modified: 2017-07-24 22:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jesse Barnes 2014-01-28 21:07:48 UTC
After a few unload/load cycles I get the following backtrace.  Looks like the PCI dev tree got corrupted somehow (maybe related to the i2c teardown bug #74033.

[  841.552383] [drm] Initialized drm 1.1.0 20060810
[  841.582102] [drm:i915_dump_device_info], i915 device info: gen=7, pciid=0x0f31 flags=is_mobile,need_gfx_hws,is_valleyview,has_hotplug,
[  841.582617] ------------[ cut here ]------------
[  841.582637] WARNING: CPU: 0 PID: 4002 at include/linux/kref.h:47 kref_get.part.4+0x1b/0x28()
[  841.582647] Modules linked in: i915(O+) drm_kms_helper(O) drm(O) coretemp kvm_intel kvm snd_hda_codec_hdmi crc32_pclmul aesni_intel aes_i586 snd_hda_codec_realtek xts lrw gf128mul ablk_helper cryptd hid_sensor_magn_3d hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_trigger industrialio_triggered_buffer kfifo_buf industrialio hid_sensor_iio_common snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi ppdev snd_seq dm_multipath scsi_dh snd_seq_device snd_timer rfcomm bnep bluetooth snd microcode asix usbnet mii soundcore hid_sensor_hub dw_dmac_pci dw_dmac_core binfmt_misc nls_iso8859_1 parport_pc mac_hid lp parport dm_mirror dm_region_hash dm_log hid_generic usbhid hid igb dca ptp pps_core i2c_algo_bit video ahci libahci [last unloaded: drm]
[  841.582791] CPU: 0 PID: 4002 Comm: modprobe Tainted: G        W  O 3.13.0-rc8+ #1
[  841.582801] Hardware name: NEXCOM VTC1010/Aptio CRB, BIOS 5.6.5 09/24/2013
[  841.582808]  00000000 00000000 f1031aa0 c264be23 00000000 f1031ad0 c20538de c281af34
[  841.582827]  00000000 00000fa2 c2823cc1 0000002f c264ed5b c264ed5b f1031b0c e9a0e214
[  841.582844]  e9a0e1b4 f1031ae0 c20539a2 00000009 00000000 f1031ae8 c264ed5b f1031b04
[  841.582862] Call Trace:
[  841.582873]  [<c264be23>] dump_stack+0x41/0x52
[  841.582885]  [<c20538de>] warn_slowpath_common+0x7e/0xa0
[  841.582895]  [<c264ed5b>] ? kref_get.part.4+0x1b/0x28
[  841.582904]  [<c264ed5b>] ? kref_get.part.4+0x1b/0x28
[  841.582913]  [<c20539a2>] warn_slowpath_null+0x22/0x30
[  841.582923]  [<c264ed5b>] kref_get.part.4+0x1b/0x28
[  841.582932]  [<c2642f0d>] klist_next+0xbd/0xd0
[  841.582943]  [<c2338c90>] ? pci_do_find_bus+0x40/0x40
[  841.582953]  [<c240b0b1>] bus_find_device+0x51/0x90
[  841.582963]  [<c2338e89>] pci_get_dev_by_id+0x39/0x80
[  841.582972]  [<c2338c90>] ? pci_do_find_bus+0x40/0x40
[  841.582982]  [<c2338feb>] pci_get_class+0x4b/0x50
[  841.583024]  [<f8c65774>] intel_detect_pch+0x44/0x3d0 [i915]
[  841.583083]  [<f8cd0283>] ? intel_uncore_early_sanitize+0x73/0xa0 [i915]
[  841.583123]  [<f8c68566>] i915_driver_load+0x376/0xdc0 [i915]
[  841.583149]  [<f8c339aa>] drm_dev_register+0x6a/0x140 [drm]
[  841.583171]  [<f8c35a3a>] drm_get_pci_dev+0x8a/0x1e0 [drm]
[  841.583183]  [<c21d5b97>] ? sysfs_do_create_link_sd.isra.2+0xa7/0x1c0
[  841.583221]  [<f8c65655>] i915_pci_probe+0x35/0x60 [i915]
[  841.583232]  [<c2338bff>] pci_device_probe+0x6f/0xc0
[  841.583241]  [<c21d5cd5>] ? sysfs_create_link+0x25/0x40
[  841.583251]  [<c240caf5>] driver_probe_device+0x105/0x380
[  841.583261]  [<c2338b52>] ? pci_match_device+0xb2/0xc0
[  841.583270]  [<c240ce21>] __driver_attach+0x71/0x80
[  841.583279]  [<c240cdb0>] ? __device_attach+0x40/0x40
[  841.583288]  [<c240af57>] bus_for_each_dev+0x47/0x80
[  841.583298]  [<c240c55e>] driver_attach+0x1e/0x20
[  841.583306]  [<c240cdb0>] ? __device_attach+0x40/0x40
[  841.583315]  [<c240c1b7>] bus_add_driver+0x157/0x230
[  841.583325]  [<c240d3e9>] driver_register+0x59/0xe0
[  841.583335]  [<c20483f0>] ? __set_pmd_pte+0xa0/0xa0
[  841.583344]  [<c2337632>] __pci_register_driver+0x32/0x40
[  841.583413]  [<f8c35c95>] drm_pci_init+0x105/0x110 [drm]
[  841.583430]  [<f8b85000>] ? 0xf8b84fff
[  841.583468]  [<f8b85062>] i915_init+0x62/0x64 [i915]
[  841.583478]  [<c2002122>] do_one_initcall+0xd2/0x190
[  841.583490]  [<c20e71f8>] ? tracepoint_module_notify+0x118/0x180
[  841.583500]  [<f8b85000>] ? 0xf8b84fff
[  841.583510]  [<c20499ff>] ? set_memory_nx+0x5f/0x70
[  841.583522]  [<c20c140d>] load_module+0x1afd/0x21c0
[  841.583536]  [<c20c1b5f>] SyS_init_module+0x8f/0xf0
[  841.583546]  [<c21351eb>] ? vm_mmap_pgoff+0x7b/0xa0
[  841.583559]  [<c265a40d>] sysenter_do_call+0x12/0x28
[  841.583567] ---[ end trace fe2f0989e9d27dc2 ]---
[  841.583582] BUG: unable to handle kernel paging request at ffffffcd
[  841.583592] IP: [<c2338ce3>] match_pci_dev_by_id+0x53/0x80
Comment 1 Todd Previte 2014-02-04 16:40:41 UTC
This looks entertaining. I assuming easily reproducible on the IVI systems?
Comment 2 Chris Wilson 2014-02-04 21:43:16 UTC
Todd, Imre is working on the i2c memory corruption on unload which is likely the cause here. I would hold off investigating until we have a fix for that corruption upstream and Jesse can test with the fix applied.
Comment 3 Todd Previte 2014-02-04 22:32:41 UTC
Sounds good, thanks Chris.
Comment 4 Imre Deak 2014-03-03 14:58:41 UTC
Closing, since this should be fixed in -nightly by:

"drm/i915: fix pch pci device enumeration"


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.