Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37477587rwd; Tue, 11 Jul 2023 15:06:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEW5FqIU+aHKyhbI9Gqe63SUrBGJkTftxP0mOvSUncjLod+n+NUAt0MZn7IwbVCIotKoyZu X-Received: by 2002:aa7:c493:0:b0:51e:4439:f476 with SMTP id m19-20020aa7c493000000b0051e4439f476mr13607926edq.25.1689113195632; Tue, 11 Jul 2023 15:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689113195; cv=none; d=google.com; s=arc-20160816; b=cBH3f4cTyghqlHx7AS+RvNfBCIJAvzLNCHUG1AB3hMD5d+QwURTebwAYwa+9OslM8l zlGWEjIAu6HvnPCefCaNmCtYmSoo5SdTX3i2tyDwbOx358JDO3IUsyY8aJJBFepuBEm0 OWP4cLEwLkb+IPkNhxz9ALlFCYFLL9Hf34N959+AU/o+xynmmoaW//zuakmo7XNUdPsT M/qXRjms2xfXOkzTlnFpzV6CCcG2gyz+hZ+slAxFCJu0KFCjJjmD+ZTidsVxqeJ+nHOa aD2N91ox66wAThnjOET4xf0DcvZU0zu1h4y+I5u4RPNd3zuCeuXLyQxBbH8yXZ60yxp7 Q+Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zxO2JUIk0+qcytPvORKjR4DXSclXMm1DGFD/RYtrULs=; fh=aYwOFvh45AiUk04AC35/CxFbCKpYy0XHNT+Ky7LGVhk=; b=JC9keCLqueo47Huyhvk/8+MxL3S8ftqbGaVJOLiFphz2oTYZeWx43jJF4LQk8G+ZUW iuvdkRatyeg1XA4YgVkCXV78g8fWNd/Mzm+K353LV2BKNnigBzOS4VVuIWFutzCBCQ2x 309H2/g1tqWryun4i4n0CCnrkvkctvTSBJJmYRi/KD0wvN+bURe2Jjzdlu9gef73W+fD UpOhCEWI77lKyFyIO/xNzLOAln+rnZrVfr7b1kau0vlIpohI2mSUKfHE61aF8GtEM5PA oiKUjW3hoCAVz4nBK8Pcmo8eWcit0cXq1HSJc3vo84Lkv9S747nkgEKHN2+JznPMVXkm YvhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=hXyqhIfb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056402180600b0051e2ccf8121si2962257edy.631.2023.07.11.15.06.11; Tue, 11 Jul 2023 15:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=hXyqhIfb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231406AbjGKVfs (ORCPT + 99 others); Tue, 11 Jul 2023 17:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbjGKVfq (ORCPT ); Tue, 11 Jul 2023 17:35:46 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A70C170C for ; Tue, 11 Jul 2023 14:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zxO2JUIk0+qcytPvORKjR4DXSclXMm1DGFD/RYtrULs=; b=hXyqhIfbhMl1hyi6fpooEVg7aG vc0Jq3WEj44nQhxddDYXuY1tI9OMYqU4WMBWGnxDcktpU6Fh4k0A7gRZ+6H+racLX+nDrolqEaMyl XNc+tgEgEnx8t90fDMLEprhMR1alVokirVMLzTmQXJFWOYbhmdboiJWnr25knb510mE5sVShcAeo+ 5JVZeaIzo2XvWEOUSkfbJL8mRnHWK1ezp/ETAUkiauFJW8Oeqcp7GXx+wbcJ6uLB7VaSdTVogLbAL a8uqc4zDcDVjDqDHx5awi49ACoCZHwcGAWUP4HEMM5gEtdHZY73W4XoA3UsREznZfMIGui4ZPE7Jj don4WyOg==; Received: from [187.74.70.209] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qJL1H-00Cl0M-N0; Tue, 11 Jul 2023 23:35:40 +0200 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, pierre-eric.pelloux-prayer@amd.com, =?UTF-8?q?=27Marek=20Ol=C5=A1=C3=A1k=27?= , Samuel Pitoiset , Bas Nieuwenhuizen , =?UTF-8?q?Timur=20Krist=C3=B3f?= , michel.daenzer@mailbox.org, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH 0/6] drm/amdgpu: Add new reset option and rework coredump Date: Tue, 11 Jul 2023 18:34:55 -0300 Message-ID: <20230711213501.526237-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The goal of this patchset is to improve debugging device resets on amdgpu. The first patch creates a new module parameter to disable soft recoveries, ensuring every recovery go through the full device reset, making easier to generate resets from userspace tools like [0] and [1]. This is important to validate how the stack behaves on resets, from end-to-end. The second patch is a small addition to mark guilty jobs that causes soft recoveries for API consistency. The last patches are a rework to store more information at devcoredump files, making it more useful to be attached to bug reports. The new coredump content look like this: **** AMDGPU Device Coredump **** version: 1 kernel: 6.4.0-rc7-tony+ module: amdgpu time: 702.743534320 process_name: vulkan-triangle PID: 4561 IBs: [0] 0xffff800100545000 [1] 0xffff800100001000 ring name: gfx_0.0.0 Due to nested IBs, this may not be the one that really caused the hang, but it gives some direction. Thanks, André [0] https://gitlab.freedesktop.org/andrealmeid/gpu-timeout [1] https://github.com/andrealmeid/vulkan-triangle-v1 André Almeida (6): drm/amdgpu: Create a module param to disable soft recovery drm/amdgpu: Mark contexts guilty for causing soft recoveries drm/amdgpu: Rework coredump to use memory dynamically drm/amdgpu: Limit info in coredump for kernel threads drm/amdgpu: Log IBs and ring name at coredump drm/amdgpu: Create version number for coredumps drivers/gpu/drm/amd/amdgpu/amdgpu.h | 21 +++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 99 +++++++++++++++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 9 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 6 +- 5 files changed, 112 insertions(+), 29 deletions(-) -- 2.41.0