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 877D1C79F82 for ; Tue, 8 Sep 2026 10:46:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 429E510EB07; Tue, 8 Sep 2026 10:46:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="C9gaKF3m"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id B633410EAF7 for ; Tue, 8 Sep 2026 10:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788864363; x=1820400363; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5xymytJlulcYjXSUOW7Gj8bKb9UOUgwDhhUYpiy2peQ=; b=C9gaKF3m14VTXppyZqnKduSWyXhVpM8aw9hWBoq36WPvy5wg3pclhLNd vQuchDGNYt1of/YO7heMEMuOF0qO247DXOPMWW5nwlac0ok29sKXkICth ujUIFY4rKaCypTlTi8QkqA+pYyaSRfaaxfFGuttIFmLavUtzjC/kIGdej e140ZLCwkF5Q0n7NVCpBFKxJ2PDzTtdjvHhDocEUuPLt5xmpwZjFH8Tw7 15hLFSOLKeojRQaGpVqsV1pmbZfC1AiLAK2NwxoCT8rgb8ydD5grrM4qx sJ4BIdZB2Cju4cfNFKU7hJxrXYPZBt6bH9WPIJoaJ+8ztka4XHyYmxExT Q==; X-CSE-ConnectionGUID: 0r0V1Cw9Q4CRjZmKzDBing== X-CSE-MsgGUID: ULjcEFOoTIusl42tKHYKXA== X-IronPort-AV: E=McAfee;i="6800,10657,11899"; a="91773080" X-IronPort-AV: E=Sophos;i="6.25,268,1779174000"; d="scan'208";a="91773080" 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:46:02 -0700 X-CSE-ConnectionGUID: 9rcrBfGzSMu89C+6aliznw== X-CSE-MsgGUID: h1mGbkbtSp21y2PfjOmd6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,268,1779174000"; d="scan'208";a="264759114" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by fmviesa009.fm.intel.com with ESMTP; 08 Sep 2026 03:46:01 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: Dnyaneshwar Bhadane Subject: [PATCH v3 09/13] drm/xe/pat: Report missing PAT table using structured xe_log API Date: Tue, 8 Sep 2026 16:15:46 +0530 Message-ID: <20260908104550.1283933-10-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 drm_err() with xe_log_err() using the PAT component tag when a platform has no matching PAT table entry. v2: - correction in the error code.(shashiko) Signed-off-by: Dnyaneshwar Bhadane --- drivers/gpu/drm/xe/xe_pat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c index 8af92e3c4c17..1deecfd80f30 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" @@ -678,8 +679,9 @@ int xe_pat_init_early(struct xe_device *xe) xe->pat.idx[XE_CACHE_WT] = 2; xe->pat.idx[XE_CACHE_WB] = 0; } else { - 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