radeon: Fix disabling PCI bus mastering on big endian hosts.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 5 Jan 2012 17:42:17 +0000 (18:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:12 +0000 (16:13 -0800)
commit27bdee9ac306dbc12036706cbf767a27cb34ca7d
tree8a9b09a8f33e3c5e9c9ea953d6267bc7160b27f3
parent7ca755c00ad8f97fea8b06dac6d69e2aaa6c7a3d
radeon: Fix disabling PCI bus mastering on big endian hosts.

commit 3df96909b75835d487a9178761622b0cbd7310d4 upstream.

It would previously write basically random bits to PCI configuration space...
Not very surprising that the GPU tended to stop responding completely. The
resulting MCE even froze the whole machine sometimes.

Now resetting the GPU after a lockup has at least a fighting chance of
succeeding.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/rs600.c