From owner-freebsd-x11@FreeBSD.ORG Mon Dec 28 15:29:05 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFA9B106566C; Mon, 28 Dec 2009 15:29:05 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 10EEE8FC20; Mon, 28 Dec 2009 15:29:04 +0000 (UTC) Received: by fxm27 with SMTP id 27so10186610fxm.3 for ; Mon, 28 Dec 2009 07:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZG4a5uUHrTwc8PqqZctMvnjItVcnulU6ip+2SbEZ/yE=; b=SXV8f1dMDorfy4VGPGyYhYAS5ybLu1nZEbtbT3Wm5Uz33tExjPAcjb9w9brQDvzFyg 3RhorMg6vtxX61K0pdXw2xMr4PjJ6rL7WvRShBmll6uJl3tz/H/IcDeCCulMLdr2btIQ eMKTphP6J6kBIVmrAdfZxfPCb/cL8JNPvhZDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iaEs1IWCZFh7Nn8uePK0X+bDLobhrQ9CB3I8s6f0pI51R3QHQ86dhIrJ8Crr8rwiLP /r2fGN62D+lKkxp4FkR3gV1WyVsSPIX/d+AQ1sBHK060VLGxbzA/9WSuJCnrcU54UZ5u gJkdABxgUxalqKj1kFfFV9zjKXbarbTqqF0/s= MIME-Version: 1.0 Received: by 10.239.185.76 with SMTP id b12mr1758652hbh.53.1262014138296; Mon, 28 Dec 2009 07:28:58 -0800 (PST) In-Reply-To: <1261972205.2220.3468.camel@balrog.2hip.net> References: <1261934521.2220.2834.camel@balrog.2hip.net> <1261942898.2220.2976.camel@balrog.2hip.net> <1261972205.2220.3468.camel@balrog.2hip.net> Date: Mon, 28 Dec 2009 13:28:58 -0200 Message-ID: From: "Carlos A. M. dos Santos" To: Robert Noland Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org Subject: Re: x11perf -all leads to Xorg crash on 8-STABLE X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2009 15:29:05 -0000 On Mon, Dec 28, 2009 at 1:50 AM, Robert Noland wrote: > On Sun, 2009-12-27 at 23:35 -0200, Carlos A. M. dos Santos wrote: >> I just noticed that the CONFIGURE_ARGS in x11/pixman should disable >> sse2 on AMD64, but this is not working: >> >> > #0 0x000000080107c255 in pixman_blt_sse2 (src_bits=3D0x81344f000, >> > dst_bits=3D0x804000000, src_stride=3D2400, >> > dst_stride=3D4096, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y= =3D576, >> > dst_x=3D3, dst_y=3D3, width=3D10, height=3D9) >> > at pixman-sse2.c:5330 >> >> I rebuilt and reinstalled the pixman with >> >> # cd /usr/ports/x11/pixman >> # make BATCH=3Dyes CONFIGURE_ARGS=3D'--disable-vmx --disable-arm-simd >> --disable-mmx --disable-sse2' FORCE_PKG_REGISTER=3Dyes install >> >> This did not solve the problem, just gave me a different kind of crash: > > How about updating pixman? Patch attached. It may not be an issue in > pixman, though. I can't tell exactly what is invalid from the trace. > If you run it with drm debugging enabled, does drm return an error that > is triggering the server to abort? What GPU is this on? Updating pixman did not help: Program received signal SIGSEGV, Segmentation fault. 0x000000080107d215 in pixman_blt_sse2 (src_bits=3D0x81364f000, dst_bits=3D0x804200000, src_stride=3D2400, dst_stride=3D4096, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576, dst_x=3D3, dst_y=3D3, width=3D10, height=3D9) at pixman-sse2.c:5358 5358 *(uint32_t *)d =3D *(uint32_t *)s; (gdb) print d $26 =3D (uint8_t *) 0x80420300c "=EF=BF=BD=EF=BF=BD=EF=BF=BD" (gdb) print s $27 =3D (uint8_t *) 0x8137a1100 The GPU is Intel 945GM Program received signal SIGSEGV, Segmentation fault. 0x000000080107d215 in pixman_blt_sse2 (src_bits=3D0x81364f000, dst_bits=3D0x804200000, src_stride=3D2400, dst_stride=3D4096, src_bpp=3D32, dst_bpp=3D32, src_x=3D576, src_y=3D576, dst_x=3D3, dst_y=3D3, width=3D10, height=3D9) at pixman-sse2.c:5358 5358 *(uint32_t *)d =3D *(uint32_t *)s; (gdb) print d $26 =3D (uint8_t *) 0x80420300c "=EF=BF=BD=EF=BF=BD=EF=BF=BD" (gdb) print s $27 =3D (uint8_t *) 0x8137a1100 Enabling DRM debug I get this: [drm:pid14907:drm_modeset_ctl] pre-modeset, crtc 1 [drm:pid14907:drm_vblank_get] enabling vblank on crtc 1, ret: 0 [drm:pid14907:drm_update_vblank_count] enabling vblank interrupts on crtc 1, missed 776 [drm:pid14907:drm_ioctl] pid=3D14907, cmd=3D0xc0086444, nr=3D0x44, dev 0xffffff0001560b00, auth=3D1 [drm:pid14907:i915_emit_irq] emitting: 827225 [drm:pid14907:drm_ioctl] pid=3D14907, cmd=3D0x80046445, nr=3D0x45, dev 0xffffff0001560b00, auth=3D1 [drm:pid14907:drm_ioctl] pid=3D14907, cmd=3D0x2000641f, nr=3D0x1f, dev 0xffffff0001560b00, auth=3D1 [drm:pid14907:drm_ioctl] no function pid 14907 (Xorg), uid 0: exited on signal 6 (core dumped) [drm:pid14907:drm_close] open_count =3D 1 [drm:pid14907:drm_close] pid =3D 14907, device =3D 0xffffff0001560b00, open_count =3D 1 [drm:pid14907:drm_close] Process 14907 dead, freeing lock for context 5 [drm:pid14907:drm_lastclose] The GPU is Intel 945GM hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x30aa103c chip=3D0x27a08086 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller' class =3D bridge subclass =3D HOST-PCI vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x30aa103c chip=3D0x27a28086 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Mobile 945GM/GU Express Integrated Graphics Controller' class =3D display subclass =3D VGA vgapci1@pci0:0:2:1: class=3D0x038000 card=3D0x30aa103c chip=3D0x27a68086 rev=3D0x03 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Mobile 945GM/GU Express Integrated Graphics Controller' class =3D display BTW, the problem does not seem to be specific to Intel GPU or FreeBSD. I also get a X server crash by running x11perf -shmputxy10 on another machine running Ubuntu 8.10, with a nVidia GPU: 00:05.0 VGA compatible controller: nVidia Corporation C51 [Geforce 6150 Go] (rev a2) Subsystem: Hewlett-Packard Company Device 30b7 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 18 Memory at b2000000 (32-bit, non-prefetchable) [size=3D16M] Memory at c0000000 (64-bit, prefetchable) [size=3D256M] Memory at b1000000 (64-bit, non-prefetchable) [size=3D16M] [virtual] Expansion ROM at 40000000 [disabled] [size=3D128K] Capabilities: Kernel driver in use: nvidia Kernel modules: nvidiafb, nvidia