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 6F59EC43458 for ; Sat, 11 Jul 2026 11:21:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4AF010E0EB; Sat, 11 Jul 2026 11:21:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ItIaErNy"; dkim-atps=neutral Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id D535710E0EB for ; Sat, 11 Jul 2026 11:21:13 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-493f0ae9572so6545625e9.3 for ; Sat, 11 Jul 2026 04:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783768872; x=1784373672; darn=lists.freedesktop.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xx9uKFjRumLcFuhjjMs2wQ2hBG9hjmIS3Qyfz8slVXM=; b=ItIaErNyMJfBJkzFGKdnwbINDsIqPp9GOpBlFqD88cVNIA5G0uVE+X7lZRAS/+uvye qd1r438zryGtfTT80eV6hdC3p9z4xAootZo/wnNP5fe/kiyoAFYFvNub4Sy+mew1J3Rt G7ZENsREmt30HJE7qxtc95+lJppefS6CQwoHJDeixNiWtTS3MPfSWCJ54qGrFARhhWkv bVZnPobc3HU2XTgo+PslglWfZVibK5cyzwD0t/ZzfZVk17P3uapbZLDiZcTi0DcQkncS kO4rH88DTOQ/ebuj/76YkRO6t5Sjp4TTCAWJeP36icIjsP5MMwQYx5PbHqnD9uv71efE 5dBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783768872; x=1784373672; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=xx9uKFjRumLcFuhjjMs2wQ2hBG9hjmIS3Qyfz8slVXM=; b=FDdhhltz9pxIRxDhtATrSEWv4f9Cy7z6wEzW0an1WJ5AlzyZqbVJUgJOqkhWJhW4kG VdCiATI8mtG+0uEIA3gou3r/MEwDNBoL+05bkyZehxmvxTnNlR/lp9A/VqVucZjx1B9f P+hylNH4oMPlFLz23uUEyTyp3ilszjaQ/dDga5EoGYPnQOe/82pw8sJiZ3kXTUAWpZex 4CKzAglot3yI/mzzswmmfj8yH2glfPPOojA7Za0YbybHk9Wh+PVX1eUIUOP79PgTQmUV o7PrBQgOxWU4LNtKmFcwstPu+mbmA4B/fCQJEYsE7uREkq5kq6fAKez8MHdWuvl9ma8B WuAw== X-Gm-Message-State: AOJu0YzkQA9z5UJF64O/9giB9jLRLbVg0Fh5i4wuob8mlrPnbIHNW1YS 51Ocdv1HhvcbwW6JJeSpebMroflotM/9xifby6aaCTagGlekUq/GnbAQEjvH/g== X-Gm-Gg: AfdE7ckqiXmpCpOFKLhDRT8Rxc7H9JdDj67HWKqiFqGdlmJa89F432QHni/RpOrsOJ0 PlE27nYXpr0eh5kyMAFhL6uPCZgNGz409cR+ecs1ATXGJO8mj8Jd69jn/CpktsSmLacFP8jWgcg MIJuy+NG9RYRNbxkXHe+U+FoZzRk4v0QFPzH+kEFXoQz7+a5S9duH8jPDnMfboxu7BELYbN5+2s oPr/bovcDZ/ENnRq6lzcDcWA0z+jHsqfEw522JPyDCkVF54Lby+7yr18/OcCeWXu1lMOBQsEN1X suBlerx9Cl+urh+/7NcGWqkbeb01D3lIaLkEYSXUKD0ROfapYwsnI9KHELQOijGOz3Em6Zb8vkO +27rYcDoio4UH+MNX4WVPQts3yEXfimPD80BTv5mkEh5OM5+sK39uBplTtiPGCmtbwd4viv384H 8kk2irhv52v7GMaOR6pNCqZB8QrtMEyAMLOn+M4jVV2pLq9+qgxc0eNA== X-Received: by 2002:a7b:cd13:0:b0:493:a976:5c6e with SMTP id 5b1f17b1804b1-493f87ebf93mr16291015e9.16.1783768871896; Sat, 11 Jul 2026 04:21:11 -0700 (PDT) Received: from Timur-Hyperion.home (54001386.dsl.pool.telekom.hu. [84.0.19.134]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f2465ae8bsm13228764f8f.36.2026.07.11.04.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 04:21:11 -0700 (PDT) From: =?UTF-8?q?Timur=20Krist=C3=B3f?= To: amd-gfx@lists.freedesktop.org, Alex Deucher , christian.koenig@amd.com, Tvrtko Ursulin , pierre-eric.pelloux-prayer@amd.com, Natalie Vock Cc: =?UTF-8?q?Timur=20Krist=C3=B3f?= Subject: [PATCH 1/2] drm/amdgpu: Print vmid, pasid and more task info in devcoredump Date: Sat, 11 Jul 2026 13:21:07 +0200 Message-ID: <20260711112108.8980-1-timur.kristof@gmail.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" These are in the dmesg logs but are missing from devcoredumps. Signed-off-by: Timur Kristóf --- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 7 ++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c index 4fd0df3aa70d..aaf091b7f9d0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c @@ -356,10 +356,14 @@ amdgpu_devcoredump_format(char *buffer, size_t count, struct amdgpu_coredump_inf drm_printf(&p, "kernel: %s\n", init_utsname()->release); drm_printf(&p, "module: " KBUILD_MODNAME "\n"); drm_printf(&p, "time: %ptSp\n", &coredump->reset_time); + drm_printf(&p, "pasid: %u\n", coredump->pasid); + drm_printf(&p, "vmid: %u\n", coredump->vmid); if (coredump->reset_task_info.task.pid) - drm_printf(&p, "process_name: %s PID: %d\n", + drm_printf(&p, "process_name: %s TGID: %d thread: %s PID: %d\n", coredump->reset_task_info.process_name, + coredump->reset_task_info.tgid, + coredump->reset_task_info.task.comm, coredump->reset_task_info.task.pid); /* SOC Information */ @@ -563,6 +567,7 @@ void amdgpu_coredump(struct amdgpu_device *adev, bool skip_vram_check, amdgpu_vm_put_task_info(ti); } coredump->pasid = job->pasid; + coredump->vmid = job->vmid; coredump->num_ibs = job->num_ibs; for (i = 0; i < job->num_ibs; ++i) { coredump->ibs[i].gpu_addr = job->ibs[i].gpu_addr; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h index 2371e20fc68b..63f27337c09a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h @@ -63,6 +63,7 @@ struct amdgpu_coredump_info { char *formatted; unsigned int pasid; + unsigned int vmid; int num_ibs; struct amdgpu_coredump_ib_info ibs[] __counted_by(num_ibs); }; -- 2.55.0