]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915: Rename selective fetch plane registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 May 2024 13:56:14 +0000 (16:56 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 May 2024 12:45:34 +0000 (15:45 +0300)
Rename the selective fetch plane registers to match the spec.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240516135622.3498-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_psr_regs.h
drivers/gpu/drm/i915/display/skl_universal_plane.c

index 23851513054a5a74ef689ba51b231a336aa0e141..2a8746bc18dca2f42d9eccd719726cbf21c270f0 100644 (file)
                                            _SEL_FETCH_PLANE_BASE_A(plane))
 
 #define _SEL_FETCH_PLANE_CTL_1_A               0x70890
-#define PLANE_SEL_FETCH_CTL(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
+#define SEL_FETCH_PLANE_CTL(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
                                               _SEL_FETCH_PLANE_CTL_1_A - \
                                               _SEL_FETCH_PLANE_BASE_1_A)
-#define PLANE_SEL_FETCH_CTL_ENABLE             REG_BIT(31)
+#define SEL_FETCH_PLANE_CTL_ENABLE             REG_BIT(31)
 
 #define _SEL_FETCH_PLANE_POS_1_A               0x70894
-#define PLANE_SEL_FETCH_POS(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
+#define SEL_FETCH_PLANE_POS(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
                                               _SEL_FETCH_PLANE_POS_1_A - \
                                               _SEL_FETCH_PLANE_BASE_1_A)
 
 #define _SEL_FETCH_PLANE_SIZE_1_A              0x70898
-#define PLANE_SEL_FETCH_SIZE(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
+#define SEL_FETCH_PLANE_SIZE(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
                                                _SEL_FETCH_PLANE_SIZE_1_A - \
                                                _SEL_FETCH_PLANE_BASE_1_A)
 
 #define _SEL_FETCH_PLANE_OFFSET_1_A            0x7089C
-#define PLANE_SEL_FETCH_OFFSET(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
+#define SEL_FETCH_PLANE_OFFSET(pipe, plane) _MMIO(_SEL_FETCH_PLANE_BASE(pipe, plane) + \
                                                  _SEL_FETCH_PLANE_OFFSET_1_A - \
                                                  _SEL_FETCH_PLANE_BASE_1_A)
 
index d99fec8e5233bc4a64b6df438e583bf16dcff3e4..31127ce0b950b477a2c6aa9b18428929f40b1519 100644 (file)
@@ -705,7 +705,7 @@ static void icl_plane_disable_sel_fetch_arm(struct intel_plane *plane,
        if (!crtc_state->enable_psr2_sel_fetch)
                return;
 
-       intel_de_write_fw(i915, PLANE_SEL_FETCH_CTL(pipe, plane->id), 0);
+       intel_de_write_fw(i915, SEL_FETCH_PLANE_CTL(pipe, plane->id), 0);
 }
 
 static void
@@ -1304,7 +1304,7 @@ static void icl_plane_update_sel_fetch_noarm(struct intel_plane *plane,
 
        val = (clip->y1 + plane_state->uapi.dst.y1) << 16;
        val |= plane_state->uapi.dst.x1;
-       intel_de_write_fw(i915, PLANE_SEL_FETCH_POS(pipe, plane->id), val);
+       intel_de_write_fw(i915, SEL_FETCH_PLANE_POS(pipe, plane->id), val);
 
        x = plane_state->view.color_plane[color_plane].x;
 
@@ -1319,13 +1319,13 @@ static void icl_plane_update_sel_fetch_noarm(struct intel_plane *plane,
 
        val = y << 16 | x;
 
-       intel_de_write_fw(i915, PLANE_SEL_FETCH_OFFSET(pipe, plane->id),
+       intel_de_write_fw(i915, SEL_FETCH_PLANE_OFFSET(pipe, plane->id),
                          val);
 
        /* Sizes are 0 based */
        val = (drm_rect_height(clip) - 1) << 16;
        val |= (drm_rect_width(&plane_state->uapi.src) >> 16) - 1;
-       intel_de_write_fw(i915, PLANE_SEL_FETCH_SIZE(pipe, plane->id), val);
+       intel_de_write_fw(i915, SEL_FETCH_PLANE_SIZE(pipe, plane->id), val);
 }
 
 static void
@@ -1414,8 +1414,8 @@ static void icl_plane_update_sel_fetch_arm(struct intel_plane *plane,
                return;
 
        if (drm_rect_height(&plane_state->psr2_sel_fetch_area) > 0)
-               intel_de_write_fw(i915, PLANE_SEL_FETCH_CTL(pipe, plane->id),
-                                 PLANE_SEL_FETCH_CTL_ENABLE);
+               intel_de_write_fw(i915, SEL_FETCH_PLANE_CTL(pipe, plane->id),
+                                 SEL_FETCH_PLANE_CTL_ENABLE);
        else
                icl_plane_disable_sel_fetch_arm(plane, crtc_state);
 }