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 CC0D8C4167B for ; Mon, 4 Dec 2023 16:41:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5124510E361; Mon, 4 Dec 2023 16:41:16 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10BE510E361 for ; Mon, 4 Dec 2023 16:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701708069; x=1733244069; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=S0ssUHOtV78W1cwAHhTeXIzW8rS0MAZgUdtLQNji59M=; b=P3NeVFfGTO0e1KenJlV2swicszar52S9GSSWb57u05Wz308Z233gYcFS mIAtDQUpbYyGgPKzdsMYZIbZIkvk0dm0sV6LsOwj1SSLF9bTTd1PpvfWp 4FfA6Ou3PgLudGGDpEb51JFhj+TUg7S4/d1luSVV/FF4QgcCPXNyKlGKJ eBcsOodKUYHTajxjnLNdphKJgMIHEdP9IVI5MgJpagy4LQc/CXEVss3l+ T/hmUTFAUzDZKVnnacegIvYqBrv/ZnAWbNjHTQzVyuSA4M6WRaswNKjCx wNnaxjzUwTAPxdrhRb96GWGdZF4qKTgFsG1F/uAxTc7vtBv8I5DlJaExw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="829413" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="829413" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 08:41:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="746895013" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="746895013" Received: from jstelter-mobl.ger.corp.intel.com (HELO jhogande-mobl1.intel.com) ([10.252.61.71]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 08:41:07 -0800 From: =?UTF-8?q?Jouni=20H=C3=B6gander?= To: intel-xe@lists.freedesktop.org Date: Mon, 4 Dec 2023 18:40:39 +0200 Message-Id: <20231204164047.1166360-2-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204164047.1166360-1-jouni.hogander@intel.com> References: <20231204164047.1166360-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 v3 1/9] Revert "FIXME: drm/i915: xe intel_fb.c framebuffer init and destroy xe changes" 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" This reverts commit 14d1d786caacdb3438d07ab86fabf2e36c8151cc. Revert this as we are about to introduce implementation without any ifdefs. Signed-off-by: Jouni Högander --- drivers/gpu/drm/i915/display/intel_fb.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c index 16c37a508552..f7675284907f 100644 --- a/drivers/gpu/drm/i915/display/intel_fb.c +++ b/drivers/gpu/drm/i915/display/intel_fb.c @@ -1891,17 +1891,6 @@ static void intel_user_framebuffer_destroy_vm(struct drm_framebuffer *fb) if (intel_fb_uses_dpt(fb)) intel_dpt_destroy(intel_fb->dpt_vm); -#ifndef I915 - if (intel_fb_obj(fb)->flags & XE_BO_CREATE_PINNED_BIT) { - struct xe_bo *bo = intel_fb_obj(fb); - - /* Unpin our kernel fb first */ - xe_bo_lock(bo, false); - xe_bo_unpin(bo); - xe_bo_unlock(bo); - } - xe_bo_put(intel_fb_obj(fb)); -#endif } static void intel_user_framebuffer_destroy(struct drm_framebuffer *fb) @@ -2174,10 +2163,6 @@ int intel_framebuffer_init(struct intel_framebuffer *intel_fb, intel_fb->dpt_vm = vm; } -#ifndef I915 - /* Hold a reference to object while fb is alive */ - xe_bo_get(obj); -#endif ret = drm_framebuffer_init(&dev_priv->drm, fb, &intel_fb_funcs); if (ret) { -- 2.34.1