Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6C88FC43334 for ; Mon, 20 Jun 2022 07:01:41 +0000 (UTC) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DmdgnUbWbM08OEQ5Z8+p1OQrGz/h3TLe6kUecX2fSjg=; b=LNW0ltimMrKJbA /sDaI/HV6NB4qMaOCxy87bhMLh8XzXG0uLVheUCeQZQA5xTWTvv9MuDWlEM5ajihcE55C9wL95Lgs Kd3NvMWd3pNLJ1td/xp+qcff6KIYLi8LO9gjusNL7L30k8fUbB/kuV5Js3ZGt3YPpj+QeTukG3W0z W9t0w1d+am4DDE7UNAPR9A60wG7lfq39mKS2yHNimyc9x6ZPY6ZWKLhawG+rVNOX3SRi8w+pkZx3V xATENEaft10ihRl+enGiXAUQ9FDa8iFLSLHBaB13fQr+oTwSkpYTr31wUcyp0qV5eThfNgzmyarJo lE0me8m1QcMbfk9iPuPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3BPk-00GZJu-TA; Mon, 20 Jun 2022 07:01:36 +0000 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5] helo=mx0a-001b2d01.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3BPi-00GZIN-8y for kexec@lists.infradead.org; Mon, 20 Jun 2022 07:01:35 +0000 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25K51ogI022738; Mon, 20 Jun 2022 07:01:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : mime-version; s=pp1; bh=CvWZ3PajcfKopraRcXPzIMHbKK7uQcUw2xmW8pvp/uc=; b=TVt7vfFpu6BxgGmbELCBah9J+boehgy5Celn+JN8a8E6TgF3OUfAZz+AUTGDAmbHzwMU jZWG5DQ8dI8C2sXpSqUmIbmLhItQGh9Hq3qbB8/Sc2a7KImNxXoBDo8EXlQbBMPidhEN zV3FZNGIeo5lyA/yYmiyXqLqMUqatgD7Tax+/cgtUWC+JusherW2L8XzZfvuHXnLVi0L TVzKM8aY7+G1ZnDyZO7mURliDHFxsiWWUP2zq/KwfieDrhjNqESgZi3l+ndPIQHr7+fA 0li4V1OgKZJ7L1/2UfiU4rcIK4d8wES9sgUoXNU6D4gtfIOCqJoN81FqEUaXO6p6hWto nw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gsrs78hwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jun 2022 07:01:30 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 25K6J0Op012619; Mon, 20 Jun 2022 07:01:30 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gsrs78hvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jun 2022 07:01:30 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25K6pgfO015474; Mon, 20 Jun 2022 07:01:28 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma04ams.nl.ibm.com with ESMTP id 3gs6b92213-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jun 2022 07:01:28 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25K71PXk21758282 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jun 2022 07:01:25 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6EED6A4040; Mon, 20 Jun 2022 07:01:25 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1AD98A4051; Mon, 20 Jun 2022 07:01:23 +0000 (GMT) Received: from sjain014.ibmuc.com (unknown [9.43.109.136]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 20 Jun 2022 07:01:22 +0000 (GMT) From: Sourabh Jain To: linuxppc-dev@ozlabs.org, mpe@ellerman.id.au Subject: [PATCH v5 5/5] powerpc/crash hp: add crash page helper functions Date: Mon, 20 Jun 2022 12:31:06 +0530 Message-Id: <20220620070106.93141-6-sourabhjain@linux.ibm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620070106.93141-1-sourabhjain@linux.ibm.com> References: <20220620070106.93141-1-sourabhjain@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: nukIKnCn3mNVHLBsmtRKzcEA84kDLeoN X-Proofpoint-ORIG-GUID: gtPalnjuF1zQAaVygnwnHvw6Emg0ScDv X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-20_04,2022-06-17_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206200030 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220620_000134_470381_18F92B50 X-CRM114-Status: GOOD ( 16.28 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eric.devolder@oracle.com, bhe@redhat.com, kexec@lists.infradead.org, ldufour@linux.ibm.com, hbathini@linux.ibm.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org Define arch_[un]map_crash_pages functions to avoid build issues due to undefined arch specific function to access crash memory pages. A temporary patch to avoid build issues may need some changes in generic code to avoid this. The issue is under discussion: https://lkml.org/lkml/2022/6/20/22 Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core_64.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/kexec/core_64.c b/arch/powerpc/kexec/core_64.c index 373cb46bcc0e..d833fa96dcfa 100644 --- a/arch/powerpc/kexec/core_64.c +++ b/arch/powerpc/kexec/core_64.c @@ -492,6 +492,13 @@ int update_cpus_node(void *fdt) #if defined(CONFIG_HOTPLUG_CPU) +void *arch_map_crash_pages(unsigned long paddr, unsigned long size) +{ + return __va(paddr); +} + +void arch_unmap_crash_pages(void **ptr) { } + int crash_hotplug_support(void) { return 1; } /** -- 2.36.1 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec