From owner-freebsd-x11@FreeBSD.ORG Tue Jun 11 08:34:37 2013 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 06265C64 for ; Tue, 11 Jun 2013 08:34:37 +0000 (UTC) (envelope-from osidorkin@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id D52C31447 for ; Tue, 11 Jun 2013 08:34:36 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so4365853iec.13 for ; Tue, 11 Jun 2013 01:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=bHEvOEq4FWAApCQtnMHiIHxR9IBvmGSpj+fQDuXiMOM=; b=wmdtr0dZHcg9Ztjc54GNy2o9bI63H4nxDyieDQXNF5crQlFLObnzWg2LOYZK1XHIpn 3w/Yl+kaauPkDgFJ9E/hZvPNXAnzhMagkpTeLIsnLYoTsAJ+BxPxUs1lUbt7tCAiuu8s LGFeHxN2aRrlDyIGNOlItOmhdzh5uU/5BMlIsG+GYiNwzsXJY5YEP9/gsXEtMaBMmmAl xmT6dh1YAi9NqEgpTf7cQP+IFnjLmkP9thFT0Lt+iaxXtubaS595s0w4gCf4sKzxam8p WVkWuslpIzqLAN8WUsoGSJGWi4xGRQt8V+lhz3uIBTKat9aT+9SF7AwyN3niqZ3lSq32 n6Cw== X-Received: by 10.50.50.6 with SMTP id y6mr345924ign.90.1370939676576; Tue, 11 Jun 2013 01:34:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.24.141 with HTTP; Tue, 11 Jun 2013 01:34:16 -0700 (PDT) From: Oleg Sidorkin Date: Tue, 11 Jun 2013 12:34:16 +0400 Message-ID: Subject: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33 To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 08:34:37 -0000 Hello. I'm running recent 9.1/stable with the recent XOrg on the system with G33 chipset. My pciconf -lvb output is here: http://pastebin.com/LDzKzf1i If I add Option "AccelMethod" "sna" to my xorg.conf system panics after few hours: (kgdb) bt #0 doadump (textdump=) at /usr/src/sys/kern/kern_ shutdown.c:272 #1 0xffffffff8050a19f in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:449 #2 0xffffffff8050a6a3 in panic (fmt=0x104
) at /usr/src/sys/kern/kern_shutdown.c:637 #3 0xffffffff80765f77 in vm_page_insert (m=0xfffffe0226126b50, object=0xfffffe0208de8488, pindex=3) at /usr/src/sys/vm/vm_page.c:914 #4 0xffffffff814a889d in i915_gem_pager_fault (vm_obj=0xfffffe0208de8488, offset=3, prot=, mres=0xffffff824705b680) at /usr/src/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1429 #5 0xffffffff80747fe3 in dev_pager_getpages (object=0xfffffe0208de8488, ma=0xffffff824705b680, count=1, reqpage=) at /usr/src/sys/vm/device_pager.c:260 #6 0xffffffff80754bb6 in vm_fault_hold (map=0xfffffe000c247188, vaddr=34458505216, fault_type=2 '\002', fault_flags=0, m_hold=0x0) at vm_pager.h:128 #7 0xffffffff80756ca3 in vm_fault (map=0xfffffe000c247188, vaddr=34458505216, fault_type=, fault_flags=0) at /usr/src/sys/vm/vm_fault.c:229 #8 0xffffffff8078e01f in trap_pfault (frame=0xffffff824705bc40, usermode=1) at /usr/src/sys/amd64/amd64/trap.c:762 #9 0xffffffff8078e864 in trap (frame=0xffffff824705bc40) (kgdb) bt full #0 doadump (textdump=) at /usr/src/sys/kern/kern_shutdown.c:272 No locals. #1 0xffffffff8050a19f in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:449 _ep = (struct eventhandler_entry *) 0x0 _el = (struct eventhandler_list *) 0xfffffe0009c7f700 first_buf_printf = 1 #2 0xffffffff8050a6a3 in panic (fmt=0x104
) at /usr/src/sys/kern/kern_shutdown.c:637 td = (struct thread *) 0x0 bootopt = newpanic = ap = {{gp_offset = 8, fp_offset = 48, overflow_arg_area = 0xffffff824705b570, reg_save_area = 0xffffff824705b490}} panic_cpu = 3 buf = "vm_page_insert: page already inserted", '\0' #3 0xffffffff80765f77 in vm_page_insert (m=0xfffffe0226126b50, object=0xfffffe0208de8488, pindex=3) at /usr/src/sys/vm/vm_page.c:914 root = 0x0 #4 0xffffffff814a889d in i915_gem_pager_fault (vm_obj=0xfffffe0208de8488, offset=3, prot=, mres=0xffffff824705b680) (kgdb) up 4 #4 0xffffffff814a889d in i915_gem_pager_fault (vm_obj=0xfffffe0208de8488, offset=3, prot=, mres=0xffffff824705b680) at /usr/src/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1429 1429 vm_page_insert(m, vm_obj, OFF_TO_IDX(offset)); (kgdb) p vm_obj $1 = 0xfffffe0208de8488 (kgdb) p m->object $2 = 0xfffffe0208de8488 It works fine for weeks without Option "AccelMethod" "sna". I replaced vm_page_insert(m, vm_obj, OFF_TO_IDX(offset)); with the code if (m->object==NULL){ vm_page_insert(m, vm_obj, OFF_TO_IDX(offset)); } else{ if(m->object!=vm_obj) panic("i915_gem_pager_fault: tried to assign already assigned page to the different object"); } and it worked with SNA enabled for about a week with no problems. But I'm not sure that is a good solution. I can provide additional info if required. Thanks -- Oleg Sidorkin