Skip to content

Commit f16873f

Browse files
matt-auldThomas Hellström
authored andcommitted
drm/xe: move DPT l2 flush to a more sensible place
Only need the flush for DPT host updates here. Normal GGTT updates don't need special flush. Fixes: 01570b4 ("drm/xe/bmg: implement Wa_16023588340") Signed-off-by: Matthew Auld <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: [email protected] # v6.12+ Reviewed-by: Ville Syrjälä <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]> (cherry picked from commit 35db1da) Signed-off-by: Thomas Hellström <[email protected]>
1 parent a4b1b51 commit f16873f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/xe/display/xe_fb_pin.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb,
164164

165165
vma->dpt = dpt;
166166
vma->node = dpt->ggtt_node[tile0->id];
167+
168+
/* Ensure DPT writes are flushed */
169+
xe_device_l2_flush(xe);
167170
return 0;
168171
}
169172

@@ -333,8 +336,6 @@ static struct i915_vma *__xe_pin_fb_vma(const struct intel_framebuffer *fb,
333336
if (ret)
334337
goto err_unpin;
335338

336-
/* Ensure DPT writes are flushed */
337-
xe_device_l2_flush(xe);
338339
return vma;
339340

340341
err_unpin:

0 commit comments

Comments
 (0)