November 3 2015 10:04 AM, "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx> wrote:
The Intel Linux drivers moved the gart / gtt code into them vs exposing the
gart externally.
How is that simpler? There are two different problems:
1) Mapping the framebuffer so it can be written to (fast, if possible) - done
by the GART
2) Setting up the video mode - done by the intel_extreme driver
If the new devices have a completely new layout, then write a new driver.
If the GART/memory mapping part didn't change, you can reuse the existing
GART driver, otherwise
just write your new driver the way you want (at least Haswell seems to have a
different register
layout, but use the same GART as previous generations). It is much easier to
reuse that code when
it is a separate module.
For devices that did support both AGP and GTT/pci-express, we could use the
same intel_extreme
driver and switch the GART implementations.
As far as I can see, they are rather independant from each other and don't
necessarily update
together.