summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-12-18 16:23:59 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-02-05 22:15:03 +0200
commit672acd74d2ab73365a4aec42441316418b1bd30d (patch)
tree98164d9083906578f36f6ceef849146179957fb9 /tools
parentf46cb243b4234af06bf7ea18814bbff0aa36d059 (diff)
tools/intel_watermark: More bits for PLANE_BUF_CFG
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ä <ville.syrjala@linux.intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_watermark.c8
1 files changed, 4 insertions, 4 deletions
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);
}