Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2366987rdb; Wed, 21 Feb 2024 05:44:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXa4v/5J2gjhVRpkZ/LG9XRnQ5IADq5KvZm0+X83R1rb3D4r0wRT1zU9+x/muRbAIsU4lJy2q6lxIZ4sBVLQTpW5w3I+Yph8j61ZxzSgQ== X-Google-Smtp-Source: AGHT+IE31TSYGeEVgVI9MIqDZzVd5nsVkci6fil4GkCTKuGUpMPpR46JlTXYfXmL/Pp3sRKpqubu X-Received: by 2002:a05:622a:130d:b0:42c:7b12:70bd with SMTP id v13-20020a05622a130d00b0042c7b1270bdmr33636973qtk.9.1708523061529; Wed, 21 Feb 2024 05:44:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708523061; cv=pass; d=google.com; s=arc-20160816; b=MLVeen9bUtTS5RQT0+Jkh0IuIw5KJ/uLVMu8D/2GcnSiG5rsZ7aahpOmrsgFYJZXe6 H5fIQc4V/sopgefqLRTzByvrqpkN6CE/NFkxj88w2W3I7zRGMAdLgQ1LkTVeyc84XdL0 KA4eeMKj0keuKe/ajrQrL6a/+84ttx9HT4ut3aqJlb49Lly0jmX7E4B2L6QTgcBp1c/M u4q8S8bVbBSvhBciKl2Ch0t+6sjvomXTyByGITmrIPVBsr9fiV8YZ8lAs4hqRA36jfsD 6M7o7Y5wJzfcpAxYRpBSmIAVo9r6luf+oHw02zM3soTsDa1SUuJPhm2v6PevmkKyS7yA W3Fg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kjg3ALQw4zFfCtoxrqU3mC8VARBMiLwWXwoSwpKkxVk=; fh=NY4VMv38H/2hDoEnbZ1td22189rCyWh9dAwH5J0Pxr8=; b=Dnf2SgrbNdBB1Wwy8ulPUOSh5D2tB6g9WVxgUK9eWDxPX0rEJF4q1ESNj5+SZ4DveM pVUTKjoODF6di93LA1GAFGUmFRfw8e8htY5a7hJtirqhIIt0FPyugIwmI88mAK8vOp6r /3r4xpO5/mvxnj2srn3VZdS96AUXCsNdkWpYxjY09ICr3SOgzx50Qok9XuasSddbfui+ oO/Re5scxxpODb8x+SJJi/NaKzsysEsK7VnKvpt6+CZcMHoOPLGfzSF3vGK2GeCgFxMu XO3fMaFyujIbmKZtBMqNi+fi7ERX8ir8dl1SQbfufgL7DjCn/BtEIE7+eQ45AKeJNosr Jfpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWA+wJgn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x17-20020a05620a0b5100b007876bf6eae9si6120177qkg.671.2024.02.21.05.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWA+wJgn; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 488191C2356E for ; Wed, 21 Feb 2024 13:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5718A79DD6; Wed, 21 Feb 2024 13:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WWA+wJgn" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 203E41E4B2 for ; Wed, 21 Feb 2024 13:44:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708523054; cv=none; b=dqxCMiWcsGpnWcFGC2XxMytxTi2xnEkiYuKG7ipWcJ+3jjfvx2BUowONg+KbvjKrNaYQNJbjtofS0hPTi8Il0LBbOu79RRhuYiK9RZNgfedkmaEn+/VtK50c7hq6qEtxpuqDCx11PgTk6eVFUEKo/c50hKbxHL1KiSFDMjsRhSI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708523054; c=relaxed/simple; bh=MrsZ6R8kVdxd/n4xz6d/BNCiT9VSGP+MbjDNCaoodJE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aSbd3NjuFmRcyulps49cMyKra5glDwC5yVxyP3Iu3uswPfHfHaH8sneuM9j4SeoWHFuWzSrCn1+BkNjVmRNxDY8k6YHAuFUOFLlk1aW8b/PWEKeRUSQZKpNPOYI0tXbP5ISEDmIO8OUViB5L+AfbVTonnFrXMocj/LDo4zuB26o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WWA+wJgn; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708523052; 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=kjg3ALQw4zFfCtoxrqU3mC8VARBMiLwWXwoSwpKkxVk=; b=WWA+wJgnLDUk370kmYH/LehaT5Ve7heAzmR4VSiu2MrpVJh8BmRE2z/UFKzKRiaOfZgGtD A/fOipeYFFzCZGG08IJSMpx57l2knMjOJF0GsqISk6o0vLD1LvuCY7T8cIa5CPRlYZkjeH oeEW8XEwxGs2SJZzs2Yr9i27QBSchLo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-583-viBCBzv1MZWeE0zNlD0FTQ-1; Wed, 21 Feb 2024 08:44:09 -0500 X-MC-Unique: viBCBzv1MZWeE0zNlD0FTQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1712C867943; Wed, 21 Feb 2024 13:44:08 +0000 (UTC) Received: from localhost (unknown [10.72.116.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 21A5F2166B36; Wed, 21 Feb 2024 13:44:06 +0000 (UTC) Date: Wed, 21 Feb 2024 21:44:04 +0800 From: Baoquan He To: Hari Bathini Cc: linux-s390@vger.kernel.org, piliu@redhat.com, linux-sh@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, ebiederm@xmission.com, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH v2 00/14] Split crash out from kexec and clean up related config items Message-ID: References: <20240119145241.769622-1-bhe@redhat.com> <9101bb07-70f1-476c-bec9-ec67e9899744@linux.ibm.com> <559f2595-1477-4ef0-80e4-85ae8b426de7@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559f2595-1477-4ef0-80e4-85ae8b426de7@linux.ibm.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 On 02/21/24 at 11:15am, Hari Bathini wrote: > Hi Baoquan, > > On 04/02/24 8:56 am, Baoquan He wrote: > > > > Hope Hari and Pingfan can help have a look, see if > > > > it's doable. Now, I make it either have both kexec and crash enabled, or > > > > disable both of them altogether. > > > > > > Sure. I will take a closer look... > > Thanks a lot. Please feel free to post patches to make that, or I can do > > it with your support or suggestion. > > Tested your changes and on top of these changes, came up with the below > changes to get it working for powerpc: > > > https://lore.kernel.org/all/20240213113150.1148276-1-hbathini@linux.ibm.com/ > > Please take a look. I added a comment to the patch 1 consulting if the "struct crash_mem" is appropriate to cover other cases except of kdump memory regions. I am wondering if its name need be adjusted, or other kind of memory you mentioned can use other structures or create a new one. If it's has to be done like that, it's fine.