fence_wait returned with error -512

Johannes Lundberg johalun0 at gmail.com
Wed Sep 26 23:45:24 UTC 2018


On Wed, Sep 26, 2018 at 16:20 Steve Kargl <sgk at troutmask.apl.washington.edu>
wrote:

> On Wed, Sep 26, 2018 at 02:32:24PM -0700, Johannes Lundberg wrote:
> > On Wed, Sep 26, 2018 at 10:01 Steve Kargl <
> sgk at troutmask.apl.washington.edu>
> > wrote:
> >
> > > Because drm2 in the base system is going away, I install
> > > drm-stable-kmod.  In doing so, I also removed the old drm2
> > > modules under /boot/kernel to ensure that I picked up the
> > > modules from /boot/modules.  To /etc/rc.conf, I added the
> > > line 'kld_list=/bootmodules/radeonkms.ko'.  Upon reboot,
> > > I see
> > >
>
> (snip)
>
> > >
> > > My console and /var/log/messages now contains a slew of
> > >
> > > fence_wait returned with error -512
> > >
> > > This message is coming from /boot/modules/drm.ko
> > >
> > > % strings /boot/modules/drm.ko  | grep fence_wait
> > > fence_wait returned with error %d
> > >
> > > Why?
> >
> > From what I found on Wikipedia your hardware seem to be from 2010. The
> new
> > drm based on linuxkpi is not guaranteed to work with that old hardware.
> If
> > drm2 worked for you before it’s best to use the pkg drm-legacy-kmod
> (which
> > is the same as drm2 in base).
> >
> > Firmware loading is broken but an update is on its way to fix this.
>
> Yes, drm2 in base worked.  Is the update days or weeks away?
> Switching from possibly broken drm-stable-kmod to possibly
> crippled drm-legacy-kmod seems dubious.
>

drm-stable-kmod is not broken, you’re using it on unsupported hardware.

I’ve attached what I think is the correct ports patch for this if you want
to build yourself. I don’t know when the package will be updated but it
will definitely be before 12 is released.

You can also always clone the git repo and build from there for latest
version.
github.com/freebsddesktop/drm-legacy

I don’t have the hardware to test myself so I’d be grateful if you can give
the patch a try and see if firmware loading works.


[image: File]
ports.graphics.drm-legacy-kmo…
<https://drive.google.com/open?id=13QFQJan0EssmB1gbbbvdvt8xqA4V_Hs8>


> --
> Steve
>


More information about the freebsd-x11 mailing list