From mboxrd@z Thu Jan 1 00:00:00 1970 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 06E74C44520 for ; Mon, 20 Jul 2026 16:14:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B91310E9E3; Mon, 20 Jul 2026 16:14:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="lD7wa5X+"; dkim-atps=neutral Received: from lankhorst.se (unknown [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 015F210E9D8; Mon, 20 Jul 2026 16:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1784564041; bh=OooIyMRUwYHvWRWBdChFj2f4Y61vuC1DTpjeZ2oxggc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lD7wa5X+pYV6gi7EdUq5s2eYe/XCAQVA3M0taX12sjHmbdrDfpwaksNHrb6j1onJQ HQ56SSROyUbJQz6N1WZuKYFqDThlyvTNHs6mCsZcDS8j5DwympB6OipY2m/wdoSyml Rw5THtrTI0QnGcJf1ZJUj9EE/EZIchiYDcAOsIKXer5gN9o/wOKnzmtzobmuiSgrkr D2/TduJNMmpWKYs0oPRQ9M+R+yVZxZ4fpkdm3nwsJFtPh0LGNH/ijL3SjZ2VR1nVyn Vh+9RtTk3tzBh7tjA2RMkljS+gNzrcdKbKBj8yw2s1VgtbX92cyDTJUvycAdX4uETm BsluqDNd9vuxw== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org, Maarten Lankhorst , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Subject: [DO NOT REVIEW 04/11] drm/xe/display: Use the correct calculation for phys_base on integrated Date: Mon, 20 Jul 2026 18:14:56 +0200 Message-ID: <20260720161451.384968-17-dev@lankhorst.se> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260720161451.384968-13-dev@lankhorst.se> References: <20260720161451.384968-13-dev@lankhorst.se> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The code originally assumed there was a 1:1 mapping between stolen and GGTT offset. This is no longer true as of MTL, so perform the correct calculations, similar to how they're performed for the DGFX case. Reported-by: Ville Syrjälä Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/xe/display/xe_initial_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/display/xe_initial_plane.c b/drivers/gpu/drm/xe/display/xe_initial_plane.c index a100ad23be2a0..451c24a4ed8d5 100644 --- a/drivers/gpu/drm/xe/display/xe_initial_plane.c +++ b/drivers/gpu/drm/xe/display/xe_initial_plane.c @@ -101,7 +101,7 @@ initial_plane_bo(struct xe_device *xe, return NULL; } - phys_base = base; + phys_base = (pte & ~(page_size - 1)) - xe_ttm_stolen_gpu_offset(xe); flags |= XE_BO_FLAG_STOLEN; if (IS_ENABLED(CONFIG_FRAMEBUFFER_CONSOLE) && -- 2.53.0