mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
drm/i915: Use i915_vma_offset() in intel_dpt_offset()
Replace the open coded vma mm node stuff in intel_dpt_offset() with i915_vma_offset(). This will also include the VT-d guard in the result. Granted that should always be 0 for DPT, but it seems prudent to include that in our DPT vma offset check anyway. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250717171353.23090-5-ville.syrjala@linux.intel.com
This commit is contained in:
parent
44ebdab4b6
commit
c6ab589fee
|
|
@ -322,5 +322,5 @@ void intel_dpt_destroy(struct i915_address_space *vm)
|
|||
|
||||
u64 intel_dpt_offset(struct i915_vma *dpt_vma)
|
||||
{
|
||||
return dpt_vma->node.start;
|
||||
return i915_vma_offset(dpt_vma);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -302,8 +302,8 @@ int intel_plane_pin_fb(struct intel_plane_state *plane_state,
|
|||
WARN_ON(plane_state->ggtt_vma == plane_state->dpt_vma);
|
||||
|
||||
/*
|
||||
* The DPT object contains only one vma, so
|
||||
* the VMA's offset within the DPT is always 0.
|
||||
* The DPT object contains only one vma, and there is no VT-d
|
||||
* guard, so the VMA's offset within the DPT is always 0.
|
||||
*/
|
||||
drm_WARN_ON(display->drm, intel_dpt_offset(plane_state->dpt_vma));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user