]> asedeno.scripts.mit.edu Git - linux.git/commit
video: hyperv_fb: Fix hibernation for the deferred IO feature
authorDexuan Cui <decui@microsoft.com>
Mon, 6 Jan 2020 22:41:51 +0000 (14:41 -0800)
committerSasha Levin <sashal@kernel.org>
Sat, 25 Jan 2020 21:52:11 +0000 (16:52 -0500)
commit382a46221757250966621f046e91d8c05adac12b
treef30fede9f558d1f40ceac9d4e1a3ed7e5ac4ad67
parente2379b30324ca5ba808f16cb3d2504349264912f
video: hyperv_fb: Fix hibernation for the deferred IO feature

fb_deferred_io_work() can access the vmbus ringbuffer by calling
fbdefio->deferred_io() -> synthvid_deferred_io() -> synthvid_update().

Because the vmbus ringbuffer is inaccessible between hvfb_suspend()
and hvfb_resume(), we must cancel info->deferred_work before calling
vmbus_close() and then reschedule it after we reopen the channel
in hvfb_resume().

Fixes: a4ddb11d297e ("video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver")
Fixes: 824946a8b6fb ("video: hyperv_fb: Add the support of hibernation")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Wei Hu <weh@microsoft.com>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/hyperv_fb.c