From 672acd74d2ab73365a4aec42441316418b1bd30d Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Tue, 18 Dec 2018 16:23:59 +0200 Subject: tools/intel_watermark: More bits for PLANE_BUF_CFG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On icl PLANE_BUF_CFG fields are 11 bits. Decode them correctly. v2: s/biths/bits/ in the subject (José) Signed-off-by: Ville Syrjälä Reviewed-by: José Roberto de Souza --- tools/intel_watermark.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c index b61a26f1..c98b8649 100644 --- a/tools/intel_watermark.c +++ b/tools/intel_watermark.c @@ -349,20 +349,20 @@ static void skl_wm_dump(void) printf("\nstart"); for (plane = 0; plane < num_planes; plane++) { - start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10); + start = REG_DECODE1(buf_cfg[pipe][plane], 0, 11); printf("%10d", start); } printf("\n end"); for (plane = 0; plane < num_planes; plane++) { - end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10); + end = REG_DECODE1(buf_cfg[pipe][plane], 16, 11); printf("%10d", end); } printf("\n size"); for (plane = 0; plane < num_planes; plane++) { - start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10); - end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10); + start = REG_DECODE1(buf_cfg[pipe][plane], 0, 11); + end = REG_DECODE1(buf_cfg[pipe][plane], 16, 11); size = end - start + 1; printf("%10d", (end == 0 && size == 1) ? 0 : size); } -- cgit v1.2.3