Benjamin Herrenschmidt 67dbb4ea33 [PATCH] Fix more radeon GART start calculation cases
As reported by Jules Villard <jvillard@ens-lyon.fr> and some others, the
recent GART aperture start reconfiguration causes problems on some
setups.

What I _think_ might be happening is that the X server is also trying to
muck around with the card memory map and is forcing it back into a wrong
setting that also happens to no longer match what the DRM wants to do
and blows up.  There are bugs all over the place in that code (and still
some bugs in the DRM as well anyway).

This patch attempts to avoid that by using the largest of the 2 values,
which I think will cause it to behave as it used to for you and will
still fix the problem with machines that have an aperture size smaller
than the video memory.

Acked-by: Jules Villard <jvillard@ens-lyon.fr>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-27 19:57:52 -08:00
..
2005-09-25 14:28:13 +10:00
2005-04-16 15:20:36 -07:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-11-24 21:41:14 +11:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-10-30 17:37:32 -08:00
2005-10-22 15:25:01 +10:00
2005-09-25 14:28:13 +10:00
2005-11-07 07:54:02 -08:00
2005-09-25 14:28:13 +10:00
2005-09-25 15:07:24 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 15:07:24 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 15:07:24 +10:00
2005-09-25 14:28:13 +10:00
2005-07-07 21:03:38 +10:00
2005-09-25 14:28:13 +10:00
2005-08-07 15:43:54 +10:00
2005-08-16 20:43:16 +10:00
2005-09-25 14:28:13 +10:00
2005-10-22 15:24:35 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-10-22 15:24:35 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-04-16 15:20:36 -07:00
2005-09-25 15:07:24 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 15:07:24 +10:00
2005-09-25 14:28:13 +10:00
2005-04-16 15:20:36 -07:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-07-27 16:25:54 -07:00
2005-07-27 16:25:54 -07:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-06-28 22:48:56 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00
2005-09-25 14:28:13 +10:00

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.sourceforge.net/                          *
************************************************************

The Direct Rendering Manager (drm) is a device-independent kernel-level
device driver that provides support for the XFree86 Direct Rendering
Infrastructure (DRI).

The DRM supports the Direct Rendering Infrastructure (DRI) in four major
ways:

    1. The DRM provides synchronized access to the graphics hardware via
       the use of an optimized two-tiered lock.

    2. The DRM enforces the DRI security policy for access to the graphics
       hardware by only allowing authenticated X11 clients access to
       restricted regions of memory.

    3. The DRM provides a generic DMA engine, complete with multiple
       queues and the ability to detect the need for an OpenGL context
       switch.

    4. The DRM is extensible via the use of small device-specific modules
       that rely extensively on the API exported by the DRM module.


Documentation on the DRI is available from:
    http://precisioninsight.com/piinsights.html

For specific information about kernel-level support, see:

    The Direct Rendering Manager, Kernel Support for the Direct Rendering
    Infrastructure
    http://precisioninsight.com/dr/drm.html

    Hardware Locking for the Direct Rendering Infrastructure
    http://precisioninsight.com/dr/locking.html

    A Security Analysis of the Direct Rendering Infrastructure
    http://precisioninsight.com/dr/security.html

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.sourceforge.net/                          *
************************************************************