From patchwork Tue Feb 25 17:11:05 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: 11404289 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 2901914B4 for ; Tue, 25 Feb 2020 17:13:32 +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 1174E2084E for ; Tue, 25 Feb 2020 17:13:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1174E2084E 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 9EF2D6EB52; Tue, 25 Feb 2020 17:13:31 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 199916EB50 for ; Tue, 25 Feb 2020 17:13:27 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 09:11:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,484,1574150400"; d="scan'208";a="231087534" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga008.jf.intel.com with SMTP; 25 Feb 2020 09:11:25 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 25 Feb 2020 19:11:25 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Date: Tue, 25 Feb 2020 19:11:05 +0200 Message-Id: <20200225171125.28885-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 00/20] drm/i915: Proper dbuf global state 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ä More complete version of intel_dbuf_state. We finally get rid of distrust_bios_wm and all the uglyness surrounding it. And we no longer have to know ahead of time whether the duf allocation might change or not, and thus don't need to pull in all crtcs into the state up front. Now we just compute the new dbuf state, and if it changes the affected crtcs get added to the state naturally. + a bunch of cleanups. Entire series available here: git://github.com/vsyrjala/linux.git dbuf_state_2 Cc: Stanislav Lisovskiy Ville Syrjälä (20): drm/i915: Handle some leftover s/intel_crtc/crtc/ drm/i915: Remove garbage WARNs drm/i915: Add missing commas to dbuf tables drm/i915: Use a sentinel to terminate the dbuf slice arrays drm/i915: Make skl_compute_dbuf_slices() behave consistently for all platforms drm/i915: Polish some dbuf debugs drm/i915: Unify the low level dbuf code drm/i915: Introduce proper dbuf state drm/i915: Nuke skl_ddb_get_hw_state() drm/i915: Move the dbuf pre/post plane update drm/i915: Clean up dbuf debugs during .atomic_check() drm/i915: Extract intel_crtc_ddb_weight() drm/i915: Pass the crtc to skl_compute_dbuf_slices() drm/i915: Introduce intel_dbuf_slice_size() drm/i915: Introduce skl_ddb_entry_for_slices() drm/i915: Move pipe ddb entries into the dbuf state drm/i915: Extract intel_crtc_dbuf_weights() drm/i915: Encapsulate dbuf state handling harder drm/i915: Do a bit more initial readout for dbuf drm/i915: Check slice mask for holes drivers/gpu/drm/i915/display/intel_display.c | 95 +-- .../drm/i915/display/intel_display_debugfs.c | 1 - .../drm/i915/display/intel_display_power.c | 80 +- .../drm/i915/display/intel_display_power.h | 6 +- .../drm/i915/display/intel_display_types.h | 14 - drivers/gpu/drm/i915/i915_drv.h | 16 +- drivers/gpu/drm/i915/intel_pm.c | 741 ++++++++++-------- drivers/gpu/drm/i915/intel_pm.h | 31 +- 8 files changed, 521 insertions(+), 463 deletions(-)