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 8F524C4167B for ; Tue, 14 Nov 2023 11:01:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58A3D10E1FD; Tue, 14 Nov 2023 11:01:30 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6489410E205 for ; Tue, 14 Nov 2023 11:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699959685; x=1731495685; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XtZwDmjfQ63FxfVlgBu1Xk9pX/BJGJXJHgN/Ro8JpR8=; b=P25XByub8g4CKX/elvt1UXzifz/YrE/WYWTVdpjTQU/hWeHGQN7HhBsw 1go+Ni0+7cOsZ3O3+12bHJe4ERzfrF6BmOMg+eK4IiHty/+M3XPgvMY3b UqWOgsj/tpLrrSnzt9DeM52Dy98/xHoTJk/khCmjAWMXn0m9Uq/FYq+Vh 0PRxGYCv6+1DJuORjMFJLTiuZl2V9/Jk8QN5r16xvRfRaG5dO6Nrv7Jd8 5mnuC6DXaPOsiv+K7N1TnwbmgCP2RY6Prw267jPFV9VfuGDIyC68OgHMZ cAYV7xiYPBKkHx1Cu+4JUapDxhoZVV1duKC/AGfQ28ClLG9ZaUqbI2+5+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="454924403" X-IronPort-AV: E=Sophos;i="6.03,301,1694761200"; d="scan'208";a="454924403" 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:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="1096057488" X-IronPort-AV: E=Sophos;i="6.03,301,1694761200"; d="scan'208";a="1096057488" 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:18 -0800 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-xe@lists.freedesktop.org Date: Tue, 14 Nov 2023 13:00:52 +0200 Message-Id: <20231114110056.2423853-6-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 5/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_gem_fb_mmap define into i915_gem_mman.h comptatibility header. Signed-off-by: Jouni Högander Signed-off-by: Maarten Lankhorst --- .../xe/compat-i915-headers/gem/i915_gem_mman.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h diff --git a/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h new file mode 100644 index 000000000000..650ea2803a97 --- /dev/null +++ b/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2023 Intel Corporation + */ + +#ifndef _I915_GEM_MMAN_H_ +#define _I915_GEM_MMAN_H_ + +#include "xe_bo_types.h" +#include + +static inline int i915_gem_fb_mmap(struct xe_bo *bo, struct vm_area_struct *vma) +{ + return drm_gem_prime_mmap(&bo->ttm.base, vma); +} + +#endif -- 2.34.1