OSDN Git Service

drm/radeon/kms: respect TOM on rs100->rs480 IGP variants.
authorDave Airlie <airlied@redhat.com>
Thu, 9 Jul 2009 05:04:18 +0000 (15:04 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Jul 2009 07:13:07 +0000 (17:13 +1000)
commit3e43d82125952826202a8cd20ba84a66f3ff8808
treeb6358e40dc857b0917d7d76d8a90ff999f2860d8
parent4162338a1dab388474d4115289d1d7071623f04d
drm/radeon/kms: respect TOM on rs100->rs480 IGP variants.

Normally we are free to place VRAM where we want in the GPUs
memory address space, however on IGP chips the VRAM is actual RAM,
and no special translation or aperture is used inside the GPU MC.

So when you move the VRAM aperture away from the TOM register,
you actually move it into main memory and can trash things quite badly.

This commit makes the code respect the TOM location for MC_FB_LOCATION.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/rs400.c