From patchwork Mon Mar 25 21:49:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniele Ceraolo Spurio X-Patchwork-Id: 10870063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B1D918A6 for ; Mon, 25 Mar 2019 21:49:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 325DA28FC4 for ; Mon, 25 Mar 2019 21:49:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26662290C0; Mon, 25 Mar 2019 21:49:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B821D29005 for ; Mon, 25 Mar 2019 21:49:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51C956E6E7; Mon, 25 Mar 2019 21:49:52 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 22C896E6E7 for ; Mon, 25 Mar 2019 21:49:51 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Mar 2019 14:49:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,270,1549958400"; d="scan'208";a="125798247" Received: from dceraolo-linux.fm.intel.com ([10.1.27.145]) by orsmga007.jf.intel.com with ESMTP; 25 Mar 2019 14:49:50 -0700 From: Daniele Ceraolo Spurio To: intel-gfx@lists.freedesktop.org Date: Mon, 25 Mar 2019 14:49:31 -0700 Message-Id: <20190325214940.23632-1-daniele.ceraolospurio@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/9] more uncore rework X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paulo Zanoni Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Continuation of the crusade to make the uncore code self-contained. The first few patches are mostly what's left of the previous series, while the later ones swap dev_priv out in a few more places. The last patch is a bit more aggressive and introduces some new wrappers to read/write engine registers. Cc: Paulo Zanoni Cc: Chris Wilson Daniele Ceraolo Spurio (9): drm/i915: rename raw reg access functions drm/i915: add HAS_FORCEWAKE flag to uncore drm/i915: add uncore flags for unclaimed mmio drm/i915: take a ref to the rpm in the uncore structure drm/i915: switch uncore mmio funcs to use intel_uncore drm/i915: switch intel_uncore_forcewake_for_reg to intel_uncore drm/i915: intel_wait_for_register_fw to uncore drm/i915: switch intel_wait_for_register to uncore drm/i915: take a reference to uncore in the engine and use it drivers/gpu/drm/i915/gvt/handlers.c | 2 +- drivers/gpu/drm/i915/gvt/mmio_context.c | 11 +- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 6 +- drivers/gpu/drm/i915/i915_drv.h | 75 ++----- drivers/gpu/drm/i915/i915_gpu_error.c | 42 ++-- drivers/gpu/drm/i915/i915_perf.c | 12 +- drivers/gpu/drm/i915/i915_reg.h | 16 +- drivers/gpu/drm/i915/i915_reset.c | 38 ++-- drivers/gpu/drm/i915/i915_vgpu.c | 6 +- drivers/gpu/drm/i915/icl_dsi.c | 6 +- drivers/gpu/drm/i915/intel_cdclk.c | 8 +- drivers/gpu/drm/i915/intel_crt.c | 6 +- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 27 +-- drivers/gpu/drm/i915/intel_dp.c | 4 +- drivers/gpu/drm/i915/intel_dp_mst.c | 2 +- drivers/gpu/drm/i915/intel_dpio_phy.c | 5 +- drivers/gpu/drm/i915/intel_dpll_mgr.c | 25 ++- drivers/gpu/drm/i915/intel_drv.h | 17 +- drivers/gpu/drm/i915/intel_engine_cs.c | 148 ++++++------ drivers/gpu/drm/i915/intel_engine_types.h | 2 + drivers/gpu/drm/i915/intel_fbc.c | 2 +- drivers/gpu/drm/i915/intel_guc.c | 15 +- drivers/gpu/drm/i915/intel_hangcheck.c | 6 +- drivers/gpu/drm/i915/intel_hdcp.c | 16 +- drivers/gpu/drm/i915/intel_huc.c | 2 +- drivers/gpu/drm/i915/intel_huc_fw.c | 22 +- drivers/gpu/drm/i915/intel_i2c.c | 2 +- drivers/gpu/drm/i915/intel_lrc.c | 19 +- drivers/gpu/drm/i915/intel_lrc.h | 22 +- drivers/gpu/drm/i915/intel_lvds.c | 6 +- drivers/gpu/drm/i915/intel_pm.c | 17 +- drivers/gpu/drm/i915/intel_psr.c | 8 +- drivers/gpu/drm/i915/intel_ringbuffer.c | 166 +++++++------- drivers/gpu/drm/i915/intel_ringbuffer.h | 45 +++- drivers/gpu/drm/i915/intel_runtime_pm.c | 8 +- drivers/gpu/drm/i915/intel_sideband.c | 12 +- drivers/gpu/drm/i915/intel_uncore.c | 211 +++++++++--------- drivers/gpu/drm/i915/intel_uncore.h | 167 ++++++++++++-- drivers/gpu/drm/i915/intel_workarounds.c | 2 +- drivers/gpu/drm/i915/selftests/intel_uncore.c | 17 +- drivers/gpu/drm/i915/selftests/mock_uncore.c | 4 +- drivers/gpu/drm/i915/vlv_dsi.c | 28 +-- drivers/gpu/drm/i915/vlv_dsi_pll.c | 4 +- 45 files changed, 703 insertions(+), 560 deletions(-)