Nouveau for FreeBSD
Any progress on the FreeBSD front?
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Nouveau kernel module has a largely os-agnostic "core" component (called nvkm/nvif now) which encompasses the actual operation of the GPU. The drm wrapper around it provides the relevant interfaces for KMS/ioctls/etc. Any port would want the ioctl bits as well, since that's what the userspace mesa/ddx components rely on.
That said, I'm not aware of any serious effort to port nouveau to any other OS.
-ilia
Quoted 12 lines · On Wed, Nov 4, 2015 at 2:08 AM, <[email protected]…
Is anyone actually and or actively working on this? Github.com/pathscale/pscnv is totally bitrot but waaay more portable base. Nouveau made hard Linux assumptions that will be difficult to overcome afaik.
*From: *Curtis Hamilton
*Sent: *Wednesday, November 4, 2015 08:06
*To: *[email protected] *Subject: *[Nouveau] Nouveau for FreeBSD
Quoted 9 lines
Any progress on the FreeBSD front?
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 1 line · On 04/11/15 09:08, [email protected] wrote:
Is anyone actually and or actively working on this? Github.com/pathscale/pscnv is totally bitrot but waaay more portable base. Nouveau made hard Linux assumptions that will be difficult to overcome afaik.
As pointed out by Ilia, this is not true anymore. Nouveau can also partially run in the userspace, the hard dependencies on Linux have been abstracted.
Also, pscnv does not support the newest GPUs and receives no further development because everything it provided is now provided by Nouveau.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 8 lines · Martin Peres
On 04/11/15 09:08, [email protected] wrote:
Is anyone actually and or actively working on this? Github.com/pathscale/pscnv is totally bitrot but waaay more portable base. Nouveau made hard Linux assumptions that will be difficult to overcome afaik.
Quoted 5 lines
As pointed out by Ilia, this is not true anymore. Nouveau can also partially run in the userspace, the hard dependencies on Linux have been abstracted.
Also, pscnv does not support the newest GPUs and receives no further development because everything it provided is now provided by Nouveau.
I did mention pscnv was bitrot, but I'm not yet convinced that some of the key things which are implemented in nouveau were done to a comparable level of quality (would need to evaluate and don't have time/interest)
-------
To bring this conversation back on track - where would someone start *exactly* to port this to another OS? What kernel dependencies are there?
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 14 lines · C Bergström
Quoted 8 lines · Martin Peres
On 04/11/15 09:08, [email protected] wrote:
Is anyone actually and or actively working on this? Github.com/pathscale/pscnv is totally bitrot but waaay more portable base. Nouveau made hard Linux assumptions that will be difficult to overcome afaik.
Quoted 5 lines
As pointed out by Ilia, this is not true anymore. Nouveau can also partially run in the userspace, the hard dependencies on Linux have been abstracted.
Also, pscnv does not support the newest GPUs and receives no further development because everything it provided is now provided by Nouveau.
Quoted 8 lines
I did mention pscnv was bitrot, but I'm not yet convinced that some of the key things which are implemented in nouveau were done to a comparable level of quality (would need to evaluate and don't have time/interest)
-------
To bring this conversation back on track - where would someone start *exactly* to port this to another OS? What kernel dependencies are there?
This needs to be ported to the other OS, along with drm and ttm (which I believe have already been ported to all the BSDs):
http://cgit.freedesktop.org/~darktama/nouveau/tree/lib/include/nvif/os.h
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Wasn't there some work being done by François Tigeot or Jean-Sébastien Pédron to port Nouveau to DragonFlyBSD/FreeBSD? Or at least they were talking about porting it at XDC 2014, no idea what the current status is.
Pierre
PS: Looking at François' slides from this year XDC, it seems there isn't much progress about it.
Quoted 26 lines · Martin Peres
Quoted 14 lines · C Bergström
Quoted 8 lines · Martin Peres
On 04/11/15 09:08, [email protected] wrote:
Is anyone actually and or actively working on this? Github.com/pathscale/pscnv is totally bitrot but waaay more portable base. Nouveau made hard Linux assumptions that will be difficult to overcome afaik.
Quoted 5 lines
As pointed out by Ilia, this is not true anymore. Nouveau can also partially run in the userspace, the hard dependencies on Linux have been abstracted.
Also, pscnv does not support the newest GPUs and receives no further development because everything it provided is now provided by Nouveau.
Quoted 8 lines
I did mention pscnv was bitrot, but I'm not yet convinced that some of the key things which are implemented in nouveau were done to a comparable level of quality (would need to evaluate and don't have time/interest)
-------
To bring this conversation back on track - where would someone start *exactly* to port this to another OS? What kernel dependencies are there?
Quoted 7 lines
This needs to be ported to the other OS, along with drm and ttm (which I believe have already been ported to all the BSDs):
http://cgit.freedesktop.org/~darktama/nouveau/tree/lib/include/nvif/os.h
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 3 lines · Pierre Moreau
Wasn't there some work being done by François Tigeot or Jean-Sébastien Pédron to port Nouveau to DragonFlyBSD/FreeBSD? Or at least they were talking about porting it at XDC 2014, no idea what the current status is.
From what they said, they never really cared about nvidia because nvidia provides a binary driver that works, unlike intel and amd.
I guess it will come some day!
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 8 lines · Pierre Moreau
Wasn't there some work being done by François Tigeot or Jean-Sébastien Pédron to port Nouveau to DragonFlyBSD/FreeBSD? Or at least they were talking about porting it at XDC 2014, no idea what the current status is.
Pierre
PS: Looking at François' slides from this year XDC, it seems there isn't much progress about it.
Hi!
Pierre, you're right, and the same applies to FreeBSD: nobody started to work on this.
I will let François comment for DragonFly, but on FreeBSD, our problem is that the diff with Linux was too large to do an easy port of a driver. This was fixed in DRM core earlier this year, and I'm about to finish an update to i915 which is the last part to finally have a small diff with Linux. At that point our entire DRM subsystem will correspond to Linux 3.8 (minus dma-buf).
At that point, it will be far easier to contribute to FreeBSD. As Martin said, TTM is already ported so I believe everything is in place to port Nouveau.
In the coming months, the goal will be to bring our DRM subsystem to match Linux 3.9 then 3.10, etc. I personnally have no plan to work on Nouveau for the time being because the i915 and Radeon drivers are enough to keep me busy. However, we would welcome any contributions! People are asking about this on a regular basis, so please contact me if you are willing to work on this.
Soon, we'll see Tux proudly holding a trident in the logo! :)
(Don't get me wrong, I love the current logo)
Signature · 1 line
Jean-Sébastien Pédron
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 2 lines · Martin Peres
From what they said, they never really cared about nvidia because nvidia provides a binary driver that works, unlike intel and amd.
They provide a binary driver for FreeBSD only. DragonFly and other BSDs don't have that luxury.
Signature · 1 line
Jean-Sébastien Pédron
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 3 lines · C Bergström
To bring this conversation back on track - where would someone start *exactly* to port this to another OS? What kernel dependencies are there?
drivers/gpu/drm/nouveau/{nvkm,nvif,usif} can be dropped in wholesale with just a small handful of shims and helper functions. This is the code that presents the GPU's internals in a fairly generation-agnostic way, and also provides some high-level functionality.
drivers/gpu/drm/nouveau/* needs to be ported to the other OS's infrastructure. If the OS also has a port of linux's DRM and TTM infrastructures, a lot of that will be able to be taken wholesale. This is the code that interacts with the core above. Decodes ioctls, manages memory, performs kernel-side modesetting, etc.
Cheers,
-ilia
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 9 lines · Martin Peres
Quoted 5 lines · Pierre Moreau
Wasn't there some work being done by François Tigeot or Jean-Sébastien Pédron
to port Nouveau to DragonFlyBSD/FreeBSD? Or at least they were talking about porting it
at XDC 2014, no idea what the current status is.From what they said, they never really cared about nvidia because
nvidia provides a binary driver that works, unlike intel and amd.
Hey, I never said that !
There has never been a Nvidia binary driver for DragonFly.
Nvidia support had also been getting worse and worse since xf86-video-nv was abandoned so naturally not many people in the DragonFly community bought Nvidia hardware and interest in Nouveau is relatively low.
I played with it a bit but my hands are currently full updating and fixing the bugs in drm/i915 and the DragonFly Linux compatibility layer.
Signature · 5 lines
Francois Tigeot _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 11 lines · Francois Tigeot
Quoted 9 lines · Martin Peres
Quoted 5 lines · Pierre Moreau
Wasn't there some work being done by François Tigeot or Jean-Sébastien Pédron
to port Nouveau to DragonFlyBSD/FreeBSD? Or at least they were talking about porting it
at XDC 2014, no idea what the current status is.From what they said, they never really cared about nvidia because
nvidia provides a binary driver that works, unlike intel and amd.
Quoted 8 lines
Hey, I never said that !
There has never been a Nvidia binary driver for DragonFly.
Nvidia support had also been getting worse and worse since xf86-video-nv was abandoned so naturally not many people in the DragonFly community bought Nvidia hardware and interest in Nouveau is relatively low.
I played with it a bit but my hands are currently full updating and fixing the bugs in drm/i915 and the DragonFly Linux compatibility layer.
I see, sorry. I guess I just interpreted it like that... Good luck!
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau