Thread (19 messages) 19 messages, 3 authors, 2021-05-14

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

From: Lisovskiy, Stanislav <hidden>
Date: 2021-05-14 09:50:17

On Wed, Apr 14, 2021 at 05:27:51AM +0300, Ville Syrjala wrote:
From: Ville Syrjälä <redacted>

Decode pipe D watermark stuff too.
Reviewed-by: Stanislav Lisovskiy <redacted>
quoted hunk ↗ jump to hunk
Signed-off-by: Ville Syrjälä <redacted>
---
 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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help