From owner-freebsd-x11@FreeBSD.ORG Sat Feb 5 06:08:51 2011 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 0A723106566B for ; Sat, 5 Feb 2011 06:08:51 +0000 (UTC) (envelope-from miwi.freebsd@googlemail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B2D778FC08 for ; Sat, 5 Feb 2011 06:08:50 +0000 (UTC) Received: by gxk8 with SMTP id 8so1244348gxk.13 for ; Fri, 04 Feb 2011 22:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=9gYF2hxss+pwypd7OMyRIEBbP7V7mXesNNWJgmCtick=; b=Jj4ezCVqq+cx4TxMl/PPdKGKldF2FWfM3+jaew2DHfC5wu+w3wqe/jtAAWjoZuaEkB eU3DL9sk1IMvnscQpABHzkDvqkkNYCn5seUScypgtgh3tAi+raZVArzOhC7v3f/0uyJb KeR4Iq4GnPX2jvrl9zxMHX5UE7HGc+jhonajk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=Jf9CxqG4ejI7uCr5/zY+f1CTzNrj2p6t3USQLhdWtKx/gLMpw3418Gyjo3FiMvlzBW yoSjPS43ZWjP/iLj4eaXNSVzpd4DntrPgHgb4GGThiLKZDF+YS2m++fc2GZ+sn0rdmdF Q7F+EkG0Ep7aXfl+JaC3AP6Erp4nBgwS+wP+E= MIME-Version: 1.0 Received: by 10.91.17.29 with SMTP id u29mr16340500agi.87.1296884278653; Fri, 04 Feb 2011 21:37:58 -0800 (PST) Sender: miwi.freebsd@googlemail.com Received: by 10.90.50.7 with HTTP; Fri, 4 Feb 2011 21:37:58 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Feb 2011 13:37:58 +0800 X-Google-Sender-Auth: B9LQsnOfpHehVIjL7iLVG5YAqTY Message-ID: From: Martin Wilke To: Warren Block Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-x11@freebsd.org Subject: Re: xf86-video-ati 6.14.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: miwi@FreeBSD.org List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 06:08:51 -0000 Warren, thx i've added ur patch in my cft. On Sat, Feb 5, 2011 at 8:47 AM, Warren Block wrote: > A quick update of the 6.13.2 port to build the just-released 6.14.0 ati > video driver had problems with a Radeon 4650 with VGA, DVI, and HDMI ports. > > X starts, goes to a black screen... and that's it. The machine is still > alive, but video is not working until a reset. The X log says: > > ... > (II) RADEON(0): Acceleration enabled > (**) RADEON(0): DPMS enabled > (==) RADEON(0): Silken mouse enabled > (II) RADEON(0): Set up textured video > Output CRT2 disable success > Segmentation fault: 11 at address 0x168 > > Fatal server error: > Caught signal 11 (Segmentation fault: 11). Server aborting > > This happens on line 1840 of atombios_output.c, inside > atombios_pick_dig_encoder. The first two outputs are fine, but output->crtc > is null for the HDMI output. > > This happens due to output->crtc being null for the HDMI connector on line > 1840 of atombios_output.c. The other two outputs are set first, without > problems. > > A quick hack to check for a null crtc pointer lets X start and work, > although of course the HDMI output is probably not functional. Again, this > is a quick hack that doesn't fail but doesn't fix the problem of the crtc > being null. No idea why that's not set correctly, or whether it's the fault > of FreeBSD, which is why I'm posting this here rather than on the x.orgbugzilla. If anyone can help confirm or fix this, I can post a bug report > in the appropriate place. > > --- src/atombios_output.c.orig 2011-01-27 10:05:58.000000000 -0700 > +++ src/atombios_output.c 2011-02-04 17:41:32.000000000 -0700 > @@ -1836,8 +1836,12 @@ > } > > if (IS_DCE32_VARIANT) { > - RADEONCrtcPrivatePtr radeon_crtc = output->crtc->driver_private; > - radeon_output->dig_encoder = radeon_crtc->crtc_id; > + if (output->crtc) { > + RADEONCrtcPrivatePtr radeon_crtc = > output->crtc->driver_private; > + radeon_output->dig_encoder = radeon_crtc->crtc_id; > + } else { > + ErrorF("WB: crtc for %s output is null!\n", output->name); > + } > return; > } > > _______________________________________________ > 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" >