linux_dsm_epyc7002/drivers/gpu/drm/i915
Uma Shankar 2f146b78d5 drm/i915: Attach colorspace property and enable modeset
This patch attaches the colorspace connector property to the
hdmi connector. Based on colorspace change, modeset will be
triggered to switch to new colorspace.

Based on colorspace property value create an infoframe
with appropriate colorspace. This can be used to send an
infoframe packet with proper colorspace value set which
will help to enable wider color gamut like BT2020 on sink.

This patch attaches and enables HDMI colorspace, DP will be
taken care separately.

v2: Merged the changes of creating infoframe as well to this
patch as per Maarten's suggestion.

v3: Addressed review comments from Shashank. Separated HDMI
and DP colorspaces as suggested by Ville and Maarten.

v4: Addressed Chris and Ville's review comments, and created a
common colorspace property for DP and HDMI, filtered the list
based on the colorspaces supported by the respective protocol
standard. Handle the default case properly.

v5: Merged the DP handling along with platform colorspace
handling as per Shashank's comments.

v6: Reverted to old design of exposing all colorspaces to
userspace as per Ville's review comment

v7: Fixed a checkpatch complaint, Addressed  Maarten' review
comment, updated the RB from Maarten and Jani's ack.

v8: Moved colorspace AVI Infoframe programming to drm core and
removed from driver as per Ville's suggestion.

v9: Added a check to only allow RGB colorpsaces to be set in
infoframe though the colorspace property. Since there is no output
csc property to control planar formats and it will be added later.
Changes for RGB->YUV conversion inside driver without userspace
knowledge is still supported. This is as per Ville's suggestion.

v10: Fixed an error in if check.

v11: Dropped the check for planar vs RGB and allow all the colorspaces.
Onus will be on userspace to pick whatever pipe output it is able to
drive.

