All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jean-Sébastien Pédron" <dumbbell-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
To: Chris <nouveau-uqy9GaD9SVlWk0Htik3J/w@public.gmane.org>,
	Dave Airlie <airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Nouveau
	<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	Emil Velikov
	<emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: (Free)BSD support?
Date: Fri, 07 Nov 2014 10:06:06 +0100	[thread overview]
Message-ID: <545C8B7E.3090508@FreeBSD.org> (raw)
In-Reply-To: <c83ef171f859f35611d7c9229d5e874a-kXB7xIAHHG1poJpnivc+mw@public.gmane.org>


[-- 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

  parent reply	other threads:[~2014-11-07  9:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [not found]                     ` <545C8B7E.3090508-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>
2014-11-07 17:27                       ` Chris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545C8B7E.3090508@FreeBSD.org \
    --to=dumbbell-hzy0k5tpup5afugrpc6u6w@public.gmane.org \
    --cc=airlied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=nouveau-uqy9GaD9SVlWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.