Message ID | 20240226103010.589537-1-hbathini@linux.ibm.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1991297dyb; Mon, 26 Feb 2024 02:54:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFUbVqc3OOKX+FczZbTvArQF1M5p6ieIFWSV1MPciNQtJ4POdasncthrb3huCNalra791DROHYZkP76PurtCGpXdlf3Q== X-Google-Smtp-Source: AGHT+IHJGGRkeD4wquk2QrJaxTJ4KJB3gQhk+JplgRpceuBfNVfkSGwaqOD8ZbdcWfR2G/izqVPd X-Received: by 2002:a05:6a21:9204:b0:19e:67b0:9ac6 with SMTP id tl4-20020a056a21920400b0019e67b09ac6mr11805239pzb.1.1708944877334; Mon, 26 Feb 2024 02:54:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708944877; cv=pass; d=google.com; s=arc-20160816; b=GMmbTrdqxeOW+WyUOWA4C/dpJv/4xGalLSMKkkwTdiEMkMQVffgCAaONtmZjGUoJCk aCT1ZRadL0hEfwLxa5aA8T99Ee+s9Sr4bmt/9FuNh+cM2824xWCI+ZVcsotS8De5TxcQ VpPKtTgx0KucSGN6aWZ/w7kmzLKL1bbmpPSXLHXU5rzqhrgJW1DWft3yfZ/LP8EoaRC+ zxQzxeOj/3MRWr0172i6Pu00bRKZ3GNNO4rf0E//0P3Wsp2dSLj0e+gIfarQ6LumczHb nj9yDb5VKBiHe2ueon9YzpcQ/5oCvqpchvaRlVzgvf7iB6VZzTKbs8CmGeQccaMQkG1j L+UA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=le4LCgrgl0rQAQk2X8xwPeGpze2aZA5cLCkLShXKXyo=; fh=z9rUOfI7DWlJL8qyA9Y8IPDLFxDy7XKd0U/QXR+CGbI=; b=X0HkehIP3ho0pL2tbg85lIMHL1t+PvptKXdHNImXxGUQRwjjtzs0KOSNGDsyLSOLlo Hn1Wer+2X1Ivn1gxQjRIIO63+D+MIftF7e8zTvxU4lUEAyfMP/uqcSTcjCxzF4VNJH9C tNlnfW/jGmOjfv/vMX9E7LLsL+5CxCedn4axGDyXFVWnx5/TNsjEncEJPGeriYj4IxCf IZ1FvsM5CxKGtX0pIWfT8kmYphD0+SyxqLhPgmKEXqzpPweKf9B9jnGb9h8eB6zHM42+ lNwDnRDcaBzVk0eeMd8DPmT/vqRzKur771S4zdRghbgbkn97mq/CtUG1g396qifJM9Ye PFgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="SzwyDB/r"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k1-20020aa788c1000000b006e48bbb9073si3562073pff.309.2024.02.26.02.54.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:54:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="SzwyDB/r"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81169-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 84669286927 for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 10:42:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9929459B4B; Mon, 26 Feb 2024 10:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="SzwyDB/r" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 1BA8E5914E for <linux-kernel@vger.kernel.org>; Mon, 26 Feb 2024 10:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708943498; cv=none; b=hlBxK8Oa2sHgMucsDd/TaPD7kz5jwpK7JG3CJQcwSnWoF4Tz7uLvl/QBvzEmXx6HSLFxnm6ljFzv3Zzds/Icd2r00cnfpxiz8hvF5JZ6Tsqh6XkPj3RCN9wVDl2aIoPhgOMrOhgr3UP+dxqhPyuc+TPGwHZawXli00eWQidVLZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708943498; c=relaxed/simple; bh=YBmvDMpRGbUssXw57iHLXnbZL+pvLvxeKYGu3bFUqMI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ThtoAdJUK9ewW4RxQ7wVQfcaQlbUl4GdEH2JraDL+jqW003Xh+RPkMYCobStLk0Ym8HZwU6FqInU+9Em65oPW/IHAaiRibT5QlYcbomCjCDfGPaLq2lRxH0776AkUCCKxnA7OlGcFS23DvTng8EpzA9H6gWxpYQO2JkTmeUaG1g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=SzwyDB/r; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41Q9JLf3018413; Mon, 26 Feb 2024 10:31:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=le4LCgrgl0rQAQk2X8xwPeGpze2aZA5cLCkLShXKXyo=; b=SzwyDB/rjwukVAMs8+qo23oDKO17zsG+Aj96YibLhgzof29rVjCRBwt6wt/RisC44t4A e3igHRR12L1uEzq3/yrlNMUoAmVmvOssZGsQR+39SyVZ+DsNcOxJGuLhppZ0OCjdAtoR VGkyo6LDfrCfM0CPg8sekNqE6O6mR5/63G4suv8s7BarF0p0r/T0SE6iwvBrlkGF0oHq IWv8+HmYnHJKOUfivo5cjxnu8FbsFLJG/2Q8EHiGz+qD5UsafSAmKKGbgZbDVrlD8VNz zDC1lrBQsok6scnj3nLW+zEowvVhYhaB626ik4SmDJD7cU11pPGvJ2Gr89DaWEXlD8Ld Jw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wg0bh5atn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 10:31:24 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 41QAVEJZ006271; Mon, 26 Feb 2024 10:31:20 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wg0bh5adx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 10:31:20 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41Q95gUl008147; Mon, 26 Feb 2024 10:30:20 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3wfv9m08q1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 10:30:20 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41QAUEUr13435474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2024 10:30:16 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7746D20063; Mon, 26 Feb 2024 10:30:14 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 061DD20040; Mon, 26 Feb 2024 10:30:12 +0000 (GMT) Received: from li-bd3f974c-2712-11b2-a85c-df1cec4d728e.in.ibm.com (unknown [9.203.115.195]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 26 Feb 2024 10:30:11 +0000 (GMT) From: Hari Bathini <hbathini@linux.ibm.com> To: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, Kexec-ml <kexec@lists.infradead.org> Cc: lkml <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Baoquan He <bhe@redhat.com>, Sourabh Jain <sourabhjain@linux.ibm.com>, Mahesh J Salgaonkar <mahesh@linux.ibm.com>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Nicholas Piggin <npiggin@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, Dave Young <dyoung@redhat.com> Subject: [PATCH linux-next v2 0/3] powerpc/kexec: split CONFIG_CRASH_DUMP out from CONFIG_KEXEC_CORE Date: Mon, 26 Feb 2024 16:00:07 +0530 Message-ID: <20240226103010.589537-1-hbathini@linux.ibm.com> X-Mailer: git-send-email 2.43.2 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: nTwYa3cQ1v0eiyh8TCyR0naNdMplF2k2 X-Proofpoint-GUID: edVtaD2Y3it8A-0l1Pshl5wXE-nEVdPN Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_07,2024-02-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 mlxscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 phishscore=0 impostorscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402260079 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791958583572959225 X-GMAIL-MSGID: 1791958583572959225 |
Series |
powerpc/kexec: split CONFIG_CRASH_DUMP out from CONFIG_KEXEC_CORE
|
|
Message
Hari Bathini
Feb. 26, 2024, 10:30 a.m. UTC
This patch series is a follow-up to [1] based on discussions at [2] about additional work needed to get it working on powerpc. The first patch in the series makes struct crash_mem available with or without CONFIG_CRASH_DUMP enabled. The next patch moves kdump specific code for kexec_file_load syscall under CONFIG_CRASH_DUMP and the last patch splits other kdump specific code under CONFIG_CRASH_DUMP and removes dependency with CONFIG_CRASH_DUMP for CONFIG_KEXEC_CORE. [1] https://lore.kernel.org/all/20240124051254.67105-1-bhe@redhat.com/ [2] https://lore.kernel.org/all/9101bb07-70f1-476c-bec9-ec67e9899744@linux.ibm.com/ Changes in v2: * Fixed a compile error for POWERNV build reported by Sourabh. Hari Bathini (3): kexec/kdump: make struct crash_mem available without CONFIG_CRASH_DUMP powerpc/kexec: split CONFIG_KEXEC_FILE and CONFIG_CRASH_DUMP powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency arch/powerpc/Kconfig | 9 +- arch/powerpc/include/asm/kexec.h | 98 +++++----- arch/powerpc/kernel/prom.c | 2 +- arch/powerpc/kernel/setup-common.c | 2 +- arch/powerpc/kernel/smp.c | 4 +- arch/powerpc/kexec/Makefile | 3 +- arch/powerpc/kexec/core.c | 4 + arch/powerpc/kexec/elf_64.c | 4 +- arch/powerpc/kexec/file_load_64.c | 269 ++++++++++++++------------- arch/powerpc/platforms/powernv/smp.c | 2 +- include/linux/crash_core.h | 12 +- 11 files changed, 209 insertions(+), 200 deletions(-)
Comments
On 02/26/24 at 04:00pm, Hari Bathini wrote: > This patch series is a follow-up to [1] based on discussions at [2] > about additional work needed to get it working on powerpc. > > The first patch in the series makes struct crash_mem available with or > without CONFIG_CRASH_DUMP enabled. The next patch moves kdump specific > code for kexec_file_load syscall under CONFIG_CRASH_DUMP and the last > patch splits other kdump specific code under CONFIG_CRASH_DUMP and > removes dependency with CONFIG_CRASH_DUMP for CONFIG_KEXEC_CORE. > > [1] https://lore.kernel.org/all/20240124051254.67105-1-bhe@redhat.com/ > [2] https://lore.kernel.org/all/9101bb07-70f1-476c-bec9-ec67e9899744@linux.ibm.com/ > > Changes in v2: > * Fixed a compile error for POWERNV build reported by Sourabh. > > Hari Bathini (3): > kexec/kdump: make struct crash_mem available without CONFIG_CRASH_DUMP > powerpc/kexec: split CONFIG_KEXEC_FILE and CONFIG_CRASH_DUMP > powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency I have acked patch 1. And patch 2 and 3 looks good to me, leave these two to powerpc experts to have a careful reviewing. Thanks for these great work. > > arch/powerpc/Kconfig | 9 +- > arch/powerpc/include/asm/kexec.h | 98 +++++----- > arch/powerpc/kernel/prom.c | 2 +- > arch/powerpc/kernel/setup-common.c | 2 +- > arch/powerpc/kernel/smp.c | 4 +- > arch/powerpc/kexec/Makefile | 3 +- > arch/powerpc/kexec/core.c | 4 + > arch/powerpc/kexec/elf_64.c | 4 +- > arch/powerpc/kexec/file_load_64.c | 269 ++++++++++++++------------- > arch/powerpc/platforms/powernv/smp.c | 2 +- > include/linux/crash_core.h | 12 +- > 11 files changed, 209 insertions(+), 200 deletions(-) > > -- > 2.43.2 >