Skip to contentSkip to conversation

How DRM differs from KGI?

DISCUSSION PRASANNA KUMAR 4 participants 5 messages Jun 23, 2011 – Aug 31, 2011

lore
Share & tools
lore
#0 lore raw

I came across something called as KGI - kernel graphics interface (http://www.kgi-project.org/). It seems it provides the same features as KMS. What is the difference between those two? Any specific reason for not choosing KGI? I don't know much about KGI so feel free to correct me if I am wrong. I think this is the correct mailing list if not just direct me to the proper mailing list.

Thanks,
PrasannaKumar Muralidharan

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 9 lines · PRASANNA KUMAR

I came across something called as KGI - kernel graphics interface
(http://www.kgi-project.org/). It seems it provides the same features as KMS. What is the difference between those two? Any specific reason for not choosing KGI? I don't know much about KGI so feel free to correct me if I am wrong. I think this is the correct mailing list if not just direct me to the proper mailing list.
Thanks,
PrasannaKumar Muralidharan

Difference is that KGI try to do more than modesetting (some kind of acceleration too) and i don't think they ever try to work with the community (drm/dri/mesa) which is where pretty much all GPU driver dev are.

Cheers,
Jerome

#2 lore raw

Hi,

Quoted 2 lines · Jerome Glisse

Difference is that KGI try to do more than modesetting (some kind of acceleration too)

That's not different from DRM really... Once DRM grew KMS, it did in fact become *very* similar to KGI.

(The actual graphics driver part of KGI that is... Obviously not the other mostly unrelated stuff they tried to push along the way.)

Quoted 2 lines

and i don't think they ever try to work with the community (drm/dri/mesa) which is where pretty much all GPU driver dev are.

Well, GGI/KGI actually predates DRI/DRM by several years. The fact that DRI ever came up in the first place is pretty much an attestation of GGI's failure to get support from the relevant parties.

You are probably right though about failure to cooperate with MESA developers -- along with the failure to cooperate with XFree86 and Linux developers...

-antrik-

#3 lore raw
In reply to PRASANNA KUMAR

Hi,

Quoted 3 lines · PRASANNA KUMAR

I came across something called as KGI - kernel graphics interface
(http://www.kgi-project.org/). It seems it provides the same features as KMS. What is the difference between those two?

Well, KMS is actually an extension of the DRM; together they handle all aspects of the graphics hardware access -- which is indeed very similar to what KGI intended to do. (And it's kinda fun watching KMS developers reinvent various ideas that were already present in KGI one by one :-) )

Quoted 1 line

Any specific reason for not choosing KGI?

Several. Generally speaking, KGI did too much. Rather than just graphics hardware drivers, they also reinvented the whole input and console systems along the way -- not as patches against the existing code base, but as a completely new code base written from scratch. Obviously, Linus didn't like that.

On the application side, they weren't very cooperative either: XGGI (X server adapted to work with KGI) was basically a fork of XFree86, and for all I know they never even *tried* discussing the ideas with upstream. Also their drivers were written from scratch (with some major overengineering applied there) -- unlike the KMS drivers, which are somewhat adopted ports of the preexisting and usually quite mature X drivers.

To sum up, the KGI folks mostly had the right ideas more than a decade earlier -- but they totally failed to present them in a viable form :-(

-antrik-

#4 lore raw
Quoted 2 lines

To sum up, the KGI folks mostly had the right ideas more than a decade earlier -- but they totally failed to present them in a viable form :-(

Bit more complex IMHO

In the KGI era graphics cards didn't really use main memory much, didn't have long DMA engine command queues and that made a lot of the kernel/user transitions very expensive.