From 8416bc1c60114034a2b624d45cae09eb8241954d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 25 Mar 2023 06:41:13 -0700 Subject: [PATCH] freedreno/drm: Disable threaded-submit for msm We've had drm/sched support on the kernel side for more than a year and a half. This makes submit ioctl async by handling fence waits from the sched's kthread, which is what threaded submit was originally working around. For now, threaded submit is only used for virtgpu, which does not (yet?) have drm/sched support. Signed-off-by: Rob Clark Part-of: --- src/freedreno/drm/msm/msm_device.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/freedreno/drm/msm/msm_device.c b/src/freedreno/drm/msm/msm_device.c index 563f8fbc62c..4e353c1375c 100644 --- a/src/freedreno/drm/msm/msm_device.c +++ b/src/freedreno/drm/msm/msm_device.c @@ -60,15 +60,6 @@ msm_device_new(int fd, drmVersionPtr version) dev->funcs = &funcs; dev->version = version->version_minor; - /* async submit_queue currently only used for msm_submit_sp: */ - if (version->version_minor >= FD_VERSION_SOFTPIN) { - /* Note the name is intentionally short to avoid the queue - * thread's comm truncating the interesting part of the - * process name. - */ - util_queue_init(&dev->submit_queue, "sq", 8, 1, 0, NULL); - } - if (version->version_minor >= FD_VERSION_CACHED_COHERENT) { struct drm_msm_gem_new new_req = { .size = 0x1000,