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 9C660CA9ED1 for ; Mon, 12 Oct 2026 05:19:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CDF810E811; Mon, 12 Oct 2026 05:19:49 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D7C410EC8C for ; Mon, 12 Oct 2026 05:19:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791782382; x=1823318382; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0FWoxpen/jUAwdxbGyeGEqBNepq2lPjcXmq1ULniERE=; b=WHURrFqYV+Ac+MMq/WAhOx58hjiZ8rGaj2KNoDlFBDAnicSjRqJKwTtK uLcQCTvVunepteFhaoozlkP91mSpa7Rg+TEn7cRSLvnvC6+BIHKL6jcmK QPp8ketVHon0KlxCkpFp3tt7DZh6xSrTLScIRa9Jm5ki8kXPSG6iB9cI5 TLOEYaV60myVMgOQ5z/gGpkygWemxMZn7VtQB0gnNIECPm2keyC0xkEsp sgdq61yvTV6AJf52YRY6Y8b0H9DorVjotvjWGjIKsIJLqByLR7WdikCn1 vcBTmH2130VPxod22FO/ofLAi+ZbRup21JFizY4mIGmUX71kiOgxgcBZ+ Q==; X-CSE-ConnectionGUID: Z34klEpEQhePjGdJKtB8Pg== X-CSE-MsgGUID: AZR9z/FFRG6ibetYMREaXw== X-IronPort-AV: E=McAfee;i="6800,10657,11932"; a="390513" X-IronPort-AV: E=Sophos;i="6.27,153,1787036400"; d="scan'208";a="390513" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2026 22:18:42 -0700 X-CSE-ConnectionGUID: ntK4JGVTTyS/E1/kuHP7Qg== X-CSE-MsgGUID: 5hyda6z8SByanVKQBvcP0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,153,1787036400"; d="scan'208";a="735960" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by orviesa009.jf.intel.com with ESMTP; 11 Oct 2026 22:18:41 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: mallesh.koujalagi@intel.com, Dnyaneshwar Bhadane Subject: [PATCH v6 10/12] drm/xe/lmtt: Report invalidation errors using structured xe_log API Date: Mon, 12 Oct 2026 10:48:21 +0530 Message-ID: <20261012051823.2201360-11-dnyaneshwar.bhadane@intel.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261012051823.2201360-1-dnyaneshwar.bhadane@intel.com> References: <20261012051823.2201360-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_sriov_err() with xe_log_err() using the LMTT component tag for LMTT and MERT invalidation failures, preserving the SR-IOV prefix in the log message. Signed-off-by: Dnyaneshwar Bhadane Reviewed-by: Mallesh Koujalagi --- v2: - Drop logging error type in log (Mallesh) v3: - Add trailing newline(Mallesh). --- drivers/gpu/drm/xe/xe_lmtt.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c index 0c726eda9390..b6b3d892a35e 100644 --- a/drivers/gpu/drm/xe/xe_lmtt.c +++ b/drivers/gpu/drm/xe/xe_lmtt.c @@ -14,6 +14,7 @@ #include "xe_bo.h" #include "xe_tlb_inval.h" #include "xe_lmtt.h" +#include "xe_log.h" #include "xe_map.h" #include "xe_mert.h" #include "xe_mmio.h" @@ -302,14 +303,15 @@ void xe_lmtt_invalidate_hw(struct xe_lmtt *lmtt) err = lmtt_invalidate_hw(lmtt); if (err) - xe_tile_sriov_err(tile, "LMTT invalidation failed (%pe)", - ERR_PTR(err)); + xe_log_err(tile, LMTT, err, "%s invalidation failed.\n", + xe_sriov_printk_prefix(xe)); if (xe_device_has_mert(xe) && xe_tile_is_root(tile)) { err = xe_mert_invalidate_lmtt(xe); if (err) - xe_tile_sriov_err(tile, "MERT LMTT invalidation failed (%pe)", - ERR_PTR(err)); + xe_log_err(tile, LMTT, err, + "%s MERT invalidation failed.\n", + xe_sriov_printk_prefix(xe)); } } -- 2.54.0