On 01/03/16 13:21, Kenneth Graunke wrote:
On Tuesday, March 1, 2016 11:10:25 AM PST Martin Peres wrote:
On 29/02/16 20:48, Jason Ekstrand wrote:
On Fri, Feb 26, 2016 at 2:18 AM, Olivier Galibert <galib...@pobox.com
<mailto:galib...@pobox.com>> wrote:

     Ok, I can tell you that 3DSTATE_DEPTH_BUFFER and
     3DSTATE_STENCIL_BUFFER seem perfectly correct (assuming the gem
     address-patching-in works for the depth buffer address). I'll see if
     I can find a past version that works.


FYI, this hang has been fixed now and most of the demos work more-or-less.
--Jason

Just tried the vkcube with hsw and there is definitely an improvements
(the machine does not hard hang anymore) but vkcube now segfaults:

#0  0x00007ffff5210f23 in anv_descriptor_set_create () from
/usr/lib/libvulkan_intel.so
#1  0x00007ffff521121d in anv_AllocateDescriptorSets () from
/usr/lib/libvulkan_intel.so
#2  0x00000000004063b0 in ?? ()
#3  0x00000000004035df in ?? ()
#4  0x0000000000404986 in ?? ()
#5  0x000000000040589f in ?? ()
#6  0x00007ffff6aa9710 in __libc_start_main () from /usr/lib/libc.so.6
#7  0x0000000000402e69 in ?? ()

Is it supposed to?

I will have a look at it tonight.

Martin


Taking a stab in the dark here...

Do you have CONFIG_MMU_NOTIFIER enabled in your kernel?  You need that
for userptr to work, which is used for allocating everything (including
descriptor sets).

$ zcat /proc/config.gz | grep CONFIG_MMU_NOTIFIER
CONFIG_MMU_NOTIFIER=y


Otherwise, you might try clean builds.  Also, make sure you're running
vkcube from here: https://github.com/krh/vkcube

I updated the version and it seems to be working enough to get the kernel to complain now:

