Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2125967rwp; Fri, 14 Jul 2023 00:48:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHc8+UgdrmaIhB7G3YG2jVHKKs5Xb6Iz8qKeZOL1OEEWhBQFiynhA+2GUDB33OL5H7H0wqz X-Received: by 2002:a17:907:ea6:b0:96a:2dd7:2ee0 with SMTP id ho38-20020a1709070ea600b0096a2dd72ee0mr2750266ejc.5.1689320921441; Fri, 14 Jul 2023 00:48:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689320921; cv=pass; d=google.com; s=arc-20160816; b=uH1IeQY2cG7WfZzp9srGi9/WQW3b2uZN2ZcVc+2nQCBjS2eX/qM0MfmQhyPeHTVLbc 48RD3I/KIWHw9n9sd6KwhGzv0PZ9buOlGqjQsYJtVVNVRRcSVVBSyPitW6V+/LFZSbZ/ 45TyiYDhofhd32SCQcRwK0NPvb7No9gZNjuGoxR7YA9U7XYWM9GDq/vDXKG3xgkkmrdt +lTcZj4psNj2F0nVtgERitzCxjUbyUIUL9Kp2nuQ+q4rSzsOkX9VRm9XxkvI1krTroar fVkIkvYC+lMNAuO4elgJBrCMw/YF1KDf8bbjQeuq3CHMYljfsBnHxuhwV7BDawxuGn93 gfpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=Rs85LHT16F6fS7V05zPu+DK6W5w0OtmTKxznLgk8u2Y=; fh=MufT38aGnUdUCVU41iupSdsIhHOth4NOXSgbEF34r1k=; b=B/tX6YLJSnnBz1Y6ZmLM45wDvdXY6NLDXyVJUGQz/cwcXW3On+qWFfLs1fQu6OZZc7 cZZ45M5BQYrOWM2zNz4FMTCVhASbz1rdEcb9/ZZtelYYxw5p3pZ/bOZ/UAP7rnFlJioA KHKVVz4zOteKXAUIKzqWXdiSJDjGCthCFirdD/lW0g0f5qO+k1zLZCm3tQELgoqW2d9X OmmEFVlH9TxoPHvP0AjOJ9xaDxDoa6iqVo4KhpCNiNWPkCSZDmzcxHeSGlBklScrVdz8 gH4sd/ycXK85ilNtyzfuhpcxjz9l6RC+KplJOgKuBxXzVnE8yV1W277V7W/iDg6mEUT5 96aA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=lfYkQ6mN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss1-20020a170907038100b00988a4a7abc8si1471841ejb.75.2023.07.14.00.48.17; Fri, 14 Jul 2023 00:48:41 -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=pass header.i=@amd.com header.s=selector1 header.b=lfYkQ6mN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234803AbjGNG7m (ORCPT + 99 others); Fri, 14 Jul 2023 02:59:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234301AbjGNG7k (ORCPT ); Fri, 14 Jul 2023 02:59:40 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2051.outbound.protection.outlook.com [40.107.243.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5904E2707 for ; Thu, 13 Jul 2023 23:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TBVQBol0ToFKeYUhafewFs5boICJTk/E5dTaWAjJUy3uLP9OvU8njWDj5+6/FrO/OMz3q8qjSTuWLmJrp3WPAPP0IA8QoeD9vSkzTJSJkYL+SL7VeC4yttnZwQRqap02RxManzf7rmHQsGR49ioJgySxdo5exxMm6GqWb7vBlq2mH7Fgj3rRYgSWDm6Tnpf852IIIO66/2ZZ2Hw27O2EKhqga7onQFAwzFgzrlF27MdsoN4//UqCeFc5SofWbAG2LGslx8K14qzShA0ngU8Aw11//VbfS4zQP1cePCSpxT5x9/6RblJ5xHuJ1Eg0AMvxVQcEw5if1b/UeaiyTxu+9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Rs85LHT16F6fS7V05zPu+DK6W5w0OtmTKxznLgk8u2Y=; b=AwjRdTHifw9xQs6xX9HcZuZ6IB9zuUSGUESdbjUMvvNm4kDGW60VZRrmym+buGMgmOJ/iNU6+hcyYll222ibfUpW7MAdp9hhh/49d/Lh7NxtyHMISutKHTe9EqAqhbjHkeDVc9N8CXmhHzVfz3mwM9v9+ET6aE25EX3H6HuFI1iQ39Ix+6C4eMnqGeBklTvWMC/X/TFBUNN+uCAEY8Z1F6i7PLLwKcIvVmDop4QjMVs0xmRC5ODlD+gZfS6bYxmlGHEP0ttrBmQxhMLS2qYxCTNszp0+CKcaob4J5bi/hAIhQuhpu1bLqdbgc1rGIvrompyIX63+UIcFs8CBrd3lqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rs85LHT16F6fS7V05zPu+DK6W5w0OtmTKxznLgk8u2Y=; b=lfYkQ6mNJgNcdT8chXaM9kfoA7bG8B5dmptkiJE1c9LFpcd3bahk/PzriMUT9o0wI0J6XFxRYSsEqwbxWq/KK6PcJs0urx9YxEkZ19XrKVav+nQStqApDV2CytIZX3jDpdpbPUmyfwP6wPAU6mjb4tuxEsOhc9Kki3hvxewppk4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by CH3PR12MB8509.namprd12.prod.outlook.com (2603:10b6:610:157::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.24; Fri, 14 Jul 2023 06:59:34 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::669f:5dca:d38a:9921]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::669f:5dca:d38a:9921%4]) with mapi id 15.20.6588.027; Fri, 14 Jul 2023 06:59:34 +0000 Message-ID: Date: Fri, 14 Jul 2023 08:59:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 2/6] drm/amdgpu: Allocate coredump memory in a nonblocking way Content-Language: en-US To: =?UTF-8?Q?Andr=c3=a9_Almeida?= , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, pierre-eric.pelloux-prayer@amd.com, =?UTF-8?B?J01hcmVrIE9sxaHDoWsn?= , Samuel Pitoiset , Bas Nieuwenhuizen , =?UTF-8?Q?Timur_Krist=c3=b3f?= , michel.daenzer@mailbox.org References: <20230713213242.680944-1-andrealmeid@igalia.com> <20230713213242.680944-3-andrealmeid@igalia.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20230713213242.680944-3-andrealmeid@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR0P281CA0088.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1e::8) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|CH3PR12MB8509:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cad8da0-0608-43e1-1513-08db8437e10d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2kg5/HGdZ9obTasiOm8DRKk3hl7M5LtBA7q+N5OBCnYuFanVofPCuJFLLBE0eGJH9bPIesknzkXEqbf+1X1t0AqBG4zQvimBpuJKZaP2TeM2jo+DJ+lgYoltJxNw7WpCLuil6ixh5KLfgUk2wjGhHNVuaGD+QVDlDd++JUpisTmw4qPwQzO92eoWgP8wvYp5pbX9dlUPLUshs8joyHGDRF6XNiSW+xwu3gZk60QxagQHYjy7wjMAiuMPGYGLBA0jUXzkpME/Ddds1lhHYLPU0WE8DobT7CC13UhOQQsyvI3cE7A6Hy1Pytnw4C5OPxSA6bkwKmHl3/TilJRnw5+F3TSchfBEl3XkdyhyrvMEtcQ4nU+QG8VfLdt5ZsHfHRJAevs9qolzrP2H5yRF4j2vr2WWtousjByBsAkwhxGbNGiLk04X2xPX3mwLTlWvOVrSyVcQsBLbTXfcBAivkgBmhGLShjv04qQ7ixldYvGmYtQOpKexO3AAidf71WZYQ+iTHl+xBfQgIfeAJeJecHQjIH8ocBrcjacjahQ6e6EsdvvhxyAlbwg6dkoVxesTlWMW9aZft52Xjtkd9jBUKKkzYZxassnhc+UjKk3Rnp+2x2H/u+0rB4X0EcuzW/3zreiXyxXPB7rBDqSoNoSqgL8SwA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(451199021)(7416002)(4326008)(66476007)(66946007)(66556008)(41300700001)(316002)(2906002)(478600001)(8676002)(8936002)(54906003)(5660300002)(31686004)(6666004)(6486002)(6512007)(66574015)(6506007)(186003)(36756003)(83380400001)(2616005)(38100700002)(86362001)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RllVL3Q4WHN5VUUvdDJQZXgxNjRFYkZOMDY0bDZOd3JUVkN4em5PbDlFQjlE?= =?utf-8?B?Nnp4dnFMWFBzQnNSQ0hMSGIyRzB1V3FCeWlJdlpBMm94WURRY2Z2bEdOWUls?= =?utf-8?B?V2JrQjRJWHBnZCtmTzhjR2MyeXU2TUJwRTRZS1pOK2lOaTZib2k0bGlZdUhq?= =?utf-8?B?QmI2b0lqMVBXSXJOVHlsREdmcFJTcHFrSC9kNG9mN0hCWWNvbjBidEI0UlF1?= =?utf-8?B?Qms3aWQ3bnNHclJyaElHUmQxcnQxUGNYWFh3Z2lIV25ReUxpRlR0MG0vRjZv?= =?utf-8?B?Nno1V3ZMQlM4S1lDbkVSRitYc2FVeWs5VG5VY1hrQlJkU1NrbUZvU0pvUU9u?= =?utf-8?B?WmhhQ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g2a3RjdURV?= =?utf-8?Q?0TSwQFbhb2VCmAhyCtQGl58snLkk+Mvk9Cxf04U2wx2r?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cad8da0-0608-43e1-1513-08db8437e10d X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2023 06:59:33.9466 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xTHLRuXErOiiAew72wKqCwFV4Wtv3iYR/MRkZiqdBzRoBs1j78VtlRA8izVOUL4Q X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8509 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Am 13.07.23 um 23:32 schrieb André Almeida: > During a GPU reset, a normal memory reclaim could block to reclaim > memory. Giving that coredump is a best effort mechanism, it shouldn't > disturb the reset path. Change its memory allocation flag to a > nonblocking one. > > Signed-off-by: André Almeida Reviewed-by: Christian König > --- > v2: New patch > > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > index e25f085ee886..a824f844a984 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > @@ -5011,7 +5011,7 @@ static void amdgpu_reset_capture_coredumpm(struct amdgpu_device *adev) > struct drm_device *dev = adev_to_drm(adev); > > ktime_get_ts64(&adev->reset_time); > - dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_KERNEL, > + dev_coredumpm(dev->dev, THIS_MODULE, adev, 0, GFP_NOWAIT, > amdgpu_devcoredump_read, amdgpu_devcoredump_free); > } > #endif