diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-04-10 18:04:42 +0300 |
|---|---|---|
| committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2026-04-15 12:36:10 +0300 |
| commit | 85b4011bef446eb46e028a38bf4ed2dff976a74e (patch) | |
| tree | d309d53d705a68f59278bb088f832c4129281d11 /drivers | |
| parent | 1f258c23503dbf546114e482e8253d3b39afc9e5 (diff) | |
drm/i915: Don't pass the whole plane_config to initial_plane_phys()
initial_plane_phys() only needs the 'base' (== ggtt virtual address)
from the plane_config. Stop passing the whole plane_config and just
pass the 'base'.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260410150449.9699-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/i915/i915_initial_plane.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_initial_plane.c b/drivers/gpu/drm/i915/i915_initial_plane.c index 060aa0388c39..6df57db9b62a 100644 --- a/drivers/gpu/drm/i915/i915_initial_plane.c +++ b/drivers/gpu/drm/i915/i915_initial_plane.c @@ -34,8 +34,7 @@ initial_plane_memory_type(struct drm_i915_private *i915) static bool initial_plane_phys(struct drm_i915_private *i915, - struct intel_initial_plane_config *plane_config, - resource_size_t *out_phys_base, + u32 base, resource_size_t *out_phys_base, struct intel_memory_region **out_mem) { struct i915_ggtt *ggtt = to_gt(i915)->ggtt; @@ -43,7 +42,6 @@ initial_plane_phys(struct drm_i915_private *i915, enum intel_memory_type mem_type; bool is_present, is_local; dma_addr_t dma_addr; - u32 base; mem_type = initial_plane_memory_type(i915); mem = intel_memory_region_by_type(i915, mem_type); @@ -54,7 +52,7 @@ initial_plane_phys(struct drm_i915_private *i915, return false; } - base = round_down(plane_config->base, I915_GTT_MIN_ALIGNMENT); + base = round_down(base, I915_GTT_MIN_ALIGNMENT); dma_addr = intel_ggtt_read_entry(&ggtt->vm, base, &is_present, &is_local); @@ -101,7 +99,7 @@ initial_plane_vma(struct drm_i915_private *i915, if (plane_config->size == 0) return NULL; - if (!initial_plane_phys(i915, plane_config, &phys_base, &mem)) + if (!initial_plane_phys(i915, plane_config->base, &phys_base, &mem)) return NULL; base = round_down(plane_config->base, I915_GTT_MIN_ALIGNMENT); |
