All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] drm: Fix fb changes for async updates
@ 2019-03-14  0:20 ` Helen Koike
  0 siblings, 0 replies; 27+ messages in thread
From: Helen Koike @ 2019-03-14  0:20 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	nicholas.kazlauskas-5C7GfCeVMHo
  Cc: Heiko Stübner, Sean Paul, David Airlie,
	daniel.vetter-/w4YWyX8dFk, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	eric-WhKQ6XTQaPysTnJN9+BGXg, Mamta Shukla,
	kernel-ZGY8ohtN/8qB+jHODAdFcQ, Anthony Koo,
	Ville Syrjälä,
	David (ChunMing) Zhou, Maxime Ripard, Bhawanpreet Lakha,
	David Francis, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	harry.wentland-5C7GfCeVMHo, andrey.grodzovsky-5C7GfCeVMHo,
	Leo Li, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, Maarten Lankhorst,
	Helen Koike, Mikita Lipski, Sean Paul

Hello,

This series fixes the slow down in performance introduced by
"[PATCH v2] drm: Block fb changes for async plane updates" where async update
falls back to a sync update, causing igt failures of type:

    "CRITICAL: completed 97 cursor updated in a period of 30 flips, we
    expect to complete approximately 15360 updates, with the threshold set
    at 7680"

Please read the commit message of "drm: don't block fb changes for async
plane updates" to understand how it works.

I tested on the rockchip, on i915 and on vc4 with igt plane_cursor_legacy and
kms_cursor_legacy and I didn't see any regressions.

I couldn't test on MSM and AMD because I don't have the hardware
I would appreciate if anyone could help me testing those.

v1 link: https://patchwork.kernel.org/cover/10837847/

Thanks!
Helen

Changes in v3:
- use swap() to swap old and new framebuffers in async_update
- get the reference to old_fb and set the worker after vop_plane_atomic_update()
- add a FIXME tag for when we have multiple fbs to be released when
vblank happens.
- update commit message
- Add Reviewed-by tags
- Add TODO in drm_atomic_helper_async_commit()

Changes in v2:
- added reviewed-by tag
- update CC stable and Fixes tag
- Added reviewed-by tag
- updated CC stable and Fixes tag
- Change the order of the patch in the series, add this as the last one.
- Add documentation
- s/ballanced/balanced

Helen Koike (5):
  drm/rockchip: fix fb references in async update
  drm/amd: fix fb references in async update
  drm/msm: fix fb references in async update
  drm/vc4: fix fb references in async update
  drm: don't block fb changes for async plane updates

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  3 +-
 drivers/gpu/drm/drm_atomic_helper.c           | 22 ++++----
 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c    |  4 ++
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c   | 51 ++++++++++---------
 drivers/gpu/drm/vc4/vc4_plane.c               |  2 +-
 include/drm/drm_modeset_helper_vtables.h      |  5 ++
 6 files changed, 49 insertions(+), 38 deletions(-)

-- 
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2019-06-03 16:53 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14  0:20 [PATCH v3 0/5] drm: Fix fb changes for async updates Helen Koike
2019-03-14  0:20 ` Helen Koike
2019-03-14  0:20 ` Helen Koike
2019-03-14  0:20 ` [PATCH v3 1/5] drm/rockchip: fix fb references in async update Helen Koike
2019-03-14  0:20   ` Helen Koike
2019-03-14  0:20   ` Helen Koike
2019-03-14  0:20 ` [PATCH v3 2/5] drm/amd: " Helen Koike
2019-03-14  0:20   ` Helen Koike
2019-03-14  0:20 ` [PATCH v3 3/5] drm/msm: " Helen Koike
2019-03-27 14:52   ` Rob Clark
2019-03-27 14:52     ` Rob Clark
2019-04-03 18:03     ` Helen Koike
2019-04-03 18:03       ` Helen Koike
2019-05-31 17:54   ` Helen Koike
2019-05-31 18:50     ` Rob Clark
2019-05-31 18:50       ` Rob Clark
2019-03-14  0:20 ` [PATCH v3 4/5] drm/vc4: " Helen Koike
2019-03-25  0:38   ` Sasha Levin
     [not found] ` <20190314002027.7833-1-helen.koike-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2019-03-14  0:20   ` [PATCH v3 5/5] drm: don't block fb changes for async plane updates Helen Koike
2019-03-14  0:20     ` Helen Koike
2019-03-14  0:20     ` Helen Koike
2019-05-07 20:18     ` Sean Paul
2019-05-07 20:18       ` Sean Paul
2019-05-07 20:18       ` Sean Paul
2019-06-03 16:53       ` Helen Koike
2019-06-03 16:53         ` Helen Koike
2019-06-03 16:53         ` Helen Koike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.