• Dave Airlie's avatar
    drm/radeon/kms: check/restore sanity before doing anything else with GPU. · 4c712e6c
    Dave Airlie authored
    On systems using kexec, the new kernel is booted straight from the old kernel, without any warning to the graphics driver. So the GPU is basically left as-is in a running state, however the CPU side is completly reset.
    
    Without stating the saneness of anyone using kexec on live systems, we should at least try not to crash the GPU. This patch resets 3 registers to 0 that could cause bad things to happen to the running system.
    
    This allows kexec to work on a Power6/RN50 system.
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    4c712e6c
r300.c 38.9 KB