New AMD drm code

Adam K Kirchhoff akirchhoff135014 at comcast.net
Mon Mar 11 14:10:21 UTC 2013


On Mon, 11 Mar 2013 00:18:58 -0400
"J.R. Oldroyd" <fbsd at opal.com> wrote:

> On Sun, 10 Mar 2013 20:39:46 -0400 Adam K Kirchhoff
> <adam.k.kirchhoff at gmail.com> wrote:
> >
> > 
> > I'm wondering if there is some secret to getting the new radeon drm
> > code up and running.  I realize it's currently very experimental,
> > but I have a number of machines and cards I can test with. 
> > 
> > I've tried using both a standard -CURRENT kernel and one built from
> > here: 
> > 
> > https://github.com/dumbbell/freebsd
> > 
> > However, in both cases, the radeon kernel module does not attach to
> > my HD6950 when I load it.  In fact, a quick look at
> > ways/dev/drm2/drm_pciids.h doesn't seem to show any newer Radeon HD
> > gpus.
> > 
> > I have the feeling I'm missing something obvious..
> > 
> > Thanks.
> > 
> > Adam
> 
> Jean-Sébastien has the code working on -current, and I just about
> have it working on 9.1-release.
> 
> For both, you'll need the sys/dev/drm2 code from his git (at the
> URL you gave above), not the code in head.
> 
> For 9.x, you'll also need a handful of changes to sys/vm and
> sys/dev/iicbus and probably another bugfix or two that we haven't
> worked out yet.  I can send this as a diff to anyone who's
> interested.
> 
> Your Cayman PRO is there in the drm_pciids.h file (line 491), so
> it is supported in the original Linux code.  There's a lot of code
> specific to the cayman cards, however not all of it may have been
> ported yet.  If you see lots of "#ifdef DUMBBELL_WIP"s in the
> cayman code, that means work is still to be done.

OK, I am definitely missing something, because
https://github.com/dumbbell/freebsd/blob/master/sys/dev/drm2/drm_pciids.h
shows that line 491 is blank, which is the same thing I'm seeing on my
checked out version.

> You could post your dmesg to show what's happening when you load
> the module.

Nothing happens.  kldstat shows that the radeon module gets loaded, but
nothing shows up in dmesg.

> Note that if the module loads ok, syscons goes blank because there
> is no support in it for KMS yet.  You'll need to ssh in to start
> an X server or run a script to both load the module and start X.

Yeah, the screen never goes blank here.

Is there something that has to be done with the code in sys/dev/drm2/
before it can be used?

Adam


More information about the freebsd-x11 mailing list