Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1699469rwp; Thu, 13 Jul 2023 15:19:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+2iZJCu/b+gTxsjoREw0S58xzk9QraNmAYMxzhEjcNliEqH7hAms1MrUjkoiDQav7Rz6X X-Received: by 2002:a05:6a00:23ce:b0:682:8505:1e4 with SMTP id g14-20020a056a0023ce00b00682850501e4mr1296021pfc.17.1689286786249; Thu, 13 Jul 2023 15:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689286786; cv=none; d=google.com; s=arc-20160816; b=D3wTLHlNH/Ye3oa1xTeL2k8DWQS17pKnjcYbcClbFQA+s4Nzn1FeSSEae163WL6EiC VS7Q0wkYstuPUgczY81ktDty/Sp+/u87kEGs4to1n9pEQXZcWDKgnqanFTgesCWNMhxp MBF90+cDUqPvxKI72wz9qmI8++yR41TOpBgSqUC1XvFRgsvTwuzom79dht+dvpWyf0FO dVwm1oFQZ2CQfBXsMLyjg6AMV5sFavHRi/ooURa0+NXGfqedTyHW6ZUuTTuKLiBhHqEB dNDSM1mEVEE5LwwCUqlYlboXRKDTmCdhxcvN0/BhpfJAWHV4Uu4/f93V4VOF1YqMqUlS lwJw== 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=XaUH0inLzPLEoGiySyQaMSAIFD67nesdBt9LTsWi9os=; fh=aYwOFvh45AiUk04AC35/CxFbCKpYy0XHNT+Ky7LGVhk=; b=uDfYivwOIdRMX8lE/S1Ba3jEK17t7sbqt5D/YrMjWTdWmSfDIpk1n2jo/hVqDgd3RS rabTAARXsHGYtjf5SvA/NazHvTPsTCNUJTpmyF7uD/a2iIwI/K9nxv1TzTHbZVBSHwNQ lbsA6Qc/NesEL2M/q803bmra04GGAg9nXs+0JfrmMvqKQBMBBZWeKTqOG960CY8zGV9l tc/nSba+3krIjsTKe1F16ANRgP2WdM32FIH05ElcocvyEtCO4K/m6fkNSGQDpcX8vPZI 3EbE+V3Jd2gNoHWqo5W5Pcglefh9w6FhzXz63kI3VwrttrL/UF+Hym4xX7DBptc/vvjt +dLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=J51neSai; 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 cr10-20020a056a000f0a00b006825b4fae9dsi5782715pfb.166.2023.07.13.15.19.34; Thu, 13 Jul 2023 15:19:46 -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=J51neSai; 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 S231852AbjGMVda (ORCPT + 99 others); Thu, 13 Jul 2023 17:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231387AbjGMVdX (ORCPT ); Thu, 13 Jul 2023 17:33:23 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155942D63 for ; Thu, 13 Jul 2023 14:33:19 -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=XaUH0inLzPLEoGiySyQaMSAIFD67nesdBt9LTsWi9os=; b=J51neSaiPnQHH/bS0IFUW+Oeuv b5McKZXjM7b2Xb1ryUAAeV0Sm5/TtNxf+rxkdvhBfXXVrBQ4eCMIQhx8RDiS+SktRwbsDIfkJFrn2 eenRqX5uuSoh907mpBriWBn/3jiwlUHrBvz5b7O6/IVz2Y+ziAqhebN3BhM6Nbnpx0EjGlSRlSg0S mK4zrf+yo7uPaoHCz+KfqQkwjlaQZVD4frrpLErblDihr6KszESMuQqDkU/0GM7OmbDl6xHS/CqDe QtMsGJy+plTrR+645aHVMRGndzlb+YWAMWFTqtcIXrwPaeG500Ww1yNTXquxkRMMYrWYjWcUyD6lC auhy4+tQ==; 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 1qK3w2-00EDEa-MT; Thu, 13 Jul 2023 23:33:15 +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 v2 0/6] drm/amdgpu: Add new reset option and rework coredump Date: Thu, 13 Jul 2023 18:32:36 -0300 Message-ID: <20230713213242.680944-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 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 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 Changelog: v1: https://lore.kernel.org/dri-devel/20230711213501.526237-1-andrealmeid@igalia.com/ - Drop "Mark contexts guilty for causing soft recoveries" patch - Use GFP_NOWAIT for devcoredump allocation André Almeida (6): drm/amdgpu: Create a module param to disable soft recovery drm/amdgpu: Allocate coredump memory in a nonblocking way 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_device.c | 99 +++++++++++++++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 9 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 6 +- 4 files changed, 106 insertions(+), 29 deletions(-) -- 2.41.0