public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [RFC i-g-t] LPSP igt test on TGL
@ 2020-02-27  8:41 Anshuman Gupta
  2020-02-27 12:44 ` Jani Nikula
  2020-02-27 12:55 ` Ville Syrjälä
  0 siblings, 2 replies; 8+ messages in thread
From: Anshuman Gupta @ 2020-02-27  8:41 UTC (permalink / raw)
  To: igt-dev; +Cc: martin.peres

+-------------------------------------------------------------------------------+
|                                                                               |
|                                                                               |
|                                                                               |
|   +--------------------+        +-------------+         +------------+        |
|   |                    |        |             |         |            |        |
|   |    PIPE A          |        | DP/HDMI     |         |   PORT_A   |        |
|   |                    +--------+ TRANSCODER  +---------+            |        |
|   |                    |        |             |         |            |        |
|   +--------------------+        +------------->         +------------>        |
|                                 |             |         |            |        |
|                                 |             |         |   PORT_B   |        |
|                                 |             |         |            |        |
|                                 |             |         |            |        |
|                                 +------------->         +------------>        |
|                                 |             |         |            |        |
|                                 | DSI         |         |   PORT_C   |        |
|                                 | TRANSCODER  |         |            |        |
|                                 +------------->         +------------+        |
|                                 |             |                               |
|                                 |             |                               |
|                                 |             |                               |
|                                 |             |                               |
|                                 |             |                               |
|                                 |             |                               |
|                                 |             |                               |
|                                 +-------------+                               |
|                                                                               |
|                   LPSP on Tigerlake                                           |
|                                                                               |
+-------------------------------------------------------------------------------+

Above block diagram depicts lpsp on TGL, while earlier development of lpsp igt test
it has been assumed that every non-edp panel is not a lpsp panel but it is not true
on TGL, any HDMI/DP panel connected on pipe A and connected to PORT_{A,B,C} is lpsp
panel, and DSI panel is also lpsp panel.

Currently i915_pm_lpsp igt has been categorized in edp-native and non-edp subtest.
non-edp subtest require the fix to validate the lpsp panels.
My solution approach to check the port on which DP/HDMI connector is currently 
connected.
if (port <= PORT_C)
    lpsp_should_be_enabled.
else
    lpsp_should_be_disabled.
 
Currently there are two igt i915_pm_lpsp, i915_pm_rpm require to know the port
of DP/HDMI connector, so we need a igt library function for that.

I am looking to parse the i915_display_info to get the port information, but at 
same time it seems a fragile solution to me as any change in i915_display_info
will break the test, but i don't have any other idea to get the port information.

Please provide your opinion and feedback for the above solution approach.

Thanks,
Anshuman Gupta.
-- 
2.25.1

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

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

end of thread, other threads:[~2020-03-03 12:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27  8:41 [igt-dev] [RFC i-g-t] LPSP igt test on TGL Anshuman Gupta
2020-02-27 12:44 ` Jani Nikula
2020-03-03  4:27   ` Anshuman Gupta
2020-03-03  8:34     ` Jani Nikula
2020-03-03  8:45       ` Anshuman Gupta
2020-03-03 10:44         ` Jani Nikula
2020-03-03 12:20           ` Anshuman Gupta
2020-02-27 12:55 ` Ville Syrjälä

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