summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-12-18 16:28:59 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2019-02-05 22:16:31 +0200
commit0657f31ba2c00d2e51e2716b3ebd5e0192d6e928 (patch)
tree44230fd1fb982a642d17a58600fcd4be052adaad
parent672acd74d2ab73365a4aec42441316418b1bd30d (diff)
tools/intel_watermark: Decode wm blocks correctly
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ä <ville.syrjala@linux.intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
-rw-r--r--tools/intel_watermark.c4
1 files changed, 2 insertions, 2 deletions
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);