From owner-freebsd-x11@FreeBSD.ORG Sat Dec 19 18:09:42 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 4A68E106566B; Sat, 19 Dec 2009 18:09:42 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 20C3E8FC1B; Sat, 19 Dec 2009 18:09:42 +0000 (UTC) Received: from [192.168.1.4] (adsl-156-16-112.bna.bellsouth.net [70.156.16.112]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nBJI9cx0044527 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 19 Dec 2009 13:09:39 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: greg@rowes.org In-Reply-To: <7EE7B533BABE48F7876B0560C84A8238@GregPC> References: <200912111614.47417.greg@rowes.org> <4B22C93D.9000208@icyb.net.ua> <4B2317CF.5080900@comcast.net> <1260636181.2281.35.camel@balrog.2hip.net> <7EE7B533BABE48F7876B0560C84A8238@GregPC> Content-Type: text/plain Organization: FreeBSD Date: Sat, 19 Dec 2009 12:09:33 -0600 Message-Id: <1261246173.2315.20.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@FreeBSD.org, 'John Baldwin' , 'Andriy Gapon' Subject: RE: PCI Radeon 9250 - DRI/DRM in 8.0-RELEASE 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: Sat, 19 Dec 2009 18:09:42 -0000 On Sat, 2009-12-12 at 17:36 -0500, Greg Rowe wrote: > The system is still running the pagezero patch if that makes any difference? Ok, you can get rid of that. I wasn't able to fix this quite like I wanted to, but this should work. The fix that I was intending to do, ended up meaning that I had to work on our mmap implementation, which I did, but won't be committed until it is reviewed. It also required a handful of changes to userland (libdrm, and the DDX driver) and broke the KBI so rebuilding even more stuff was needed. The linux guys would not have been happy with me and I would have had a fight on my hands. This patch implements what I wanted to do on 64 bit platforms. On 32 bit platforms (i386) it comes with some consequences... On amd64, I've adapted the map handle to have an offset of 0 and a globally unique map number starting at bit 40. This means that there are 24 bits for maps and each map can describe 1TB of memory. On i386, I've done the same thing except I am only stealing the top 4 bits for the map id, so there can only be 15 maps each up to 256MB. This should be ok since normally there are only 6 or 7 maps. I have run tested this on r600 amd64 so far. I can test r3/5/6/700, Intel and nouveau, but haven't done so yet. This should be a kernel only fix, meaning you should not need to patch or rebuild any of your userland apps. The patch is applicable to -CURRENT, and should work on 8-STABLE and possibly 7-STABLE. http://people.freebsd.org/~rnoland/drm_mmap_fix.patch robert. > > -----Original Message----- > > From: Robert Noland [mailto:rnoland@FreeBSD.org] > > Sent: Saturday, December 12, 2009 11:43 AM > > To: greg@rowes.org > > Cc: 'Steve Polyack'; 'Andriy Gapon'; freebsd-x11@FreeBSD.org; 'John > > Baldwin' > > Subject: RE: PCI Radeon 9250 - DRI/DRM in 8.0-RELEASE > > > > On Sat, 2009-12-12 at 09:28 -0500, Greg Rowe wrote: > > > My system has a Gigabyte Radeon HD4850 1GB PCI Express Card in it. The > > main > > > board is an ASUS P5N7A-VM, 4GB ram (tested with 2GB also), Intel Core 2 > > Duo > > > E6850, on-board video disabled in the BIOS, and the BIOS is flashed to > > > ASUS's latest release. I'm using a single monitor off the DVI port. > > > > > > I'm running the ATI Radeon driver as it works well with the exception > > of > > > DRI. I've tried the released and development version of the RadeonHD > > driver > > > but both pretty much lock up X. Whether it helps or not, the background > > > garbage on the screen I see with the ATI driver is more visible with the > > hd > > > drivers and it's the ASUS Bios splash screen in tiny font many times > > across > > > the screen. Dmesg and Memcontrol.list from Xorg with DRI enabled is > > > attached. > > > > Actually, I think I see what is going on in your case. Your framebuffer > > is at 0xe0000000 and the ring is being allocated inside the framebuffer > > address space. I'm trying to figure out how this is occurring now. > > > > robert. > > > > > > -----Original Message----- > > > > From: Steve Polyack [mailto:korvus@comcast.net] > > > > Sent: Friday, December 11, 2009 11:11 PM > > > > To: Andriy Gapon > > > > Cc: Greg Rowe; rnoland@freebsd.org; freebsd-x11@freebsd.org; John > > Baldwin > > > > Subject: Re: PCI Radeon 9250 - DRI/DRM in 8.0-RELEASE > > > > > > > > Andriy Gapon wrote: > > > > > on 11/12/2009 23:14 Greg Rowe said the following: > > > > > > > > > >> Robert, > > > > >> I tried the pagezero patch (applied, rebuilt kernel, rebooted, > > Xorg > > > > with DRI > > > > >> enabled) on my system with the Radeon HD4850 and it didn't change > > > > anything. > > > > >> See the attached. Thanks. > > > > >> > > > > > > > > > > Greg, Steve, could you please describe your systems some more? > > > > > Type of CPU, if this is SMP. > > > > > Providing a link to your dmesg should be helpful. > > > > > 'memcontrol list' output could be useful too. > > > > > > > > > > Thanks! > > > > > > > > > > > > > > I have yet to try the patch, but my system is a a ~3Ghz Pentium 4 with > > > > Hyperthreading enabled. Intel chipset (not sure which, but the > > USB/SATA > > > > are the ICH7) with onboard graphics. The Radeon 9250 is a PCI add-on. > > > > I'm also using both outputs on the card (1 VGA, 1 DVI). I've attached > > > > the output of 'dmesg' and 'pciconf -l -v'. > > > > > -- > > Robert Noland > > FreeBSD > > > > -- Robert Noland FreeBSD