Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 55CE6C001DB for ; Fri, 11 Aug 2023 12:10:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E4B910E692; Fri, 11 Aug 2023 12:10:29 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2BB310E692 for ; Fri, 11 Aug 2023 12:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691755826; x=1723291826; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rg7XsQo8qGmZZkSF21s8vMFS4T7ZjC+HvozNBE6Jlx8=; b=cxgFWVsgs9pViHP00i3uykmWTLlJDtigJQ+Rj/vEzSsM8sHCOoZoJX1h H2NZ0XbBh8kDBut1qlNL8gCqhiccL12tZk10PZxjp55MuoKvIpXHJEx3a /5s2W/1g1DRA6ti+kiPhtt0eUI+H8CZ8xGvVa+WZs9n88nEbYfxuL3DCf GhUuNbEJ+TyPVPv6LPsinrvNNh3uBIUPXwuJbbxCHfCrwRTFm3mKuaIih TY51SvbtYhZHYNpdbvieRRdNzSuO12AUZVG2YLa+db+u8SnfoQmmrxEmv FrbyljEBPS397iogbXnpwopUPTXfZMeHMvjQ8IpOpvxaFNFfCj+ak6Lph w==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="435557188" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="435557188" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 05:10:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="709522753" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="709522753" Received: from pbenacek-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.49.125]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 05:10:25 -0700 From: Jani Nikula To: Jani Nikula , intel-xe@lists.freedesktop.org Date: Fri, 11 Aug 2023 15:10:15 +0300 Message-Id: <20230811121015.2349998-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230811093559.2304457-8-jani.nikula@intel.com> References: <20230811093559.2304457-8-jani.nikula@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v2] fixup! drm/xe/display: Implement display support X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rodrigo.vivi@intel.com Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" No need to keep a copy of i915_irq.h around. Use the i915 one. v2: xe_display.h no longer needs to include ext/i915_irq.h either Signed-off-by: Jani Nikula --- .../gpu/drm/xe/compat-i915-headers/i915_irq.h | 6 +++ drivers/gpu/drm/xe/display/ext/i915_irq.h | 54 ------------------- drivers/gpu/drm/xe/xe_display.c | 1 - 3 files changed, 6 insertions(+), 55 deletions(-) create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/i915_irq.h delete mode 100644 drivers/gpu/drm/xe/display/ext/i915_irq.h diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_irq.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_irq.h new file mode 100644 index 000000000000..61707a07f91f --- /dev/null +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_irq.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2023 Intel Corporation + */ + +#include "../../i915/i915_irq.h" diff --git a/drivers/gpu/drm/xe/display/ext/i915_irq.h b/drivers/gpu/drm/xe/display/ext/i915_irq.h deleted file mode 100644 index d7931139d4cd..000000000000 --- a/drivers/gpu/drm/xe/display/ext/i915_irq.h +++ /dev/null @@ -1,54 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -/* - * Copyright © 2019 Intel Corporation - */ - -#ifndef __I915_IRQ_H__ -#define __I915_IRQ_H__ - -#include - -#include "i915_reg_defs.h" - -struct drm_i915_private; -struct intel_uncore; - -bool intel_irqs_enabled(struct drm_i915_private *dev_priv); -void intel_synchronize_irq(struct drm_i915_private *i915); - -void gen3_assert_iir_is_zero(struct intel_uncore *uncore, i915_reg_t reg); - -void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr, - i915_reg_t iir, i915_reg_t ier); - -void gen3_irq_init(struct intel_uncore *uncore, - i915_reg_t imr, u32 imr_val, - i915_reg_t ier, u32 ier_val, - i915_reg_t iir); - -#define GEN8_IRQ_RESET_NDX(uncore, type, which) \ -({ \ - unsigned int which_ = which; \ - gen3_irq_reset((uncore), GEN8_##type##_IMR(which_), \ - GEN8_##type##_IIR(which_), GEN8_##type##_IER(which_)); \ -}) - -#define GEN3_IRQ_RESET(uncore, type) \ - gen3_irq_reset((uncore), type##IMR, type##IIR, type##IER) - -#define GEN8_IRQ_INIT_NDX(uncore, type, which, imr_val, ier_val) \ -({ \ - unsigned int which_ = which; \ - gen3_irq_init((uncore), \ - GEN8_##type##_IMR(which_), imr_val, \ - GEN8_##type##_IER(which_), ier_val, \ - GEN8_##type##_IIR(which_)); \ -}) - -#define GEN3_IRQ_INIT(uncore, type, imr_val, ier_val) \ - gen3_irq_init((uncore), \ - type##IMR, imr_val, \ - type##IER, ier_val, \ - type##IIR) - -#endif /* __I915_IRQ_H__ */ diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c index be4cd6ebbe83..b6b547c4877c 100644 --- a/drivers/gpu/drm/xe/xe_display.c +++ b/drivers/gpu/drm/xe/xe_display.c @@ -14,7 +14,6 @@ #include #include -#include "ext/i915_irq.h" #include "soc/intel_dram.h" #include "intel_acpi.h" #include "intel_audio.h" -- 2.39.2