From patchwork Wed Feb 12 16:17:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 11378719 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2653C1395 for ; Wed, 12 Feb 2020 16:17:50 +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 0EEA620714 for ; Wed, 12 Feb 2020 16:17:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EEA620714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F9936F53E; Wed, 12 Feb 2020 16:17:49 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2FF636F53F for ; Wed, 12 Feb 2020 16:17:48 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 08:17:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,433,1574150400"; d="scan'208";a="313445333" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga001.jf.intel.com with SMTP; 12 Feb 2020 08:17:39 -0800 Received: by stinkbox (sSMTP sendmail emulation); Wed, 12 Feb 2020 18:17:38 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Date: Wed, 12 Feb 2020 18:17:30 +0200 Message-Id: <20200212161738.28141-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 0/8] drm/i915: pfit/scaler rework prep stuff X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä Rebased pfit/scaler rework prep stuff. The eventual aim is to expose margin properties for external displays. Main use of which is to squish the image down a bit to avoid overscan on displays that insist on always overscanning. That will happen via the pfit/pipe scaler. And to avoid the user getting a black/corrupted screen we also need to add proper checks against various hw limits (scaling factors, pfit window coordinates, etc.). In fact we're already missing a bunch of checks for skl+ plane scaling cases (eg. the scaler simply doesn't work correctly with >4k resolutions so thos have to be rejected). Anyways, it's a fair amount of work so I'm posting it in smaller chunks. The entire work can be found here: git://github.com/vsyrjala/linux.git scaler_rework_2 Ville Syrjälä (8): drm/i915: Parametrize PFIT_PIPE drm/i915: Use intel_de_write_fw() for skl+ scaler registers drm/i915: Fix skl+ non-scaled pfit modes drm/i915: Flatten a bunch of the pfit functions drm/i915: Use drm_rect to store the pfit window pos/size drm/i915: s/pipe_config/crtc_state/ in pfit functions drm/i915: Pass connector state to pfit calculations drm/i915: Have pfit calculations return an error code drivers/gpu/drm/i915/display/icl_dsi.c | 11 +- drivers/gpu/drm/i915/display/intel_display.c | 319 ++++++++++-------- drivers/gpu/drm/i915/display/intel_display.h | 1 - .../drm/i915/display/intel_display_types.h | 3 +- drivers/gpu/drm/i915/display/intel_dp.c | 38 +-- drivers/gpu/drm/i915/display/intel_hdmi.c | 37 +- drivers/gpu/drm/i915/display/intel_lvds.c | 16 +- drivers/gpu/drm/i915/display/intel_panel.c | 127 +++---- drivers/gpu/drm/i915/display/intel_panel.h | 10 +- drivers/gpu/drm/i915/display/vlv_dsi.c | 9 +- drivers/gpu/drm/i915/i915_reg.h | 1 + 11 files changed, 288 insertions(+), 284 deletions(-)