WSL2-Linux-Kernel/drivers/char/drm
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
..
Kconfig drm: add savage driver 2005-08-07 15:43:54 +10:00
Makefile drm: add initial r300 3D support. 2005-08-16 20:43:16 +10:00
README.drm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ati_pcigart.c [PATCH] drm fixup pci gart settings 2005-11-09 07:55:51 -08:00
drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drmP.h drm: remove unused components of drm structures 2005-10-24 18:45:11 +10:00
drm_agpsupport.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_auth.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_bufs.c drm: fix warning on 64-bit platforms.. 2005-10-24 18:41:39 +10:00
drm_context.c [PATCH] SiS DRM: Fix possible NULL dereference 2005-11-30 08:45:40 -08:00
drm_core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_dma.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_drawable.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_drv.c merge Linus head tree into my drm tree and fix up conflicts 2005-10-20 18:21:33 +10:00
drm_fops.c drm: remove unused components of drm structures 2005-10-24 18:45:11 +10:00
drm_init.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_ioctl.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_lock.c drm: fix quiescent locking 2005-11-24 21:41:14 +11:00
drm_memory.c drm: add __GFP_COMP to the drm_alloc_pages 2005-11-23 22:09:13 +11:00
drm_memory.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_memory_debug.h drm: add __GFP_COMP to the drm_alloc_pages 2005-11-23 22:09:13 +11:00
drm_os_linux.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_pci.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_pciids.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_proc.c merge Linus head tree into my drm tree and fix up conflicts 2005-10-20 18:21:33 +10:00
drm_sarea.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_scatter.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_stub.c merge Linus head tree into my drm tree and fix up conflicts 2005-10-20 18:21:33 +10:00
drm_sysfs.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
drm_vm.c merge linus head to drm-mm branch 2005-10-22 15:25:01 +10:00
ffb_context.c [PATCH] kfree cleanup: drivers/char 2005-11-07 07:54:02 -08:00
ffb_drv.c [PATCH] kfree cleanup: drivers/char 2005-11-07 07:54:02 -08:00
ffb_drv.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i810_dma.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
i810_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i810_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i810_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i830_dma.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
i830_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i830_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i830_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i830_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i915_dma.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
i915_drm.h Add missing license texts from Tungsten Graphics. 2005-06-23 22:46:46 +10:00
i915_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i915_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
i915_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i915_irq.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
i915_mem.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_dma.c merge Linus head tree into my drm tree and fix up conflicts 2005-10-20 18:21:33 +10:00
mga_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_drv.c I think that if a PCI bus is a root bus, attached to a host bridge not a 2005-11-23 21:45:43 +11:00
mga_drv.h merge linus head to drm-mm branch 2005-10-22 15:24:35 +10:00
mga_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_state.c merge linus head to drm-mm branch 2005-10-22 15:24:35 +10:00
mga_ucode.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_warp.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_cce.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
r128_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
r128_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_state.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r300_cmdbuf.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
r300_reg.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_cp.c [PATCH] Fix more radeon GART start calculation cases 2005-12-27 19:57:52 -08:00
radeon_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
radeon_drv.h [PATCH] radeon drm: fix agp aperture map offset 2005-12-15 22:22:57 -08:00
radeon_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_mem.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_state.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
savage_bci.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
savage_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
savage_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
savage_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
savage_state.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
sis_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_drv.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
sis_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
sis_ds.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_ds.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_mm.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
tdfx_drv.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
tdfx_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via_3d_reg.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_dma.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_drv.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
via_ds.c [PATCH] drm: via: fix sparse warnings 2005-07-27 16:25:54 -07:00
via_ds.h [PATCH] drm: via: fix sparse warnings 2005-07-27 16:25:54 -07:00
via_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_map.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_mm.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_mm.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_verifier.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_verifier.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_video.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00

README.drm

************************************************************
* 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/                          *
************************************************************