]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fix the lockdep breakage
authorZack Rusin <zackr@vmware.com>
Mon, 22 Mar 2021 16:54:57 +0000 (12:54 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 14 Apr 2021 20:41:17 +0000 (16:41 -0400)
commit59a62d6ff79fde9755979d6e38c1bed3f558761e
tree52ea753cb7e88b322484db5e05c2501980c134ea
parent4a798a6286576c2ebae6596114ed5c529da2f8e1
drm/vmwgfx: Fix the lockdep breakage

Thomas has noticed that the lockdep was broken in vmwgfx. It
was broken during the pci initialization rework. This fixes
the breakage by making sure we initialize the locking code
before doing anything else. This was independently spotted
and fixed by Tetsuo Handa as well.

Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Zack Rusin <zackr@vmware.com>
Fixes: f676b18f5689ad10 ("drm/vmwgfx: Cleanup pci resource allocation")
Link: https://patchwork.freedesktop.org/patch/msgid/20210408172245.673785-1-zackr@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h