From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00248C4743D for ; Wed, 9 Jun 2021 02:51:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD80561042 for ; Wed, 9 Jun 2021 02:51:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD80561042 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MIUgNmLrgzSmmldQMhQvp8AbFLEji0cLBpOUk3Hl1Vo=; b=Z3yhUllkSIyEY6 /X3eKBcIpZZTRofKPs3ml2NrympRpiw/h0sWmpQ/hBHn8Bn46BGQSPV0TcYm0t3rF1uKgc6NZGQO8 cuYypnrz1xZ1Dt5nOW4IdZ1Iyxq4rBdnRvvmxFL42B5KZAfoQSB3EmsQog31ICmvS9F1e6LhQDfev Mup/lcpzsEHVViESWUIhqGXdGdB3ggsqE9YjMaHoFYQrOoEEkuoBY/r65MjwAQ5B4HauO+Sy5Zgnz a9tpOo060Sc7X1tzTrq/6wXEcsoOANNLP+bT+i/tz08bsw6R2nDMT3WX9bdl5IfzJBVUGz9c3Mkdh xf79moWPPhPgRTLHENYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqoFd-00BT3s-NO; Wed, 09 Jun 2021 02:47:29 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqoFZ-00BT2z-AN for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 02:47:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623206844; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M6AD2nLmb56QVhFCgYdZqvhrlY7oWTcZgGvZozkCcw0=; b=Bm0MeJbcVx3fNkJGJBjuwjyysvIlfbKWSPfmMJmuafsBWgCF8RzjNNO52EzD60A0WWXED7 CGt4qoMir+MqGlwvcTQo7KWHwId74lUWeMjRUKZf2jSWudIgZyW7+VN3k5Z+GRnQsoIFNW KAifj9S4oAzDBn+YDjYNyVdFns6vcrA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-518-ycxNtIymMJ2lkUBWT-83bg-1; Tue, 08 Jun 2021 22:47:23 -0400 X-MC-Unique: ycxNtIymMJ2lkUBWT-83bg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9DFB2107ACE4; Wed, 9 Jun 2021 02:47:20 +0000 (UTC) Received: from localhost (ovpn-13-223.pek2.redhat.com [10.72.13.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14C5160CC9; Wed, 9 Jun 2021 02:47:12 +0000 (UTC) Date: Wed, 9 Jun 2021 10:47:09 +0800 From: Baoquan He To: Andrew Morton Cc: Pingfan Liu , Bhupesh Sharma , Kazuhito Hagio , Dave Young , Boris Petkov , Ingo Molnar , Thomas Gleixner , James Morse , Mark Rutland , Will Deacon , Catalin Marinas , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , Dave Anderson , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] crash_core, vmcoreinfo: Append 'SECTION_SIZE_BITS' to vmcoreinfo Message-ID: <20210609024709.GA591017@MiWiFi-R3L-srv> References: <20210608103359.84907-1-kernelfans@gmail.com> <20210608142432.GA587883@MiWiFi-R3L-srv> <20210608141410.0026a925ba3a609b0dd4e560@linux-foundation.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210608141410.0026a925ba3a609b0dd4e560@linux-foundation.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_194725_465440_D0ACB82B X-CRM114-Status: GOOD ( 23.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 06/08/21 at 02:14pm, Andrew Morton wrote: > On Tue, 8 Jun 2021 22:24:32 +0800 Baoquan He wrote: > > > On 06/08/21 at 06:33am, Pingfan Liu wrote: > > > As mentioned in kernel commit 1d50e5d0c505 ("crash_core, vmcoreinfo: > > > Append 'MAX_PHYSMEM_BITS' to vmcoreinfo"), SECTION_SIZE_BITS in the > > > formula: > > > #define SECTIONS_SHIFT (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS) > > > > > > Besides SECTIONS_SHIFT, SECTION_SIZE_BITS is also used to calculate > > > PAGES_PER_SECTION in makedumpfile just like kernel. > > > > > > Unfortunately, this arch-dependent macro SECTION_SIZE_BITS changes, e.g. > > > recently in kernel commit f0b13ee23241 ("arm64/sparsemem: reduce > > > SECTION_SIZE_BITS"). But user space wants a stable interface to get this > > > info. Such info is impossible to be deduced from a crashdump vmcore. > > > Hence append SECTION_SIZE_BITS to vmcoreinfo. > > > > ... > > > > Add the discussion of the original thread in kexec ML for reference: > > http://lists.infradead.org/pipermail/kexec/2021-June/022676.html > > I added a Link: for this. Thanks, Andrew. > > > This looks good to me. > > > > Acked-by: Baoquan He > > I'm thinking we should backport this at least to Fixes:f0b13ee23241. > But perhaps it's simpler to just backport it as far as possible, so I > added a bare cc:stable with no Fixes:. Thoughts? Yeah, it should add cc:stable, thanks. Otherwise it will break vmcore dumping on 5.12 stable kernel even though with the updated makedumpfile utility. Fixes:f0b13ee23241 will help stable kernel maintainer easier to identify which kernel this patch need be applied on? If only having cc:stable with no Fixes is allowed, it's also OK. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel