Re: fence_wait returned with error -512

Johannes Lundberg <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <CAECmPwvuq9K=gYO3jNYVo2=mwr3mENdzwzBLNmnaVpEAFZtiww@mail.gmail.com>
Change here
https://github.com/FreeBSDDesktop/freebsd-base/commit/8efc2b3f05053bd7c6d2c0b6e0fbde9ffc58bbe5

We need to patch drm-devel and drm-legacy. drm-{stable,next} does not use
these macros so they don't need change.
I don't want to add more conditions in the code so devel and legacy is >=
338948.

I'll do the patch today. Let's continue this on gitter.


On Thu, Sep 27, 2018 at 1:25 PM Niclas Zeising <[email protected]>
wrote:

> On 9/27/18 10:19 PM, Steve Kargl wrote:
> > On Thu, Sep 27, 2018 at 10:17:02PM +0200, Niclas Zeising wrote:
> >> On 9/27/18 9:04 PM, Steve Kargl wrote:
> >>> On Thu, Sep 27, 2018 at 09:13:46AM +0200, Niclas Zeising wrote:
> >>>> On 9/27/18 3:41 AM, Steve Kargl wrote:
> >>>>> On Wed, Sep 26, 2018 at 04:45:10PM -0700, Johannes Lundberg wrote:
> >>>>>>
> >>>>>> 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.
> >>>>>>
> >>>>>
> >>>>> I'll see if I can pull the source tomorrow.
> >>>>>
> >>>>
> >>>> Hi!
> >>>> The port has been updated with the latest version of
> drm-legacy-kmod.  I
> >>>> don't exactly know when packages are updated, but you can build it
> from
> >>>> ports in the meantime.
> >>>> Regards
> >>>
> >>> Ugh.  Seems I have to build a new world. :(
> >>>
> >>>
> >>> --- i915_drv.o ---
> >>>
> /usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-226834b/src/dev/drm2/i915/i915_drv.c:1240:26:
> error: too few arguments provided to function-like macro invocation
> >>>       nitems(pciidlist) - 1);
> >>>                            ^
> >>> /usr/src/sys/sys/module.h:181:9: note: macro 'MODULE_PNP_INFO' defined
> here
> >>> #define MODULE_PNP_INFO(d, b, unique, t, l, n)
>   \
> >>>           ^
> >>>
> /usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-226834b/src/dev/drm2/i915/i915_drv.c:1239:1:
> error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
> >>> MODULE_PNP_INFO("U32:vendor;U32:device;P:#;D:#", vgapci, i915,
> pciidlist,
> >>> ^
> >>> 2 errors generated.
> >>> *** [i915_drv.o] Error code 1
> >>>
> >>
> >> Or someone broke something inadvertently.  Which revision are you
> >> currently on?
> >
> > % uname -a
> > FreeBSD troutmask.apl.washington.edu 12.0-ALPHA7 FreeBSD 12.0-ALPHA7
> r338862 HPC  amd64
> >
>
> You probably need to move past r338948, I'm afraid.  I'm not sure that
> drm-legacy-kmod can be changed to work both on the before and after
> version.
> Regards
> --
> Niclas
>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.