linux_dsm_epyc7002/drivers/gpu/drm/i915
Hans de Goede 82daca2975 drm/i915: Add "panel orientation" property to the panel connector, v6.
Ideally we could use the VBT for this, that would be simple, in
intel_dsi_init() check dev_priv->vbt.dsi.config->rotation, set
connector->display_info.panel_orientation accordingly and call
drm_connector_init_panel_orientation_property(), done.

Unfortunately vbt.dsi.config->rotation is always 0 even on tablets
with an upside down LCD and where the GOP is properly rotating the
EFI fb in hardware.

So instead we end up reading the rotation from the primary plane.

This commit only implements the panel orientation property for DSI
panels on BYT / CHT hardware, as all known non normal oriented panels
sofar are only found on this hardware.

Changes in v2:
-Read back the rotation applied by the GOP from the primary plane
 instead of relying on dev_priv->vbt.dsi.config->rotation, because it
 seems that the VBT rotation filed is always 0 even on devices where the
 GOP does apply a rotation

Changes in v3:
-Rewrite the code to read back the orientation from the primary
 plane to contain all of this in intel_dsi.c instead of poking a bunch
 of holes between all the different layers

Changes in v6:
-Move hardware readout to intel_dsi_init()

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171125193553.23986-6-hdegoede@redhat.com
2017-12-04 23:03:21 +01:00
..
gvt More change sets for 4.16: 2017-12-04 10:56:53 +10:00
selftests More change sets for 4.16: 2017-12-04 10:56:53 +10:00
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_cmd_parser.c
i915_debugfs.c drm/i915: Pass idle crtc_state to intel_dp_sink_crc 2017-11-17 12:14:25 +01:00
i915_drv.c More change sets for 4.16: 2017-12-04 10:56:53 +10:00
i915_drv.h drm/i915: Update DRIVER_DATE to 20171117 2017-11-17 14:47:02 -08:00
i915_gem_batch_pool.c
i915_gem_batch_pool.h
i915_gem_clflush.c
i915_gem_clflush.h
i915_gem_context.c main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
i915_gem_context.h drm/i915: Record the default hw state after reset upon load 2017-11-10 17:23:10 +00:00
i915_gem_dmabuf.c
i915_gem_evict.c
i915_gem_execbuffer.c drm/i915: Prevent overflow of execbuf.buffer_count and num_cliprects 2017-11-16 14:17:08 +00:00
i915_gem_fence_reg.c
i915_gem_fence_reg.h
i915_gem_gtt.c More change sets for 4.16: 2017-12-04 10:56:53 +10:00
i915_gem_gtt.h
i915_gem_internal.c
i915_gem_object.c
i915_gem_object.h drm/i915: Introduce GEM proxy 2017-11-14 12:26:36 +00:00
i915_gem_render_state.c drm/i915: Stop caching the "golden" renderstate 2017-11-10 17:23:22 +00:00
i915_gem_render_state.h drm/i915: Stop caching the "golden" renderstate 2017-11-10 17:23:22 +00:00
i915_gem_request.c
i915_gem_request.h
i915_gem_shrinker.c drm/i915: Idle the GPU before shinking everything 2017-11-09 16:18:31 +02:00
i915_gem_stolen.c drm/i915: Use ELK stolen memory reserved detection for ILK 2017-11-15 18:49:10 +02:00
i915_gem_tiling.c drm/i915: Introduce GEM proxy 2017-11-14 12:26:36 +00:00
i915_gem_timeline.c
i915_gem_timeline.h
i915_gem_userptr.c previous part 2 tag + ttm regression fix, i915,vc4,core,uapi fixes 2017-11-28 10:01:15 -08:00
i915_gem.c drm/i915: Update execlists tasklet naming 2017-11-16 15:01:31 +00:00
i915_gem.h drm/i915: Print the condition causing GEM_BUG_ON 2017-11-16 15:35:47 +02:00
i915_gemfs.c drm/i915: Disable THP until we have a GPU read BW W/A 2017-11-30 10:11:49 +02:00
i915_gemfs.h
i915_gpu_error.c drm/i915: There is only one fault register from GEN8 onwards 2017-11-13 19:04:32 +00:00
i915_guc_reg.h
i915_ioc32.c
i915_irq.c drm/i915: Update execlists tasklet naming 2017-11-16 15:01:31 +00:00
i915_memcpy.c
i915_mm.c
i915_oa_bdw.c
i915_oa_bdw.h
i915_oa_bxt.c
i915_oa_bxt.h
i915_oa_cflgt2.c
i915_oa_cflgt2.h
i915_oa_cflgt3.c drm/i915/perf: add support for Coffeelake GT3 2017-11-13 15:59:03 +00:00
i915_oa_cflgt3.h drm/i915/perf: add support for Coffeelake GT3 2017-11-13 15:59:03 +00:00
i915_oa_chv.c
i915_oa_chv.h
i915_oa_cnl.c drm/i915/perf: enable perf support on CNL 2017-11-13 15:59:24 +00:00
i915_oa_cnl.h drm/i915/perf: enable perf support on CNL 2017-11-13 15:59:24 +00:00
i915_oa_glk.c
i915_oa_glk.h
i915_oa_hsw.c
i915_oa_hsw.h
i915_oa_kblgt2.c
i915_oa_kblgt2.h
i915_oa_kblgt3.c
i915_oa_kblgt3.h
i915_oa_sklgt2.c
i915_oa_sklgt2.h
i915_oa_sklgt3.c
i915_oa_sklgt3.h
i915_oa_sklgt4.c
i915_oa_sklgt4.h
i915_params.c
i915_params.h
i915_pci.c
i915_perf.c drm/i915/perf: enable perf support on CNL 2017-11-13 15:59:24 +00:00
i915_pvinfo.h
i915_reg.h Revert "drm/i915: Display WA #1133 WaFbcSkipSegments:cnl, glk" 2017-11-17 09:52:14 -08:00
i915_selftest.h drm/i915/selftests: Reduce the volume of the timeout message 2017-11-10 11:31:58 +00:00
i915_suspend.c
i915_sw_fence.c
i915_sw_fence.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c
i915_trace_points.c
i915_trace.h main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
i915_utils.h
i915_vgpu.c
i915_vgpu.h
i915_vma.c drm/i915: Mark up i915_vma_unbind() as a potential sleeper 2017-11-09 22:06:09 +00:00
i915_vma.h
intel_acpi.c
intel_atomic_plane.c
intel_atomic.c
intel_audio.c drm/i915: Fix kerneldocs for intel_audio.c 2017-11-15 17:32:54 +02:00
intel_bios.c Merge airlied/drm-next into drm-intel-next-queued 2017-11-14 07:43:00 -08:00
intel_bios.h
intel_breadcrumbs.c drm/i915: Clear breadcrumb node when cancelling signaling 2017-11-21 11:39:56 +02:00
intel_cdclk.c
intel_color.c drm/i915: Pass crtc_state to ips toggle functions, v2 2017-11-17 12:14:25 +01:00
intel_crt.c drm/i915: Eliminate crtc->config usage from CRT code 2017-11-09 20:05:18 +02:00
intel_csr.c
intel_ddi.c drm/i915: Generalize transcoder looping 2017-11-14 16:17:51 +02:00
intel_device_info.c drm/i915: Remove pre-production pooled-EU w/a for Broxton 2017-11-15 18:04:18 +00:00
intel_display.c More change sets for 4.16: 2017-12-04 10:56:53 +10:00
intel_dp_aux_backlight.c
intel_dp_link_training.c
intel_dp_mst.c drm/i915: Nuke intel_digital_port->port 2017-11-09 20:06:14 +02:00
intel_dp.c More change sets for 4.16: 2017-12-04 10:56:53 +10:00
intel_dpio_phy.c drm/i915: Nuke intel_digital_port->port 2017-11-09 20:06:14 +02:00
intel_dpll_mgr.c drm/i915/cnl: Simplify dco_fraction calculation. 2017-11-16 09:45:39 -08:00
intel_dpll_mgr.h
intel_drv.h More change sets for 4.16: 2017-12-04 10:56:53 +10:00
intel_dsi_dcs_backlight.c
intel_dsi_pll.c
intel_dsi_vbt.c
intel_dsi.c drm/i915: Add "panel orientation" property to the panel connector, v6. 2017-12-04 23:03:21 +01:00
intel_dsi.h
intel_dvo.c
intel_engine_cs.c drm/i915: Update execlists tasklet naming 2017-11-16 15:01:31 +00:00
intel_fbc.c
intel_fbdev.c drm/i915/fbdev: Serialise early hotplug events with async fbdev config 2017-11-28 10:31:52 +02:00
intel_fifo_underrun.c
intel_frontbuffer.c
intel_frontbuffer.h
intel_guc_ct.c
intel_guc_ct.h
intel_guc_fw.c
intel_guc_fw.h
intel_guc_fwif.h
intel_guc_log.c
intel_guc_log.h
intel_guc_submission.c drm/i915/selftests: Add a GuC doorbells selftest 2017-11-17 10:02:39 +00:00
intel_guc_submission.h drm/i915/guc: Rename i915_guc_submission.c|h to intel_guc_submission.c|h 2017-11-16 15:06:18 +00:00
intel_guc.c drm/i915/guc: Rename i915_guc_submission.c|h to intel_guc_submission.c|h 2017-11-16 15:06:18 +00:00
intel_guc.h drm/i915/guc: Rename i915_guc_client struct to intel_guc_client 2017-11-16 15:04:17 +00:00
intel_gvt.c
intel_gvt.h
intel_hangcheck.c
intel_hdmi.c More change sets for 4.16: 2017-12-04 10:56:53 +10:00
intel_hotplug.c
intel_huc.c
intel_huc.h
intel_i2c.c drm/i915: Prevent zero length "index" write 2017-11-28 10:31:42 +02:00
intel_lpe_audio.c
intel_lrc.c drm/i915: Update execlists tasklet naming 2017-11-16 15:01:31 +00:00
intel_lrc.h
intel_lspcon.c
intel_lvds.c
intel_mocs.c
intel_mocs.h
intel_modes.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
intel_opregion.c
intel_overlay.c
intel_panel.c
intel_pipe_crc.c drm/i915: Nuke intel_digital_port->port 2017-11-09 20:06:14 +02:00
intel_pm.c Revert "drm/i915: Display WA #1133 WaFbcSkipSegments:cnl, glk" 2017-11-17 09:52:14 -08:00
intel_psr.c drm/i915: Nuke intel_digital_port->port 2017-11-09 20:06:14 +02:00
intel_renderstate_gen6.c
intel_renderstate_gen7.c
intel_renderstate_gen8.c
intel_renderstate_gen9.c
intel_renderstate.h
intel_ringbuffer.c drm/i915: Make request's wait-for-space explicit 2017-11-15 17:12:49 +00:00
intel_ringbuffer.h More change sets for 4.16: 2017-12-04 10:56:53 +10:00
intel_runtime_pm.c
intel_sdvo_regs.h
intel_sdvo.c drm/i915: Eliminate some encoder->crtc usage from SDVO code 2017-11-09 20:04:47 +02:00
intel_sideband.c
intel_sprite.c drm/i915/glk: Refactor handling of PLANE_COLOR_CTL for GLK+ 2017-11-14 15:43:52 +02:00
intel_tv.c drm/i915: Eliminate some encoder->crtc usage from TV code 2017-11-09 20:04:56 +02:00
intel_uc_fw.c
intel_uc_fw.h
intel_uc.c drm/i915/guc: Rename i915_guc_submission.c|h to intel_guc_submission.c|h 2017-11-16 15:06:18 +00:00
intel_uc.h
intel_uncore.c drm/i915: Re-register PMIC bus access notifier on runtime resume 2017-11-21 11:39:31 +02:00
intel_uncore.h drm/i915: Re-register PMIC bus access notifier on runtime resume 2017-11-21 11:39:31 +02:00
intel_vbt_defs.h
Kconfig
Kconfig.debug drm/i915: Use trace_printk to provide a death rattle for GEM 2017-11-09 21:39:18 +00:00
Makefile More change sets for 4.16: 2017-12-04 10:56:53 +10:00