v12: Added Ville's RB.

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1550596381-993-4-git-send-email-uma.shankar@intel.com
2019-02-19 18:51:43 +01:00
..
gvt Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
selftests drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_active_types.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_active.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_active.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_cmd_parser.c
i915_debugfs.c UAPI Changes: 2019-02-11 13:41:59 +10:00
i915_drv.c Merge drm/drm-next into drm-misc-next 2019-02-11 10:35:35 +01:00
i915_drv.h drm/i915: Update DRIVER_DATE to 20190207 2019-02-07 12:45:32 -08:00
i915_fixed.h
i915_gem_batch_pool.c
i915_gem_batch_pool.h
i915_gem_clflush.c
i915_gem_clflush.h
i915_gem_context.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gem_context.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gem_dmabuf.c
i915_gem_evict.c drm/i915: Pull VM lists under the VM mutex. 2019-01-28 16:24:13 +00:00
i915_gem_execbuffer.c drm/i915: Hack and slash, throttle execbuffer hogs 2019-02-07 16:13:21 +00:00
i915_gem_fence_reg.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gem_fence_reg.h drm/i915: Remove GPU reset dependence on struct_mutex 2019-01-25 14:27:22 +00:00
i915_gem_gtt.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gem_gtt.h drm/i915: Enlarge vma->pin_count 2019-01-28 19:07:01 +00:00
i915_gem_internal.c
i915_gem_object.c
i915_gem_object.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gem_render_state.c
i915_gem_render_state.h
i915_gem_shrinker.c drm/i915: Pull VM lists under the VM mutex. 2019-01-28 16:24:13 +00:00
i915_gem_stolen.c drm/i915: Pull VM lists under the VM mutex. 2019-01-28 16:24:13 +00:00
i915_gem_tiling.c
i915_gem_userptr.c drm/i915/userptr: Fix error handling of mutex_lock_killable() 2019-01-16 08:31:41 +00:00
i915_gem.c drm/i915: Prevent a race during I915_GEM_MMAP ioctl with WC set 2019-02-12 15:37:40 +02:00
i915_gem.h
i915_gemfs.c
i915_gemfs.h
i915_gpu_error.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_gpu_error.h drm/i915: Drop fake breadcrumb irq 2019-01-29 21:45:30 +00:00
i915_ioc32.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
i915_irq.c - Make background color and LUT more robust (Matt) 2019-02-04 15:37:58 +10: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
i915_oa_cflgt3.h
i915_oa_chv.c
i915_oa_chv.h
i915_oa_cnl.c
i915_oa_cnl.h
i915_oa_glk.c
i915_oa_glk.h
i915_oa_hsw.c
i915_oa_hsw.h
i915_oa_icl.c
i915_oa_icl.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 drm/i915: Enable fastboot by default on Skylake and newer 2019-01-29 10:41:58 +01:00
i915_params.h drm/i915: Enable fastboot by default on Skylake and newer 2019-01-29 10:41:58 +01:00
i915_pci.c UAPI Changes: 2019-02-11 13:41:59 +10:00
i915_perf.c drm/i915/perf: lock powergating configuration to default when active 2019-02-05 11:31:52 +00:00
i915_pmu.c drm/i915/pmu: Fix enable count array size and bounds checking 2019-02-12 15:37:24 +02:00
i915_pmu.h drm/i915/pmu: Fix enable count array size and bounds checking 2019-02-12 15:37:24 +02:00
i915_pvinfo.h
i915_query.c
i915_query.h
i915_reg.h drm/i915/cnl: Fix CNL macros for Voltage Swing programming 2019-02-11 18:35:43 +02:00
i915_request.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_request.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_reset.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_reset.h drm/i915: Remove GPU reset dependence on struct_mutex 2019-01-25 14:27:22 +00:00
i915_scheduler.c drm/i915: Replace global breadcrumbs with per-context interrupt tracking 2019-01-29 21:45:22 +00:00
i915_scheduler.h
i915_selftest.h drm/i915/selftests: Apply a subtest filter 2019-01-29 19:59:57 +00:00
i915_suspend.c drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00
i915_sw_fence.c
i915_sw_fence.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c
i915_timeline.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_timeline.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_trace_points.c
i915_trace.h - Make background color and LUT more robust (Matt) 2019-02-04 15:37:58 +10:00
i915_utils.h
i915_vgpu.c
i915_vgpu.h
i915_vma.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
i915_vma.h drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
icl_dsi.c drm/i915/backlight: Restore backlight on resume, v3. 2019-01-24 13:02:08 +01:00
intel_acpi.c
intel_atomic_plane.c Merge drm/drm-next into drm-misc-next 2019-02-11 10:35:35 +01:00
intel_atomic.c drm/i915: Attach colorspace property and enable modeset 2019-02-19 18:51:43 +01:00
intel_audio.c typed componented support + i915/snd-hda changes 2019-02-19 11:17:42 +01:00
intel_bios.c drm/i915/icl: Add TypeC ports only if VBT is present 2019-01-31 16:28:33 +02:00
intel_bios.h
intel_breadcrumbs.c drm/i915: Drop fake breadcrumb irq 2019-01-29 21:45:30 +00:00
intel_cdclk.c drm/i915/cdclk: switch to kernel types 2019-01-17 09:02:06 +02:00
intel_color.c drm/i915: Move LUT programming to happen after vblank waits 2019-02-07 21:45:44 +02:00
intel_combo_phy.c
intel_connector.c drm/i915: Attach colorspace property and enable modeset 2019-02-19 18:51:43 +01:00
intel_crt.c drm-misc-next for 5.1: 2019-02-04 14:42:34 +10:00
intel_csr.c drm/i915/csr: switch to kernel types 2019-01-21 11:09:16 +02:00
intel_ddi.c drm/i915/icl: combo port vswing programming changes per BSPEC 2019-02-11 18:35:08 +02:00
intel_device_info.c
intel_device_info.h drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00
intel_display.c Merge drm/drm-next into drm-misc-next 2019-02-11 10:35:35 +01:00
intel_display.h
intel_dp_aux_backlight.c
intel_dp_link_training.c drm/i915/dp: switch to kernel types 2019-01-17 09:02:06 +02:00
intel_dp_mst.c Merge drm/drm-next into drm-misc-next 2019-02-11 10:35:35 +01:00
intel_dp.c drm/i915/icl: combo port vswing programming changes per BSPEC 2019-02-11 18:35:08 +02:00
intel_dpio_phy.c drm/i915: small isolated c99 types to kernel types switch 2019-01-17 09:02:00 +02:00
intel_dpll_mgr.c drm/i915: Pick the first unused PLL once again 2019-01-31 09:46:02 +02:00
intel_dpll_mgr.h drm/i915/icl: use tc_port in MG_PLL macros 2019-01-29 14:35:02 -08:00
intel_drv.h drm/i915: Attach colorspace property and enable modeset 2019-02-19 18:51:43 +01:00
intel_dsi_dcs_backlight.c
intel_dsi_vbt.c
intel_dsi.c
intel_dsi.h drm/i915/dsi: Fix pipe_bpp for handling for 6 bpc pixel-formats 2019-01-21 10:45:23 +01:00
intel_dvo.c - Unwind failure on pinning the gen7 PPGTT (Chris) 2019-01-24 19:44:16 +10:00
intel_engine_cs.c drm/i915: Pull i915_gem_active into the i915_active family 2019-02-05 17:20:11 +00:00
intel_fbc.c drm-misc-next for 5.1: 2019-02-04 14:42:34 +10:00
intel_fbdev.c drm/i915: Block fbdev HPD processing during suspend 2019-02-12 15:37:32 +02:00
intel_fifo_underrun.c drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00
intel_frontbuffer.c
intel_frontbuffer.h
intel_gpu_commands.h drm/i915: Compute the HWS offsets explicitly 2019-01-25 12:53:15 +00:00
intel_guc_ads.c
intel_guc_ads.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 drm/i915: do not return invalid pointers as a *dentry 2019-02-05 09:45:28 -08:00
intel_guc_log.h
intel_guc_reg.h
intel_guc_submission.c drm/i915/execlists: Suppress preempting self 2019-01-29 20:00:05 +00:00
intel_guc_submission.h
intel_guc.c
intel_guc.h drm/i915: Pull all the reset functionality together into i915_reset.c 2019-01-16 22:45:31 +00:00
intel_gvt.c
intel_gvt.h
intel_hangcheck.c drm/i915: Drop fake breadcrumb irq 2019-01-29 21:45:30 +00:00
intel_hdcp.c drm/i915: small isolated c99 types to kernel types switch 2019-01-17 09:02:00 +02:00
intel_hdmi.c drm/i915: Attach colorspace property and enable modeset 2019-02-19 18:51:43 +01:00
intel_hotplug.c drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00
intel_huc_fw.c
intel_huc_fw.h
intel_huc.c
intel_huc.h
intel_i2c.c drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00
intel_lpe_audio.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
intel_lrc_reg.h
intel_lrc.c drm/i915: Expose RPCS (SSEU) configuration to userspace (Gen11 only) 2019-02-05 11:32:03 +00:00
intel_lrc.h drm/i915/perf: lock powergating configuration to default when active 2019-02-05 11:31:52 +00:00
intel_lspcon.c Merge drm/drm-next into drm-intel-next-queued 2019-01-22 14:51:36 -08:00
intel_lvds.c drm/i915/backlight: Restore backlight on resume, v3. 2019-01-24 13:02:08 +01:00
intel_mocs.c drm/i915/icl: Define MOCS table for Icelake 2019-01-24 19:34:34 -08:00
intel_mocs.h
intel_opregion.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
intel_opregion.h
intel_overlay.c UAPI Changes: 2019-02-11 13:41:59 +10:00
intel_panel.c drm/i915/backlight: Fix backlight takeover on LPT, v3. 2019-01-24 13:02:48 +01:00
intel_pipe_crc.c drm/i915: small isolated c99 types to kernel types switch 2019-01-17 09:02:00 +02:00
intel_pm.c Merge drm/drm-next into drm-misc-next 2019-02-11 10:35:35 +01:00
intel_psr.c drm/i915/psr: Allow PSR2 to be enabled when debugfs asks 2019-01-22 16:33:10 -08:00
intel_quirks.c
intel_renderstate_gen6.c
intel_renderstate_gen7.c
intel_renderstate_gen8.c
intel_renderstate_gen9.c
intel_renderstate.h
intel_ringbuffer.c drm/i915: Hack and slash, throttle execbuffer hogs 2019-02-07 16:13:21 +00:00
intel_ringbuffer.h drm/i915/pmu: Fix enable count array size and bounds checking 2019-02-12 15:37:24 +02:00
intel_runtime_pm.c drm/i915: small isolated c99 types to kernel types switch 2019-01-17 09:02:00 +02:00
intel_sdvo_regs.h
intel_sdvo.c - Unwind failure on pinning the gen7 PPGTT (Chris) 2019-01-24 19:44:16 +10:00
intel_sideband.c
intel_sprite.c drm/i915: Split the gamma/csc enable bits from the plane_ctl() function 2019-02-07 21:34:29 +02:00
intel_tv.c drm/i915/tv: Bypass the vertical filter if possible 2019-01-29 23:27:31 +02:00
intel_uc_fw.c
intel_uc_fw.h
intel_uc.c drm/i915: Pull all the reset functionality together into i915_reset.c 2019-01-16 22:45:31 +00:00
intel_uc.h
intel_uncore.c drm/i915: Include register polling in reg_rw traces 2019-02-05 20:44:43 +02:00
intel_uncore.h
intel_vbt_defs.h
intel_vdsc.c
intel_wopcm.c
intel_wopcm.h
intel_workarounds.c drm/i915/icl: restore WaEnableFloatBlendOptimization 2019-02-01 08:39:53 +00:00
intel_workarounds.h
Kconfig
Kconfig.debug
Makefile drm/i915: Generalise GPU activity tracking 2019-02-05 17:12:00 +00:00
vlv_dsi_pll.c drm/i915/dsi: Fix pipe_bpp for handling for 6 bpc pixel-formats 2019-01-21 10:45:23 +01:00
vlv_dsi.c drm/i915: Rename HAS_GMCH 2019-02-05 09:43:23 -08:00