Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbbKVUtP (ORCPT ); Sun, 22 Nov 2015 15:49:15 -0500 Received: from mail-ig0-f172.google.com ([209.85.213.172]:38374 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbbKVUtO (ORCPT ); Sun, 22 Nov 2015 15:49:14 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 22 Nov 2015 15:49:13 -0500 X-Google-Sender-Auth: EibkVlmal21f9VLXL9PSqdp2Smo Message-ID: Subject: Re: nouveau: iowrite32 oops & warning at drivers/gpu/drm/nouveau/nouveau_fence.c:198 From: Ilia Mirkin To: Tommi Rantala Cc: "nouveau@lists.freedesktop.org" , Ben Skeggs , LKML , DRI Development , trinity@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9565 Lines: 192 Hi Tommi, Not sure if these apply here but there are a couple of outstanding locking fixes available in http://cgit.freedesktop.org/~darktama/nouveau/ -- specifically these two: http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=2f3a56ad019e378a352e9cb7a559f478826f1a87 http://cgit.freedesktop.org/~darktama/nouveau/commit/?id=4179b15c6e9fcfb253e811e5477debe46c84c395 Not sure if they affect this particular issue, but thought I'd point it out. Are you fuzzing with multiple threads, or just one at a time? Do you have a branch somewhere public with the changes to add nouveau ioctl support to trinity? Cheers, -ilia On Sun, Nov 22, 2015 at 3:30 PM, Tommi Rantala wrote: > Hello, > > I'm seeing this warning and oops when trying to fuzz linus > v4.4-rc1-290-g3ad5d7e with trinity. > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 4308 at > drivers/gpu/drm/nouveau/nouveau_fence.c:198 > nouveau_fence_context_new+0x22e/0x270() > CPU: 1 PID: 4308 Comm: trinity-c19 Tainted: G B 4.4.0-rc1+ #1 > Hardware name: Dell Inc. OptiPlex 990/0D6H9T, BIOS A06 07/25/2011 > 0000000000000009 ffff8800ac4bf8b0 ffffffff818a802e 0000000000000000 > ffff8800ac4bf8f0 ffffffff8111bc75 ffffffff820170be ffff8800ac9c1050 > ffff88015b0e8cc0 ffff8800ca703070 ffff88016f432130 ffff8800afb675f0 > Call Trace: > [] dump_stack+0x4b/0x6d > [] warn_slowpath_common+0x95/0xd0 > [] ? nouveau_fence_context_new+0x22e/0x270 > [] warn_slowpath_null+0x15/0x20 > [] nouveau_fence_context_new+0x22e/0x270 > [] ? nouveau_fence_context_free+0x20/0x20 > [] ? kasan_kmalloc+0x5e/0x70 > [] ? kmem_cache_alloc_trace+0x123/0x290 > [] ? nv84_fence_context_new+0x73/0x2d0 > [] nv84_fence_context_new+0x9d/0x2d0 > [] nvc0_fence_context_new+0x11/0x70 > [] nouveau_channel_new+0x7e1/0xca0 > [] ? create_object+0x28c/0x4d0 > [] ? nouveau_channel_prep+0x4b0/0x4b0 > [] ? create_object+0x406/0x4d0 > [] ? kmemleak_disable+0x70/0x70 > [] ? nouveau_abi16_get+0x37/0x80 > [] ? trace_hardirqs_on_caller+0x16/0x280 > [] ? kasan_unpoison_shadow+0x36/0x50 > [] ? kasan_unpoison_shadow+0x36/0x50 > [] ? kmem_cache_alloc_trace+0x123/0x290 > [] ? nouveau_abi16_ioctl_channel_alloc+0xec/0x4d0 > [] nouveau_abi16_ioctl_channel_alloc+0x1ae/0x4d0 > [] ? nouveau_abi16_ioctl_setparam+0x10/0x10 > [] drm_ioctl+0x20b/0x6b0 > [] ? debug_lockdep_rcu_enabled+0x26/0x40 > [] ? drm_ioctl_permit+0x120/0x120 > [] ? trace_hardirqs_on+0xd/0x10 > [] nouveau_drm_ioctl+0x99/0x110 > [] do_vfs_ioctl+0x4ae/0x800 > [] ? selinux_file_ioctl+0x1f9/0x2d0 > [] ? ioctl_preallocate+0x140/0x140 > [] ? selinux_parse_skb.constprop.42+0x7c0/0x7c0 > [] ? do_setitimer+0x28b/0x420 > [] ? alarm_setitimer+0x85/0xe0 > [] ? do_setitimer+0x420/0x420 > [] SyS_ioctl+0x74/0x80 > [] entry_SYSCALL_64_fastpath+0x12/0x6f > ---[ end trace 780046761495600a ]--- > > > > BUG: unable to handle kernel paging request at ffffc90001880000 > IP: [] iowrite32+0x2e/0x40 > PGD 174f36067 PUD 174f37067 PMD 16a13b067 PTE 0 > Oops: 0002 [#1] SMP KASAN > CPU: 3 PID: 4638 Comm: trinity-c19 Tainted: G B W 4.4.0-rc1+ #1 > Hardware name: Dell Inc. OptiPlex 990/0D6H9T, BIOS A06 07/25/2011 > task: ffff8800ab8e1a00 ti: ffff8800ab6c0000 task.ti: ffff8800ab6c0000 > RIP: 0010:[] [] iowrite32+0x2e/0x40 > RSP: 0018:ffff8800ab6c75f8 EFLAGS: 00010292 > RAX: ffffed001940c2b8 RBX: ffffc90001880000 RCX: ffff8800ca0615c7 > RDX: 0000000000000000 RSI: ffffc90001880000 RDI: 0000000000000000 > RBP: ffff8800ab6c7618 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: ffffed001443979e R12: ffff8800ca061590 > R13: 0000000000000000 R14: ffff880152553390 R15: ffffffff833e0220 > FS: 00007f48be30a700(0000) GS:ffff880175800000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffc90001880000 CR3: 00000000ab455000 CR4: 00000000000406e0 > Stack: > ffffffff81f58f8b 0000000000080004 ffff8800ca061590 ffff880169d3a4c0 > ffff8800ab6c76b8 ffffffff81fa3b68 0000000000000000 00000141c1800000 > ffffffff00000001 ffff880000006000 ffffffff00001000 ffff8800ab6c7820 > Call Trace: > [] ? nvkm_instobj_wr32+0x2b/0x40 > [] gf100_fifo_gpfifo_new+0x528/0xa50 > [] nvkm_fifo_class_new+0x58/0x70 > [] ? nvkm_fifo_uevent_ctor+0x50/0x50 > [] nvkm_udevice_child_new+0x63/0x80 > [] nvkm_ioctl_new+0x2aa/0x5e0 > [] ? create_object+0x8c/0x4d0 > [] ? save_stack_address+0x6a/0x70 > [] ? nvkm_ioctl_del+0x110/0x110 > [] ? nvkm_udevice_map+0x90/0x90 > [] ? create_object+0x406/0x4d0 > [] nvkm_ioctl+0x1fb/0x510 > [] ? trace_hardirqs_on_caller+0x16/0x280 > [] ? nvkm_client_map+0x10/0x10 > [] nvkm_client_ioctl+0xd/0x10 > [] nvif_object_ioctl+0xad/0xe0 > [] nvif_object_init+0x160/0x1e0 > [] nouveau_channel_new+0x18d/0xca0 > [] ? create_object+0x28c/0x4d0 > [] ? nouveau_channel_prep+0x4b0/0x4b0 > [] ? create_object+0x406/0x4d0 > [] ? kmemleak_disable+0x70/0x70 > [] ? nouveau_abi16_get+0x37/0x80 > [] ? trace_hardirqs_on_caller+0x16/0x280 > [] ? kasan_unpoison_shadow+0x36/0x50 > [] ? kasan_unpoison_shadow+0x36/0x50 > [] ? kmem_cache_alloc_trace+0x123/0x290 > [] ? nouveau_abi16_ioctl_channel_alloc+0xec/0x4d0 > [] nouveau_abi16_ioctl_channel_alloc+0x1ae/0x4d0 > [] ? nouveau_abi16_ioctl_setparam+0x10/0x10 > [] drm_ioctl+0x20b/0x6b0 > [] ? debug_lockdep_rcu_enabled+0x26/0x40 > [] ? drm_ioctl_permit+0x120/0x120 > [] ? trace_hardirqs_on+0xd/0x10 > [] nouveau_drm_ioctl+0x99/0x110 > [] do_vfs_ioctl+0x4ae/0x800 > [] ? selinux_file_ioctl+0x1f9/0x2d0 > [] ? ioctl_preallocate+0x140/0x140 > [] ? selinux_parse_skb.constprop.42+0x7c0/0x7c0 > [] ? do_setitimer+0x28b/0x420 > [] ? alarm_setitimer+0x85/0xe0 > [] ? do_setitimer+0x420/0x420 > [] SyS_ioctl+0x74/0x80 > [] entry_SYSCALL_64_fastpath+0x12/0x6f > Code: ff ff 03 00 77 25 48 81 fe 00 00 01 00 76 07 0f b7 d6 89 f8 ef > c3 55 48 89 f7 48 c7 c6 e0 39 1e 83 48 89 e5 e8 84 fd ff ff 5d c3 <89> > 3e c3 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 48 81 fe > RIP [] iowrite32+0x2e/0x40 > RSP > CR2: ffffc90001880000 > ---[ end trace 7800467614956062 ]--- > > > Some nouveau messages from the boot, if this helps: > > nouveau 0000:01:00.0: NVIDIA GF119 (0d90a0a1) > nouveau 0000:01:00.0: bios: version 75.19.55.00.02 > nouveau 0000:01:00.0: fb: 1024 MiB DDR3 > [TTM] Zone kernel: Available graphics memory: 2590256 kiB > [TTM] Zone dma32: Available graphics memory: 2097152 kiB > [TTM] Initializing pool allocator > [TTM] Initializing DMA pool allocator > nouveau 0000:01:00.0: DRM: VRAM: 1024 MiB > nouveau 0000:01:00.0: DRM: GART: 1048576 MiB > nouveau 0000:01:00.0: DRM: TMDS table version 2.0 > nouveau 0000:01:00.0: DRM: DCB version 4.0 > nouveau 0000:01:00.0: DRM: DCB outp 00: 02000300 00000000 > nouveau 0000:01:00.0: DRM: DCB outp 01: 01000302 00020030 > nouveau 0000:01:00.0: DRM: DCB outp 02: 02011362 00020010 > nouveau 0000:01:00.0: DRM: DCB outp 03: 04022310 00000000 > nouveau 0000:01:00.0: DRM: DCB conn 00: 00001030 > nouveau 0000:01:00.0: DRM: DCB conn 01: 00002161 > nouveau 0000:01:00.0: DRM: DCB conn 02: 00000200 > [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). > [drm] Driver supports precise vblank timestamp query. > nouveau 0000:01:00.0: DRM: MM: using COPY0 for buffer copies > nouveau 0000:01:00.0: No connectors reported connected with modes > [drm] Cannot find any crtc or sizes - going 1024x768 > nouveau 0000:01:00.0: DRM: allocated 1024x768 fb: 0x60000, bo ffff880169d36e40 > fbcon: nouveaufb (fb0) is primary device > Console: switching to colour frame buffer device 128x48 > nouveau 0000:01:00.0: fb0: nouveaufb frame buffer device > [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/