radeon: Fix disabling PCI bus mastering on big endian hosts.
commitbe2ef85142e6f00c7f6c8842d903701bdf88cb5c
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 5 Jan 2012 17:42:17 +0000 (5 18:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:35 +0000 (25 17:24 -0800)
tree0ec6924a5f1afc07c0b171540dd5949782043b74
parenta674b8b3e345496a96aec389446650455b2fdfa1
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