From patchwork Tue Nov 21 11:27:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13462852 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 D2FFCC54FB9 for ; Tue, 21 Nov 2023 11:27:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E92E10E47F; Tue, 21 Nov 2023 11:27:52 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BA8A10E267 for ; Tue, 21 Nov 2023 11:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700566071; x=1732102071; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9rZAW1kOw+4azRlX4a/qJIrGDJg3MaL2YL+DG9jCyuE=; b=a7D/SRchD9Q1U4unjVXwQXw8N5DrPgkV2Z+AIU+7LYUohrKFcTH3eFug SE9Op8XmClMBoe59QSv5nEGaFpAYQ8Ore3nyOvmS2SWVzdf3QZxDZ56Yd sAAHfdzo8fW+1/wXuj+FPgK9RQTh9L0SPAuTzjUTIBVBfs29+zFQHk2vT /s4gTSOK/G9uO07pGbVGmUsVwFc8evQe+Vyuw3kYoTFWmrCcqqsmzP/eZ gLoG9Rqok/fZqGYw9134kogi1RSJ1O36w75GyqWIcimxX6xoeCnaq/ckr 1pVZ8dArZ8i0hzIulGBm2xaGPBsDUMleQ/0mKArAHIn5G61hY4cUhLmRn g==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="390674943" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="390674943" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:27:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="890223218" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="890223218" Received: from ttmerile-mobl1.ger.corp.intel.com (HELO jhogande-mobl1.intel.com) ([10.252.39.236]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 03:27:48 -0800 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Date: Tue, 21 Nov 2023 13:27:25 +0200 Message-Id: <20231121112729.4191245-1-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH v5 0/4] Prepare intel_fb for Xe X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , Rodrigo Vivi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Intel fb creation is differing between Xe and i915 due to different implementations of backing object. This patch set is splitting i915 specific code into it's own source file. Similar source files will be introduced for Xe as well. Also use intel_bo_to_drm_bo instead of directly referring i915_gem_object->base. One i915_gem_object_put is changed to drm_gem_object_put. v5: - Keep drm_any_plane_has_format check in intel_fb.c - Use mode_cmd instead of user_mode_cmd for intel_fb_bo_lookup_valid_bo - Use lookup_modifier_or_null in intel_fb_modifier_to_tiling and handle null value v4: Move drm_any_plane_has_format check into intel_fb_bo.c v3: Fix failure handling in intel_framebuffer_init v2: Couple of fixes to error value handling Cc: Rodrigo Vivi Cc: Maarten Lankhorst Cc: Jani Nikula Cc: Uma Shankar Jouni Högander (4): drm/i915/display: use intel_bo_to_drm_bo in intel_fb.c drm/i915/display: Convert intel_fb_modifier_to_tiling as non-static drm/i915/display: Handle invalid fb_modifier in intel_fb_modifier_to_tiling drm/i915/display: Split i915 specific code away from intel_fb.c drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_fb.c | 128 ++++++++---------------- drivers/gpu/drm/i915/display/intel_fb.h | 2 + 3 files changed, 44 insertions(+), 87 deletions(-)