diff options
| author | Hans de Goede <[email protected]> | 2020-02-28 12:41:09 +0100 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2020-03-02 14:01:42 +0100 |
| commit | 1ca002adce955d9f0769e8830a62a50fb039d09d (patch) | |
| tree | fee8bac906d85685c1293e00c08ef8314032a73f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 40d4f2f79081d5260e293957e3ff0e475c1db45e (diff) | |
drm/i915/dsi: Remove readback of panel orientation on BYT / CHT
Commit 82daca297506 ("drm/i915: Add "panel orientation" property to the
panel connector, v6.") uses hardware state readback to determine if the
GOP is rotating the image by 180 degrees to compensate for upside-down
mounted panels.
When I wrote that commit I tried to find the VBT bits the GOP used to
decide to rotate the image, but I could not find them. Back then I only
looked at the rotation bits in struct mipi_config and these read 0 on
the 1 BYT device I have with an upside-down mounted panel
(a GP-electronic T701 tablet). While working on a similar problem on a
BYT device with an eDP panel I noticed that the new
intel_dsi_get_panel_orientation() helper which gets used on newer
SoCs (Apollo-Lake, etc.) checks the rotate_180 bit in the
BDB_GENERAL_FEATURES VBT block.
I've checked and this bit indeed is set on the GP-electronic T701 tablet,
so using the generic intel_dsi_get_panel_orientation() helper there does
the right thing without needing any extra readback of hw state.
This commit removes the special handling of the panel orientation for
DSI panels on BYT/CHT devices, bringing the handling in line with the
handling of DSI panels on other devices.
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions