public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [RFC i-g-t 0/1] test/kms: Use bare number of crtc index to get a pipe
@ 2020-03-18 13:56 Mohammed Khajapasha
  2020-03-18 13:56 ` [igt-dev] [RFC i-g-t 1/1] " Mohammed Khajapasha
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Khajapasha @ 2020-03-18 13:56 UTC (permalink / raw)
  To: igt-dev

In non-continous pipe display,
1. if PIPE_B,C is disabled in kernel, PIPE_A & PIPE_D
get registered with 0,1 indexes in display pipes[] array
and kmstest_pipe_name() always prints PIPE_B for enum pipe 1
which is actually PIPE_D in kernel.
2. And in kernel the possible_crtc bit map is based on
crtc index and for PIPE_D second least bit set in possible_crtc,
macro for_each_pipe_with_valid_output() with enum pipe index
always assumes PIPE_B for second least bit in possible_crtc
but it is PIPE_D in kernel.

To avoid this using bare number of crtc index
to get a pipe from display->pipes[] array to support
non-continuous pipe display.
This is a sample change to review on usage of bare number of
https://patchwork.freedesktop.org/series/74431/
crtc index for each pipe, based upon the review the patch series
will be updated with this change.

Mohammed Khajapasha (1):
  test/kms: Use bare number of crtc index to get a pipe

 lib/igt_kms.c                 |  22 ++--
 lib/igt_kms.h                 |  26 ++---
 tests/kms_atomic_transition.c | 196 +++++++++++++++++-----------------
 3 files changed, 121 insertions(+), 123 deletions(-)

-- 
2.24.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-18 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-18 13:56 [igt-dev] [RFC i-g-t 0/1] test/kms: Use bare number of crtc index to get a pipe Mohammed Khajapasha
2020-03-18 13:56 ` [igt-dev] [RFC i-g-t 1/1] " Mohammed Khajapasha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox