Re: Next round of console patches

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 1 Sep 1998 12:12:15 +0100 (BST)


> OK, I now see what you're driving at. I haven't looked closely at the
> FB code, but I had assume that mtrr_add() was called "safely"
> (i.e. for framebuffer RAM only and not for MMIO registers). I guess
> that's not the case?

There isnt any way to tell, at least not for sure, if the card will
get upset by write gathering or has MMIO registers in the same block as
the frame buffer [etc]

> So the PCI bus addresses that the FB code finds may well contain MMIO
> registers?

Unlikely but possible. Fortunately its not very hard to build a PCI
"ok card" list and it will take almost no space (0 in fact if its __init).
vesafb is a console, so it "has to work".

> What's the story with cards that would be safe to make the FB
> write-combining? Do they only have their registers in a separate
> region? I would have thought that this is generally how it's done with
> PCI cards?

Normally yes.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html