[igt-dev] [PATCH i-g-t 5/8] tools/intel_watermark: TGL+ can have 4 pipes

Ville Syrjala ville.syrjala at linux.intel.com
Wed Apr 14 02:27:51 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Decode pipe D watermark stuff too.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_watermark.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index ff373fdb0c6d..657fff20ec7a 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;
-- 
2.26.3



More information about the igt-dev mailing list