Bug 95076 - i915_gem.c:1888 i915_gem_fault+0x238/0x460 [i915_bpo]()
Summary: i915_gem.c:1888 i915_gem_fault+0x238/0x460 [i915_bpo]()
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-23 07:09 UTC by Hector Yuen
Modified: 2017-07-24 22:42 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features: GEM/Other


Attachments

Description Hector Yuen 2016-04-23 07:09:42 UTC
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675379] ------------[ cut here ]------------
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675465] WARNING: CPU: 2 PID: 7671 at /build/linux-lts-vivid-6tG2ln/linux-lts-vivid-3.19.0/ubuntu/i915/i915_gem.c:1888 i915_gem_fault+0x238/0x460 [i915_bpo]()
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675471] unhandled error in i915_gem_fault: -7
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675474] Modules linked in: dell_wmi sparse_keymap ctr ccm nvram msr dm_crypt arc4 snd_hda_codec_hdmi(OE) dell_led dell_laptop dcdbas snd_hda_codec_realtek(OE) snd_hda_codec_generic(OE) snd_hda_intel(OE) snd_hda_codec(OE) snd_hda_core(OE) snd_hwdep snd_pcm x86_pkg_temp_thermal coretemp kvm_intel snd_seq_midi snd_seq_midi_event kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_rawmidi aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_seq snd_seq_device snd_timer iwlmvm(OE) mac80211(OE) hid_multitouch snd joydev uvcvideo iwlwifi(OE) dm_multipath serio_raw videobuf2_vmalloc videobuf2_memops videobuf2_core scsi_dh v4l2_common videodev rts_cr_host(OE) media rts_cr_core(OE) cfg80211(OE) soundcore shpchp i2c_hid cmac int3403_thermal int3400_thermal acpi_thermal_rel intel_hid(OE) acpi_pad mac_hid rfcomm(OE) bnep(OE) parport_pc i915_bpo intel_ips drm_kms_helper drm ppdev i2c_algo_bit lp parport nls_iso8859_1 btrfs xor raid6_pq dm_mirror dm_region_hash dm_log btusb(OE) btintel(OE) bluetooth(OE) compat(OE) hid_generic usbhid hid psmouse(OE) ahci nvme libahci wmi video
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675626] CPU: 2 PID: 7671 Comm: Xorg Tainted: G        W  OE  3.19.0-33-generic #38~14.04.1-Ubuntu
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675631] Hardware name: Dell Inc. XPS 13 9350/09JHRY, BIOS 1.2.3 01/08/2016
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675635]  ffffffffc0742558 ffff880466587b58 ffffffff817af41b 0000000000000000
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675644]  ffff880466587ba8 ffff880466587b98 ffffffff81074daa 0000000016000000
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675652]  0000000000000002 ffff88005fe80000 00000000fffffff9 ffff880469dd9600
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675661] Call Trace:
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675680]  [<ffffffff817af41b>] dump_stack+0x45/0x57
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675690]  [<ffffffff81074daa>] warn_slowpath_common+0x8a/0xc0
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675698]  [<ffffffff81074e26>] warn_slowpath_fmt+0x46/0x50
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675754]  [<ffffffffc06a66a8>] i915_gem_fault+0x238/0x460 [i915_bpo]
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675764]  [<ffffffff811a1409>] __do_fault+0x39/0x90
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675775]  [<ffffffff811c43d1>] ? alloc_pages_current+0x91/0x100
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675784]  [<ffffffff811a4101>] do_shared_fault.isra.56+0x31/0x1c0
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675791]  [<ffffffff811a22ec>] ? __pte_alloc+0xcc/0x180
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675800]  [<ffffffff811a590e>] handle_mm_fault+0x5be/0x10e0
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675809]  [<ffffffff811ab00f>] ? vma_set_page_prot+0x3f/0x60
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675817]  [<ffffffff811ac1d1>] ? mmap_region+0x1b1/0x620
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675826]  [<ffffffff81061e94>] __do_page_fault+0x1c4/0x5b0
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675834]  [<ffffffff81192219>] ? vm_mmap_pgoff+0x99/0xc0
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675842]  [<ffffffff810622b1>] do_page_fault+0x31/0x70
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675851]  [<ffffffff817b8f28>] page_fault+0x28/0x30
Apr 18 23:07:25 hector-XPS-13-9350 kernel: [ 1548.675857] ---[ end trace 0a4ee0270029d0fc ]---


Hardware is Dell xps 13 9350 running ubuntu 14.04 kernel 3.19.0-58-generic

Please let me know if you need more info
Comment 1 Hector Yuen 2016-04-23 07:21:56 UTC
Here is a proposed fix from:

https://lists.freedesktop.org/archives/intel-gfx/2015-September/075420.html



Testcase: igt/gem_mmap_gtt/big-bo-tiledXY
Reported-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Signed-off-by: Michel Thierry <michel.thierry at intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 352ccd5..3e00f72 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1869,6 +1869,7 @@ out:
 		 */
 		ret = VM_FAULT_NOPAGE;
 		break;
+	case -E2BIG:
 	case -ENOMEM:
 		ret = VM_FAULT_OOM;
 		break;
-- 
2.5.1
Comment 2 Jani Nikula 2016-04-25 10:22:48 UTC
Please reopen if you can reproduce the problem with latest upstream kernels.


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.