Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2199219rdb; Thu, 21 Sep 2023 11:13:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjnXXEzZI5+JtwJPYlCxUPBZg5yt9lnqvyvzAv9nJ6MGayU2K8uk8xN0fjdsKGy7XWUpW9 X-Received: by 2002:a05:6359:4f05:b0:143:6816:7ed0 with SMTP id nf5-20020a0563594f0500b0014368167ed0mr9731107rwb.0.1695320018938; Thu, 21 Sep 2023 11:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695320018; cv=none; d=google.com; s=arc-20160816; b=0TapURNjA8Epf7JuWKOHoKtcU8FEVWAI7AV8vKZWjgRoQRxEoq7xkvtZjP0CtHmqMf dZSiYB0cKEwB4svtyeY7/YGvb89A0Y52bL1SJzDOlLNDRtRRrjdF+rDJHRk9NLPXCZT8 hTPqgtqWn2SxRiMn8ayqMjMdBD2Xy5wyOFXP9Bb820/pSRlKP1OUAgIGv7H1n7CQbeSX JWX6I/oJAeIyVptuJdnBHewkijW7rpLD+EhOGF4N81AUP/KUHIWXlAcHwhRwHoMJLcpt pVIH/qSvWChunjWLdQgohCzfNczvnexyZdACp11+97rDykkaPl2ZPlnwb6NRzIoTEHZT jrfA== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=4nm5l5cc/yLCKupv82OLjYiiSUPUMP6SN2dMHwlhbuM=; fh=545TxzSX4m+4A6aJP0v48Ic7A4BTeHeE2pIWQAxQ114=; b=cfcg+vPBnPhmh6lfrLForBx1QXL1GEBIhIo2B6D5YvU9ChzxLDTPgGc0mHQmm5rBBU fI34TwLlLmkuW8lQL1Qjg3UFA9/wdyQvJTymkym9lVUpAa1NMrJb4hZ/9/Qy8BbS6v/Q MFF9iaRgeMN6r0gX5EpkoKpgj/Wdg7NiD+cFYKalrztECy3X5Oj+rMw38wOIfP45YANK pUbgiNfqICzChDTmJ1uukTTj1I1ux+5Se+FqV2dccC3l/2FjTG1QYJseUOTBEvhEy9g9 ArgW+xTCyMmie1hMqkTAzWp1qbVlDjAGdkKPgYmXUHfHegypzcj/NmJGtCVRfOoyHbAy Y38w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b66-20020a633445000000b00564b99f128dsi1853552pga.656.2023.09.21.11.13.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 66C44828B8C0; Thu, 21 Sep 2023 10:32:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbjIURcI (ORCPT + 99 others); Thu, 21 Sep 2023 13:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjIURb7 (ORCPT ); Thu, 21 Sep 2023 13:31:59 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2BB2198C for ; Thu, 21 Sep 2023 10:09:36 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Rrqvh3Y4kz4xPX; Thu, 21 Sep 2023 19:33:20 +1000 (AEST) From: Michael Ellerman To: lkml , linuxppc-dev , Kexec-ml , Hari Bathini Cc: Dave Young , Baoquan He , Mahesh J Salgaonkar , Sourabh Jain In-Reply-To: <20230912082950.856977-1-hbathini@linux.ibm.com> References: <20230912082950.856977-1-hbathini@linux.ibm.com> Subject: Re: [PATCH v3 1/2] vmcore: remove dependency with is_kdump_kernel() for exporting vmcore Message-Id: <169528860033.876432.15480467889695445457.b4-ty@ellerman.id.au> Date: Thu, 21 Sep 2023 19:30:00 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:32:10 -0700 (PDT) On Tue, 12 Sep 2023 13:59:49 +0530, Hari Bathini wrote: > Currently, is_kdump_kernel() returns true when elfcorehdr_addr is set. > While elfcorehdr_addr is set for kexec based kernel dump mechanism, > alternate dump capturing methods like fadump [1] also set it to export > the vmcore. Since, is_kdump_kernel() is used to restrict resources in > crash dump capture kernel and such restrictions may not be desirable > for fadump, allow is_kdump_kernel() to be defined differently for such > scenarios. With this, is_kdump_kernel() could be false while vmcore is > usable. So, remove unnecessary dependency with is_kdump_kernel(), for > exporting vmcore. > > [...] Applied to powerpc/next. [1/2] vmcore: remove dependency with is_kdump_kernel() for exporting vmcore https://git.kernel.org/powerpc/c/86328b338c3996b814417dd68e3f899a1a649059 [2/2] powerpc/fadump: make is_kdump_kernel() return false when fadump is active https://git.kernel.org/powerpc/c/b098f1c32365304633077d73e4ae21c72d4241b3 cheers