]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d506c63a005c2ec7b3f31c5caca003bc4cf8b24
tree178f85aa2dbd936b5e01b2fb6f610e3eb232e728
parent7f26e0674746c7d8c120452a38f622fe46c73ca0
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