• Rob Clark's avatar
    drm/msm: fix potential deadlock in gpu init · a1ad3523
    Rob Clark authored
    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>
    a1ad3523
adreno_gpu.c 10.4 KB