Skip to content

Commit 5dac808

Browse files
committed
drm/i915: s/plane_res_b/blocks/ etc.
Rename a bunch of the skl+ watermark struct members to have sensible names. Avoids me having to think what plane_res_b/etc. means. Cc: Stanislav Lisovskiy <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Stanislav Lisovskiy <[email protected]>
1 parent a5941b4 commit 5dac808

File tree

3 files changed

+112
-116
lines changed

3 files changed

+112
-116
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9216,12 +9216,12 @@ static void verify_wm_state(struct intel_crtc *crtc,
92169216
drm_err(&dev_priv->drm,
92179217
"[PLANE:%d:%s] mismatch in WM%d (expected e=%d b=%u l=%u, got e=%d b=%u l=%u)\n",
92189218
plane->base.base.id, plane->base.name, level,
9219-
sw_wm_level->plane_en,
9220-
sw_wm_level->plane_res_b,
9221-
sw_wm_level->plane_res_l,
9222-
hw_wm_level->plane_en,
9223-
hw_wm_level->plane_res_b,
9224-
hw_wm_level->plane_res_l);
9219+
sw_wm_level->enable,
9220+
sw_wm_level->blocks,
9221+
sw_wm_level->lines,
9222+
hw_wm_level->enable,
9223+
hw_wm_level->blocks,
9224+
hw_wm_level->lines);
92259225
}
92269226

92279227
hw_wm_level = &hw->wm.planes[plane->id].trans_wm;
@@ -9231,12 +9231,12 @@ static void verify_wm_state(struct intel_crtc *crtc,
92319231
drm_err(&dev_priv->drm,
92329232
"[PLANE:%d:%s] mismatch in trans WM (expected e=%d b=%u l=%u, got e=%d b=%u l=%u)\n",
92339233
plane->base.base.id, plane->base.name,
9234-
sw_wm_level->plane_en,
9235-
sw_wm_level->plane_res_b,
9236-
sw_wm_level->plane_res_l,
9237-
hw_wm_level->plane_en,
9238-
hw_wm_level->plane_res_b,
9239-
hw_wm_level->plane_res_l);
9234+
sw_wm_level->enable,
9235+
sw_wm_level->blocks,
9236+
sw_wm_level->lines,
9237+
hw_wm_level->enable,
9238+
hw_wm_level->blocks,
9239+
hw_wm_level->lines);
92409240
}
92419241

92429242
/* DDB */

drivers/gpu/drm/i915/display/intel_display_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,9 @@ struct intel_pipe_wm {
725725

726726
struct skl_wm_level {
727727
u16 min_ddb_alloc;
728-
u16 plane_res_b;
729-
u8 plane_res_l;
730-
bool plane_en;
728+
u16 blocks;
729+
u8 lines;
730+
bool enable;
731731
bool ignore_lines;
732732
bool can_sagv;
733733
};

0 commit comments

Comments
 (0)