Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2012 18:12:13 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Bas Vermin <bas_vermin@hotmail.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   Re: Your thoughts on a buffer sharing mechanism for FreeBSD (dma-buf for drm2)
Message-ID:  <20121228171213.GA4522@slackbox.erewhon.net>
In-Reply-To: <DUB002-W120D4C9CB2CD9C63D12A2A9EB3A0@phx.gbl>
References:  <DUB002-W120D4C9CB2CD9C63D12A2A9EB3A0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 26, 2012 at 12:37:10AM +0100, Bas Vermin wrote:
> Hi Guys,
>=20
> Today I decided to do something useful for the FreeBSD community, working=
 on
> the TTM and KMS for the AMD graphics cards which I think a lot of people
> could use.

Great!=20

> As most of us know Intel KMS support was added to FreeBSD a few months ag=
o,
> and as far as I know this code was based on the Linux 3.1 kernel. The FAQ=
 in
> the wiki states that in order to keep this code up to date the Linux comm=
it
> log would be checked and changes merged into FreeBSD. Then came Linux 3.3
> which added support for dma-buf, the buffer sharing mechanism to be used =
by
> PRIME for offloading work to different GPU's, a feature we obviously
> want. The problem with dma-buf is that it is licensed under the GPL and h=
as
> now littered all over the otherwise MIT licensed drm code (even nVidia
> wasn't allowed to use dma-buf for their propietary driver).

The license would not be a problem as long as we don't copy the code, but j=
ust
provide the same interface.

> My question is, does such a buffer sharing mechanism exist in FreeBSD?

I may be off-base here, but what about buf(9)?

> And if so, would it be somewhat compatible with what dma-buf is doing in =
the PRIME code?
>=20
> If not I think such a mechanism should be created, prehaps part of the vm=
 system (not separate as dma-buf is). Or am I just being stupid and is ther=
e a much better way of solving this problem?

Since the develompent of Xorg (and other systems like Wayland) is driven by
Linux, it would probably make porting less painful if the FreeBSD kernel co=
uld
supply the same interfaces to drivers as Linux does.

But I don't see most graphics chips vendors implement dma-buf in their
(proprietary) drivers, because of its license. I do hope that in the end th=
is
will lead to more and better open-source drivers!


Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlDd0u0ACgkQEnfvsMMhpyWGUwCgk8fspL8hrpxKXMX99Jz0VFSm
RoQAmgNE1BkbEJV56K7ezqGQRN/PUBtT
=KdyC
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121228171213.GA4522>