Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3569622lfo; Mon, 23 May 2022 08:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycl5ImN3Uo5zIfmu3joPFDtYnp21qBCbArlE92an/b7viS9K9lyEgI+b4isqso89QNvvy4 X-Received: by 2002:a17:90a:4414:b0:1df:9b8f:c3cc with SMTP id s20-20020a17090a441400b001df9b8fc3ccmr27058749pjg.56.1653318421205; Mon, 23 May 2022 08:07:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653318421; cv=pass; d=google.com; s=arc-20160816; b=0bhqLmllDYFLcjra8pwu5OVm3u+jVypJdc/0Xk6vvoi6WH+ORBg705UGFPjE+GJQ5U GBC1kwfAhivSC9J8f3UC38eNkxOAoKNWCyZlD3HCUFWK3QGM762nEoypYaS7hRowZgji 62cIdfVTeNPe7l+q2Ii0o1HyY4Gc3s3P/YwtdvxSY4ewMlhGzVz5CeULzCkGia74nCT1 H6htK2Pvq1evYK1OfkgIm3ysrM7PxpBmibua8StlIeYHhlV77I9MqRVMI83O91JDVIRw 2/q7jgh8J3JlnFuR52Qt9GWP4kWPK6wuRQe+/21qQxqJB1OBC/35EIoq7eB76GC2nBkR rzrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=ZjCHgMUDQ4UlnOYhdvse1LdtxVRNLCmY8VQBwQpWfUc=; b=ZJisoVvWnB9rvMHfn1CYlKlJ20mgOkDPKgP9a8zLRpEF1s0J72ZRKhR/wWvQtTT3Yb AKTLbOVEV/nmD2DA9pEB6c1DwhLOAWuU+ZUAxNrPyMCpIBqp12zjCNVkfidsah5pN2nu FHK5bgKx1NfkrNT6UanKqLCfX4rD1n5qV71oPzFyHjhkPgveYajhK7ZJpbyHgwNMcO4M 2Ike9MAT7aWxcAqTiBpXne+W7vIamyr7KBXWwoXVbRldsRwi9biOSzMEnqFIHz9kkDdz JLkSRH0xzvypflA7ZNjJT/E/ptCCnSfrVzoLpbMiPappXqvhgds/wyEcfYogZIXb2CpY /yHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Ag9BQXsE; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=lfh5Suhw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g15-20020aa7818f000000b005104bf71586si12814168pfi.278.2022.05.23.08.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 08:07:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=Ag9BQXsE; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=lfh5Suhw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 69F5E4EDED; Mon, 23 May 2022 08:06:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237601AbiEWPG2 (ORCPT + 99 others); Mon, 23 May 2022 11:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236323AbiEWPG0 (ORCPT ); Mon, 23 May 2022 11:06:26 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB872BB3A for ; Mon, 23 May 2022 08:06:24 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24NEn0x7005443; Mon, 23 May 2022 15:05:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=ZjCHgMUDQ4UlnOYhdvse1LdtxVRNLCmY8VQBwQpWfUc=; b=Ag9BQXsEDU6pt89bxBdhMLNAZfHUZrLXXf9W0mWVryfxUbunsfcbxUezy4y1k+9o9J5d WWyzKj+5imRnB9M+h69HKGciSiaFC/vsZxBcGkzcy0X0XB6zkjrjUrHj0fxSsUtvvAdu +qgPAr5OdhIuq37AwA0jH0HKU+0w28N89DYeMUpNuToBT5mKlefODARnlV7CFERrioqb YdWN5JadhV9kYeiwdK9VyqRxMD6wI0rxhNFPTJc6c9C/75qQXvp2VDeUuUK+bYZRpDT8 EmRqZnkb3C+rElstVGwnqDvQvsQqE/cRDByvCoJp+6oBglG7L4bc2yK2u3+TD4Db7oDl Vg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3g6pgbkpsa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 May 2022 15:05:01 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24NF0HjG011830; Mon, 23 May 2022 15:05:01 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2043.outbound.protection.outlook.com [104.47.74.43]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3g6ph7cggt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 23 May 2022 15:05:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hjahe/UFmk732mNfEjriXWt9WOYLV5MMMkMuZ1w4se/gIfwONR4THLehyj7KqF4M7Zxs4TcA2ikmc5y48ElPc9guufhoVMrI88TQEq7t9QmEWJv/zBgKLDODS0A22oUfQbc0WHuHjvhzoxrU+DqpJJBvds1Y1VtGaCgtmLIbWMtxtNJUgL1nd9ajJe2WZdxMZVDy75MpHKPyqXrm0SSS90a8bkmDTdOP1gSDxJO6W+XDU7jeyXCpkBUCM7B5o8ThYifadzB7ARe0l5aX3/jEvFSC1/D79YsoPnsNa1cA2utSGvP6PHShmMXItLCRo5WEoCkZ+QCZ/NbSVFUOI+/PFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZjCHgMUDQ4UlnOYhdvse1LdtxVRNLCmY8VQBwQpWfUc=; b=eP+TeZarzM3vSjRwrknZXHzVinRCje7A799hdjFfulzpNk1MRbYYwQbImAPoj9rpxERnA1kzKA4CrRCZG9lGcrW9A5/scej1ukeCbrLsG6yKKONrC6RvVW/65kfFsItUJbkp0ZOtzENnSf+bf0b1hcH5R20Z66fSRMOjCY2KDW/FA0jHtMV8kAgHGSu0KlFmkPcjHRIZjznhxzLxqu4XvuiZ70exX0p5V3BI+QfAxb04Jb/LH1Y+ptQ4ObX8aAwTibsGm5PPWfe0IAt/Yvfl9zK1JLJrFnq6k1dSflLIVzcOiVMFGtpKJJfyWTd4oQT0eZVmzBn2Iefjr4OTdrsjvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZjCHgMUDQ4UlnOYhdvse1LdtxVRNLCmY8VQBwQpWfUc=; b=lfh5SuhwqqLKUUVIYDcriwLM/fAathY0o95SH7Kli52owgIQBgkeOUiYyX+Y+Nkdn4wrj8Hb7qEAlhCRr1mhVQnWot7Ls5bK9ZDuhmGl4thAk0OtUJh35BUlun1FNWQQNz7E3WMZDITVipQCuuwignWkQcfqbWIAQmzXPx+jGY4= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by DM5PR1001MB2140.namprd10.prod.outlook.com (2603:10b6:4:2b::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.19; Mon, 23 May 2022 15:04:59 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::bd49:f0ab:b476:860c]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::bd49:f0ab:b476:860c%8]) with mapi id 15.20.5273.023; Mon, 23 May 2022 15:04:59 +0000 Message-ID: Date: Mon, 23 May 2022 10:04:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v8 3/7] crash: add generic infrastructure for crash hotplug support Content-Language: en-US To: Sourabh Jain , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com References: <20220505184603.1548-1-eric.devolder@oracle.com> <20220505184603.1548-4-eric.devolder@oracle.com> <88ec248e-e00f-a84e-c652-97e49fbf2674@linux.ibm.com> From: Eric DeVolder In-Reply-To: <88ec248e-e00f-a84e-c652-97e49fbf2674@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BYAPR08CA0059.namprd08.prod.outlook.com (2603:10b6:a03:117::36) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e81d56b0-b77a-4764-31d8-08da3ccd9ab6 X-MS-TrafficTypeDiagnostic: DM5PR1001MB2140:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1vi0kDNYQJ44qFITKm10bApM9f4ZnLSsCbs7ZYjBBSwmEyYqdE3xCUag1WysXFV3PVuGCwBo2IWG0tIU/e2iLTsuJQ3Aju+Jd2+0hpnI7kChK1jSQzW9utqtkeQKe1t4CGK4+miZzFZfoMlGQ9y4LWUXEY2t+i4dXDQNx56mLuuFVSp2bGpXjk8hFpe5Kz0gO9o2FztRp1HWSAm8HkgZuH7QR/bUp6cFdaMIIhTdmlp/BXF86GecFT6l58P8nI9tw7Wk5sbGxtrk4f+DczTmIt1FCOUolov2m52yEG3KZhmo9OLMdyPTVJEIJOKKmeEwFMPycR1/pJObNBb2DCwFj4z4VQbkZekPP15lbwT+pL0NDgQd3fgUrHCp41K1r0Ugtvi/fGW3tvaUpDlqi9arGaEIOKVaGaHzelD8o9GCof8bvh5YTiP3JQy75XeU0tPORtjGKbdvR/ajtuQ2yXHb/vOkh/BMV/Noos9lXWq1diRJl5GbYCU3vyDpjzRliwERvlZO3gDWqjmWsinK8rYHoiN0EGJ8YwtXyRks6RzNR+JiCg8MrPUxrdDLohhkbDdU6iBrJASWqhc5P0eueU5gnGHz+pkZvYvSXchQwvcl+JJo3V/h9i0dAqQUc6JhzkVEVOKADzkwehlBO75ssDTHNKnd3PkGzDq2jY7tkpk2xs3OdAKTuTo/fAqZ7D84TOKYfg/TJvRKRzzx4KVTaHraiMaGZSwpoqWY7WpkpgDXl4Kq63GVaidB9Y38/hWKYC6SDjl82x4UZuGzgZNVaKIGEg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(316002)(4326008)(6512007)(8676002)(66946007)(66476007)(2906002)(66556008)(36756003)(31686004)(6486002)(6666004)(5660300002)(508600001)(2616005)(83380400001)(107886003)(7416002)(86362001)(8936002)(38100700002)(186003)(53546011)(6506007)(31696002)(41533002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bGJQeWYzVmszT0g2dFFRYzd2N3dLbENvcEtoN2JGe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V2Nmd2YwMXFXZ2RWL1ByZDk2S0dZNFNKckNDaVp4UldTT3k4M1BI?= =?utf-8?B?L0M2a2dDVm9NazFmMGhBdWNDL1VHK0VSaTJRY1VaamY1a2JwdXBVNS9OZzdJ?= =?utf-8?B?L3FSWU9yRytsMWx4ZEQ3SEZRdXVOVk9WQVoyNkRmY2dGZzJNMCt4RVA2Mzh6?= =?utf-8?B?SkJ4L3p0WDhPZis1dndLaW1kRUdhRk9ZWElwcjVoWHZjWnVhUmd1am1oR0RU?= =?utf-8?B?NWhoNVRKQWdVVGdYVXFERmVSMDJrc21oYlZlRjNXRm5iVUpST0NydG5WUWZt?= =?utf-8?B?SXdOUjRHSEhOalJ0S2FTTkpzOHQvejd3QVRlWnJ3TE5BZkZiZVl3eTdNQ3l1?= =?utf-8?B?OVBhRmtQS1IyU0NYTUpnNFZKUlRzb1VmL3Z0MWFvTTlmMTZHQk1NVnRPQ0w1?= =?utf-8?B?eUlGenNROVpyWUw4SklNSHFRMGpNYjBSWllvRWZpQ2JJN09BcTk0V0RqNWov?= =?utf-8?B?cWVmWnU1RTRPeWZrSjNQZGtTS3B5TUx0OXlsWlB1aThvWWpoRjZVbFpSQW5v?= =?utf-8?Q?1p48ZjNScfBWA/+6rbM8mUb1W+W4tDi3ISghs?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e81d56b0-b77a-4764-31d8-08da3ccd9ab6 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2022 15:04:59.2158 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Hle/ZJfG88TJI4N4OYMy5ZLM/Ph6GEixeshEH0wjEAwckATCSnC/URb1lB+t3qym3TcTNmm+Kl8zdfiCxzUDoCQdHcDFJ8zUeT5h2vgvw4Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1001MB2140 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.874 definitions=2022-05-23_06:2022-05-23,2022-05-23 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 bulkscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205230085 X-Proofpoint-ORIG-GUID: x0yMoed2CLBf2je4RGa6OkWpjakhNpLT X-Proofpoint-GUID: x0yMoed2CLBf2je4RGa6OkWpjakhNpLT X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/23/22 03:36, Sourabh Jain wrote: > Hello Eric, > > On 06/05/22 00:15, Eric DeVolder wrote: >> CPU and memory change notifications are received in order to >> regenerate the elfcorehdr. >> >> To support cpu hotplug, a callback is registered to capture the >> CPUHP_AP_ONLINE_DYN online and offline events via >> cpuhp_setup_state_nocalls(). >> >> To support memory hotplug, a notifier is registered to capture the >> MEM_ONLINE and MEM_OFFLINE events via register_memory_notifier(). >> >> The cpu callback and memory notifiers call handle_hotplug_event() >> to handle the hot plug/unplug event. Then handle_hotplug_event() >> dispatches the event to the architecture specific >> arch_crash_handle_hotplug_event(). During the process, the >> kexec_mutex is held. >> >> Signed-off-by: Eric DeVolder >> --- >>   include/linux/crash_core.h | 10 +++++ >>   include/linux/kexec.h      |  5 +++ >>   kernel/crash_core.c        | 92 ++++++++++++++++++++++++++++++++++++++ >>   3 files changed, 107 insertions(+) >> >> diff --git a/include/linux/crash_core.h b/include/linux/crash_core.h >> index de62a722431e..a240f84348aa 100644 >> --- a/include/linux/crash_core.h >> +++ b/include/linux/crash_core.h >> @@ -84,4 +84,14 @@ int parse_crashkernel_high(char *cmdline, unsigned long long system_ram, >>   int parse_crashkernel_low(char *cmdline, unsigned long long system_ram, >>           unsigned long long *crash_size, unsigned long long *crash_base); >> +#define KEXEC_CRASH_HP_REMOVE_CPU        0 >> +#define KEXEC_CRASH_HP_ADD_CPU            1 >> +#define KEXEC_CRASH_HP_REMOVE_MEMORY    2 >> +#define KEXEC_CRASH_HP_ADD_MEMORY        3 >> +#define KEXEC_CRASH_HP_INVALID_CPU        -1U >> + >> +struct kimage; >> +void arch_crash_handle_hotplug_event(struct kimage *image, unsigned int hp_action, >> +                                    unsigned int cpu); >> + >>   #endif /* LINUX_CRASH_CORE_H */ >> diff --git a/include/linux/kexec.h b/include/linux/kexec.h >> index f93f2591fc1e..5935bc78ed7f 100644 >> --- a/include/linux/kexec.h >> +++ b/include/linux/kexec.h >> @@ -308,6 +308,11 @@ struct kimage { >>       struct purgatory_info purgatory_info; >>   #endif >> +    bool hotplug_event; >> +    unsigned int offlinecpu; >> +    bool elfcorehdr_index_valid; >> +    int elfcorehdr_index; > How about keeping above kimage elements under below config? > #if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_MEMORY_HOTPLUG) > > Thanks, > Sourabh Jain Yes, of course. Eric