summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_device.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-10-02 19:01:36 +0200
committerAlex Deucher <alexander.deucher@amd.com>2014-01-09 00:42:22 +0100
commit1a0041b8f99656a4600b587a491a1caa0e979e18 (patch)
tree9769fdbb34acc9c32c554702b833258d02b52645 /drivers/gpu/drm/radeon/radeon_device.c
parentdrm/radeon: add hard_reset module parameter (diff)
downloadlinux-1a0041b8f99656a4600b587a491a1caa0e979e18.tar.xz
linux-1a0041b8f99656a4600b587a491a1caa0e979e18.zip
drm/radeon: add pci config hard reset
This is used to hard reset the asic. If a soft reset is not able to reset things, a hard reset can be used. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 4d20e78b9b70..b012cbbc3ed5 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -144,6 +144,11 @@ void radeon_program_register_sequence(struct radeon_device *rdev,
}
}
+void radeon_pci_config_reset(struct radeon_device *rdev)
+{
+ pci_write_config_dword(rdev->pdev, 0x7c, RADEON_ASIC_RESET_DATA);
+}
+
/**
* radeon_surface_init - Clear GPU surface registers.
*