Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3584859rdh; Mon, 27 Nov 2023 19:32:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjggKJ64GMCQUAQbqaXu+sgdGecKj5MF3lXYXiZvMkelbE8sMDF/cu83TT/tf4NsR9cjMD X-Received: by 2002:a17:903:244e:b0:1cf:de12:5cb5 with SMTP id l14-20020a170903244e00b001cfde125cb5mr5519381pls.29.1701142359066; Mon, 27 Nov 2023 19:32:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701142359; cv=pass; d=google.com; s=arc-20160816; b=p+RFYXBHviKN9VLxRRs545smhVzC9taD50SnA+LtYOkUVZ2RAYAsa87G7dnTQk9LUZ uJ052UKPrgeESjbSaGsEoVso4nIdw0zinuRWYvKg+x0t/Z2tN1/0fr3HH1qnfFxmgu6y LuLhCXawVstSSijwVZpdIHfDFaLh6wf/6VJDvrw2iUs4T67Yz038fSc1HY15FqFPqm3C iv6+mn2tl1ZQXKLpgcUOFAo41mJWSiWoc+YftvIq5JY9Cp9j+DV6Oo5CEDJ87K0jE+Qt zAYCB/L0KVUr0WTHKK00N8sOYfnFt/8nefQqBcJXGuqiQMDSQ0tp1Nrib4z2N9OJvhVq a0TQ== 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:subject:user-agent:date :message-id:dkim-signature; bh=MzMuDtOaoN9gAD2j21FVfjp6m/IZJh54uZcF0EjP7io=; fh=wK2RvG0HNXfOXZytDdVXglgNsUgRkR9+FMsnQKeVQ3c=; b=TH5rLwlhrKZdSS6ZIlJ39ajeQ4U56sPv5p56BOvCgMoHF6m6kGx+bG03yZhG9zc8Ex wpAoyO9ng3IiDDs4khW2AznNJfrKqcYcF2NQsZD3sjX/24mUDpH6qqKdvtxrUuof4dbG K46isK7ia4/RcDV5nbgPlwUhPN7wdUK+Oxj3t9cwzLTarzOxDaQTR0o/Vn5X7jNJlHTw UookfjJfWogAlr/z/EQ0Y2J3ERIiwMSTXvUVp2ssByiycp9Wv6QgfIe5YUP8W+qoNrVa PFI3458YvAqXIY/teN65Uy/QxzhKGqr1j8MoTbINIDLmo1vWHvSYYNOerDAr+t9pUDjW lvvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@amperemail.onmicrosoft.com header.s=selector1-amperemail-onmicrosoft-com header.b=SrBb4w0G; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=amperemail.onmicrosoft.com dmarc=pass fromdomain=amperemail.onmicrosoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p2-20020a170902e74200b001cfb1dab1b0si7546252plf.589.2023.11.27.19.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 19:32:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@amperemail.onmicrosoft.com header.s=selector1-amperemail-onmicrosoft-com header.b=SrBb4w0G; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=amperemail.onmicrosoft.com dmarc=pass fromdomain=amperemail.onmicrosoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 95AC5819D9C9; Mon, 27 Nov 2023 19:32:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234568AbjK1DcT (ORCPT + 99 others); Mon, 27 Nov 2023 22:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbjK1DcR (ORCPT ); Mon, 27 Nov 2023 22:32:17 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2139.outbound.protection.outlook.com [40.107.93.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1EF0C9 for ; Mon, 27 Nov 2023 19:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gRvm9FuENhbmqUpapiFqiw1bsr9TvNIvoIUSQaSCcHdEvDzY+Is7LnmoZeTa8xnZ9Fbqfc+TmwgBGaxNZcSyR/dRbpHI1iRI/X+pOtQmVLcGhSLOxpaZr/8XuxJfsC0aJc/AI6YSLQtqVnkB6+5HUVI59xobDxJN20csgMcwQXw73MxBN8b9+lLbDpiBa8ogMmCCu9fcuRUG5OGUyijV85lvNtvq598U0DgX+xlO+cjw6Jk4V2bzQ339qnNk6NGtV2PZwfubLwo5Z4HEY48GkLqGEZ4xJpM50a3ykeryGF7NOH+zwZwBTBFUExBFutOaxjPh1WdgEJD1XUXHzpmnzQ== 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=MzMuDtOaoN9gAD2j21FVfjp6m/IZJh54uZcF0EjP7io=; b=SvtiIvKw4EMV101rnU5ppTrInzwpyQK65AxXr3sEmkLibVzhyz9eJaFcMcXjjLqnjFiqN24oTVFj5VfVzIKyICy2zhGS4PFSOPdhQYCgmWsGHlbeVWjteDf8UbL/DdT+h9+H5VM5phewdrf8ARrFQlTBCHvdQUBFMgfpWaPhL5dwxHTK0mGALlMzyj86u8G3QAixIo6nh6PBP3tVKOw3sfR6/JRrE/K3EeqRha4EFugD35LuuZQYPdOcqgpv3syjBpwhUqfJ9gltzaN98LMe/9DanOh3Oi35orBPlelV7wszo1z0JBtp0ixDfoMb9nLEnZRevO+cs2KiHp6GZAUUJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=amperemail.onmicrosoft.com; dkim=pass header.d=amperemail.onmicrosoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amperemail.onmicrosoft.com; s=selector1-amperemail-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MzMuDtOaoN9gAD2j21FVfjp6m/IZJh54uZcF0EjP7io=; b=SrBb4w0GeuwXPOl5lxfcjlPXPTBd1g23jwOh72oGs9WwldP2zIK+16Xl9cv3NX2Hw22cDT5N64+ThdNUsH+bzSefSDtn9HAGNk/UfecyGkI+GCPAqb0CREX8nJXoARg4THkTDTk4c2/a0KYU4d71Ut71Hx0Mq6UToHyKBkkfKiw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amperemail.onmicrosoft.com; Received: from PH0PR01MB7975.prod.exchangelabs.com (2603:10b6:510:26d::15) by BY3PR01MB6641.prod.exchangelabs.com (2603:10b6:a03:367::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Tue, 28 Nov 2023 03:32:17 +0000 Received: from PH0PR01MB7975.prod.exchangelabs.com ([fe80::3f45:6905:e017:3b77]) by PH0PR01MB7975.prod.exchangelabs.com ([fe80::3f45:6905:e017:3b77%7]) with mapi id 15.20.7025.020; Tue, 28 Nov 2023 03:32:17 +0000 Message-ID: Date: Tue, 28 Nov 2023 11:31:42 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled To: Baoquan He Cc: Huang Shijie , k-hagio-ab@nec.com, lijiang@redhat.com, akpm@linux-foundation.org, vgoyal@redhat.com, dyoung@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, patches@amperecomputing.com References: <20231127020727.25296-1-shijie@os.amperecomputing.com> <33021b87-4c6a-45fc-a6ae-265765cfcd78@amperemail.onmicrosoft.com> From: Shijie Huang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: CH2PR16CA0025.namprd16.prod.outlook.com (2603:10b6:610:50::35) To PH0PR01MB7975.prod.exchangelabs.com (2603:10b6:510:26d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB7975:EE_|BY3PR01MB6641:EE_ X-MS-Office365-Filtering-Correlation-Id: 22b1b539-dd3c-44d0-287c-08dbefc29e9e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lGGRMQ9BSLhlwT8CTnxr95bBhHd/oJb850guMQ2SgQYFuORAXbrFbIjb5B4gpIGg210hfffWL42xRUhIjowTecBJjhxz9hYMrazPllJaR4OVlyTqj24g/vEfWx7gO9QIlRzSdQKy4k7cQ8VbwE8VuKrbl2mBOpg2Q6Krs/Ou0wUKq3VJMxkee+p8TKtib+siR2jAxVCmO0A8dCCjZqasDIfzV6jXppOhRCdztwTPmmBzw6NT/C3ewXzczqmpd1w4IAOYYABUlTohNAXFqwIV8HhQGC2Ri/HkmIXDkxxbFLYfGGbLkA5KI46BquJ1r7s/YOrvApjqvGxzjQXAtQhS9o4NEy1q747n2vihbON6lIxIPOHCPo8gVMixvSjB3zahoLLSDWH6ShTGSjl8/Eb6BZWUIpw3EJFC4g6LKRQXfOBYXhC6KlowLXdFBqenVw2uvp+g26DkBu8XTzHktSYYE73JV6hcHD1/HPFAgSrAyY7ebJZUVgyVhqTBqHSbZwC+PmHNv+ZDrGcVZ/YEQnAaLbt4WXUrjJHW3K4+vMqD5HHKNFBaLDLBED82Y4yT7+hV6lEpYr6YZd4Z7+oetYjHRxKZ8bfh+7of5DQjrskpkmk6e4ZQ928pwtdb5HxlMQ99 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB7975.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(39850400004)(366004)(396003)(346002)(136003)(376002)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(6916009)(38100700002)(42882007)(31696002)(83170400001)(66556008)(66476007)(8676002)(8936002)(4326008)(5660300002)(2906002)(6512007)(31686004)(107886003)(41300700001)(66946007)(6506007)(2616005)(316002)(478600001)(26005)(6486002)(6666004)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T3VmcVQwMlBsdDVldGJZTUhFZERDT3R2aU4xSTZYK1VPRVgwSC81OXRwOTFl?= =?utf-8?B?NXhBaGp3Tjd3RlNUaXd2MlpPUTlObHNaSEx0VGR3cWlqWU9SakNkRjZYZEt4?= =?utf-8?B?RkZyQkhaU1pxaW0wWU5hQlJ2WjZISTlpK1diY09JcUJVTlRoTlA0SlBmb1Zn?= =?utf-8?B?SHhYTy8ya0FVWDM5b1hmVDgvcjZJWVZOb2hYR0pTb1ozTjgyYUdIaGVOMVdR?= =?utf-8?B?ZEl6QTNZT3drMXd6dCtNNVhUNmFWVXc3d1QycEVTMXBqWW1tSnMwUVhYMXVp?= =?utf-8?B?R0JhY2dYY2RnWHhOS1EzWEdhdHlxb1crak9oVURjSXk3UGJtUXZMQTdGU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VkZTAwWFZmbUly?= =?utf-8?B?SVE9PQ==?= X-OriginatorOrg: amperemail.onmicrosoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22b1b539-dd3c-44d0-287c-08dbefc29e9e X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB7975.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 03:32:17.0066 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l4zsEAGED2WSBkuKXo+YjBysRV0jvNfkDvcakTfQDCQWNlUaTERsL8shR10LkqUYDWe/h6/jwb9HNP+oUmZgDj+mEZoY73aLNGJWbl4Z+8ZwRF1sh/nNd/a25/NU7L92 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY3PR01MB6641 X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 19:32:36 -0800 (PST) 在 2023/11/28 11:25, Baoquan He 写道: > On 11/27/23 at 11:18am, Shijie Huang wrote: >> 在 2023/11/27 10:51, Baoquan He 写道: >>> Hi, >>> >>> On 11/27/23 at 10:07am, Huang Shijie wrote: >>>> In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, >>>> kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, >>>> and kernel will not use the "classic sparse" to do the >>>> __pfn_to_page/page_to_pfn. >>>> >>>> So export the vmemmap when CONFIG_SPARSEMEM_VMEMMAP is configed. >>>> This makes the user applications (crash, etc) get faster >>>> pfn_to_page/page_to_pfn operations too. >>> Are there Crash or makedupfile patches posted yet to make use of this? >> I have patches for Crash to use the 'vmemmap', but after this patch is >> merged, I will send it out. >> >> (I think Kazu will not merge a crash patch which depends on a kernel patch >> which is not merged.) > Maybe post these userspace patches too so that Kazu can evaluat if those > improvement is necessary? No problem.  I will send out them later. Thanks Huang Shijie