drm/vmwgfx: Add a debug callback to mobid resource manager
authorZack Rusin <zackr@vmware.com>
Mon, 6 Dec 2021 17:26:10 +0000 (12:26 -0500)
committerZack Rusin <zackr@vmware.com>
Thu, 9 Dec 2021 18:16:15 +0000 (13:16 -0500)
commitf4708c16a6d7da93baee9ebf9cd46359b4a34bd7
tree01506ee8edfb9f2b95dfb81e1aae9b2fd90b809f
parent8aadeb8ad874b3b13431fd08c1ddb6d5e0212c7f
drm/vmwgfx: Add a debug callback to mobid resource manager

Mob/GMR id resource manager was lacking the debug print callback
which meant that during memory errors we weren't getting the details
which are needed to fix those errors.

Kernel logs need to contain the information about used/max pages
by the Mob/GMR id resource manager as well as the maximum number
of id's they're allowed to allocate.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206172620.3139754-3-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c