[igt-dev] [PATCH i-g-t 04/14] tools/intel_display_poller: Add pipe D support
Ville Syrjala
ville.syrjala at linux.intel.com
Thu Dec 17 16:26:53 UTC 2020
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Let's support 4 pipes for tgl+.
v2: Fix up pipe_offsets[] as well
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tools/intel_display_poller.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tools/intel_display_poller.c b/tools/intel_display_poller.c
index 0594e918bd38..826833b3d4d1 100644
--- a/tools/intel_display_poller.c
+++ b/tools/intel_display_poller.c
@@ -58,7 +58,7 @@ enum test {
};
static uint32_t vlv_offset;
-static uint16_t pipe_offset[3] = { 0, 0x1000, 0x2000, };
+static uint16_t pipe_offset[4] = { 0, 0x1000, 0x2000, 0x3000, };
#define PIPE_REG(pipe, reg_a) (pipe_offset[(pipe)] + (reg_a))
@@ -1023,7 +1023,7 @@ int main(int argc, char *argv[])
pipe -= '0';
else
usage(argv[0]);
- if (pipe < 0 || pipe > 2)
+ if (pipe < 0 || pipe > 3)
usage(argv[0]);
break;
case 'b':
@@ -1104,6 +1104,8 @@ int main(int argc, char *argv[])
if (pipe > 1 && !IS_CHERRYVIEW(devid))
usage(argv[0]);
+ if (pipe > 2)
+ usage(argv[0]);
if (test_pixelcount)
usage(argv[0]);
@@ -1129,6 +1131,10 @@ int main(int argc, char *argv[])
} else {
if (pipe > 1 && intel_gen(devid) < 7)
usage(argv[0]);
+ if (pipe > 2 && intel_gen(devid) < 12)
+ usage(argv[0]);
+ if (pipe > 3)
+ usage(argv[0]);
if (test_pixelcount)
usage(argv[0]);
--
2.26.2
More information about the igt-dev
mailing list