diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-05-15 11:52:18 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-03 21:03:39 -0400 |
commit | 9e14c65c5715b16bcbf5d5c64de2bb8a973a0afa (patch) | |
tree | 3afd4d4347080e1437f788416762c7b47fee7d3a /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | d94aed5a6c947b1fda346aff1fa316dacf4a1a5a (diff) | |
download | kernel_replicant_linux-9e14c65c5715b16bcbf5d5c64de2bb8a973a0afa.tar.gz kernel_replicant_linux-9e14c65c5715b16bcbf5d5c64de2bb8a973a0afa.tar.bz2 kernel_replicant_linux-9e14c65c5715b16bcbf5d5c64de2bb8a973a0afa.zip |
drm/amdgpu: take the mode_config mutex when handling hpds
Since we may modify display state.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 2187960baf7c..b4d36f0f2153 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -59,10 +59,12 @@ static void amdgpu_hotplug_work_func(struct work_struct *work) struct drm_mode_config *mode_config = &dev->mode_config; struct drm_connector *connector; + mutex_lock(&mode_config->mutex); if (mode_config->num_connector) { list_for_each_entry(connector, &mode_config->connector_list, head) amdgpu_connector_hotplug(connector); } + mutex_unlock(&mode_config->mutex); /* Just fire off a uevent and let userspace tell us what to do */ drm_helper_hpd_irq_event(dev); } |