diff options
author | Huang Rui <ray.huang@amd.com> | 2017-03-03 18:37:23 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:54:48 -0400 |
commit | 0e5ca0d1ac07ef8b3a52d3b0404482207cb4da5a (patch) | |
tree | f3fb189ffa872cbe031a3d369b30478e65cd98b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | c1dc356a116c992433c5c68e7c493b0fa3e6f9b1 (diff) | |
download | lwn-0e5ca0d1ac07ef8b3a52d3b0404482207cb4da5a.tar.gz lwn-0e5ca0d1ac07ef8b3a52d3b0404482207cb4da5a.zip |
drm/amdgpu: add PSP driver for vega10 (v2)
PSP is responsible for firmware loading on SOC-15 asics.
v2: fix memory leak (Ken)
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index dd9f493006df..cf45fb902aed 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1837,6 +1837,7 @@ int amdgpu_device_init(struct amdgpu_device *adev, * can recall function without having locking issues */ mutex_init(&adev->vm_manager.lock); atomic_set(&adev->irq.ih.lock, 0); + mutex_init(&adev->firmware.mutex); mutex_init(&adev->pm.mutex); mutex_init(&adev->gfx.gpu_clock_mutex); mutex_init(&adev->srbm_mutex); |