Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Switching to Xorg



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Apr 7, 2008, at 18:03, der Mouse wrote:
If X wants to access a PCI graphics board it currently needs to be
the console. Part of the reason is that - unlike many 32bit machines
- PCI bus addresses don't coincide with their physical addresses from
the CPU's point of view, the console driver hides that from the
Xserver so it can mmap PCI resources with their bus addresses, but
only for the console.

Surely the right thing to do is to fix the framebuffer drivers so mmap
works on them without their having to be console?

No, the fb drivers need no fixing. The right thing to do is to fix X to look at more than one wsdisplay. Looking at the code first helps.

Also, the physical address of the PCI address space depends on the
machine and to make things more complicated some Ultras have more
than one PCI bus.

None of which should matter; that's what the framebuffer driver is for:
to present a uniform interface to application code, regardless of the
underlying resources.

Exactly, that's why X doesn't know or care about any of this.

Before you ask - none of this is different with Xorg, it may change
with their next major release if someone ports libpciaccess to
NetBSD.

Better would be to fix the (severley) broken paradigm that has the X
server knowing anything about buses.

Agreed, the Xserver trying to play operating system and messing with BARs and such is an abomination that needs to go away.

The X server should be using a uniform interface presented by the framebuffer driver, independent of the underlying bus(s) (if any) - that's what drivers are *for*! (It works fine that way on sparc32....)

Not with PCI framebuffers and that's what we're talking about here.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBR/qjE8pnzkX8Yg2nAQJgIAgAkRPKUyemlAWrG5BmT76LewTS6Xv/5W8c
hKuHZ2qOs5MLrSnArN2NUw1bInoX9cR1j+wfHC+5nnz+5kpJ1wTZRX/jtoPpbo2R
Aqdp19yLesjdeuSig20U0+k2h4LovCefLlX7XPmHA1B1K+LLLZ2JkwPos4nR6HJy
f0gr9u/9wygTTHTCQk99dabCzQieh6/CX6ZHYRn/DgtJidkemXbmOObaFdcyT3hO
fWzsHOkJWrc0v9llTSTO8RjRO2/bVK0OBMjWVjju97y9PUxL88JUUKaDCLgKrhKn
CmRyHlWiz+CjepZ7v4v4/U7DX+T6Iv7/K4APQioWMxW5CwGeY0B25A==
=p1Hu
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index