]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/display: Configure the second scaler
authorNemesa Garg <nemesa.garg@intel.com>
Tue, 28 Oct 2025 12:07:43 +0000 (17:37 +0530)
committerJani Nikula <jani.nikula@intel.com>
Thu, 30 Oct 2025 13:44:02 +0000 (15:44 +0200)
commit0672cf9828c461190c1be05803aad5b960702f76
tree43a597c3f6d13352d958e29ccc461e2af41a7aaa
parent82860cba5f4053f95414634e69d3229462b45422
drm/i915/display: Configure the second scaler

Both sharpness and panel fitter use pipe scaler,
but only one can be enabled at a time. Furthermore
sharpness uses second scaler. So for CASF, check if
second scaler is available and make sure that only
either of panel fitter or sharpness is enabled at
a time.

v2: Add the panel fitting check before enabling sharpness
v3: Reframe commit message[Arun]
v4: Replace string based comparison with plane_state[Jani]
v5: Rebase
v6: Fix build issue
v7: Remove scaler id from verify_crtc_state[Ankit]
v8: Change the patch title. Add code comment.
    Move the config part in patch#6. [Ankit]
v9: Refactor the patch[Ankit]
v10: Modify the header of patch[Ankit]

Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20251028120747.3027332-8-ankit.k.nautiyal@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_casf.c
drivers/gpu/drm/i915/display/intel_casf.h
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/skl_scaler.c