[PATCH] drm/amdgpu: cancel reset work on fini

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 21.10.2016 um 22:45 schrieb Alex Deucher:
> Cancel any pending reset work when we tear down the driver.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> index 278708f..9fa8098 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
> @@ -239,6 +239,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
>   	if (r) {
>   		adev->irq.installed = false;
>   		flush_work(&adev->hotplug_work);
> +		cancel_work_sync(&adev->reset_work);
>   		return r;
>   	}
>   
> @@ -264,6 +265,7 @@ void amdgpu_irq_fini(struct amdgpu_device *adev)
>   		if (adev->irq.msi_enabled)
>   			pci_disable_msi(adev->pdev);
>   		flush_work(&adev->hotplug_work);
> +		cancel_work_sync(&adev->reset_work);
>   	}
>   
>   	for (i = 0; i < AMDGPU_MAX_IRQ_SRC_ID; ++i) {




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux