Christian Koenig fb98257a9d drm/radeon: apply Murphy's law to the kms irq code v3
1. It is really dangerous to have more than one
   spinlock protecting the same information.

2. radeon_irq_set sometimes wasn't called with lock
   protection, so it can happen that more than one
   CPU would tamper with the irq regs at the same
   time.

3. The pm.gui_idle variable was assuming that the 3D
   engine wasn't becoming idle between testing the
   register and setting the variable. So just remove
   it and test the register directly.

v2: Also handle the hpd irq code the same way.
v3: Rename hpd parameter for clarification.

Signed-off-by: Christian Koenig <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-06-21 09:38:50 +02:00
..
2012-04-02 11:07:42 +01:00
2012-04-02 11:07:42 +01:00
2012-05-07 14:02:14 +02:00
2012-05-23 10:47:11 +01:00
2011-01-07 14:11:38 +10:00
2012-06-21 09:38:35 +02:00
2012-06-21 09:38:35 +02:00
2011-03-31 11:26:23 -03:00
2012-05-29 11:08:19 +01:00
2012-05-07 14:02:14 +02:00
2011-03-31 11:26:23 -03:00
2012-06-05 09:25:54 +01:00