Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3525506iog; Mon, 27 Jun 2022 18:55:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sjd3MJdAFmIT4Sx0ANNSz6fREcKqbMpvYX9xk7rLTEKVQC11v81dPtVmki4ECDn20BDIgk X-Received: by 2002:a05:6a00:1683:b0:4f7:e497:6a55 with SMTP id k3-20020a056a00168300b004f7e4976a55mr2129723pfc.21.1656381342642; Mon, 27 Jun 2022 18:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656381342; cv=none; d=google.com; s=arc-20160816; b=l6XTrNjFPv0Jlr/snQ4bcd6wowhv9urgFE5A6iZ+dQTJNhj/HG6Lxeyk4cBaKKEDyw 574Ouu6v385lN8cs+uDNbtiYkjGCqSl63IkbnJN12ivec/kHv7eXioSVhPOf4yOOH3t8 r0LHsI7OH2OWju7MxjkuAta7NVJFOBhYro9RT163YMiycIX+mL3zLkUTBN7NwVL39ke8 3qAlMTl+K3lZs5zQvnA7vaC3KJBK3XZNxwjmrycy+DIj+v6TYs+lvJRbqyOcPUgoBjSt pmY9807yAySzpd+vv5Dc3Sm94BWGZbvdlOE+68gRaZd088/w0SZ0xxjflJBF7NXDsBfg PMaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=shGc2qORZ0Dk04Lef5O7JhKtoZqdOHPiEYfOtCSJDGg=; b=cepEwES7CJ8evhox/lEER/n/NxNVvi/+tr6xsPL0X9HHht3AfjRyu4ASDlzQKpv4s6 inNDFXJfOKdPCe2aq3QWxNXv6MuODVRjKRgHCltd3n9XnkkAtLdUctvUUhKfcldeh8w/ mZ3iN/v/IQfz3Jb9Yhm5aGxo7M9fJwOfXGVbOZXGWNytch1oF1HWezDj+KalC7YPWAfK H6oMwY9jAP5DlccHFKFEmBYx/EtV86XjvmhyOD096AquL8gBPYwABp4ZaXAoPobFByFr ypTPzOLN7fwmgC7lHk/ShZYQcXXQiTVXi58ULkWotIEllQWjEEQuRZlJpEMviu8zxO3Z KYeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l73-20020a63914c000000b003fca01bf92esi16180195pge.482.2022.06.27.18.55.30; Mon, 27 Jun 2022 18:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243151AbiF1Bkl (ORCPT + 99 others); Mon, 27 Jun 2022 21:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbiF1Bkj (ORCPT ); Mon, 27 Jun 2022 21:40:39 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FBD81CB3F for ; Mon, 27 Jun 2022 18:40:38 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LX6dv4rtLzShLw; Tue, 28 Jun 2022 09:37:07 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 09:40:34 +0800 Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 28 Jun 2022 09:40:33 +0800 Subject: Re: [PATCH] arm64: mm: fix linear mapping mem access performace degradation To: Guanghui Feng , , , , , , , , , , , , , , , , , , , References: <1656241815-28494-1-git-send-email-guanghuifeng@linux.alibaba.com> From: "Leizhen (ThunderTown)" Message-ID: Date: Tue, 28 Jun 2022 09:40:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1656241815-28494-1-git-send-email-guanghuifeng@linux.alibaba.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022/6/26 19:10, Guanghui Feng wrote: > +void __init mapping_crashkernel(void) > +{ > + if (can_set_direct_map() || IS_ENABLED(CONFIG_KFENCE)) > + return; > + > + if (!crash_mem_map || !crashk_res.end) > + return; All the code related to crash_mem_map can be removed now. > + > + map_crashkernel(swapper_pg_dir, crashk_res.start, > + crashk_res.end + 1, PAGE_KERNEL, > + NO_BLOCK_MAPPINGS | NO_CONT_MAPPINGS); > +} -- Regards, Zhen Lei