Skip to contentSkip to conversation

drm/i915: Do not share hwsp across contexts any more, v5.1

PATCH Maarten Lankhorst 1 participant 1 message Oct 22, 2020 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Op 21-10-2020 om 16:44 schreef Chris Wilson:

Quoted 7 lines

Quoting Maarten Lankhorst (2020-10-21 15:39:48)

Quoted 3 lines

Instead of sharing pages with breadcrumbs, give each timeline a single page. This allows unrelated timelines not to share locks any more during command submission.

This is designed to fail. No. The hwsp is observed externally with a lifetime outside of the local timeline's control.
-Chris

Hey,

Thank you for looking at the patch. It seems you're worried about lifetime issues. When the timeline is pinned, i915_active takes a reference on the vma pin and timeline.

intel_timeline_read_hwsp() uses the existing i915_active trick to keep the timeline alive, so this will stay working correctly as intended. :)

Can I add your reviewed-by for the patch when I submit it to the ml again?

Cheers,
~Maarten

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx