Skip to content
Commit a1ad3523 authored by Rob Clark's avatar Rob Clark
Browse files

drm/msm: fix potential deadlock in gpu init



Somewhere along the way, the firmware loader sprouted another lock
dependency, resulting in possible deadlock scenario:

 &dev->struct_mutex --> &sb->s_type->i_mutex_key#2 --> &mm->mmap_sem

which is problematic vs things like gem mmap.

So introduce a separate mutex to synchronize gpu init.

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 944fc36c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment