agp/uninorth: Allow larger aperture sizes on pre-U3 bridges.
authorMichel Dänzer <daenzer@vmware.com>
Tue, 4 Aug 2009 11:51:03 +0000 (11:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:29:26 +0000 (10:29 +1000)
commit52f072cb084bbb460d3a4ae09f0b6efc3e7e8a8c
tree178f85aa2dbd936b5e01b2fb6f610e3eb232e728
parentfb2881a7134576a6e95a63e3d2f34ea5629db4a1
agp/uninorth: Allow larger aperture sizes on pre-U3 bridges.

Using the radeon KMS test functionality, I verified that the AGP bridge of the
Intrepid2 chipset in my PowerBook supports aperture sizes up to 256M. So allow
aperture sizes up to 256M on pre-U3 bridges as well, and bump the default size
to 256M. It's possible that older revisions only support smaller sizes, but
it'll be easy to verify that with the raden KMS test functionality. Also,
there's only a problem on an actual attempt to access the aperture beyond the
maximum size supported by the hardware, and non-KMS X still defaults to using
only 32M.

Also use ARRAY_SIZE for the aperture size arrays.

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/agp/uninorth-agp.c