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 9D111C9832F for ; Mon, 28 Sep 2026 09:24:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65FCB10E905; Mon, 28 Sep 2026 09:24:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="H75K24cE"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 15AED10E840 for ; Mon, 28 Sep 2026 09:24: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=1790587449; x=1822123449; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qrN+3UO0CcGqU4Ar7tdPIgxZQ5pCpvLbycCBqoj7t2s=; b=H75K24cEpl785MenA4/AU0BnjZUCKu1/ijoPLCKJzDfP6qoR37KSahar TbQlCdxbSsi0i2BoigmWp71L9DC91eWUN2f6OIqzDXzUL9ItRe69gUh3j gu0oxSsR2to3g0ruJIXry2q+VQsQ2U2C0fots55SIBhuE8yaDyRdOVKgF l7Uv5C01TH/wd89lo+H3EtnNdqOg6RlPw5z/ANARkKe9zLvVhYGf1FEoq LSa10raBNP6QQxZGCqbXA+2JeErGrJIYLZiSAOtfoVmR8zEieGz2icZGT LDWQDKvTKQmVN/zN3QNF6whhLahL7CUudswBk+TWpkaSnB/DdCZPp+V9H Q==; X-CSE-ConnectionGUID: sefqi9wwTiqiqTDxdForQA== X-CSE-MsgGUID: iQDADE/PRD6viUw7HaUpyg== X-IronPort-AV: E=McAfee;i="6800,10657,11918"; a="78845484" X-IronPort-AV: E=Sophos;i="6.27,128,1787036400"; d="scan'208";a="78845484" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2026 02:22:20 -0700 X-CSE-ConnectionGUID: P9qZlXBnSASN1Nvq3U8ArA== X-CSE-MsgGUID: k/wLzyHzSIeRu7h/9fta2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,128,1787036400"; d="scan'208";a="283078042" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by fmviesa005.fm.intel.com with ESMTP; 28 Sep 2026 02:21:28 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: michal.wajdeczko@intel.com, mallesh.koujalagi@intel.com, Dnyaneshwar Bhadane Subject: [PATCH v4 08/12] drm/xe/pat: Report missing PAT table using structured xe_log API Date: Mon, 28 Sep 2026 14:51:10 +0530 Message-ID: <20260928092114.1610203-9-dnyaneshwar.bhadane@intel.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260928092114.1610203-1-dnyaneshwar.bhadane@intel.com> References: <20260928092114.1610203-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 drm_err() with xe_log_err() using the PAT component tag when a platform has no matching PAT table entry. Signed-off-by: Dnyaneshwar Bhadane Reviewed-by: Mallesh Koujalagi --- v2: - correction in the error code.(shashiko) --- --- drivers/gpu/drm/xe/xe_pat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c index 519f7d5a2765..5525fb0ef689 100644 --- a/drivers/gpu/drm/xe/xe_pat.c +++ b/drivers/gpu/drm/xe/xe_pat.c @@ -16,6 +16,7 @@ #include "xe_force_wake.h" #include "xe_gt.h" #include "xe_gt_mcr.h" +#include "xe_log.h" #include "xe_mmio.h" #include "xe_sriov.h" #include "xe_wa.h" @@ -692,9 +693,9 @@ int xe_pat_init_early(struct xe_device *xe) * raise an error rather than trying to silently inherit the * most recent platform's behavior. */ - - drm_err(&xe->drm, "Missing PAT table for platform with graphics version %d.%02d!\n", - GRAPHICS_VER(xe), GRAPHICS_VERx100(xe) % 100); + xe_log_err(xe, PAT, -ENODATA, + "Missing PAT table for platform with graphics version %d.%02d!\n", + GRAPHICS_VER(xe), GRAPHICS_VERx100(xe) % 100); return -ENODATA; } -- 2.54.0