diff options
| author | Zack Rusin <zack.rusin@broadcom.com> | 2026-10-29 02:22:25 -0400 |
|---|---|---|
| committer | Zack Rusin <zack.rusin@broadcom.com> | 2026-11-16 15:09:37 -0500 |
| commit | eee4285a8c3c918bbd21791e17f2bb261a709792 (patch) | |
| tree | 37cd70f680276ce3f87d457fc0f4f3ee9e96856d /rust/kernel | |
| parent | f01848d84577e5860a187eea64f5321acaf1f893 (diff) | |
drm/vmwgfx: log MOB limits outside the manager spinlock
vmw_gmrid_man_get_node reports MOB limit expansion and allocation
failures through vmw_host_printf while holding gman->lock. The helper
formats its messages with GFP_KERNEL allocations, which may sleep.
KDE startup and desktop mode changes can reach this path, producing
"BUG: sleeping function called from invalid context" from kvasprintf()
while the manager spinlock is held. That's likely a separate bug
because KDE shouldn't be using that much memory but to debug
that properly stop filling kernel logs with warnings.
Defer both host messages until after dropping the spinlock. Capture the
failed allocation's page limit and roll back its accounting while locked,
then report the error and free the resource after unlocking. Use
drm_warn for the guest messages so they identify the device.
Fixes: cfdc3458db8a ("drm/vmwgfx: Be a lot more flexible with MOB limits")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Reviewed-by: Maaz Mombasawala <maaz.mombasawala@broadcom.com>
Link: https://patch.msgid.link/20261029215700.3009996-1-zack.rusin@broadcom.com
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
