From 0657f31ba2c00d2e51e2716b3ebd5e0192d6e928 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Tue, 18 Dec 2018 16:28:59 +0200 Subject: tools/intel_watermark: Decode wm blocks correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump up the width of the wm blocks to 11 bits, which it is on icl. On earlier platforms it was actually 10 bits but the code decoded it as 9 bits. Signed-off-by: Ville Syrjälä Reviewed-by: José Roberto de Souza --- tools/intel_watermark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c index c98b8649..97b76925 100644 --- a/tools/intel_watermark.c +++ b/tools/intel_watermark.c @@ -319,7 +319,7 @@ static void skl_wm_dump(void) for (level = 0; level < num_levels; level++) { printf("%5d", level); for (plane = 0; plane < num_planes; plane++) { - blocks = REG_DECODE1(wm[level][pipe][plane], 0, 9); + blocks = REG_DECODE1(wm[level][pipe][plane], 0, 11); lines = REG_DECODE1(wm[level][pipe][plane], 14, 5); enable = REG_DECODE1(wm[level][pipe][plane], 31, 1); @@ -334,7 +334,7 @@ static void skl_wm_dump(void) printf("TRANS"); for (plane = 0; plane < num_planes; plane++) { - blocks = REG_DECODE1(wm_trans[pipe][plane], 0, 9); + blocks = REG_DECODE1(wm_trans[pipe][plane], 0, 11); lines = REG_DECODE1(wm_trans[pipe][plane], 14, 5); enable = REG_DECODE1(wm_trans[pipe][plane], 31, 1); -- cgit v1.2.3