Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1222691rdb; Wed, 16 Aug 2023 05:38:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFs3uS/RHjkOX4M8e/tm/RFQmrVXfrmdz7YBVIRRN19+MZPUB8ITNRpQL/wEjq1PA3lFWjE X-Received: by 2002:a05:6808:1581:b0:3a7:4ce4:cb8e with SMTP id t1-20020a056808158100b003a74ce4cb8emr2838935oiw.42.1692189516791; Wed, 16 Aug 2023 05:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692189516; cv=none; d=google.com; s=arc-20160816; b=iIJKoCV9oUdIJ/k0El07cnOz9jgy4ysUv0VN4UZzGlBOFgZtIbWbFXFSC6Z/kA+Bg/ Swonetp6a3Zg03fXraTaaqYHWwdbVhUCo1PCfTco/athbY1lTWJmwI+jkiJQA05KfmkG pD9iHw4CpFlIqNPD3HVggUWPd+IKLREd5s36NHo2IusleLNuRPHbnbRp11aONGVaL/tx kNGGFph98LME5X6bzc83T726YbktUux/iNcxgiZM8YmRz7mk3XquWh3DYLRogmabtVdK f5C7Z2MDbIDzcJfhwxfSxPVSwWjBKh6pw3elYJzWJYs72kJxtbt5by989zxCsU2xczbn t1kw== 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=U1upXN1liKNdNJ8lhA+6KkUJ6VSnZrhHX5/fflVoWPI=; fh=4drWZfXh6M/zU5TbzJpAHkpGJffjB2tpWVKmXKr8SAQ=; b=XD9PAVOfxg25Cr4ndqZtSPOOHnrgEfAE7Id6QOk4G0WTv2CkWyaP/2xZOINi+QApul oDoVgrUX8WjFo2xowBEaNtDgHsQDeTLvHIX1hLj55BGgpPzpq0/d4ZCWnonqdvOgh8iA vkbTbzz3lOK5/Svi91JDO2bqwX7HTFg2TCrKiTrh0YO7z+BjtDnyR6+DHIWnmCaq+ECR +kEcROKbzdMPTdrFXsVk6yKIwTKuP6xWOfUkIIWsPoj7FWr8sJplS6OVVwj+r3PejuhJ 0j8pCIGu+mP03DdmMH7rIVAqZ2V+CJ4wfICHR59m57ccZDdDbyjEt6lTYIlyQE9zIg55 fYuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=X40McIgn; 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 bv193-20020a632eca000000b00564f803b104si10652120pgb.519.2023.08.16.05.38.24; Wed, 16 Aug 2023 05:38:36 -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=X40McIgn; 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 S240059AbjHOTwH (ORCPT + 99 others); Tue, 15 Aug 2023 15:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240145AbjHOTva (ORCPT ); Tue, 15 Aug 2023 15:51:30 -0400 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761B019A4 for ; Tue, 15 Aug 2023 12:51:23 -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=U1upXN1liKNdNJ8lhA+6KkUJ6VSnZrhHX5/fflVoWPI=; b=X40McIgnyNqo9cFGaNg7yW8uPe gDDGHogBk4WmedT8g4mHN3rrFdlGiifPENTfOk+n09kRfc9Q+6eNkL/pgiorTZJpk9Qj0xCf9IjaV X/Gu98WPDzX11QMJ0+LcagQID6uhHapspJIw5wLJx/DrDDbs4YCwbaAC4UJsvjGP7nVVJ1DtDZKrO PNSQFjft1PIJruMi3SDCXFrqYCM20k2keTMr2w5hMNVRayzk58wfPaU8N2lDBDuTy6yUU9LQh0RBw ++qHOEawk1N6D40l613YazlZ7NbHn39XYEMTp7n9ARhMCBClf8xa/CnHSTKGEpiRKlhhbq0kIDe+G hW/arFUQ==; Received: from [191.193.179.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 1qW04V-001DUX-W5; Tue, 15 Aug 2023 21:51:20 +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?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v4 0/4] drm/amdgpu: Rework coredump memory allocation Date: Tue, 15 Aug 2023 16:50:56 -0300 Message-ID: <20230815195100.294458-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,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 patches of this set are a rework to alloc devcoredump dynamically and to move it to a better source file. Thanks, André Changelog: 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 allocation André Almeida (4): 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 | 5 -- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 67 +------------------ drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 77 ++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h | 14 ++++ 4 files changed, 94 insertions(+), 69 deletions(-) -- 2.41.0