Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] drm/xe: More fb pinning optimizations.
@ 2024-04-23  9:54 Maarten Lankhorst
  2024-04-23  9:54 ` [PATCH v2 1/3] drm/xe/display: Preparations for preallocating dpt bo Maarten Lankhorst
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Maarten Lankhorst @ 2024-04-23  9:54 UTC (permalink / raw)
  To: intel-xe; +Cc: intel-gfx, Maarten Lankhorst

This reduces the latency of pinning framebuffers by
re-using the previous mapping, if available.

Additionally, DPT is preallocated when creating the FB, instead
of performing a bo allocation on every pin.

Changes since v1:
- Drop the patch to prevent overwriting GGTT, to see if this fixes the test results.
  It's not needed for optimizing FB pinning.

Maarten Lankhorst (3):
  drm/xe/display: Preparations for preallocating dpt bo
  drm/xe: Use simple xchg to cache DPT
  drm/xe/display: Re-use display vmas when possible

 .../gpu/drm/i915/display/intel_atomic_plane.c |   2 +-
 drivers/gpu/drm/i915/display/intel_cursor.c   |   2 +-
 drivers/gpu/drm/i915/display/intel_fb_pin.c   |   3 +-
 drivers/gpu/drm/i915/display/intel_fb_pin.h   |   3 +-
 drivers/gpu/drm/i915/display/intel_fbdev.c    |   5 +
 drivers/gpu/drm/i915/display/intel_fbdev.h    |   9 +
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   3 +
 drivers/gpu/drm/xe/display/xe_fb_pin.c        | 220 ++++++++++++++----
 8 files changed, 198 insertions(+), 49 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 0/3] drm/xe: More fb pinning optimizations.
@ 2024-04-22 13:44 Maarten Lankhorst
  2024-04-22 13:45 ` [PATCH v2 3/3] drm/xe/display: Re-use display vmas when possible Maarten Lankhorst
  0 siblings, 1 reply; 8+ messages in thread
From: Maarten Lankhorst @ 2024-04-22 13:44 UTC (permalink / raw)
  To: intel-xe; +Cc: intel-gfx, Maarten Lankhorst

This reduces the latency of pinning framebuffers by
re-using the previous mapping, if available.

Additionally, DPT is preallocated when creating the FB, instead
of performing a bo allocation on every pin.

Changes since v1:
- Drop the patch to prevent overwriting GGTT, to see if this fixes the test results.
  It's not needed for optimizing FB pinning.

Maarten Lankhorst (3):
  drm/xe/display: Preparations for preallocating dpt bo
  drm/xe: Use simple xchg to cache DPT
  drm/xe/display: Re-use display vmas when possible

 .../gpu/drm/i915/display/intel_atomic_plane.c |   2 +-
 drivers/gpu/drm/i915/display/intel_cursor.c   |   2 +-
 drivers/gpu/drm/i915/display/intel_fb_pin.c   |   3 +-
 drivers/gpu/drm/i915/display/intel_fb_pin.h   |   3 +-
 drivers/gpu/drm/i915/display/intel_fbdev.c    |   5 +
 drivers/gpu/drm/i915/display/intel_fbdev.h    |   9 +
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   3 +
 drivers/gpu/drm/xe/display/xe_fb_pin.c        | 220 ++++++++++++++----
 8 files changed, 198 insertions(+), 49 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-04-24  8:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23  9:54 [PATCH v2 0/3] drm/xe: More fb pinning optimizations Maarten Lankhorst
2024-04-23  9:54 ` [PATCH v2 1/3] drm/xe/display: Preparations for preallocating dpt bo Maarten Lankhorst
2024-04-23  9:54 ` [PATCH v2 2/3] drm/xe: Use simple xchg to cache DPT Maarten Lankhorst
2024-04-23  9:54 ` [PATCH v2 3/3] drm/xe/display: Re-use display vmas when possible Maarten Lankhorst
2024-04-23 10:49 ` ✗ Fi.CI.CHECKPATCH: warning for drm/xe: More fb pinning optimizations Patchwork
2024-04-23 10:56 ` ✓ Fi.CI.BAT: success " Patchwork
2024-04-24  8:41 ` ✗ Fi.CI.IGT: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2024-04-22 13:44 [PATCH v2 0/3] " Maarten Lankhorst
2024-04-22 13:45 ` [PATCH v2 3/3] drm/xe/display: Re-use display vmas when possible Maarten Lankhorst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox