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 9D6AFC79FAE for ; Tue, 8 Sep 2026 10:45:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AC7310EAEE; Tue, 8 Sep 2026 10:45:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dzXlUroL"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 350FE10E0E2 for ; Tue, 8 Sep 2026 10:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788864355; x=1820400355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=f7QzSOA+aQqSYJRXWO58wKslQLqYfklKChIUDid2sj4=; b=dzXlUroLsBxAcuIg3eqZe55tb9Jzg89yWDZu1ICE55i128zsD/ThdCHC C+I7KmwhGEeADUtA8OSanhosxJzdBnFGk+Aw199F1B3bdH9HOvizah6ve 1xsekYsk4vp+uw9O3Gm/Xwn/YpODUrQj9V0QxH/ED+CRse3N7cFkr3X4I sCykFrdcPpqY0J42r3Rlq74MxDtxNakCW3gRBB00NIEr/wJ0hRa3R7NVQ 5+wLNP5CX4ZPO1Oq5gaTPj6VCR2qTY0gh+6U065T4aoMbH8CwP3fAZn7u jQZaXtbJvINVifLp3e54krb7W3Hgacp3D6moniLxnGeNiKPjmFMD6bvzC g==; X-CSE-ConnectionGUID: zXPjjbh0QaS6OdN0zmR60Q== X-CSE-MsgGUID: Vjri0OvQQmm9XEGV/qluqQ== X-IronPort-AV: E=McAfee;i="6800,10657,11899"; a="91773068" X-IronPort-AV: E=Sophos;i="6.25,268,1779174000"; d="scan'208";a="91773068" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2026 03:45:55 -0700 X-CSE-ConnectionGUID: knCaivMuSo6OOXj9jFSShQ== X-CSE-MsgGUID: Gqf4HBV5Q1iHoXPv6M5IZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,268,1779174000"; d="scan'208";a="264759066" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by fmviesa009.fm.intel.com with ESMTP; 08 Sep 2026 03:45:54 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: Dnyaneshwar Bhadane Subject: [PATCH v3 02/13] drm/xe/ggtt: Report GGTT errors using structured logging Date: Tue, 8 Sep 2026 16:15:39 +0530 Message-ID: <20260908104550.1283933-3-dnyaneshwar.bhadane@intel.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260908104550.1283933-1-dnyaneshwar.bhadane@intel.com> References: <20260908104550.1283933-1-dnyaneshwar.bhadane@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" Replace xe_tile_err() calls with xe_log_err_fatal() using the GGTT component tag in GGTT initialization error paths. Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/xe/xe_ggtt.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c index 63e8bf193605..773777afc68a 100644 --- a/drivers/gpu/drm/xe/xe_ggtt.c +++ b/drivers/gpu/drm/xe/xe_ggtt.c @@ -23,6 +23,7 @@ #include "xe_gt.h" #include "xe_gt_printk.h" #include "xe_gt_types.h" +#include "xe_log.h" #include "xe_map.h" #include "xe_mmio.h" #include "xe_pat.h" @@ -403,7 +404,8 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) else gsm_size = probe_gsm_size(pdev); if (gsm_size == 0) { - xe_tile_err(ggtt->tile, "Hardware reported no preallocated GSM\n"); + xe_log_err_fatal(ggtt->tile, GGTT, -ENOMEM, + "Hardware reported no preallocated GSM\n"); return -ENOMEM; } ggtt_start = wopcm; @@ -414,8 +416,9 @@ int xe_ggtt_init_early(struct xe_ggtt *ggtt) if (ggtt_start < wopcm || ggtt_start + ggtt_size > GUC_GGTT_TOP) { - xe_tile_err(ggtt->tile, "Invalid GGTT configuration: %#llx-%#llx\n", - ggtt_start, ggtt_start + ggtt_size - 1); + xe_log_err_fatal(ggtt->tile, GGTT, -ERANGE, + "Invalid GGTT configuration: %#llx-%#llx\n", + ggtt_start, ggtt_start + ggtt_size - 1); return -ERANGE; } } -- 2.54.0