Skip to content

Instantly share code, notes, and snippets.

@m-weigand
Created December 9, 2022 18:33
Show Gist options
  • Save m-weigand/872427df624293625c64045f364696a3 to your computer and use it in GitHub Desktop.
Save m-weigand/872427df624293625c64045f364696a3 to your computer and use it in GitHub Desktop.
ebc: Maybe improved global refreshes
diff --git a/drivers/gpu/drm/rockchip/rockchip_ebc.c b/drivers/gpu/drm/rockchip/rockchip_ebc.c
@@ -242,6 +248,10 @@ static int ioctl_trigger_global_refresh(struct drm_device *dev, void *data,
ebc->do_one_full_refresh = true;
spin_unlock(&ebc->refresh_once_lock);
// try to trigger the refresh immediately
+ /* if (ebc->refresh_thread->is_parked) */
+ /* printk(KERN_INFO "[rockchip_ebc] thread parked"); */
+
+ kthread_unpark(ebc->refresh_thread);
wake_up_process(ebc->refresh_thread);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment