Message ID | 20240213113150.1148276-1-hbathini@linux.ibm.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-63439-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp472388dyb; Tue, 13 Feb 2024 03:32:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs4tzUkjoNF9S80Vabb+cO1RKvv2af8vaPocpstqS1UTtLmsRFhMnYzH73VjOSqy62uwUnI5MmUuErEQ0xTHcULCgZ0A== X-Google-Smtp-Source: AGHT+IGEqp5FtE51oyhCZGtxjF9iXorhuFNFttftLU6YA8Vl5hITq3Odd/PQWYrO063CKhA0asNu X-Received: by 2002:a05:6358:2c8c:b0:17a:e9db:bc10 with SMTP id l12-20020a0563582c8c00b0017ae9dbbc10mr4173436rwm.20.1707823961580; Tue, 13 Feb 2024 03:32:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707823961; cv=pass; d=google.com; s=arc-20160816; b=JYvj+1OQ2q6TfwXZZHzxCTWQ6dS+5cFIGCeTuJ1afY/oVMVe7TSUjpMGDdVzizpHMl kuuGWQbdVOirgL8/bdNafw+9SA0zxcwEcM0QA5JEU8FulyFw1yF6xogsoHqSJtnBph/T Mx1d09/raVsmuwhoERXu7kK2erjqfCAgSZjX2gPVrOyejHq9ObmGey+xVwlA4cDrwjJH wsv4v7E659w0hG+7ieF/tgnXHIH2/tT6oY3aYuIj90iwrUDc4GYirJlakZ5nvxgwPFa3 lRQZwnbkZglOaapdg4D17WIZfCIvH8gc85doNq85Le1Ejm9idgtssjSaBZxAGX3kspxS rZLQ== 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=v5eOYAD3vQP8tXuNI25ANhkOk62PwdiviuqOYCZc6mQ=; fh=GIhVLeEsjhhxpYfee39CwxK4rbrfD8N2JuutCJbhsic=; b=qaAU+zFnyldS4n8EiEJV6YiDlDkX1V1++2gPk9/d6ssSPS8G84Ys7tRzO/4k7NAIhD 5R8r0djHwqPlzQ+Pxu7z3t+waHhknq7kVWSQZWY7O9FvFaAL3s8I8usYEg/5PYBL9JHe E3+WWMBUeOxkbjMJyhM78cds500FmPmRnRwlt7mmBKh8+ARO1pJSRH0k9fy7zChpbVfY I5BgrBH3R/qzgFaGo7/opqyChXlNaSiBEZNJNSxJMveKb2cO2+Oa4wwITXJRrhSo9laG 0Wh1CRRAB2gkRJHQM79kXmy/TFT7u4BAsujHYGaO8mrTu2z1w9JzEelTXDU6C9nOENe8 Vpqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="Lj4/MCUv"; 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-63439-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63439-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com X-Forwarded-Encrypted: i=2; AJvYcCWMLCQ8q9VG5FnI1W3A7XE3IDJ0sp3PGxG1K0EvmA76wMywb9K2gflSca+vtV6Se7Zn2El4N03je3l9wPZNKxKQ2HUd/A== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 2-20020a170902ee4200b001da02558a88si1794622plo.203.2024.02.13.03.32.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:32:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63439-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="Lj4/MCUv"; 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-63439-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63439-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 5505F28CD98 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 11:32:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A070381D0; Tue, 13 Feb 2024 11:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="Lj4/MCUv" 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 666B1249F3 for <linux-kernel@vger.kernel.org>; Tue, 13 Feb 2024 11:32:14 +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=1707823936; cv=none; b=nih/S4fgAh9LIIx4Mys0BuWgHPTSJzbZszl1z4fm94ah/989aUyN1LqvcIPlk+uXkPAIbUQ+nkaGJT3pjh+buliEU2KeCgCxAuTkfJSWLPGbI01Dq7XD7KnQkc6e8Ou7bDR3U9O1saqueHh49ULWM4VNO/qJeKQC4x3mry3JeBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707823936; c=relaxed/simple; bh=SXhQk1UJuSooatqWXLspsyRt0S3fQFeEr0c1ZEUitus=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hi5CDl9SJyi60m66UgKL+Y4vxvl8LL3FE1hhub/lBbO6fYLxWCNzomXXMHNhxa12wYzC1ai0tsRUs85E6UArfXzMI3uYB/OzMDRVnknT94lE09pnR5dNXIhyxW/sSR6HN4SdwqxhR1XYA5z+7LptbnAmM5xEeLA23E3MuLDMbFs= 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=Lj4/MCUv; 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 (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41DAChBR021621; Tue, 13 Feb 2024 11:32:00 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=v5eOYAD3vQP8tXuNI25ANhkOk62PwdiviuqOYCZc6mQ=; b=Lj4/MCUvuhNWcOPh0pIi4/RCRMxPR5LstQKK1Xk7lsOpna/V76PklQsOBN/fAOKH6GCT ZTITRv/OyoCBurvMgsrvbCPSF8MylqcUStPEDsmpYfAmoqPweFuizGp2P1P9WxjzbZjD uPjz5tIZ6t5TyQ/e3NXz0RMkiOn3e+XIYgVsb4vrQWsH+FgvCBM7uFFnou8AQGKY/iVL TwL9SKy2EM/g2U2T01pUKQOGFuTZCYyQpGXJzvfOr6t7caXDAvBtF+mrjpGg1ieHXNTF gi1J1WIrc+uw3mWNbm+JQMcwPDolYj351Djagf+rdfy3skCw+zUUXtVxaYGw+EJAoDxc 2A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w86fk2692-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 11:32:00 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 41DACunT022210; Tue, 13 Feb 2024 11:32:00 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w86fk268m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 11:31:59 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41D8GO13024908; Tue, 13 Feb 2024 11:31:59 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3w6mfp70wt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 11:31:59 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41DBVs1X50528648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Feb 2024 11:31:56 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EDD002004F; Tue, 13 Feb 2024 11:31:53 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 595B920040; Tue, 13 Feb 2024 11:31:51 +0000 (GMT) Received: from li-bd3f974c-2712-11b2-a85c-df1cec4d728e.in.ibm.com (unknown [9.203.115.195]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 13 Feb 2024 11:31:51 +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>, Michael Ellerman <mpe@ellerman.id.au>, Mahesh J Salgaonkar <mahesh@linux.ibm.com>, Sourabh Jain <sourabhjain@linux.ibm.com>, Dave Young <dyoung@redhat.com>, Baoquan He <bhe@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Nicholas Piggin <npiggin@gmail.com>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Christophe Leroy <christophe.leroy@csgroup.eu> Subject: [PATCH linux-next 0/3] powerpc/kexec: split CONFIG_CRASH_DUMP out from CONFIG_KEXEC_CORE Date: Tue, 13 Feb 2024 17:01:46 +0530 Message-ID: <20240213113150.1148276-1-hbathini@linux.ibm.com> X-Mailer: git-send-email 2.43.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: P542-OlHxRQZS5TxbV4z1B4EOhaNplWn X-Proofpoint-GUID: vmkQYWnnC_uZN7NssJOsJjBR1KcZDomN 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-13_06,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=921 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402130091 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790783217914887715 X-GMAIL-MSGID: 1790783217914887715 |
Series |
powerpc/kexec: split CONFIG_CRASH_DUMP out from CONFIG_KEXEC_CORE
|
|
Message
Hari Bathini
Feb. 13, 2024, 11:31 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/ 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 +++++++++++++++-------------- include/linux/crash_core.h | 12 +- 10 files changed, 208 insertions(+), 199 deletions(-)