Re: Fixed virtual box driver (drm_v5.4.144_6), sort of

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Wed, 23 Mar 2022 15:42:41 UTC
 
Van: Alexander Coers <alexander.coers@gmx.de>
Datum: woensdag, 23 maart 2022 14:39
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: "freebsd-x11@freebsd.org" <freebsd-x11@FreeBSD.org>
Onderwerp: Re: Fixed virtual box driver (drm_v5.4.144_6), sort of
> 
> 
> > Am 23.03.2022 um 10:41 schrieb Ronald Klop <ronald-lists@klop.ws>:
> >
> > Van: Alexander Coers <alexander.coers@gmx.de>
> > Datum: zondag, 20 maart 2022 16:20
> > Aan: "freebsd-x11@freebsd.org" <freebsd-x11@FreeBSD.org>
> > Onderwerp: Fixed virtual box driver (drm_v5.4.144_6), sort of
> >
> > Hi everyone,
> >
> > Since I wanted to know how all things are working out between FreeBSD, DRM and Linux, I skimmed through the source and tested a lot with FBSD13 running in Virtual Box 6.x on FBSD13 host. Now I fixed the Makefiles and found the issue for the kernel panic which happens directly after loading the vbox DRM driver.
> > Within X11 everything looks now okay, multiple monitors as well as different resolutions work, but in the console there is still a bug making it unusable:
> > You can’t see any output, the console is frozen. If you force the repaint of the virtual machine window (moving other windows around or open the „about dialog“ of Virtual Box), the output is drawn. So console works, but the framebuffer output seems to have issues.
> > Do you have an idea where I could look to fix this issue? Is there any more documentation on how DRM works?
> > Also, how should I provide the fix? Diff here in the list, or PR in Github?
> >
> > Best,
> >  Alexander
> >
> >  
> >
> >
> > Hi,
> >
> > This sounds very promising. I think you can ask the maintainer of VirtualBox how to proceed with this: vbox@FreeBSD.org. Or is the driver not in the VirtualBox source.
> > See: https://www.freshports.org/emulators/virtualbox-ose/
> >
> > A possibility is to create a PR in https://bugs.freebsd.org/bugzilla/, but I'm not authoritative in development of the virtualbox software on FreeBSD. ;-)
> >
> > Regards,
> > Ronald.
> >  
> 
> Hi Ronald,
> 
> the driver source is part of the drm-fbsd-kmod repo and the driver behaves always the same on different host systems, like Windows, Linux or FreeBSD. So I think the console issue needs to be fixed somewhere in the drm source, but I have no clue about the inner workings, so any hint or help would be appreciated.
> 
> Best,
>  Alexander
> 
> 
> 
>  
> 
> 
> 


Hi,

Sorry, I don't have knowledge about the inner workings of X. So I hope somebody else answers that question.
But if you post your patch somewhere I'm willing to test it.

Regards,
Ronald.