summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-04-09 15:42:05 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-05-14 16:04:21 +0300
commitce1aab395f292e797e366d6bb8ecfb4fbeb0aab6 (patch)
tree80ceb012fb89aa66385c9da2a9d22c72db0276cd /tools
parent4d32976041f43aaeff18a184a92fab96a8b05e9f (diff)
tools/intel_watermark: TGL+ can have 4 pipes
Decode pipe D watermark stuff too. Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_watermark.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index ff373fdb..657fff20 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -131,6 +131,11 @@ static char endis_ast(bool enabled)
return enabled ? '*' : ' ';
}
+static int skl_num_pipes(uint32_t d)
+{
+ return intel_gen(d) >= 12 ? 4 : 3;
+}
+
static int skl_num_planes(uint32_t d, int pipe)
{
int gen = intel_gen(d);
@@ -269,7 +274,7 @@ static void skl_wm_dump(void)
{
struct intel_mmio_data mmio_data;
int pipe, plane, level;
- int num_pipes = 3;
+ int num_pipes = skl_num_pipes(devid);
int max_planes = skl_max_planes(devid);
int num_levels = 8;
uint32_t base_addr = 0x70000, addr, wm_offset;