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 BD3EDC074FD for ; Tue, 14 Nov 2023 11:01:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7DC0C10E43F; Tue, 14 Nov 2023 11:01:35 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC17D10E1FD for ; Tue, 14 Nov 2023 11:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699959689; x=1731495689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZPOeZcS/6NyvYIfil8/+zsLlt47GbejwmMfYkxBZNok=; b=h0ZLb2fdCWH05qBUGrf1Z4Fr/BdBz2JAxa9yIupqOQ+p8MeX4rxHRq8V C7k0I5VmBfklaiLTVMI1gXWPwwSa4/n40TcDPpXBLSDQGhFUrjCrSgeZ9 XiR8igk/dmozoIWohBI4B6XeY+YcULqxJV3U0DWeGIGxakIxPNNMdbPEu mwOi5jEMVoxyU78ygMnIJhtaaw2J00TwRWn0+OEqlMidL9f5UHH8IcRCP ttZiQuhzUdngvhRY5rJ+71fhfwRg/CmWoT9D4BBQ0+daBGOlcU9jfQDpQ P/T96BEot1AsKgIBJKteNRQLKk/UAO+1VyXp7cP4ywq2IxjPaONmKOvTc A==; X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="454924464" X-IronPort-AV: E=Sophos;i="6.03,301,1694761200"; d="scan'208";a="454924464" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2023 03:01:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="1096057527" X-IronPort-AV: E=Sophos;i="6.03,301,1694761200"; d="scan'208";a="1096057527" Received: from mmaiores-mobl1.ger.corp.intel.com (HELO jhogande-mobl1.intel.com) ([10.252.56.172]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2023 03:01:22 -0800 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-xe@lists.freedesktop.org Date: Tue, 14 Nov 2023 13:00:55 +0200 Message-Id: <20231114110056.2423853-9-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231114110056.2423853-1-jouni.hogander@intel.com> References: <20231114110056.2423853-1-jouni.hogander@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 8/9] 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: =?UTF-8?q?Jouni=20H=C3=B6gander?= Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Add i915_ggtt_offset into i915_vma.h compatibility header. This is needed by intel_fbdev.c. Signed-off-by: Jouni Högander Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h index 9424144b1b5a..23f2d037c313 100644 --- a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h @@ -19,4 +19,10 @@ struct i915_vma { #define i915_ggtt_clear_scanout(bo) do { } while (0) #define i915_vma_fence_id(vma) -1 + +static inline u32 i915_ggtt_offset(const struct i915_vma *vma) +{ + return vma->node.start; +} + #endif -- 2.34.1