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 16EFECEBF73 for ; Mon, 30 Sep 2024 19:57:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5B1A10E59E; Mon, 30 Sep 2024 19:57:54 +0000 (UTC) Received: from mblankhorst.nl (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id C09D610E59B for ; Mon, 30 Sep 2024 19:57:49 +0000 (UTC) From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Cc: Maarten Lankhorst Subject: [PATCH v2 11/15] drm/xe/display: Stop dereferencing ggtt in xe_fb_pin Date: Mon, 30 Sep 2024 21:57:45 +0200 Message-ID: <20240930195749.318998-12-maarten.lankhorst@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930195749.318998-1-maarten.lankhorst@linux.intel.com> References: <20240930195749.318998-1-maarten.lankhorst@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This is the only user of the ggtt struct still there, add some calls to lock/unlock ggtt and remove other dereferencing. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/xe_ggtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index a2be883c67e88..9c4baa22ebe49 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -908,6 +908,7 @@ u64 xe_ggtt_read_pte(struct xe_ggtt *ggtt, u64 offset) * xe_ggtt_write_pte - Write a PTE to the GGTT * @ggtt: &xe_ggtt * @offset: the offset for which the mapping should be written. + * @pte: The page table entry to write * * Used by display for writing normal and rotated GGTT entries for temporary pinned FB's. */ -- 2.45.2