]> 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)
commit68ce556bd1643498080af310d4544f46f3c4f3df
tree52ea753cb7e88b322484db5e05c2501980c134ea
parentab4d9913632b1e5ffcf3365783e98718b3c83c7f
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: 8772c0bb58bbf98a ("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