Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5895653iog; Thu, 23 Jun 2022 07:26:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ultpzN27rc6BnULDbSGd7yH+6E9iHLioEpjwh1GaBIxgvPijgo7dQiux9liYyHv+nreO26 X-Received: by 2002:a05:6402:298b:b0:435:20fd:d65d with SMTP id eq11-20020a056402298b00b0043520fdd65dmr11324539edb.190.1655994386005; Thu, 23 Jun 2022 07:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655994385; cv=none; d=google.com; s=arc-20160816; b=hb+AQZEWZRg90TsY0uFGJwhYoEamihv6pYp9HktfcSr+fLUjp3tC48ck+5LHXQu9lE SN700toXgKdVyZowK8IETyJnx9URA45KNLvmKP3+4cuyxsz2vzpkmB8JiDPn5l55uab+ b6td/F9iUoFRqUML+w5TRiuJkR454gmo7kkqUQ/d3N/ryntmZKVFiFZrfvOJ1hSpnnVq LqIjg9khFLAEJMfPyCDdY9k9nMe3m+iEFMddi5b0dDmWeD3vTljZAYHOhsm8ZfJ+G2mJ eVEKSbY9lMMrLwIifF5xzgdYeAM6CiPWnzcNEys6QNbdotcPA3Dv/Lgj0zKLw9b/ks+E R19Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lbMwkWKOrcLq9KmzYq9ynCQng8eb0OlrzSGYSeAxt5M=; b=w7OWo/S7h5gMfPlELo5i3fgmGzV2J3LaP965GGAn+dJRKqNxI1FRjDrB0Th8WV8an6 j1bBqHKpm+RyXVgxT+K3dbKHq88jD9dqFRbCmxHc3F5RFZw0IzSfY34S9H8FBLzv7U4B Cd307P8t4uRFx+BynKc5jEeDfFuj0x2GS347KAgMpTr3YhtcffCbOok+uB/PTAsCKusU Mw3zFg2uFLvIPaClOFmlQDCke6brP47mWXo49fLzQ5cT7K0CZkvIudoYI/W0bNjGaR6Y 2f8Gdf2TAkysvelcouVHKvh14pST1XJFC3FtffNZ2g2L/rxPU7ImTdxMKImT5JoT9CzY iclw== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020aa7d415000000b00435657d64a0si3426927edq.438.2022.06.23.07.26.00; Thu, 23 Jun 2022 07:26:25 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231825AbiFWOIK (ORCPT + 99 others); Thu, 23 Jun 2022 10:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231454AbiFWOII (ORCPT ); Thu, 23 Jun 2022 10:08:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21CF63EB8F; Thu, 23 Jun 2022 07:08:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E2E28B823D8; Thu, 23 Jun 2022 14:08:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C72C1C3411B; Thu, 23 Jun 2022 14:07:59 +0000 (UTC) Date: Thu, 23 Jun 2022 15:07:56 +0100 From: Catalin Marinas To: Baoquan He Cc: Kefeng Wang , Zhen Lei , Ard Biesheuvel , Mark Rutland , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Eric Biederman , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, Dave Young , Vivek Goyal , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , linux-arm-kernel@lists.infradead.org, Jonathan Corbet , linux-doc@vger.kernel.org, Randy Dunlap , Feng Zhou , Chen Zhou , John Donnelly , Dave Kleikamp , liushixin Subject: Re: [PATCH 5/5] arm64: kdump: Don't defer the reservation of crash high memory Message-ID: References: <20220613080932.663-1-thunder.leizhen@huawei.com> <20220613080932.663-6-thunder.leizhen@huawei.com> <3f66323d-f371-b931-65fb-edfae0f01c88@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 Wed, Jun 22, 2022 at 04:35:16PM +0800, Baoquan He wrote: > On 06/21/22 at 07:04pm, Catalin Marinas wrote: > > The problem with splitting is that you can end up with two entries in > > the TLB for the same VA->PA mapping (e.g. one for a 4KB page and another > > for a 2MB block). In the lucky case, the CPU will trigger a TLB conflict > > abort (but can be worse like loss of coherency). > > Thanks for this explanation. Is this a drawback of arm64 design? X86 > code do the same thing w/o issue, is there way to overcome this on > arm64 from hardware or software side? It is a drawback of the arm64 implementations. Having multiple TLB entries for the same VA would need additional logic in hardware to detect, so the microarchitects have pushed back. In ARMv8.4, some balanced was reached with FEAT_BBM so that the only visible side-effect is a potential TLB conflict abort that could be resolved by software. > I ever got a arm64 server with huge memory, w or w/o crashkernel setting > have different bootup time. And the more often TLB miss and flush will > cause performance cost. It is really a pity if we have very powerful > arm64 cpu and system capacity, but bottlenecked by this drawback. Is it only the boot time affected or the runtime performance as well? -- Catalin