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 C813FCA5FFF for ; Wed, 7 Oct 2026 21:14:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F85310E6A4; Wed, 7 Oct 2026 21:14:36 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kpc6tavs"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id AF5AC10F7E9 for ; Wed, 7 Oct 2026 21:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791407672; x=1822943672; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5Jfx3ll6uaWkkM4/uuBSviquBppWJx/NOW8xHLviebA=; b=kpc6tavsi7TAEEwQGclIC0/wPlnCNsCiyeR3uPc7hV9gaGSUExvT0sAv 9u1aTtzYgWzxjGC/wna5zyPC8pD3xYysrnHvkNCf3nv5P8q7AIbYYREgm vdZs07/kxh9HsCByFpOfDIMWYfgGKRkhNN+ZYWC8HehWUST8YZ8HXoqA1 O9RPth58eliB49PZkujKkmNLWuAanca6ACSQEImqWngC6O3NALhNeZHxA y0rsR4wVhLAc0pc7OSqSV2SbP3PPlgxQUec4xBssrR4q/fFwAh7154lS+ +XYUEeOta+Aq9+9enVoKXfWzPQamTCvn7osAezi1msqAX4HIUtVkzIqoE g==; X-CSE-ConnectionGUID: Orh9OjdWRwaJ8nPoVXZWWA== X-CSE-MsgGUID: DMZ/xy5hSTipBVWv66Fewg== X-IronPort-AV: E=McAfee;i="6800,10657,11928"; a="77179" X-IronPort-AV: E=Sophos;i="6.27,145,1787036400"; d="scan'208";a="77179" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2026 14:14:32 -0700 X-CSE-ConnectionGUID: y5q561syR6W87GRO0mftxA== X-CSE-MsgGUID: 3Bmod0N4TGi5RC/6biAt+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,145,1787036400"; d="scan'208";a="305526876" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by fmviesa001.fm.intel.com with ESMTP; 07 Oct 2026 14:14:31 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: mallesh.koujalagi@intel.com, Dnyaneshwar Bhadane Subject: [PATCH v5 09/12] drm/xe/pci: Report unknown GMDID versions using structured xe_log API Date: Thu, 8 Oct 2026 02:44:14 +0530 Message-ID: <20261007211417.2093611-10-dnyaneshwar.bhadane@intel.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261007211417.2093611-1-dnyaneshwar.bhadane@intel.com> References: <20261007211417.2093611-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 REGS component tag when hardware reports unrecognized graphics or media IP versions during GMDID handling. Signed-off-by: Dnyaneshwar Bhadane Reviewed-by: Mallesh Koujalagi --- drivers/gpu/drm/xe/xe_pci.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index e44b74b9aa27..9cc35433ec91 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -721,8 +721,9 @@ static int handle_gmdid(struct xe_device *xe, *graphics_ip = find_graphics_ip(ver); if (!*graphics_ip) { - drm_err(&xe->drm, "Hardware reports unknown graphics version %u.%02u\n", - ver / 100, ver % 100); + xe_log_err(xe, REGS, -EINVAL, + "Hardware reports unknown graphics version %u.%02u\n", + ver / 100, ver % 100); } ret = read_gmdid(xe, GMDID_MEDIA, &ver, media_revid); @@ -735,8 +736,9 @@ static int handle_gmdid(struct xe_device *xe, *media_ip = find_media_ip(ver); if (!*media_ip) { - drm_err(&xe->drm, "Hardware reports unknown media version %u.%02u\n", - ver / 100, ver % 100); + xe_log_err(xe, REGS, -EINVAL, + "Hardware reports unknown media version %u.%02u\n", + ver / 100, ver % 100); } return 0; -- 2.54.0