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 95677C021AA for ; Wed, 19 Feb 2025 21:30:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B19B10E033; Wed, 19 Feb 2025 21:30:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZPEVMWuj"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 940EA10E033 for ; Wed, 19 Feb 2025 21:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740000652; x=1771536652; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Z1w9i47BE1UtY4uScsMNfdaMBpzLKJuLqtJjnKJnNQs=; b=ZPEVMWuj6r0K0e8Kp5s74ewD+r08WkbwDeslFt/Bmn215K7z/iIU6oGm bTaFjL0NvXHtGE6CNWNH8+HGqwTtGl9Th/IW7yXMyfF+GVh0nH3GLdSV8 DRerbx+GRnrIXTDNx3TNNrl5ZnaDNHYpBXDr7t5cwo0ZzG5HhVXhyKYXv xc3ni3yfsYkq8cSmCcRa7sPgGmldSsD6oMdZ/2xWx0yCKSeY9svNNVlQH C34VNbQNPnBY0gZFgzebvKEHpkiWk9d2gjaw6oUuItoJlLr2PWFZKq0gs oHY9IMYCT+MKet+KXbflaGgum1QPBOLVMFDpH6P0QvNYMBtONRrK+3Mv0 A==; X-CSE-ConnectionGUID: byMa6FgBTUaD/pbTAZnwWQ== X-CSE-MsgGUID: zPIZAnM2Qk+7dLpiJbiK+w== X-IronPort-AV: E=McAfee;i="6700,10204,11350"; a="40898745" X-IronPort-AV: E=Sophos;i="6.13,299,1732608000"; d="scan'208";a="40898745" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2025 13:30:52 -0800 X-CSE-ConnectionGUID: zQBsIDo0QnmyZ5fQbXB19Q== X-CSE-MsgGUID: 6vJ8NjKGTPqqo1ZOfel7MA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,299,1732608000"; d="scan'208";a="119935683" Received: from osgc-linux-buildserver.sh.intel.com ([10.112.232.96]) by fmviesa004.fm.intel.com with ESMTP; 19 Feb 2025 13:30:51 -0800 From: Shuicheng Lin To: intel-xe@lists.freedesktop.org Cc: Shuicheng Lin , John Harrison , Lucas De Marchi Subject: [PATCH] drm/xe/devcoredump: Fix print typo of offset Date: Wed, 19 Feb 2025 21:26:31 +0000 Message-Id: <20250219212631.1788586-1-shuicheng.lin@intel.com> X-Mailer: git-send-email 2.25.1 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" The log should print with "offset" instead of "size". Correct the typo in the comment. v2: split kzalloc change and add typo fix in commit message (Lucas) Signed-off-by: Shuicheng Lin Cc: John Harrison Cc: Lucas De Marchi --- drivers/gpu/drm/xe/xe_devcoredump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c index 39fe485d2085..60d15e455017 100644 --- a/drivers/gpu/drm/xe/xe_devcoredump.c +++ b/drivers/gpu/drm/xe/xe_devcoredump.c @@ -237,7 +237,7 @@ static void xe_devcoredump_deferred_snap_work(struct work_struct *work) /* * NB: Despite passing a GFP_ flags parameter here, more allocations are done - * internally using GFP_KERNEL expliictly. Hence this call must be in the worker + * internally using GFP_KERNEL explicitly. Hence this call must be in the worker * thread and not in the initial capture call. */ dev_coredumpm_timeout(gt_to_xe(ss->gt)->drm.dev, THIS_MODULE, coredump, 0, GFP_KERNEL, @@ -423,7 +423,7 @@ void xe_print_blob_ascii85(struct drm_printer *p, const char *prefix, char suffi if (size & 3) drm_printf(p, "Size not word aligned: %zu", size); if (offset & 3) - drm_printf(p, "Offset not word aligned: %zu", size); + drm_printf(p, "Offset not word aligned: %zu", offset); line_buff = kzalloc(DMESG_MAX_LINE_LEN, GFP_KERNEL); if (IS_ERR_OR_NULL(line_buff)) { -- 2.25.1