linux/drivers/gpu/drm/i915
Ville Syrjälä 7e07c68f06 drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID
We tend to use output_format!=RGB as a shorthand for YCbCr, but
this fails if we have a disabled crtc where output_format==INVALID.
We're now getting some fail from intel_color_check() when we have:
 hw.enable==false
 hw.ctm!=NULL
 output_format==INVALID

Let's avoid that by throwing INTEL_OUTPUT_FORMAT_INVALID to the
dumpster, and thus everything defaults to RGB when the crtc
is disabled.

This does beg the deeper question of how much of the state
should we in fact be validating when hw/uapi.enable==false.
And should we even be doing the uapi->hw copy when
uapi.enable==false? So far I've not been able to come up with
satisfactory answers for myself, so I'm putting it off for the
moment.

Cc: Lee Shawn C <shawn.c.lee@intel.com>
Fixes: 0aa5c3835c ("drm/i915: support two CSC module on gen11 and later")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2964
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205202322.27608-1-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
2021-02-18 18:13:49 +02:00
..
display drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID 2021-02-18 18:13:49 +02:00
gem Merge tag 'topic/drm-device-pdev-2021-02-02' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2021-02-02 14:39:25 +02:00
gt drm/i915/gt: Remove references to struct drm_device.pdev 2021-02-02 13:58:43 +02:00
gvt drm/i915/gvt: Remove references to struct drm_device.pdev 2021-02-02 13:58:45 +02:00
selftests drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
.gitignore
dma_resv_utils.c drm/i915/gem: Optimistically prune dma-resv from the shrinker. 2020-12-23 21:58:00 +00:00
dma_resv_utils.h drm/i915/gem: Optimistically prune dma-resv from the shrinker. 2020-12-23 21:58:00 +00:00
i915_active.c drm/i915: Use cmpxchg64 for 32b compatilibity 2020-12-23 10:07:41 +00:00
i915_active.h
i915_active_types.h
i915_buddy.c
i915_buddy.h
i915_cmd_parser.c drm/i915: clear the shadow batch 2020-12-24 15:25:41 +00:00
i915_config.c
i915_debugfs.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_debugfs.h
i915_debugfs_params.c
i915_debugfs_params.h
i915_drv.c drm/i915: move intel_init_audio_hooks inside display 2021-02-13 12:53:00 -08:00
i915_drv.h drm/i915: FPGA_DBG is display-specific 2021-02-12 18:42:43 -08:00
i915_fixed.h
i915_gem.c drm/i915/gem: Drop free_work for GEM contexts 2020-12-16 15:14:09 +00:00
i915_gem.h
i915_gem_evict.c
i915_gem_gtt.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_gem_gtt.h
i915_getparam.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_globals.c
i915_globals.h
i915_gpu_error.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_gpu_error.h
i915_ioc32.c
i915_ioc32.h
i915_irq.c drm/i915/display: Support PSR Multiple Instances 2021-02-05 05:29:15 -08:00
i915_irq.h drm/i915: Add plane vfuncs to enable/disable flip_done interrupt 2021-01-19 19:14:21 +02:00
i915_memcpy.c
i915_memcpy.h
i915_mitigations.c drm/i915: Allow the sysadmin to override security mitigations 2021-01-12 09:17:06 +00:00
i915_mitigations.h drm/i915: Allow the sysadmin to override security mitigations 2021-01-12 09:17:06 +00:00
i915_mm.c
i915_params.c drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight 2021-01-19 12:35:52 -05:00
i915_params.h drm/i915: Make psr_safest_params and enable_psr2_sel_fetch parameters read only 2021-02-05 05:41:19 -08:00
i915_pci.c drm/i915: FPGA_DBG is display-specific 2021-02-12 18:42:43 -08:00
i915_perf.c i915/perf: Drop the check for report reason in OA 2021-02-12 16:55:03 +02:00
i915_perf.h
i915_perf_types.h i915/perf: Store a mask of valid OA formats for a platform 2021-02-09 13:26:29 +02:00
i915_pmu.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_pmu.h Merge tag 'drm-intel-gt-next-2021-01-14' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2021-01-15 15:03:36 +10:00
i915_priolist_types.h
i915_pvinfo.h
i915_query.c
i915_query.h
i915_reg.h Merge tag 'topic/adl-s-enabling-2021-02-01-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-intel-next 2021-02-02 12:50:04 +02:00
i915_request.c Merge tag 'drm-intel-gt-next-2021-01-14' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2021-01-15 15:03:36 +10:00
i915_request.h drm/i915: Refactor marking a request as EIO 2021-01-09 18:29:07 +00:00
i915_scatterlist.c
i915_scatterlist.h
i915_scheduler.c drm/i915/gt: Replace direct submit with direct call to tasklet 2020-12-24 15:02:35 +00:00
i915_scheduler.h
i915_scheduler_types.h
i915_selftest.h
i915_suspend.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_suspend.h
i915_sw_fence.c drm/i915: Encode fence specific waitqueue behaviour into the wait.flags 2020-12-16 20:59:56 +00:00
i915_sw_fence.h
i915_sw_fence_work.c
i915_sw_fence_work.h
i915_switcheroo.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_switcheroo.h
i915_syncmap.c
i915_syncmap.h
i915_sysfs.c
i915_sysfs.h
i915_trace.h
i915_trace_points.c
i915_user_extensions.c
i915_user_extensions.h
i915_utils.c drm/i915: Wrap our timer_list.expires checking 2021-01-07 21:37:14 +00:00
i915_utils.h drm/i915: Wrap our timer_list.expires checking 2021-01-07 21:37:14 +00:00
i915_vgpu.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
i915_vgpu.h
i915_vma.c
i915_vma.h
i915_vma_types.h
intel_device_info.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
intel_device_info.h drm/i915: FPGA_DBG is display-specific 2021-02-12 18:42:43 -08:00
intel_dram.c drm/i915/display: support ddr5 mem types 2021-02-05 05:23:15 -08:00
intel_dram.h
intel_gvt.c
intel_gvt.h
intel_memory_region.c drm/i915/region: make intel_region_map static 2021-01-12 21:11:42 +00:00
intel_memory_region.h drm/i915/region: make intel_region_map static 2021-01-12 21:11:42 +00:00
intel_pch.c drm/i915/gen9_bc: Recognize TGP PCH + CML combos 2021-02-11 18:19:29 -05:00
intel_pch.h drm/i915/adl_s: Add PCH support 2021-01-26 07:10:44 -08:00
intel_pm.c drm/i915: Remove dead code from skl_pipe_wm_get_hw_state() 2021-02-17 09:33:31 -08:00
intel_pm.h drm/i915: Encapsulate dbuf state handling harder 2021-01-26 15:41:49 +02:00
intel_runtime_pm.c drm/i915: Remove references to struct drm_device.pdev 2021-02-02 13:58:42 +02:00
intel_runtime_pm.h
intel_sideband.c drm/i915: remove last traces of I915_READ(), I915_WRITE() and POSTING_READ() 2020-12-02 17:29:46 +02:00
intel_sideband.h
intel_uncore.c drm/i915: Try to detect sudden loss of MMIO access 2021-02-12 18:44:44 -08:00
intel_uncore.h drm/i915: remove last traces of I915_READ(), I915_WRITE() and POSTING_READ() 2020-12-02 17:29:46 +02:00
intel_wakeref.c
intel_wakeref.h
intel_wopcm.c
intel_wopcm.h
Kconfig
Kconfig.debug
Kconfig.profile
Kconfig.unstable
Makefile drm/i915: Enable -Wuninitialized 2021-02-17 14:16:21 +00:00
vlv_suspend.c
vlv_suspend.h