Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2015 08:41:50 -0700
From:      Rui Paulo <rpaulo@me.com>
To:        David Chisnall <theraven@FreeBSD.org>, "Lundberg, Johannes" <johannes@brilliantservice.co.jp>
Cc:        Adam McDougall <mcdouga9@egr.msu.edu>, "current@freebsd.org" <current@freebsd.org>
Subject:   Re: Intel Haswell support - Any updates?
Message-ID:  <1442504510.1862.6.camel@me.com>
In-Reply-To: <CE161DF9-31E4-40A7-A4F8-C678607BFE99@FreeBSD.org>
References:  <55FA7324.5010603@icloud.com> <CAASDrV=D6viCDJx9yT5CiNf1ukiz_Rp1k5wqpk92xSyiNQTEqg@mail.gmail.com> <CAPS9%2BSuYq6JqzX=aHNgD=y5SUnBQ4x_Amk-6B0bvKc6kRQ5YVA@mail.gmail.com> <CAASDrVnxZ8MUmgCO-cFRVatUMQS1LHU-4XASSJckzp_FJbvd2w@mail.gmail.com> <09A515F2-44BA-4DF0-9792-D4C56EEB9D7C@FreeBSD.org> <CAASDrVnuVfOsJvNuOsAQaHYRQqFenH%2B3=wNDBO5GR5j2KgxsxQ@mail.gmail.com> <114F22EF-61E3-4D75-84FB-9D6E3FBCB8F3@FreeBSD.org> <20150917131333.GN1247@egr.msu.edu> <CAASDrVnNuh%2BjT-%2BZFTriPELfOB78accBqGmrVUE-MDgDPZoicA@mail.gmail.com> <CE161DF9-31E4-40A7-A4F8-C678607BFE99@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2015-09-17 at 14:47 +0100, David Chisnall wrote:
> On 17 Sep 2015, at 14:41, Lundberg, Johannes <
> johannes@brilliantservice.co.jp> wrote:
> > 
> > However, the problem now is not the driver right? But the whole
> > graphics
> > stack which has to be rewritten to work with new generation
> > graphics like
> > KMS, Wayland, etc?
> 
> There are lots of different components here that you’re conflating:
> 
> - KMS is the thing that allows the kernel to be responsible for
> setting the graphics mode, restoring it on context switches and so
> on.  This has worked on FreeBSD for a while.
> 
> - GEM / TTM are memory managers, they allow the kernel to manage
> memory (video memory and main memory allocated to the GPU) for GPU
> -using drivers.  These work on FreeBSD, but the supported version
> lags Linux slightly.  This is the focus of current work.
> 
> - The i915 driver.  This is the graphics driver for Intel GPUs.  It
> uses KMS and the memory manager functionality. Importing a newer
> version will be possible once the underlying parts are done.
> 
> - Wayland is a userland application that sits on top of DRI drivers,
> just as X.org does.  Most of the things Wayland needs that don’t work
> on FreeBSD are not graphics related.
> 
> The problem is that the developers *also* conflate them.  Upstream 
> i915 developers will add KPIs to GEM / TTM / KMS to make their lives 
> easier and these features need bringing across to FreeBSD.

Let's also not forget the following statistics:

- The DRM / GEM / TTM code is around 50k lines of code;
- The i915 driver is 120k lines of code;
- The radeon driver is 212k lines of code. 

Even with a good linux compatibility layer, it's still a big project
that requires a lot of work.  If we don't convince the vendors to work
on FreeBSD, I fear this problem will never be solved.

P.S.: the total linux drm stack is around 600k LOC.
-- 
Rui Paulo




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