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 0E172C61DE4 for ; Tue, 1 Sep 2026 06:31:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BFAA210EAC0; Tue, 1 Sep 2026 06:31:21 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="XZPURYam"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1E97710EAC1 for ; Tue, 1 Sep 2026 06:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788244280; x=1819780280; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5KabJfHnQuefGLUpdHgLhXdzYytQ8HAl5zD+EHctX30=; b=XZPURYamtOyuBTi6uYR8RyBGKMxZiCjM1Uu32FDOF1CuNM0zqHgWiPM9 FtEw5/rU99M2N2hQcaaZqoH/paELcSMtnh2e1dxmSzUEmpbYmW6QbdzCu LlXFX9VXGoJWkjwroHHurTOLnr5E1DIv+gHGQEpSTzOhQyiTAJKGO4Nx1 bEvSrFkNxf+pFdUZeDMcsTQXgePQHtsXEHcmEhzaFj3P6lhO1XwVSISRZ Q0NTD+yV31v8VS22SEBSjcTi9ksYfglE+j1sITAxFA7eXPfhAvyrypJl+ RYeF8wA56+0DUbYN7JZk1tYPUlkhbXfmE4o7JTBpUcxEw+cW/Grn4uxBH Q==; X-CSE-ConnectionGUID: CGDis9llSIikpksHj1Uung== X-CSE-MsgGUID: CwI9880yQfie4P+1pBaCwg== X-IronPort-AV: E=McAfee;i="6800,10657,11892"; a="88588893" X-IronPort-AV: E=Sophos;i="6.25,255,1779174000"; d="scan'208";a="88588893" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2026 23:31:20 -0700 X-CSE-ConnectionGUID: XuwMf5xaRKmnDZyYdLp6wQ== X-CSE-MsgGUID: PIbwZWlPQMKao9QQyaNW9w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,255,1779174000"; d="scan'208";a="272791284" Received: from varungup-desk.iind.intel.com ([10.190.238.71]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2026 23:31:18 -0700 From: Arvind Yadav To: intel-xe@lists.freedesktop.org Cc: rodrigo.vivi@intel.com, badal.nilawar@intel.com, michal.wajdeczko@intel.com, himal.prasad.ghimiray@intel.com, dnyaneshwar.bhadane@intel.com, mallesh.koujalagi@intel.com, matthew.brost@intel.com Subject: [PATCH v6 3/4] drm/xe/svm: Report terminal page-fault failures using SIGID Date: Tue, 1 Sep 2026 12:00:58 +0530 Message-ID: <20260901063059.2547247-4-arvind.yadav@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260901063059.2547247-1-arvind.yadav@intel.com> References: <20260901063059.2547247-1-arvind.yadav@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" Route terminal SVM page-fault failures through the structured SIGID logging helper. These errors are reported only after the retry count is exceeded, so they represent terminal page-fault handling failures rather than transient retry conditions. Use the PAGEFAULT component, which maps to XE_SIGID_MEM_FAULT, and pass the real errno value to the helper. Pass the GT object so the report carries tile/GT location. The helper renders the errno, so remove the manual ERR_PTR() formatting from the message text. Cc: Mallesh Koujalagi Cc: Badal Nilawar Cc: Matthew Brost Cc: Himal Prasad Ghimiray Cc: Michal Wajdeczko Cc: Rodrigo Vivi Suggested-by: Mallesh Koujalagi Signed-off-by: Arvind Yadav --- drivers/gpu/drm/xe/xe_svm.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_svm.c b/drivers/gpu/drm/xe/xe_svm.c index 627a741293d5..349e307ca092 100644 --- a/drivers/gpu/drm/xe/xe_svm.c +++ b/drivers/gpu/drm/xe/xe_svm.c @@ -13,6 +13,7 @@ #include "xe_bo.h" #include "xe_exec_queue_types.h" #include "xe_gt_stats.h" +#include "xe_log.h" #include "xe_migrate.h" #include "xe_module.h" #include "xe_pagefault.h" @@ -1361,9 +1362,9 @@ static int __xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma, else goto retry; } else { - drm_err(&vm->xe->drm, - "VRAM allocation failed, retry count exceeded, asid=%u, errno=%pe\n", - vm->usm.asid, ERR_PTR(err)); + xe_log_err(gt, PAGEFAULT, err, + "VRAM allocation failed, retry count exceeded, asid=%u\n", + vm->usm.asid); goto err_out; } } @@ -1384,9 +1385,9 @@ static int __xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma, range_debug(range, "PAGE FAULT - RETRY PAGES"); goto retry; } else { - drm_err(&vm->xe->drm, - "Get pages failed, retry count exceeded, asid=%u, gpusvm=%p, errno=%pe\n", - vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err)); + xe_log_err(gt, PAGEFAULT, err, + "Get pages failed, retry count exceeded, asid=%u, gpusvm=%p\n", + vm->usm.asid, &vm->svm.gpusvm); } } if (err) { -- 2.43.0