Re: DRM-current-kmod is still a problem at r353339

From: Clay Daniels Jr. <clay.daniels.jr_at_gmail.com>
Date: Wed, 23 Oct 2019 14:50:59 -0500
r353709
Looked promising, but failed:

Loaded r353709
make install drm-kmod, all 3 installed
(drm-devel-kmod, drm-current-kmod, & gpu-firmware-kmod)
set /etc/rc.conf & /boot/loader.conf configs as usual
rebooted and looked good, video tingling
pkg install xorg
rebooted and ran startx

panic: vm_page_assert_xbusied: page 0xfffffe0005057500 not exclusive busy _at_
/usr/src/sys/vm/vm_page.c

System: Ryzen 7 3700X, MSI 570 series motherboard & video card

Thanks for trying,
Clay

On Wed, Oct 23, 2019 at 3:42 AM Niclas Zeising <zeising+freebsd_at_daemonic.se>
wrote:

> On 2019-10-21 10:13, Niclas Zeising wrote:
> > On 2019-10-17 23:05, Mark Johnston wrote:
> >> On Thu, Oct 17, 2019 at 10:31:12PM +0200, Niclas Zeising wrote:
> >>> On 2019-10-17 21:53, markj_at_freebsd.org wrote:
> >>>> On Thu, Oct 17, 2019 at 03:03:51PM +0200, Niclas Zeising wrote:
> >>>>> On 2019-10-16 18:57, Neel Chauhan wrote:
> >>>>>> While drm-current-kmod worked for a little while, it broke with
> >>>>>> r353645.
> >>>>>>
> >>>>>> https://i.imgur.com/Q5nYZf2.jpg
> >>>>>>
> >>>>>> I'm using the same HP Spectre that I used earlier (where it worked
> >>>>>> and
> >>>>>> where it panicked).
> >>>>>>
> >>>>>
> >>>>> That commit looks unrelated, it touches the wbwd and superio drivers,
> >>>>> nothing else.  Any chance you can bisect exactly which revision that
> >>>>> caused the new issues?
> >>>>
> >>>> I believe it was the recent work on the vm page busy state, r353539
> >>>> specifically.  This patch should fix it; we don't yet have a
> >>>> __FreeBSD_version number bump on which to gate the patch.
> >>>>
> >>>> diff --git a/linuxkpi/gplv2/src/linux_page.c
> >>>> b/linuxkpi/gplv2/src/linux_page.c
> >>>> index e2b85c45c..060ae85ed 100644
> >>>> --- a/linuxkpi/gplv2/src/linux_page.c
> >>>> +++ b/linuxkpi/gplv2/src/linux_page.c
> >>>> _at__at_ -239,7 +239,7 _at__at_ retry:
> >>>>                page = vm_page_lookup(devobj, i);
> >>>>                if (page == NULL)
> >>>>                    continue;
> >>>> -            if (vm_page_sleep_if_busy(page, "linuxkpi"))
> >>>> +            if (!vm_page_busy_acquire(page, VM_ALLOC_WAITFAIL))
> >>>>                    goto retry;
> >>>>                cdev_pager_free_page(devobj, page);
> >>>>            }
> >>>
> >>> Hi!
> >>> Hopefully someone can confirm that this patch to drm-current-kmod or
> >>> drm-devel-kmod fixes the issue.  I won't be able to work on this before
> >>> the weekend at the earliest, I'm afraid.
> >>> Mark, is it possible to get a belated version bump for this fix, and
> >>> what changed to require it?
> >>
> >> I committed the bump and verified the patch on amdgpu.  Here are some
> >> PRs for the drivers:
> >>
> >> https://github.com/FreeBSDDesktop/kms-drm/pull/180
> >> https://github.com/FreeBSDDesktop/kms-drm/pull/181
> >
> > Hi!
> > I'm working on getting this into the versions that are in ports.  For
> > drm-current-kmod it's fairly simple, but for drm-devel-kmod there are
> > unrelated changes which I need to check if they are ready to go in or
> > not, so it will take some more time.
> >
> > Looking at the mail list thread, there seems to be a patch needed for
> > base as well, has this been committed?
>
> drm-devel-kmod and drm-current-kmod has been updated with the above fix.
> If there are further issues, please let us know.
> Regards
> --
> Niclas
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Wed Oct 23 2019 - 17:51:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC