Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1360405rwb; Fri, 28 Jul 2023 08:20:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFABFx+V2A1+biVovVwATXWGIgEQSp1/PYOO/kjqKXCEo0isx1lPl/qM7RsVPeLQljmdDue X-Received: by 2002:a05:6a20:3d02:b0:12c:e3c8:8c7 with SMTP id y2-20020a056a203d0200b0012ce3c808c7mr2295018pzi.41.1690557617928; Fri, 28 Jul 2023 08:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690557617; cv=none; d=google.com; s=arc-20160816; b=X3crXEFLlOBqFisqR3xffolR3NTM3iuuw1y1BwwDaodD1wtdgCE+wvE1shDsougs3i RPjyjV8aTal2JGZdhHAOhR61c8BEeGGj9hXHeX8/D9js9FmhZXV4P6Ib/ay4JE98ln+9 DjZbQg5owKR9NTZqQUQoD9QXZ+/4RT4jJpMbW7Gsl1L/Zw+MYfx396uheckm4+yYrZF4 0nzJ4LLP+y5eJyITfGx9m03ArtAbMrNb93VwPNGr8ZGj3k4h7JDaNaShy6C7RePCUS2t T+smke6g2YMUwP1in5nnwDj4sMtNtl1TSRDNr9HWaZfwpgyl5BjY43U8fe/mKC37FKyh kBVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oiMutyUMmVTk99ASOanACyUD72nSCbLfCygSg1z4+14=; fh=sMwT245kpmDz6887/4y6urBt3T2xRcd4rySwGcGkxe8=; b=zeZkogL6BnOdrLxaHBRvc0JaNfklYrorF5RurP34Hlsj0AhpMpoFagztyhjAQyupfZ wmmR2nWKt8FErOV+YMXHsP6FFW5MLGnvMp8m5MQovRvblFC7MeFbxrreQaDvzLQ16au5 /cA4kPLOxFC83uBsoRb2po1oRTbYMijMKuY83VeLVDeimxoQ9ybyKLh4FHA0rDB+H4Ax 1R6vDcKiqf7DoYQK1vfijf+NXp6029xlD3dJw8xj0ZKVQN2xNhukOcYXs1ZSiROpzS0E VrCIAuAMr8K7zXmwwH2+wcxWCGfbLaP+QSRBGBp/BBvtrJEe11stQQU42a/fxPSa2Exc 3mMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=Y1pdF6VA; 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 w3-20020a63f503000000b0056419b1dc13si1513179pgh.511.2023.07.28.08.20.05; Fri, 28 Jul 2023 08:20:17 -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=Y1pdF6VA; 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 S237149AbjG1OqA (ORCPT + 99 others); Fri, 28 Jul 2023 10:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237105AbjG1Op6 (ORCPT ); Fri, 28 Jul 2023 10:45:58 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 490033C35 for ; Fri, 28 Jul 2023 07:45:56 -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:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oiMutyUMmVTk99ASOanACyUD72nSCbLfCygSg1z4+14=; b=Y1pdF6VAaU5RBGv2OSYBkSpK9G qAkOTLW06hJyFxgChOD8q1GLjdJltoz4LI80qJInTti5eo8pZMdho56qPQIYTP+onXpNhM/GtGZfP Dg4jJ9eoZao82TSWhPGvDgJi+QWT9deZw0Tzcsyzz6UJldyFIb/1V6Nume99Uij9oT30HM41QGyqX 2HxLgbkDqiRLdsAZnuCLny+y0XlxpxxM+Wot3bwpamG2WFb0ZvFhTPUqF6jOnveBmrhbD6x0dRAdK vuZZ9PTrYrPPWNajYZ1px+zXpWmtvsfwgE5yCDTAdINWjUhy/c00rJPzt4HuVxOPthR79machWgt3 jjCw25Lg==; Received: from [189.111.93.147] (helo=[192.168.1.111]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1qPOix-005De2-UM; Fri, 28 Jul 2023 16:45:48 +0200 Message-ID: <24fc3974-a303-e792-b6d5-5ca634c2bc4b@igalia.com> Date: Fri, 28 Jul 2023 11:45:42 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/5] drm/amdgpu: Add new reset option and rework coredump Content-Language: en-US To: christian.koenig@amd.com Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org, pierre-eric.pelloux-prayer@amd.com, =?UTF-8?B?J01hcmVrIE9sxaHDoWsn?= , linux-kernel@vger.kernel.org, Samuel Pitoiset , Bas Nieuwenhuizen , =?UTF-8?Q?Timur_Krist=C3=B3f?= , michel.daenzer@mailbox.org, dri-devel@lists.freedesktop.org References: <20230714161128.69545-1-andrealmeid@igalia.com> From: =?UTF-8?Q?Andr=C3=A9_Almeida?= In-Reply-To: <20230714161128.69545-1-andrealmeid@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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,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 Christian, gently ping here Em 14/07/2023 13:11, André Almeida escreveu: > 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 alloc devcoredump dynamically and to move it to > a better source file. > > I have dropped the patches that add more information to devcoredump for now, > until I figure out a better way to do so, like storing the IB address in the > fence. > > Thanks, > André > > [0] https://gitlab.freedesktop.org/andrealmeid/gpu-timeout > [1] https://github.com/andrealmeid/vulkan-triangle-v1 > > Changelog: > > v2: https://lore.kernel.org/dri-devel/20230713213242.680944-1-andrealmeid@igalia.com/ > - Drop the IB and ring patch > - Drop patch that limited information from kernel threads > - Add patch to move coredump to amdgpu_reset > > 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 (5): > 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: Move coredump code to amdgpu_reset file > drm/amdgpu: Create version number for coredumps > > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 67 +----------------- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 9 +++ > drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 79 ++++++++++++++++++++++ > drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 14 ++++ > drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 6 +- > 6 files changed, 111 insertions(+), 70 deletions(-) >