From owner-freebsd-current@FreeBSD.ORG Fri Jun 14 07:15:47 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2A372AE4; Fri, 14 Jun 2013 07:15:47 +0000 (UTC) (envelope-from artyom.mirgorodsky@gmail.com) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) by mx1.freebsd.org (Postfix) with ESMTP id 7BB261739; Fri, 14 Jun 2013 07:15:46 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id h15so135356eak.14 for ; Fri, 14 Jun 2013 00:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=zyPP2uZUstuInTLTYVzYCHTOn4ktrEqswqnbKeCaqfU=; b=l6y0nuM8RKzB+pr5yVdIGhRSQ21hDZpTZXCEZ1L+PnfpZE2PlPNfg2AxaR36F/2kFZ jkU5pe6ixZIEj3aa+RY4eFlWfvKTtJyzWA/RBOz6fHvxC/Gji4ztlc25Vsa9/jVGLCXq zRnLN/g0dXfGhLaz/ycM+4qA2vmj3v+baqK2DXU+eU5l7EnHGX9s/y7+2ZFBfUJImUMn 6nkjcHVchVxFZ5mkcTPjuxo9EBOilTk3GzDysHx8Xe1hzR/8Mo16RoeCMtBjIsEY0Pz0 34D+DhwGOYSYL8nr0I0Q8EZYTewxFC2xj8RA1jluXMagoQ07H2TVueO306CMZGX0CoAn ujrQ== X-Received: by 10.14.7.2 with SMTP id 2mr1340856eeo.145.1371194144539; Fri, 14 Jun 2013 00:15:44 -0700 (PDT) Received: from notebook.alkar.net (nat1.id-telecom.net. [178.215.171.16]) by mx.google.com with ESMTPSA id 3sm1624965een.7.2013.06.14.00.15.43 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Jun 2013 00:15:43 -0700 (PDT) From: Artyom Mirgorodskiy To: freebsd-x11@freebsd.org Subject: Re: [drm2][panic] Running XOrg with SNA enabled causes system panic after few hours on G33 Date: Fri, 14 Jun 2013 10:16:15 +0300 Message-ID: <4987465.p9MvIyND5v@notebook.alkar.net> User-Agent: KMail/4.10.3 (FreeBSD/10.0-CURRENT; KDE/4.10.3; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Oleg Sidorkin , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 07:15:47 -0000 Thank you! This patch also solve my issue (unable shutdown): http://lists.freebsd.org/pipermail/freebsd-current/2013-May/042011.html On Tuesday 11 June 2013 12:34:16 Oleg Sidorkin wrote: > 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 > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" -- Artyom Mirgorodskiy