Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3972024rwb; Tue, 16 Aug 2022 11:58:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5zxlrY6Y+REKJ1kyZF2Apo6wxvkcPFiV9K0Lux0KZpej/y/Ejj2F4IuJ+NZ2Ditl6nfSIf X-Received: by 2002:a05:6402:4303:b0:43d:94f5:8081 with SMTP id m3-20020a056402430300b0043d94f58081mr19346229edc.288.1660676338945; Tue, 16 Aug 2022 11:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660676338; cv=none; d=google.com; s=arc-20160816; b=eJjUpCTfz1/gKfifeZg8XORGcAQGglf/HbQS3ngKP5QPpymp50kDzHnkaVFcuYxsxr m0f/a9SArlZ5XJ6x1kxUfum2aAIClEzUKt2CWfSuNMhAKlDa+SQ28sIVhzneVaw1IvXc ZsMft2h8b5/wksrGk4X2QpbDx3d61+QfHiAqwcxalQb+0gztHez/fFEDR0mc9FBJV8AY f1tZBaxUp79nBhsN/EixNK3hCk6j6MVRLQeoRgJz/Oub6hZrqP42GBwaI2XJAdWyeRyV IdjcRrgX53gW7zWcc5GSW/LTs4V+5p+7XaPs05mO3Y2xO1jIT2s8IJ0oqbIxOWK30uk9 VzwA== 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=dwo6L6c1Y9+LNsuzySkIFoR1oNjqCqGujpOaOxWGkKU=; b=zhwBYR2nOFjR3n1z/dDIKRFtspy2RSZQOF/LAMF80EzK8NZ0pNW1Znku6K4YOOt+ih prUemuspvkR2rjdp9PNqoLwXo5gye6r4z1cP5XwsytnqQWbnMyYTntMVwNthNQX4cJHl 9DDoC8rZASGylMK8Kl5ut26Nw4x2iGHXB2Xn9ZPI5QqfR0/EHj9GuXlv5Rie+hiiVbPv JfvCVniZeljaPEY+cxnR4ohrj/jHcMF4mNE78a6RpuviPDtBCMiNLJ77Osl37nuYn6J3 IFw3VBKPWxUaxRjnlQDysSB05rxm7LiVzMuzKZAv6hfLTN6xXZX8XqDP9zKhAJYBRJ8t MYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NH9dXdzB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a05640234cd00b0043bd6cf51d1si12034593edc.530.2022.08.16.11.58.21; Tue, 16 Aug 2022 11:58:58 -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=@kernel.org header.s=k20201202 header.b=NH9dXdzB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235558AbiHPSoi (ORCPT + 99 others); Tue, 16 Aug 2022 14:44:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232099AbiHPSoh (ORCPT ); Tue, 16 Aug 2022 14:44:37 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB9B67447; Tue, 16 Aug 2022 11:44:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4D46CCE19E5; Tue, 16 Aug 2022 18:44:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41CBBC433C1; Tue, 16 Aug 2022 18:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660675472; bh=f6wdS3YqMu7Nfy60sXIS+fqX0XpIfZfKiWOhkqio+7k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=NH9dXdzBkblq/hjsx43QJvGalLoipTkKVChJltRWzTAMfuLIP8rsIoL03VSxcooPP EJ9k7A3uy2M1Og9+kritwzPbCpvVjggMek7Qkc5CiBBzmIwtJw6Zjyvc0GLkCweKe2 CORjNQnbnysZgszI8567TVKB6QpHqHvvQMG2a0xG1IiagK0R6geOadt9tjbQnkuXS9 EYwmtGUptSH4s6hA1FIM2ssPhvQjNMgvM1VpuziZliG7AUPO7bmtww2UmrfKZhx+iJ xijf/72fNXfWpi/pvPkn4rT7VPpIMxb2xv+gy1WIxzgg91ukIaw0BsLR/nJzIIyy2Z oVRZ2CG3TSJXw== Message-ID: <9f114876-d402-6e74-c1db-4e4983c2d695@kernel.org> Date: Tue, 16 Aug 2022 13:44:26 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 10/13] EDAC/altera: Skip the panic notifier if kdump is loaded Content-Language: en-US To: "Guilherme G. Piccoli" , akpm@linux-foundation.org, bhe@redhat.com, pmladek@suse.com, kexec@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, x86@kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, halves@canonical.com, fabiomirmar@gmail.com, alejandro.j.jimenez@oracle.com, andriy.shevchenko@linux.intel.com, arnd@arndb.de, bp@alien8.de, corbet@lwn.net, d.hatayama@jp.fujitsu.com, dave.hansen@linux.intel.com, dyoung@redhat.com, feng.tang@intel.com, gregkh@linuxfoundation.org, mikelley@microsoft.com, hidehiro.kawai.ez@hitachi.com, jgross@suse.com, john.ogness@linutronix.de, keescook@chromium.org, luto@kernel.org, mhiramat@kernel.org, mingo@redhat.com, paulmck@kernel.org, peterz@infradead.org, rostedt@goodmis.org, senozhatsky@chromium.org, stern@rowland.harvard.edu, tglx@linutronix.de, vgoyal@redhat.com, vkuznets@redhat.com, will@kernel.org, linux-edac@vger.kernel.org, Tony Luck References: <20220719195325.402745-1-gpiccoli@igalia.com> <20220719195325.402745-11-gpiccoli@igalia.com> From: Dinh Nguyen In-Reply-To: <20220719195325.402745-11-gpiccoli@igalia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On 7/19/22 14:53, Guilherme G. Piccoli wrote: > The altera_edac panic notifier performs some data collection with > regards errors detected; such code relies in the regmap layer to > perform reads/writes, so the code is abstracted and there is some > risk level to execute that, since the panic path runs in atomic > context, with interrupts/preemption and secondary CPUs disabled. > > Users want the information collected in this panic notifier though, > so in order to balance the risk/benefit, let's skip the altera panic > notifier if kdump is loaded. While at it, remove a useless header > and encompass a macro inside the sole ifdef block it is used. > > Cc: Dinh Nguyen > Cc: Petr Mladek > Cc: Tony Luck > Signed-off-by: Guilherme G. Piccoli > > --- > > V2: > - new patch, based on the discussion in [0]. > [0] https://lore.kernel.org/lkml/62a63fc2-346f-f375-043a-fa21385279df@igalia.com/ > Acked-by: Dinh Nguyen