Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1221816rbb; Mon, 26 Feb 2024 02:41:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhHjbWGjYxAhLJWF4OrFzuob+67JpVe+X9+/XDEE9wikmX3Qd336V1kYrElZDWaTNAYzGfAqCrOhiJb2ecFhJoSoJ6B+aXl3o1TYCkww== X-Google-Smtp-Source: AGHT+IHbWzxgkbreAGrFk8+FgZbrZ5QSQnhb+AovQLcl3vMu/oqJSGVoNbPQE4mjjUf7rMFCWV05 X-Received: by 2002:a05:622a:4d3:b0:42e:7fd6:9dc7 with SMTP id q19-20020a05622a04d300b0042e7fd69dc7mr3837413qtx.36.1708944106786; Mon, 26 Feb 2024 02:41:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708944106; cv=pass; d=google.com; s=arc-20160816; b=Y4w5p4jWJWQs+L8yGvPl8EI2kkqX3pL/9nS+jfgxTWGPwGhFFv+Yq1DsoyZLoZDada OlgT+TrnD/xQmtvrEn9vQGak++knyniQJl51zh2f30ktPoyjsKHIa91mda7hs3V1q3qb lojMgMlPkV1ikHeWrgjFpQaAZZaI7IwTMHz71SYEReQZ/CPHA9wLcEoq5G7tiOQhuIJi MiKEES3edDNGdpL8lN1Ov4uC7ZQTnrQKaBfme+enQlnAcRDXBmP/9OM8JwFbv9F0z8Pe Rbaoeb1g3bZPKB+tkQFmoKsvwjbOdfu1jjltBHm6OOp3iFURudyCWLgWOAmKe9gKaP4+ T5fQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i19-20020ac84f53000000b0042c513c8cc8si1206712qtw.68.2024.02.26.02.41.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81169-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F02D21C221AA for ; Mon, 26 Feb 2024 10:41:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97DB25915F; Mon, 26 Feb 2024 10:31:39 +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 ; 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 To: linuxppc-dev , Kexec-ml Cc: lkml , Andrew Morton , Baoquan He , Sourabh Jain , Mahesh J Salgaonkar , "Naveen N. Rao" , Nicholas Piggin , Michael Ellerman , Dave Young 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: List-Subscribe: List-Unsubscribe: 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 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(-) -- 2.43.2