[10262.029000] vkcube[32526]: segfault at 1 ip 00000000004069da sp 00007ffc384c8dc0 error 6 in vkcube[400000+a000] [10262.029021] audit: type=1701 audit(1456831951.457:765): auid=1000 uid=1000 gid=1000 ses=4 pid=32526 comm="vkcube" exe="/usr/bin/vkcube" sig=11
[10270.639768] ------------[ cut here ]------------
[10270.639809] WARNING: CPU: 7 PID: 505 at drivers/gpu/drm/i915/intel_display.c:13774 intel_prepare_plane_fb+0x268/0x2d0 [i915]()
[10270.639811] WARN_ON(ret < 0)
[10270.639812] Modules linked in:
[10270.639813] fuse snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crc32c_intel i915 aesni_intel snd_emu10k1 aes_x86_64 snd_hda_codec_realtek ablk_helper snd_util_mem iTCO_wdt efi_pstore ppdev mxm_wmi snd_hda_codec_generic cryptd iTCO_vendor_support lrw snd_ac97_codec drm_kms_helper gf128mul snd_hda_intel glue_helper ac97_bus snd_hda_codec drm snd_rawmidi psmouse snd_hda_core snd_seq_device snd_hwdep efivars intel_gtt serio_raw pcspkr syscopyarea snd_pcm i2c_i801 sysfillrect sysimgblt snd_timer fb_sys_fops i2c_algo_bit emu10k1_gp snd gameport r8169 soundcore lpc_ich mii thermal fan battery parport_pc parport tpm_infineon wmi tpm_tis tpm video acpi_pad processor button evdev joydev sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 hid_generic usbhid hid sd_mod ahci libahci [10270.639852] libata scsi_mod firewire_ohci firewire_core crc_itu_t xhci_pci ehci_pci xhci_hcd ehci_hcd usbcore usb_common [10270.639859] CPU: 7 PID: 505 Comm: Xorg Tainted: G W 4.4.0-rc6-NV+ #18 [10270.639860] Hardware name: MSI MS-7850/Z97 PC Mate(MS-7850), BIOS V4.7 12/23/2014 [10270.639861] ffffffffa0d37e20 ffff88040b2379b0 ffffffff812a8629 ffff88040b2379f8 [10270.639863] ffff88040b2379e8 ffffffff8105bf22 ffff8800d8b3c480 ffff8800d8b3c480 [10270.639864] ffff880403a0e6c0 ffff88040b9a3400 ffff8800a524fd80 ffff88040b237a48
[10270.639866] Call Trace:
[10270.639874]  [<ffffffff812a8629>] dump_stack+0x4b/0x72
[10270.639878]  [<ffffffff8105bf22>] warn_slowpath_common+0x82/0xc0
[10270.639879]  [<ffffffff8105bfac>] warn_slowpath_fmt+0x4c/0x50
[10270.639893] [<ffffffffa0cd4058>] intel_prepare_plane_fb+0x268/0x2d0 [i915] [10270.639901] [<ffffffffa07c5ff3>] drm_atomic_helper_prepare_planes+0x53/0xc0 [drm_kms_helper]
[10270.639913]  [<ffffffffa0ccb6a7>] intel_atomic_commit+0x247/0x17d0 [i915]
[10270.639927] [<ffffffffa06a6296>] ? drm_atomic_check_only+0x196/0x5b0 [drm] [10270.639936] [<ffffffffa06a5cb2>] ? drm_atomic_get_crtc_state+0x32/0xd0 [drm]
[10270.639943]  [<ffffffffa06a66e7>] drm_atomic_commit+0x37/0x60 [drm]
[10270.639947] [<ffffffffa07c794c>] drm_atomic_helper_update_plane+0xec/0x130 [drm_kms_helper]
[10270.639954]  [<ffffffffa06969c2>] __setplane_internal+0x202/0x250 [drm]
[10270.639960] [<ffffffffa0696b34>] drm_mode_cursor_universal+0x124/0x200 [drm]
[10270.639966]  [<ffffffffa0696c91>] drm_mode_cursor_common+0x81/0x180 [drm]
[10270.639968]  [<ffffffff814145c8>] ? sock_sendmsg+0x38/0x50
[10270.639975]  [<ffffffffa069a841>] drm_mode_cursor_ioctl+0x41/0x50 [drm]
[10270.639980]  [<ffffffffa068c652>] drm_ioctl+0x152/0x540 [drm]
[10270.639986]  [<ffffffffa069a800>] ? drm_mode_setcrtc+0x4e0/0x4e0 [drm]
[10270.639989]  [<ffffffff810f2d8d>] ? __audit_syscall_exit+0x1dd/0x260
[10270.639991]  [<ffffffff811c59d8>] do_vfs_ioctl+0x288/0x470
[10270.639993]  [<ffffffff811cf567>] ? __fget+0x77/0xb0
[10270.639995]  [<ffffffff811c5c39>] SyS_ioctl+0x79/0x90
[10270.639997]  [<ffffffff81525a1b>] entry_SYSCALL_64_fastpath+0x16/0x6e
[10270.639998] ---[ end trace 52de0a0f139c19d3 ]---
[10270.644120] ------------[ cut here ]------------
[10270.644149] WARNING: CPU: 6 PID: 505 at drivers/gpu/drm/i915/intel_display.c:13774 intel_prepare_plane_fb+0x268/0x2d0 [i915]()
[10270.644150] WARN_ON(ret < 0)
[10270.644151] Modules linked in:
[10270.644152] fuse snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crc32c_intel i915 aesni_intel snd_emu10k1 aes_x86_64 snd_hda_codec_realtek ablk_helper snd_util_mem iTCO_wdt efi_pstore ppdev mxm_wmi snd_hda_codec_generic cryptd iTCO_vendor_support lrw snd_ac97_codec drm_kms_helper gf128mul snd_hda_intel glue_helper ac97_bus snd_hda_codec drm snd_rawmidi psmouse snd_hda_core snd_seq_device snd_hwdep efivars intel_gtt serio_raw pcspkr syscopyarea snd_pcm i2c_i801 sysfillrect sysimgblt snd_timer fb_sys_fops i2c_algo_bit emu10k1_gp snd gameport r8169 soundcore lpc_ich mii thermal fan battery parport_pc parport tpm_infineon wmi tpm_tis tpm video acpi_pad processor button evdev joydev sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 hid_generic usbhid hid sd_mod ahci libahci [10270.644186] libata scsi_mod firewire_ohci firewire_core crc_itu_t xhci_pci ehci_pci xhci_hcd ehci_hcd usbcore usb_common [10270.644192] CPU: 6 PID: 505 Comm: Xorg Tainted: G W 4.4.0-rc6-NV+ #18 [10270.644193] Hardware name: MSI MS-7850/Z97 PC Mate(MS-7850), BIOS V4.7 12/23/2014 [10270.644194] ffffffffa0d37e20 ffff88040b2379b0 ffffffff812a8629 ffff88040b2379f8 [10270.644196] ffff88040b2379e8 ffffffff8105bf22 ffff8800d8b3c480 ffff8800d8b3c480 [10270.644198] ffff880403a0e6c0 ffff88040b9a3400 ffff8800d814ecc0 ffff88040b237a48
[10270.644199] Call Trace:
[10270.644205]  [<ffffffff812a8629>] dump_stack+0x4b/0x72
[10270.644208]  [<ffffffff8105bf22>] warn_slowpath_common+0x82/0xc0
[10270.644210]  [<ffffffff8105bfac>] warn_slowpath_fmt+0x4c/0x50
[10270.644222] [<ffffffffa0cd4058>] intel_prepare_plane_fb+0x268/0x2d0 [i915] [10270.644228] [<ffffffffa07c5ff3>] drm_atomic_helper_prepare_planes+0x53/0xc0 [drm_kms_helper]
[10270.644240]  [<ffffffffa0ccb6a7>] intel_atomic_commit+0x247/0x17d0 [i915]
[10270.644252] [<ffffffffa06a6296>] ? drm_atomic_check_only+0x196/0x5b0 [drm] [10270.644260] [<ffffffffa06a5cb2>] ? drm_atomic_get_crtc_state+0x32/0xd0 [drm]
[10270.644267]  [<ffffffffa06a66e7>] drm_atomic_commit+0x37/0x60 [drm]
[10270.644271] [<ffffffffa07c794c>] drm_atomic_helper_update_plane+0xec/0x130 [drm_kms_helper]
[10270.644278]  [<ffffffffa06969c2>] __setplane_internal+0x202/0x250 [drm]
[10270.644284] [<ffffffffa0696b34>] drm_mode_cursor_universal+0x124/0x200 [drm]
[10270.644290]  [<ffffffffa0696c91>] drm_mode_cursor_common+0x81/0x180 [drm]
[10270.644296]  [<ffffffffa069a841>] drm_mode_cursor_ioctl+0x41/0x50 [drm]
[10270.644301]  [<ffffffffa068c652>] drm_ioctl+0x152/0x540 [drm]
[10270.644307]  [<ffffffffa069a800>] ? drm_mode_setcrtc+0x4e0/0x4e0 [drm]
[10270.644310]  [<ffffffff810f2d8d>] ? __audit_syscall_exit+0x1dd/0x260
[10270.644312]  [<ffffffff811c59d8>] do_vfs_ioctl+0x288/0x470
[10270.644314]  [<ffffffff811cf567>] ? __fget+0x77/0xb0
[10270.644316]  [<ffffffff811c5c39>] SyS_ioctl+0x79/0x90
[10270.644318]  [<ffffffff81525a1b>] entry_SYSCALL_64_fastpath+0x16/0x6e
[10270.644319] ---[ end trace 52de0a0f139c19d4 ]---
[10270.660965] ------------[ cut here ]------------
[10270.660984] WARNING: CPU: 0 PID: 32542 at drivers/gpu/drm/i915/i915_gem.c:5264 i915_gem_object_get_dirty_page+0x106/0x130 [i915]()
[10270.660985] WARN_ON(obj->ops != &i915_gem_object_ops)
[10270.660986] Modules linked in:
[10270.660987] fuse snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crc32c_intel i915 aesni_intel snd_emu10k1 aes_x86_64 snd_hda_codec_realtek ablk_helper snd_util_mem iTCO_wdt efi_pstore ppdev mxm_wmi snd_hda_codec_generic cryptd iTCO_vendor_support lrw snd_ac97_codec drm_kms_helper gf128mul snd_hda_intel glue_helper ac97_bus snd_hda_codec drm snd_rawmidi psmouse snd_hda_core snd_seq_device snd_hwdep efivars intel_gtt serio_raw pcspkr syscopyarea snd_pcm i2c_i801 sysfillrect sysimgblt snd_timer fb_sys_fops i2c_algo_bit emu10k1_gp snd gameport r8169 soundcore lpc_ich mii thermal fan battery parport_pc parport tpm_infineon wmi tpm_tis tpm video acpi_pad processor button evdev joydev sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 hid_generic usbhid hid sd_mod ahci libahci [10270.661011] libata scsi_mod firewire_ohci firewire_core crc_itu_t xhci_pci ehci_pci xhci_hcd ehci_hcd usbcore usb_common [10270.661015] CPU: 0 PID: 32542 Comm: vkcube Tainted: G W 4.4.0-rc6-NV+ #18 [10270.661016] Hardware name: MSI MS-7850/Z97 PC Mate(MS-7850), BIOS V4.7 12/23/2014 [10270.661017] ffffffffa0d34900 ffff88036ac9b8d0 ffffffff812a8629 ffff88036ac9b918 [10270.661018] ffff88036ac9b908 ffffffff8105bf22 0000000000000000 ffff8803a3fe1b00 [10270.661019] 000000007ce20000 000000007ce20000 ffff88040a4f7000 ffff88036ac9b968
[10270.661020] Call Trace:
[10270.661025]  [<ffffffff812a8629>] dump_stack+0x4b/0x72
[10270.661027]  [<ffffffff8105bf22>] warn_slowpath_common+0x82/0xc0
[10270.661048]  [<ffffffff8105bfac>] warn_slowpath_fmt+0x4c/0x50
[10270.661059] [<ffffffffa0c91fa6>] i915_gem_object_get_dirty_page+0x106/0x130 [i915] [10270.661079] [<ffffffffa0d0ecee>] i915_gem_execbuffer_relocate_entry+0x5ca/0x6ea [i915] [10270.661096] [<ffffffffa0d0ee95>] i915_gem_execbuffer_relocate_vma.isra.11+0x87/0xcb [i915]
[10270.661103]  [<ffffffffa0c88c8a>] ? i915_vma_bind+0x10a/0x1f0 [i915]
[10270.661110] [<ffffffffa0c8f8da>] ? i915_gem_object_do_pin+0xa7a/0xaf0 [i915]
[10270.661115]  [<ffffffffa0c8f98a>] ? i915_gem_object_pin+0x3a/0x40 [i915]
[10270.661121] [<ffffffffa0c7e9a9>] ? i915_gem_execbuffer_reserve_vma.isra.6+0x99/0x160 [i915] [10270.661126] [<ffffffffa0c7edcf>] ? i915_gem_execbuffer_reserve.isra.7+0x35f/0x3c0 [i915] [10270.661131] [<ffffffffa0c7f9b4>] i915_gem_do_execbuffer.isra.13+0xb84/0x13a0 [i915]
[10270.661136]  [<ffffffffa0c80e17>] i915_gem_execbuffer2+0xd7/0x230 [i915]
[10270.661141]  [<ffffffffa068c652>] drm_ioctl+0x152/0x540 [drm]
[10270.661146] [<ffffffffa0c80d40>] ? i915_gem_execbuffer+0x300/0x300 [i915]
[10270.661149]  [<ffffffff810f2d8d>] ? __audit_syscall_exit+0x1dd/0x260
[10270.661150]  [<ffffffff811c59d8>] do_vfs_ioctl+0x288/0x470
[10270.661151]  [<ffffffff810f2b6b>] ? __audit_syscall_entry+0xab/0xf0
[10270.661153]  [<ffffffff810027db>] ? do_audit_syscall_entry+0x4b/0x70
[10270.661154]  [<ffffffff811c5c39>] SyS_ioctl+0x79/0x90
[10270.661156]  [<ffffffff81525a1b>] entry_SYSCALL_64_fastpath+0x16/0x6e
[10270.661157] ---[ end trace 52de0a0f139c19d5 ]---
[10270.661164] general protection fault: 0000 [#1] PREEMPT SMP
[10270.661179] Modules linked in: fuse snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crc32c_intel i915 aesni_intel snd_emu10k1 aes_x86_64 snd_hda_codec_realtek ablk_helper snd_util_mem iTCO_wdt efi_pstore ppdev mxm_wmi snd_hda_codec_generic cryptd iTCO_vendor_support lrw snd_ac97_codec drm_kms_helper gf128mul snd_hda_intel glue_helper ac97_bus snd_hda_codec drm snd_rawmidi psmouse snd_hda_core snd_seq_device snd_hwdep efivars intel_gtt serio_raw pcspkr syscopyarea snd_pcm i2c_i801 sysfillrect sysimgblt snd_timer fb_sys_fops i2c_algo_bit emu10k1_gp snd gameport r8169 soundcore lpc_ich mii thermal fan battery parport_pc parport tpm_infineon wmi tpm_tis tpm video acpi_pad processor button evdev joydev sch_fq_codel ip_tables x_tables ext4 crc16 mbcache jbd2 hid_generic usbhid [10270.661349] hid sd_mod ahci libahci libata scsi_mod firewire_ohci firewire_core crc_itu_t xhci_pci ehci_pci xhci_hcd ehci_hcd usbcore usb_common [10270.661379] CPU: 0 PID: 32542 Comm: vkcube Tainted: G W 4.4.0-rc6-NV+ #18 [10270.661393] Hardware name: MSI MS-7850/Z97 PC Mate(MS-7850), BIOS V4.7 12/23/2014 [10270.661406] task: ffff88035ae10000 ti: ffff88036ac98000 task.ti: ffff88036ac98000 [10270.661419] RIP: 0010:[<ffffffffa0d0ed29>] [<ffffffffa0d0ed29>] i915_gem_execbuffer_relocate_entry+0x605/0x6ea [i915]
[10270.661445] RSP: 0018:ffff88036ac9b990  EFLAGS: 00010207
[10270.661455] RAX: 0005080000000000 RBX: ffff88036ac9b9f8 RCX: ffff88035ae10000 [10270.661467] RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000009 [10270.661479] RBP: ffff88036ac9b9d8 R08: 000000000000000a R09: 000000000014575d [10270.661491] R10: 000000000000026c R11: 000000000014575d R12: ffff8803a3fe1b00 [10270.661503] R13: 000000007ce20000 R14: 000000007ce20000 R15: ffff88040a4f7000 [10270.661515] FS: 00007f3fa72b6700(0000) GS:ffff88041fa00000(0000) knlGS:0000000000000000
[10270.661529] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10270.661538] CR2: 00007f3fa494e6e0 CR3: 000000036adfe000 CR4: 00000000001406f0
[10270.661551] Stack:
[10270.661555] ffff88036ade4000 ffff8803ac33f830 0000000000000000 0000000000000004 [10270.661569] 0000000000000003 0000000000000000 0000000001ba6cb0 ffff880393f5d808 [10270.661584] ffff88036ac9b9f8 ffff88036ac9bc20 ffffffffa0d0ee95 ffff8804037d7e40
[10270.661599] Call Trace:
[10270.661611] [<ffffffffa0d0ee95>] i915_gem_execbuffer_relocate_vma.isra.11+0x87/0xcb [i915]
[10270.661631]  [<ffffffffa0c88c8a>] ? i915_vma_bind+0x10a/0x1f0 [i915]
[10270.661647] [<ffffffffa0c8f8da>] ? i915_gem_object_do_pin+0xa7a/0xaf0 [i915]
[10270.661664]  [<ffffffffa0c8f98a>] ? i915_gem_object_pin+0x3a/0x40 [i915]
[10270.661680] [<ffffffffa0c7e9a9>] ? i915_gem_execbuffer_reserve_vma.isra.6+0x99/0x160 [i915] [10270.661699] [<ffffffffa0c7edcf>] ? i915_gem_execbuffer_reserve.isra.7+0x35f/0x3c0 [i915] [10270.661716] [<ffffffffa0c7f9b4>] i915_gem_do_execbuffer.isra.13+0xb84/0x13a0 [i915]
[10270.661734]  [<ffffffffa0c80e17>] i915_gem_execbuffer2+0xd7/0x230 [i915]
[10270.661761]  [<ffffffffa068c652>] drm_ioctl+0x152/0x540 [drm]
[10270.661785] [<ffffffffa0c80d40>] ? i915_gem_execbuffer+0x300/0x300 [i915]
[10270.661798]  [<ffffffff810f2d8d>] ? __audit_syscall_exit+0x1dd/0x260
[10270.661810]  [<ffffffff811c59d8>] do_vfs_ioctl+0x288/0x470
[10270.661820]  [<ffffffff810f2b6b>] ? __audit_syscall_entry+0xab/0xf0
[10270.661831]  [<ffffffff810027db>] ? do_audit_syscall_entry+0x4b/0x70
[10270.661843]  [<ffffffff811c5c39>] SyS_ioctl+0x79/0x90
[10270.661852]  [<ffffffff81525a1b>] entry_SYSCALL_64_fastpath+0x16/0x6e
[10270.661863] Code: ff 81 e0 08 00 00 48 ba 00 00 00 00 00 16 00 00 48 01 d0 48 ba 00 00 00 00 00 88 ff ff 48 c1 f8 06 48 c1 e0 0c 48 01 d0 8b 55 d0 <44> 89 2c 10 49 89 d0 49 8b 57 28 80 7a 2a 07 0f 86 fc fe ff ff [10270.661932] RIP [<ffffffffa0d0ed29>] i915_gem_execbuffer_relocate_entry+0x605/0x6ea [i915]
[10270.661954]  RSP <ffff88036ac9b990>
[10270.666723] ---[ end trace 52de0a0f139c19d6 ]---
[10271.132767] note: vkcube[32542] exited with preempt_count 1

I did not check for rendering as I ran this remotely. I can have a look at that tonight.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to