PCI Radeon 9250 - DRI/DRM in 8.0-RELEASE
rnoland at FreeBSD.org
Sat Dec 19 18:09:42 UTC 2009
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.
> > -----Original Message-----
> > From: Robert Noland [mailto:rnoland at FreeBSD.org]
> > Sent: Saturday, December 12, 2009 11:43 AM
> > To: greg at rowes.org
> > Cc: 'Steve Polyack'; 'Andriy Gapon'; freebsd-x11 at 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 at comcast.net]
> > > > Sent: Friday, December 11, 2009 11:11 PM
> > > > To: Andriy Gapon
> > > > Cc: Greg Rowe; rnoland at freebsd.org; freebsd-x11 at 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 <rnoland at FreeBSD.org>
> > FreeBSD
Robert Noland <rnoland at FreeBSD.org>
More information about the freebsd-x11