From patchwork Mon Sep 11 03:00:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= X-Patchwork-Id: 13378703 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 760DFC71153 for ; Mon, 11 Sep 2023 03:23:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC23510E105; Mon, 11 Sep 2023 03:23:19 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by gabe.freedesktop.org (Postfix) with ESMTPS id 23CB110E104; Mon, 11 Sep 2023 03:23:19 +0000 (UTC) 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=EsQxGpmTl6fVVk5TnRnxhwh5yeoTGl0hLF5hWy+ixQ4=; b=GtCN67Yv/GOJLHfyipWkUzzY4T ysJ3Par1ipJ15UCgHTxqnyIIi9tPyTandW31WqjGovb0EIh+sKzD3dixrFhktXC2O6Q5ToSWI9FUV 285ISMlLzJuU4ns2+VjuEus26/7KI0bQc5NvgxSp6INZFwG0U+4Is2zwFFL8KohF2pOfdYqfsqO6v 8H8eA+4TEahEPCLkNbJ4AaybzsbChV4hIePyUNlDpipoJTLfV/0xuYNrIFvO4/s1MT+zpEbnRPDSa Jywnx3Cv45ka3+n4ZlvitCSj3TMDGN0sX6/fZW4CLI9K5U9jWVC3SXKBhF5WHTHKDYGPSzDk3jnte KeQnn80A==; Received: from [187.10.204.7] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qfX9z-002C6C-VD; Mon, 11 Sep 2023 05:00:24 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/5] drm/amdgpu: Rework coredump memory allocation Date: Mon, 11 Sep 2023 00:00:13 -0300 Message-ID: <20230911030018.73540-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pierre-eric.pelloux-prayer@amd.com, =?utf-8?q?Andr=C3=A9_Almeida?= , Shashank Sharma , kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, The patches of this set are a rework to alloc devcoredump dynamically and to move it to a better source file. Thanks, André Changelog: v5: https://lore.kernel.org/lkml/20230817182050.205925-1-andrealmeid@igalia.com/ - Added Shashank Sharma R-b tag v4: https://lore.kernel.org/dri-devel/20230815195100.294458-1-andrealmeid@igalia.com/ - New patch to encapsulate all reset info in a struct v3: https://lore.kernel.org/dri-devel/20230810192330.198326-1-andrealmeid@igalia.com/ - Changed from kmalloc to kzalloc - Dropped "Create a module param to disable soft recovery" for now 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 allocatio André Almeida (5): drm/amdgpu: Allocate coredump memory in a nonblocking way drm/amdgpu: Rework coredump to use memory dynamically drm/amdgpu: Encapsulate all device reset info drm/amdgpu: Move coredump code to amdgpu_reset file drm/amdgpu: Create version number for coredumps drivers/gpu/drm/amd/amdgpu/amdgpu.h | 21 +++--- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 10 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 75 ++------------------ drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 77 +++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 13 ++++ 5 files changed, 114 insertions(+), 82 deletions(-)