* (Free)BSD support?
@ 2014-11-06 19:05 Chris
[not found] ` <397bff86faf5fab73830fe01bdefbe40-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Chris @ 2014-11-06 19:05 UTC (permalink / raw)
To: Nouveau
Greetings,
I remember Nouveau being in the ports tree on FreeBSD some
time ago. As I see it isn't there now. I was wondering if anyone
else might have, or be working on a BSD branch. Or might be able
to provide some insight on getting a branch of Nouveau running
on FreeBSD.
Thank you for all your time, and consideration.
--Chris
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <397bff86faf5fab73830fe01bdefbe40-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
@ 2014-11-06 19:58 ` Emil Velikov
[not found] ` <545BD2D4.2000300-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Emil Velikov @ 2014-11-06 19:58 UTC (permalink / raw)
To: Chris, Nouveau
Cc: Jean-Sébastien Pédron,
emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w
Hi Chris,
On 06/11/14 19:05, Chris wrote:
> Greetings,
> I remember Nouveau being in the ports tree on FreeBSD some
> time ago. As I see it isn't there now. I was wondering if anyone
> else might have, or be working on a BSD branch. Or might be able
> to provide some insight on getting a branch of Nouveau running
> on FreeBSD.
>
> Thank you for all your time, and consideration.
>
Afaik currently there is no port for (Free)BSD.
On the positive side nouveau's current infrastructure ("core", interface
"nvif" and "drm glue") will make things quite easy for anyone familiar
with BSD's equivalent of core drm,ttm,etc. One only needs to port the
"drm glue".
Iirc Jean-Sébastien (Cc'd) did mention nouveau + FreeBSD at XDC,
although I'm not sure what his current plans are. Perhaps he might be
able to give you some ideas, if you're willing to give it a go ?
Cheers,
Emil
> --Chris
>
>
> _______________________________________________
> Nouveau mailing list
> Nouveau@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau
>
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <545BD2D4.2000300-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-11-06 21:11 ` Chris
[not found] ` <25816c50da8ffab03f170a71055ba3ff-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Chris @ 2014-11-06 21:11 UTC (permalink / raw)
To: Nouveau
Cc: Jean-SébastienPédron,
emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w
On Thu, 06 Nov 2014 19:58:12 +0000 Emil Velikov <emil.l.velikov@gmail.com>
wrote
> Hi Chris,
>
> On 06/11/14 19:05, Chris wrote:
> > Greetings,
> > I remember Nouveau being in the ports tree on FreeBSD some
> > time ago. As I see it isn't there now. I was wondering if anyone
> > else might have, or be working on a BSD branch. Or might be able
> > to provide some insight on getting a branch of Nouveau running
> > on FreeBSD.
> >
> > Thank you for all your time, and consideration.
> >
> Afaik currently there is no port for (Free)BSD.
>
> On the positive side nouveau's current infrastructure ("core", interface
> "nvif" and "drm glue") will make things quite easy for anyone familiar
> with BSD's equivalent of core drm,ttm,etc. One only needs to port the
> "drm glue".
>
> Iirc Jean-Sébastien (Cc'd) did mention nouveau + FreeBSD at XDC,
> although I'm not sure what his current plans are. Perhaps he might be
> able to give you some ideas, if you're willing to give it a go ?
Thank you very much for the informative reply, Emil.
I'm happy to make the investment (creating the FreeBSD port).
I currently already maintain several FreeBSD ports. So it's not
all that unfamiliar. :)
I just didn't want to "start from scratch" if I didn't need to. :)
I give a closer look, and see what I can find. Maybe Jean-Sébastien
will also have something to say.
Thank you again, Emil, for the reply.
--Chris
>
>
> Cheers,
> Emil
>
> > --Chris
> >
> >
> > _______________________________________________
> > Nouveau mailing list
> > Nouveau@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nouveau
> >
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <25816c50da8ffab03f170a71055ba3ff-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
@ 2014-11-07 2:11 ` Dave Airlie
[not found] ` <CAPM=9tyCU3-yF+oQ7xPLA-0tfAbyjojG-eZXZo_1e7UTy7eiMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Dave Airlie @ 2014-11-07 2:11 UTC (permalink / raw)
To: Chris; +Cc: Nouveau, Emil Velikov, Jean-SébastienPédron
>>
>> On 06/11/14 19:05, Chris wrote:
>> > Greetings,
>> > I remember Nouveau being in the ports tree on FreeBSD some
>> > time ago. As I see it isn't there now. I was wondering if anyone
>> > else might have, or be working on a BSD branch. Or might be able
>> > to provide some insight on getting a branch of Nouveau running
>> > on FreeBSD.
>> >
>> > Thank you for all your time, and consideration.
>> >
>> Afaik currently there is no port for (Free)BSD.
>>
>> On the positive side nouveau's current infrastructure ("core", interface
>> "nvif" and "drm glue") will make things quite easy for anyone familiar
>> with BSD's equivalent of core drm,ttm,etc. One only needs to port the
>> "drm glue".
>>
>> Iirc Jean-Sébastien (Cc'd) did mention nouveau + FreeBSD at XDC,
>> although I'm not sure what his current plans are. Perhaps he might be
>> able to give you some ideas, if you're willing to give it a go ?
> Thank you very much for the informative reply, Emil.
> I'm happy to make the investment (creating the FreeBSD port).
> I currently already maintain several FreeBSD ports. So it's not
> all that unfamiliar. :)
> I just didn't want to "start from scratch" if I didn't need to. :)
> I give a closer look, and see what I can find. Maybe Jean-Sébastien
> will also have something to say.
>
> Thank you again, Emil, for the reply.
>
I think you missed the point,
this is a kernel driver that needs porting, not just a userspace driver,
there are no userspace drivers anymore. porting the X.org userspace
driver is required but not sufficient.
Dave.
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <CAPM=9tyCU3-yF+oQ7xPLA-0tfAbyjojG-eZXZo_1e7UTy7eiMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-11-07 2:22 ` Chris
[not found] ` <c83ef171f859f35611d7c9229d5e874a-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Chris @ 2014-11-07 2:22 UTC (permalink / raw)
To: Dave Airlie; +Cc: Nouveau, Emil Velikov, Jean-SébastienPédron
On Fri, 7 Nov 2014 12:11:08 +1000 Dave Airlie <airlied@gmail.com> wrote
> >>
> >> On 06/11/14 19:05, Chris wrote:
> >> > Greetings,
> >> > I remember Nouveau being in the ports tree on FreeBSD some
> >> > time ago. As I see it isn't there now. I was wondering if anyone
> >> > else might have, or be working on a BSD branch. Or might be able
> >> > to provide some insight on getting a branch of Nouveau running
> >> > on FreeBSD.
> >> >
> >> > Thank you for all your time, and consideration.
> >> >
> >> Afaik currently there is no port for (Free)BSD.
> >>
> >> On the positive side nouveau's current infrastructure ("core", interface
> >> "nvif" and "drm glue") will make things quite easy for anyone familiar
> >> with BSD's equivalent of core drm,ttm,etc. One only needs to port the
> >> "drm glue".
> >>
> >> Iirc Jean-Sébastien (Cc'd) did mention nouveau + FreeBSD at XDC,
> >> although I'm not sure what his current plans are. Perhaps he might be
> >> able to give you some ideas, if you're willing to give it a go ?
> > Thank you very much for the informative reply, Emil.
> > I'm happy to make the investment (creating the FreeBSD port).
> > I currently already maintain several FreeBSD ports. So it's not
> > all that unfamiliar. :)
> > I just didn't want to "start from scratch" if I didn't need to. :)
> > I give a closer look, and see what I can find. Maybe Jean-Sébastien
> > will also have something to say.
> >
> > Thank you again, Emil, for the reply.
> >
>
> I think you missed the point,
>
> this is a kernel driver that needs porting, not just a userspace driver,
> there are no userspace drivers anymore. porting the X.org userspace
> driver is required but not sufficient.
Indeed. I _think_ I understood correctly. I can't envision any _real_
problems. If I understand correctly, it'll be a matter of creating a
kernel module for the BSD platform, and making it loadable (kldload,
in BSD speak). Which will allow it to work with the resources made
available to the kernel (hardware). In fact it should be even easier,
given that there is a Linux ABI available on BSD which even nVidia
makes use of, with the blobs they provide.
Do I seem on track?
Thank you, Dave. For taking the time to reply.
--Chris
>
> Dave.
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <c83ef171f859f35611d7c9229d5e874a-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
@ 2014-11-07 9:06 ` Jean-Sébastien Pédron
[not found] ` <545C8B7E.3090508-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Jean-Sébastien Pédron @ 2014-11-07 9:06 UTC (permalink / raw)
To: Chris, Dave Airlie; +Cc: Nouveau, Emil Velikov
[-- Attachment #1.1: Type: text/plain, Size: 1767 bytes --]
On 07.11.2014 03:22, Chris wrote:
> On Fri, 7 Nov 2014 12:11:08 +1000 Dave Airlie <airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote
>> this is a kernel driver that needs porting, not just a userspace driver,
>> there are no userspace drivers anymore. porting the X.org userspace
>> driver is required but not sufficient.
>
> Indeed. I _think_ I understood correctly. I can't envision any _real_
> problems. If I understand correctly, it'll be a matter of creating a
> kernel module for the BSD platform, and making it loadable (kldload,
> in BSD speak). Which will allow it to work with the resources made
> available to the kernel (hardware). In fact it should be even easier,
> given that there is a Linux ABI available on BSD which even nVidia
> makes use of, with the blobs they provide.
> Do I seem on track?
Hi!
The Nouveau kernel driver is close to the Radeon kernel in terms of
DRM/TTM infrastructure requirements. We have that working in FreeBSD.
So the task consists of:
1. Taking Nouveau from Linux, preferrably 3.8 to keep our DRM code
on the same base (so we can update the whole consistently).
2. Adding the source files to the FreeBSD kernel
3. Start the porting effort: the locking primitives, the PCI API,
how memory is allocated, etc. are different compared to Linux.
It's probably not that difficult to do, however, it needs time. I would
recommend to not start this effort right now: we are in the process of
updating the DRM device-independent code to match Linux 3.8.
Furthermore, I'm preparing a proposal to have some sort of Linux kernel
API wrapper above FreeBSD facilities to reduce the diff with Linux and
help with porting new drivers.
--
Jean-Sébastien Pédron
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]
[-- Attachment #2: Type: text/plain, Size: 153 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (Free)BSD support?
[not found] ` <545C8B7E.3090508-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
@ 2014-11-07 17:27 ` Chris
0 siblings, 0 replies; 7+ messages in thread
From: Chris @ 2014-11-07 17:27 UTC (permalink / raw)
To: Dave Airlie, Jean-SébastienPédron; +Cc: Nouveau, Emil Velikov
On Fri, 07 Nov 2014 10:06:06 +0100 Jean-Sébastien Pédron
<dumbbell@FreeBSD.org> wrote
> On 07.11.2014 03:22, Chris wrote:
> > On Fri, 7 Nov 2014 12:11:08 +1000 Dave Airlie <airlied@gmail.com> wrote
> >> this is a kernel driver that needs porting, not just a userspace driver,
> >> there are no userspace drivers anymore. porting the X.org userspace
> >> driver is required but not sufficient.
> >
> > Indeed. I _think_ I understood correctly. I can't envision any _real_
> > problems. If I understand correctly, it'll be a matter of creating a
> > kernel module for the BSD platform, and making it loadable (kldload,
> > in BSD speak). Which will allow it to work with the resources made
> > available to the kernel (hardware). In fact it should be even easier,
> > given that there is a Linux ABI available on BSD which even nVidia
> > makes use of, with the blobs they provide.
> > Do I seem on track?
>
> Hi!
>
> The Nouveau kernel driver is close to the Radeon kernel in terms of
> DRM/TTM infrastructure requirements. We have that working in FreeBSD.
Good news!
>
> So the task consists of:
> 1. Taking Nouveau from Linux, preferrably 3.8 to keep our DRM code
> on the same base (so we can update the whole consistently).
> 2. Adding the source files to the FreeBSD kernel
> 3. Start the porting effort: the locking primitives, the PCI API,
> how memory is allocated, etc. are different compared to Linux.
>
OK
> It's probably not that difficult to do, however, it needs time. I would
> recommend to not start this effort right now: we are in the process of
> updating the DRM device-independent code to match Linux 3.8.
Ahh. Thanks for the potential time savings. :)
> Furthermore, I'm preparing a proposal to have some sort of Linux kernel
> API wrapper above FreeBSD facilities to reduce the diff with Linux and
> help with porting new drivers.
Excellent. Please keep me in the loop. I have the time, and resources to
devote to helping, or taking it all on as a whole, if necessary.
Thanks for taking the time to reply.
--Chris
>
> --
> Jean-Sébastien Pédron
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-11-07 17:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 19:05 (Free)BSD support? Chris
[not found] ` <397bff86faf5fab73830fe01bdefbe40-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
2014-11-06 19:58 ` Emil Velikov
[not found] ` <545BD2D4.2000300-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-06 21:11 ` Chris
[not found] ` <25816c50da8ffab03f170a71055ba3ff-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
2014-11-07 2:11 ` Dave Airlie
[not found] ` <CAPM=9tyCU3-yF+oQ7xPLA-0tfAbyjojG-eZXZo_1e7UTy7eiMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-07 2:22 ` Chris
[not found] ` <c83ef171f859f35611d7c9229d5e874a-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>
2014-11-07 9:06 ` Jean-Sébastien Pédron
[not found] ` <545C8B7E.3090508-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
2014-11-07 17:27 ` Chris
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.