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 8E7A9CA600B for ; Wed, 7 Oct 2026 21:14:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3768710F7D0; Wed, 7 Oct 2026 21:14:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jagtld3q"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A1C210F7D0 for ; Wed, 7 Oct 2026 21:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791407666; x=1822943666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/EgR/LrLHO7XZua8sz0RTUnkUYMmB3TARc7PhZuTmkc=; b=jagtld3qdpbgL3oVj2/LxSaAldFLg9AlxF8M0BfeZzeK3hFD/TYzs0Ej b+3tu/rOa2UgDFKIWIGFLCzldJUxQzNYSzCMjXrtjfYaplWkIoZrCmHlF s8F2r6VEMoFAkfMBj1QQA4d5j32LQGFYiKcz9nm8Tb1F7y7YfWygBwtCr CD++/RzMja5IzLzg6HUF4Wux3aVExGK6eqA8nUBUDuJMR2hkh5PNGf2XY vrf8jw8G+nuzqh8OtcZ5o0VWaEap8kbc36+NksRmmucUidABHyufc0kTK 9pHOueX0C9B9tsaAUgpxCspnecZtIxwFzkZFnib8daweG0KDU/bBwYFib w==; X-CSE-ConnectionGUID: /FCQcrocRBmjDczTpwjHnw== X-CSE-MsgGUID: e520dL2ISyWQ+/dutr4BQw== X-IronPort-AV: E=McAfee;i="6800,10657,11928"; a="77158" X-IronPort-AV: E=Sophos;i="6.27,145,1787036400"; d="scan'208";a="77158" 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:26 -0700 X-CSE-ConnectionGUID: LoTFE/Z5QJmW6hpCRa5bXw== X-CSE-MsgGUID: Jn/TXLs+RlKthjszum2fSw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,145,1787036400"; d="scan'208";a="305526798" Received: from dbhadane-mobl1.iind.intel.com ([10.190.239.58]) by fmviesa001.fm.intel.com with ESMTP; 07 Oct 2026 14:14:25 -0700 From: Dnyaneshwar Bhadane To: intel-xe@lists.freedesktop.org Cc: mallesh.koujalagi@intel.com, Dnyaneshwar Bhadane Subject: [PATCH v5 04/12] drm/xe/mmio: Report BAR mapping errors using structured xe_log API Date: Thu, 8 Oct 2026 02:44:09 +0530 Message-ID: <20261007211417.2093611-5-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 xe_err() calls with xe_log_err_fatal() using the REGS component tag for MMIO BAR probe failures Signed-off-by: Dnyaneshwar Bhadane Reviewed-by: Mallesh Koujalagi --- drivers/gpu/drm/xe/xe_mmio.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c index 455a07d79cd9..2674146ced76 100644 --- a/drivers/gpu/drm/xe/xe_mmio.c +++ b/drivers/gpu/drm/xe/xe_mmio.c @@ -15,6 +15,7 @@ #include "regs/xe_bars.h" #include "xe_device.h" #include "xe_gt_sriov_vf.h" +#include "xe_log.h" #include "xe_printk.h" #include "xe_sriov.h" #include "xe_tile_printk.h" @@ -71,8 +72,8 @@ int xe_mmio_probe_tiles(struct xe_device *xe) return 0; if (xe->mmio.size < xe->info.tile_count * tile_mmio_size) { - xe_err(xe, "GTTMMADR_BAR is too small for %d tiles: %zu\n", - xe->info.tile_count, xe->mmio.size); + xe_log_err_fatal(xe, REGS, -EIO, "GTTMMADR_BAR is too small for %d tiles: %zu\n", + xe->info.tile_count, xe->mmio.size); return -EIO; } @@ -105,13 +106,16 @@ int xe_mmio_probe_early(struct xe_device *xe) xe->mmio.regs = pcim_iomap(pdev, GTTMMADR_BAR, 0); if (!xe->mmio.regs) { - xe_err(xe, "Failed to map GTTMMADR_BAR\n"); + xe_log_err_fatal(xe, REGS, -EIO, + "Failed to map GTTMMADR_BAR\n"); return -EIO; } xe->mmio.size = pci_resource_len(pdev, GTTMMADR_BAR); if (xe->mmio.size < SZ_16M) { - xe_err(xe, "GTTMMADR_BAR is too small: %zu\n", xe->mmio.size); + xe_log_err_fatal(xe, REGS, -EIO, + "GTTMMADR_BAR is too small: %zu\n", + xe->mmio.size); return -EIO; } -- 2.54.0