[haiku-development] Re: Dropping intel_gart (and agp_gart)

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 04 Nov 2015 15:02:27 +0000

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.

Eh. alright. We can go the other direction and use the gart driver for
everything :P
Now.. I have to go ask Intel engineers the how to do gart on modern intel
chipsets as I can't find docs anywhere.

Other related posts: