linux-uconsole/include/drm
Shashank Sharma 5690766636 UPSTREAM: drm: handle HDMI 2.0 VICs in AVI info-frames
HDMI 1.4b support the CEA video modes as per range of CEA-861-D (VIC 1-64).
For any other mode, the VIC filed in AVI infoframes should be 0.
HDMI 2.0 sinks, support video modes range as per CEA-861-F spec, which is
extended to (VIC 1-107).

This patch adds a bool input variable, which indicates if the connected
sink is a HDMI 2.0 sink or not. This will make sure that we don't pass a
HDMI 2.0 VIC to a HDMI 1.4 sink.

This patch touches all drm drivers, who are callers of this function
drm_hdmi_avi_infoframe_from_display_mode but to make sure there is
no change in current behavior, is_hdmi2 is kept as false.

In case of I915 driver, this patch:
- checks if the connected display is HDMI 2.0.
- HDMI infoframes carry one of this two type of information:
	- VIC for 4K modes for HDMI 1.4 sinks
	- S3D information for S3D modes
  As CEA-861-F has already defined VICs for 4K videomodes, this
  patch doesn't allow sending HDMI infoframes for HDMI 2.0 sinks,
  until the mode is 3D.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Jose Abreu <jose.abreu@synopsys.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>

PS: This patch touches a few lines in few files, which were
already above 80 char, so checkpatch gives 80 char warning again.
- gpu/drm/omapdrm/omap_encoder.c
- gpu/drm/i915/intel_sdvo.c

V2: Rebase, Added r-b from Andrzej
V3: Addressed review comment from Ville:
	- Do not send VICs in both AVI-IF and HDMI-IF
	  send only one of it.
V4: Rebase
V5: Added r-b from Neil.
    Addressed review comments from Ville
    - Do not block HDMI vendor IF, instead check for VIC while
      handling AVI infoframes
V6: Rebase
V7: Rebase

Change-Id: I4a8e9ed2f292d3db6512e29e43661a21bb0b2a48
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1499960000-9232-2-git-send-email-shashank.sharma@intel.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
(cherry picked from commit 0c1f528cb1)
2017-09-13 15:18:39 +08:00
..
bridge drm/rockchip: hdmi: Add support for rk3366 2017-07-20 14:38:47 +08:00
i2c
ttm drm/ttm, drm/vmwgfx: Relax permission checking when opening surfaces 2017-04-12 12:38:33 +02:00
ati_pcigart.h
drm_agpsupport.h drm: Remove dummy agp ioctl wrappers 2015-09-30 10:49:22 +02:00
drm_atomic.h drm/atomic: export drm_atomic_replace_property_blob_from_id 2017-07-19 14:33:49 +08:00
drm_atomic_helper.h UPSTREAM: drm: introduce pipe color correction properties 2017-07-07 19:09:13 +08:00
drm_cache.h drm: Loongson-3 doesn't fully support wc memory 2016-05-04 14:48:46 -07:00
drm_core.h
drm_crtc.h UPSTREAM: drm: Add TV connector states to drm_connector_state 2017-08-15 18:38:28 +08:00
drm_crtc_helper.h drm/rockchip: add loader protect for encoder 2017-08-03 20:23:17 +08:00
drm_displayid.h UPSTREAM: drm/edid: add displayid detailed 1 timings to the modelist. (v1.1) 2017-06-20 17:22:50 +08:00
drm_dp_helper.h Merge commit '06d1ee32a4' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2015-10-16 10:25:28 +10:00
drm_dp_mst_helper.h drm/dp/mst: move GUID storage from mgr, port to only mst branch 2016-03-03 15:07:21 -08:00
drm_edid.h UPSTREAM: drm: handle HDMI 2.0 VICs in AVI info-frames 2017-09-13 15:18:39 +08:00
drm_encoder_slave.h
drm_fb_cma_helper.h
drm_fb_helper.h drm/fb-helper: atomic restore_fbdev_mode().. 2015-09-16 11:39:26 -07:00
drm_fixed.h drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil 2016-03-03 15:07:20 -08:00
drm_flip_work.h
drm_gem.h drm/gem: Check locking in drm_gem_object_unreference 2015-10-19 11:00:35 +02:00
drm_gem_cma_helper.h
drm_global.h
drm_hashtab.h
drm_legacy.h
drm_mem_util.h drm: use kvfree() in drm_free_large() 2015-06-30 19:44:59 -07:00
drm_mipi_dsi.h UPSTREAM: drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format 2016-03-18 20:44:21 +08:00
drm_mm.h
drm_modes.h UPSTREAM: drm/edid: Make the detailed timing CEA/HDMI mode fixup accept up to 5kHz clock difference 2017-03-03 11:39:23 +08:00
drm_modeset_lock.h UPSTREAM: drm: Implement drm_modeset_lock_all_ctx() 2016-08-08 14:39:25 +08:00
drm_of.h UPSTREAM: drm: add drm_of_encoder_active_endpoint helpers 2016-06-28 18:40:44 +08:00
drm_os_linux.h
drm_panel.h drm/panel: support drm_find_panel_by_connector 2017-07-19 14:49:25 +08:00
drm_pciids.h rk: revert to v3.10 2015-11-11 15:57:28 +08:00
drm_plane_helper.h drm/atomic: Make prepare_fb/cleanup_fb only take state, v3. 2015-09-08 13:45:54 +02:00
drm_rect.h
drm_scdc_helper.h UPSTREAM: drm/edid: detect SCDC support in HF-VSDB 2017-06-27 17:18:46 +08:00
drm_sync_helper.h CHROMIUM: drm: add helpers for fence and reservation based dma-buf sync 2016-04-08 11:39:49 +08:00
drm_sysfs.h
drm_vma_manager.h drm/gem: Use kref_get_unless_zero for the weak mmap references 2015-10-19 11:00:44 +02:00
drmP.h drm/prime: add dmabuf begin/end cpu access 2017-07-13 18:40:13 +08:00
exynos_drm.h
gma_drm.h
i915_component.h drm/i915: add kerneldoc for i915_audio_component 2015-10-07 16:05:37 +02:00
i915_drm.h
i915_pciids.h drm/i915/skl: Add missing SKL ids 2016-09-15 08:27:44 +02:00
intel-gtt.h drm/i915/gtt: Allow >= 4GB sizes for vm. 2015-06-26 10:41:13 +02:00