Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2014 11:57:37 +0200
From:      =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= <dumbbell@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Subject:   Linux kernel API wrapper: using OFED's one in other drivers
Message-ID:  <540D7D91.9000104@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--7n62iuQcScCsmIiNsXRUACQwREFsxhBxC
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi!

OFED (sys/ofed) comes with a Linux kernel API wrapper. Beside OFED
itself, it's currently used in sys/dev/cxgb and sys/dev/cxgbe.

I'm playing with this wrapper to add a new feature to the i915 GPU
driver [1]. Don't pay attention to the current patch as this is not the
final approach I have in mind. However, the idea is there: I'd like to
use it in sys/dev/drm2.

The benefit of using such a wrapper in the DRM drivers are obvious:
    1. It greatly reduces the diff between FreeBSD code and Linux
       original code.
    2. It speeds up the integration of new changes in FreeBSD.
    3. It eases the report of bugfixes to Linux.

Those arguments are true for any driver. But in this particular case,
this would allow us to reduce the gap with Linux in the graphics stack
area more quickly (and we deeply need that). DragonFlyBSD is already
doing that.

Of course, using this wrapper as it is today isn't practicle: the code
is located in a driver and it's not even part of GENERIC. The proposal
is to move it outside of OFED and add it to GENERIC.

I don't have a patch to show yet. I'd like to get feedback first. What
do you think about that? OFED maintainers, would you be ok?

[1] https://wiki.freebsd.org/Graphics/Add_HW_context_support_to_i915

--=20
Jean-S=C3=A9bastien P=C3=A9dron


--7n62iuQcScCsmIiNsXRUACQwREFsxhBxC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUDX2XXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz
OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMngAP/3FJiq/qG81azDdC8sHkgqJy
X1qv3zSMAq74YwDlCUCRRbWJafLx0TKJrE2SFgzarc1iQcQ+8HPxL2OcEvMZOqrB
TLMM4aApocVlJ2KeDfVma0qrU/idNbImLKQFdeduQ7tVWELYG5wAqSUPlkjZnyF0
OLu7k8LVWiRA51hR4VLPUMDFPxwEu61YzYiWx89WrGWT4RZ6rpWPfXaCEzoVDKU6
b5LtGaUE0GXkmm75wiZo5dekTSPWWudSskgV/VgF+zXWrIgcYFi6IHJkQp0oCw1U
OzM7rZ+lPKBIUwpqNz6mOKIWR3V+SXK2BXmSX39aoMvdafqAo3GKzkkc5tvv5Mj4
iQ+rTM8LEDvdygzsKb6L/vw8JkYfdYeQRO6s0GUm7BkdvHp6se6Zn1gryu7o+WHy
dtKy0T5JzJWFfI7uHLQZTXJnerS84SOOtThk4VnwcGxni7Q4HDYA4Z+OTxAO4Vbc
ZA6m8091r+J1p82jcTDjV0o51RJkkY5qt8b+Edxs5mtq+z17dtdYcF9G55pEW6wY
VKakdbzFgnSBY4kThqH7897OryI3GU0DQZbU79rsYpGG6JA1l8ntwJ5hdcZvRbLs
o2WAWG8klja+eHNvvtCI96qWaTq0sM+4IxLYBttAPjlSIPPYdy84MQAvNafIJQ79
hbO5iFrElgz70xol46N0
=NlPC
-----END PGP SIGNATURE-----

--7n62iuQcScCsmIiNsXRUACQwREFsxhBxC--



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