From patchwork Mon Jan 4 21:10:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rodrigo Vivi X-Patchwork-Id: 11997593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E641C433E0 for ; Mon, 4 Jan 2021 21:10:24 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B210520776 for ; Mon, 4 Jan 2021 21:10:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B210520776 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D4756E041; Mon, 4 Jan 2021 21:10:23 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 17E4289F55; Mon, 4 Jan 2021 21:10:22 +0000 (UTC) IronPort-SDR: RbGMI+t2NMyqyJu9B8jPJg/YtYMDh+Aq4xGbWmpFgB3ztLSGIR5IlthKXGVdDusSPPS+BxRkHe m+ns2GntkK5Q== X-IronPort-AV: E=McAfee;i="6000,8403,9854"; a="177111394" X-IronPort-AV: E=Sophos;i="5.78,474,1599548400"; d="scan'208";a="177111394" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 13:10:20 -0800 IronPort-SDR: C63WrV9jUTaFcmwkhR4W5RpNmF7f18yyPD1b7sYaMu8Xwcy2fH0mjx7mr73aZ7gmokV+Wff9Dc ycnkOlgw05eQ== X-IronPort-AV: E=Sophos;i="5.78,474,1599548400"; d="scan'208";a="378576209" Received: from gabrielv-mobl1.amr.corp.intel.com (HELO intel.com) ([10.212.223.206]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 13:10:19 -0800 Date: Mon, 4 Jan 2021 13:10:18 -0800 From: Rodrigo Vivi To: Dave Airlie , Daniel Vetter Subject: [PULL] drm-intel-next Message-ID: <20210104211018.GA1094707@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dim-tools@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rodrigo Vivi , Sean Paul , intel-gfx@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave and Daniel, Happy New Year. Here goes the first pull request targeting 5.12. drm-intel-next-2021-01-04: - Display hotplug fix for gen2/gen3 (Chris) - Remove trailing semicolon (Tom) - Suppress display warnings for old ifwi presend on our CI (Chris) - OA/Perf related workaround (Lionel) - Replace I915_READ/WRITE per new uncore and display read/write functions (Jani)\ . - PSR improvements (Jose) - HDR and other color changes on LSPCON (Uma, Ville) - FBC fixes for TGL (Uma) - Record plane update times for debugging (Chris) - Refactor panel backlight control functions (Dave) - Display power improvements (Imre) - Add VRR register definition (Manasi) - Atomic modeset improvements for bigjoiner pipes (Ville) - Switch off the scanout during driver unregister (Chris) - Clean-up DP's FEW enable (Manasi) - Fix VDSCP slice count (Manasi) - Fix and clean up around rc_model_size for DSC (Jani) - Remove Type-C noisy debug warn message (Sean) - Display HPD code clean-up (Ville) - Refactor Intel Display (Dave) - Start adding support for Intel's eDP backlight controls (Lyude) Thanks, Rodrigo. The following changes since commit b3bf99daaee96a141536ce5c60a0d6dba6ec1d23: drm/i915/display: Defer initial modeset until after GGTT is initialised (2020-11-26 11:01:52 +0000) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm-intel tags/drm-intel-next-2021-01-04 for you to fetch changes up to b3304591f14b437b6bccd8dbff06006c11837031: drm/i915/dp: Track pm_qos per connector (2020-12-30 21:22:55 +0000) ---------------------------------------------------------------- - Display hotplug fix for gen2/gen3 (Chris) - Remove trailing semicolon (Tom) - Suppress display warnings for old ifwi presend on our CI (Chris) - OA/Perf related workaround (Lionel) - Replace I915_READ/WRITE per new uncore and display read/write functions (Jani)\ . - PSR improvements (Jose) - HDR and other color changes on LSPCON (Uma, Ville) - FBC fixes for TGL (Uma) - Record plane update times for debugging (Chris) - Refactor panel backlight control functions (Dave) - Display power improvements (Imre) - Add VRR register definition (Manasi) - Atomic modeset improvements for bigjoiner pipes (Ville) - Switch off the scanout during driver unregister (Chris) - Clean-up DP's FEW enable (Manasi) - Fix VDSCP slice count (Manasi) - Fix and clean up around rc_model_size for DSC (Jani) - Remove Type-C noisy debug warn message (Sean) - Display HPD code clean-up (Ville) - Refactor Intel Display (Dave) - Start adding support for Intel's eDP backlight controls (Lyude) ---------------------------------------------------------------- Chris Wilson (6): Revert "drm/i915: re-order if/else ladder for hpd_irq_setup" drm/i915/display: Suppress "Combo PHY A HW state changed unexpectedly" drm/i915/display: Record the plane update times for debugging drm/i915/gem: Spring clean debugfs drm/i915: Disable outputs during unregister drm/i915/dp: Track pm_qos per connector Dave Airlie (6): drm/i915: refactor panel backlight control functions. (v2) drm/i915/display: move needs_modeset to an inline in header drm/i915/display: move to_intel_frontbuffer to header drm/i915/display: fix misused comma drm/i915: refactor cursor code out of i915_display.c drm/i915: refactor i915 plane code into separate file. Imre Deak (10): drm/i915: Use CRTC index consistently during getting/putting CRTC power domains drm/i915: Factor out helpers to get/put a set of tracked power domains drm/i915: Track power references taken for enabled CRTCs drm/i915/ddi: Track power reference taken for encoder DDI IO use drm/i915/ddi: Track power reference taken for encoder main lane AUX use drm/i915: Track power reference taken for eDP VDD drm/i915: Rename power_domains.wakeref to init_wakeref drm/i915: Track power reference taken to disable power well functionality drm/i915: Make intel_display_power_put_unchecked() an internal-only function drm/i915/icl: Fix initing the DSI DSC power refcount during HW readout Jani Nikula (15): drm/i915/debugfs: remove RPS autotuning details from i915_rps_boost_info drm/i915: remove last traces of I915_READ_FW() and I915_WRITE_FW() drm/i915/cdclk: prefer intel_de_write() over I915_WRITE() drm/i915/debugfs: remove the i915_cache_sharing debugfs file drm/i915/debugfs: replace I915_READ() with intel_uncore_read() drm/i915/suspend: replace I915_READ()/WRITE() with intel_de_read()/write() drm/i915/pm: replace I915_READ()/WRITE() with intel_uncore_read()/write() drm/i915/irq: replace I915_READ()/WRITE() with intel_uncore_read()/write() drm/i915/gvt: replace I915_WRITE with intel_uncore_write drm/i915: remove last traces of I915_READ(), I915_WRITE() and POSTING_READ() drm/dsc: use rc_model_size from DSC config for PPS drm/i915/dsc: configure hardware using specified rc_model_size drm/i915/dsc: make rc_model_size an encoder defined value drm/dsc: add helper for calculating rc buffer size from DPCD drm/i915/bios: fill in DSC rc_model_size from VBT José Roberto de Souza (1): drm/i915/display/psr: Calculate selective fetch plane registers Lionel Landwerlin (1): drm/i915/perf: also include Gen11 in OATAILPTR workaround Lyude Paul (5): drm/i915/dp: Program source OUI on eDP panels drm/i915: Rename pwm_* backlight callbacks to ext_pwm_* drm/i915: Pass down brightness values to enable/disable backlight callbacks drm/i915/dp: Rename eDP VESA backlight interface functions drm/i915/dp: Add register definitions for Intel HDR backlight interface Manasi Navare (3): drm/i915: Add VRR_CTL_LINE_COUNT field to VRR_CTL register def drm/i915/dp: No need to poll FEC Enable Live bit drm/i915/display/dp: Compute the correct slice count for VDSC on DP Sean Paul (1): drm/i915/display/tc: Only WARN once for bogus tc port flag Tom Rix (1): drm/i915: remove trailing semicolon in macro definition Uma Shankar (15): drm/i915/display: Add HDR Capability detection for LSPCON drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon drm/i915/display: Attach HDR property for capable Gen9 devices drm/i915/display: Fixes quantization range for YCbCr output drm/i915/display: Add a WARN for invalid output range and format drm/i915/display: Attach content type property for LSPCON drm/i915/display: Enable colorspace programming for LSPCON devices drm/i915/display: Nuke bogus lspcon check drm/i915/display: Enable HDR for Parade based lspcon drm/i915/lspcon: Create separate infoframe_enabled helper drm/i915/display: Implement infoframes readback for LSPCON drm/i915/display: Implement DRM infoframe read for LSPCON drm/i915/lspcon: Do not send DRM infoframes to non-HDMI sinks drm/i915/display/tgl: Disable FBC with PSR2 Revert "drm/i915/display/fbc: Disable fbc by default on TGL" Ville Syrjälä (6): drm/i915: Split intel_attach_colorspace_property() into HDMI vs. DP variants drm/i915: Track logically enabled planes for hw state drm/i915: Add intel_atomic_add_affected_planes() drm/i915: Properly flag modesets for all bigjoiner pipes drm/i915: Call kill_bigjoiner_slave() earlier drm/i915: Reduce duplicated switch cases in hpd code drivers/gpu/drm/drm_dsc.c | 30 +- drivers/gpu/drm/i915/Makefile | 4 +- drivers/gpu/drm/i915/display/i9xx_plane.c | 704 ++++++++ drivers/gpu/drm/i915/display/i9xx_plane.h | 24 + drivers/gpu/drm/i915/display/icl_dsi.c | 7 +- drivers/gpu/drm/i915/display/intel_atomic_plane.c | 3 + drivers/gpu/drm/i915/display/intel_bios.c | 11 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 7 +- drivers/gpu/drm/i915/display/intel_combo_phy.c | 20 +- drivers/gpu/drm/i915/display/intel_connector.c | 29 +- drivers/gpu/drm/i915/display/intel_connector.h | 3 +- drivers/gpu/drm/i915/display/intel_cursor.c | 806 +++++++++ drivers/gpu/drm/i915/display/intel_cursor.h | 17 + drivers/gpu/drm/i915/display/intel_ddi.c | 83 +- drivers/gpu/drm/i915/display/intel_display.c | 1794 ++------------------ drivers/gpu/drm/i915/display/intel_display.h | 13 +- .../gpu/drm/i915/display/intel_display_debugfs.c | 124 ++ .../gpu/drm/i915/display/intel_display_debugfs.h | 3 + drivers/gpu/drm/i915/display/intel_display_power.c | 127 +- drivers/gpu/drm/i915/display/intel_display_power.h | 37 +- drivers/gpu/drm/i915/display/intel_display_types.h | 57 +- drivers/gpu/drm/i915/display/intel_dp.c | 95 +- .../gpu/drm/i915/display/intel_dp_aux_backlight.c | 115 +- .../gpu/drm/i915/display/intel_dsi_dcs_backlight.c | 21 +- drivers/gpu/drm/i915/display/intel_dvo.c | 4 - drivers/gpu/drm/i915/display/intel_fbc.c | 19 +- drivers/gpu/drm/i915/display/intel_hdmi.c | 26 +- drivers/gpu/drm/i915/display/intel_lspcon.c | 162 +- drivers/gpu/drm/i915/display/intel_lspcon.h | 12 + drivers/gpu/drm/i915/display/intel_panel.c | 226 ++- drivers/gpu/drm/i915/display/intel_psr.c | 22 +- drivers/gpu/drm/i915/display/intel_sprite.c | 50 +- drivers/gpu/drm/i915/display/intel_sprite.h | 10 + drivers/gpu/drm/i915/display/intel_tc.c | 2 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 4 +- drivers/gpu/drm/i915/gvt/handlers.c | 2 +- drivers/gpu/drm/i915/i915_debugfs.c | 582 +------ drivers/gpu/drm/i915/i915_drv.c | 8 +- drivers/gpu/drm/i915/i915_drv.h | 41 +- drivers/gpu/drm/i915/i915_irq.c | 382 ++--- drivers/gpu/drm/i915/i915_perf.c | 2 +- drivers/gpu/drm/i915/i915_reg.h | 7 +- drivers/gpu/drm/i915/i915_suspend.c | 33 +- drivers/gpu/drm/i915/intel_device_info.c | 2 +- drivers/gpu/drm/i915/intel_pm.c | 552 +++--- drivers/gpu/drm/i915/intel_sideband.c | 4 +- drivers/gpu/drm/i915/intel_uncore.c | 4 +- drivers/gpu/drm/i915/intel_uncore.h | 6 +- include/drm/drm_dsc.h | 1 + 49 files changed, 3222 insertions(+), 3075 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/i9xx_plane.c create mode 100644 drivers/gpu/drm/i915/display/i9xx_plane.h create mode 100644 drivers/gpu/drm/i915/display/intel_cursor.c create mode 100644 drivers/gpu/drm/i915/display/intel_cursor.h