aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_io_utils.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2023-03-24 22:00:13 +0000
committerDmitry Baryshkov <[email protected]>2023-04-06 17:29:40 +0000
commit4969bccd5f4e9d59e9aca7e873834be9519be013 (patch)
tree781754e92bea4d1f441a460bc05830c7aff6c701 /drivers/gpu/drm/msm/msm_io_utils.c
parentdrm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code (diff)
downloadkernel-4969bccd5f4e9d59e9aca7e873834be9519be013.tar.gz
kernel-4969bccd5f4e9d59e9aca7e873834be9519be013.zip
drm/msm: Avoid rounding down to zero jiffies
If userspace asked for a timeout greater than zero, but less than a jiffy, they clearly weren't planning on spinning. So it is better to round up to one. This fixes an issue with supertuxkart that was (for some reason) spinning on a gl sync with 1ms timeout. CPU time for a demo lap drops from: 15.83user 20.98system 0:47.46elapsed 77%CPU drops to: 8.84user 2.30system 0:46.67elapsed 23%CPU Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/528725/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_io_utils.c')
0 files changed, 0 insertions, 0 deletions