Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3408308rwb; Sun, 9 Oct 2022 04:48:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kZ8loRaqp0900NBSYKQyDTh5nK5pu6SSvtGycapSEu+OyhzUl79OFH49ch9/10YvmQPdS X-Received: by 2002:a05:6402:1911:b0:45a:37b0:f2d with SMTP id e17-20020a056402191100b0045a37b00f2dmr9839097edz.16.1665316093977; Sun, 09 Oct 2022 04:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665316093; cv=none; d=google.com; s=arc-20160816; b=ACLpE7lCMlayy3+ftysruXKbk1QniMHI5kDh9ISo+HkxNXWzbNafm5xdBySbkQEYN4 wEk8yT1Wk5rMYGJjMnm5cujljnj+zjX+zqp7bXyxPlCZywvvE/1yP/C1TMpj7HwvvOPm 5FaEomHcZusPgvZbX42DIQcsyOh25mwlpBd/o46MqgsjA3dh7OtT26Lxe4BCEFpte9b7 hJsVj/o2fUUJLs5WqJMKVpncEL88SxbzK6wfnHzD+du06rVdcfatTu3e3LCYJlyC3XBF E2Mpyco/VyfJKZNgu1L/6HwCzzwv6MNGbB1O8fd2du1Xw1Kzrmn9zl0Tid3KI3C7oeGI Aylw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=TAg4xyrxmjOcKMyICf/nOFdjrfjMXlDkZUJEgZFVqPE=; b=foVdyZ1gL0A3fLKNKxeXocjZYf+S+IXu+ydEpu9AcLMRqDiCJDWCGSVruWnblSm/8P rhYCOAPCu08tNwZIsP9HFL3B3JsIlSeZIzRhmr4cZMRNwaM8iDb6oBVeSWUj20Fe9+iF 75SVGc3sMJCL+rTByCpmZXGJUKNBavebahOl7lgJKMQzThxmSR+CU75Zdl4zNIGPHhfo WcEirLn1UYpg+Yg19gkxfGf+ATxIAcw/f+rYy50Ux22xYADOwFgrSIJQP3PxEROOwQXh 98C8mNpIdQv+ck+N9DGt6Uz/mi5DJMkylMzh1oyX14EgYeezOFzN1sV1pHaitWUoraZq 9Blg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Sd1p8jg6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs19-20020a170906dc9300b00732fcbcfedesi8290808ejc.623.2022.10.09.04.47.49; Sun, 09 Oct 2022 04:48:13 -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; dkim=pass header.i=@xry111.site header.s=default header.b=Sd1p8jg6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbiJIKhf (ORCPT + 99 others); Sun, 9 Oct 2022 06:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiJIKhe (ORCPT ); Sun, 9 Oct 2022 06:37:34 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA9EB36 for ; Sun, 9 Oct 2022 03:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1665311851; bh=J54On5AUhcm4ClBxiTcpnPQn1WKK6Rp1zpMkD36rdaU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Sd1p8jg6QFSVuFZ44YwupxEOOZ02rhipzEXlOZDyx3ZaKSjhiWn8TjJSfQtN902vk z6YpjdIGDxd/H1WMblzbIfT7qa9tdAsRb1xJN/K0zHiR3HsTfVRpvgKv3vIdmwelO3 Z3mqkTztUDiOCylqnajFBFWxV7w3rzhAeBd8dqwI= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 139206680B; Sun, 9 Oct 2022 06:37:29 -0400 (EDT) Message-ID: <19415767029b479a508378abaf8c6c5a1d048add.camel@xry111.site> Subject: Re: [PATCH] LoongArch: mm: Refactor TLB handlers From: Xi Ruoyao To: Huacai Chen , Rui Wang Cc: loongarch@lists.linux.dev, WANG Xuerui , linux-kernel@vger.kernel.org Date: Sun, 09 Oct 2022 18:37:28 +0800 In-Reply-To: References: <20221004140230.748788-1-wangrui@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD 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 Sun, 2022-10-09 at 14:13 +0800, Huacai Chen wrote: > Queued for loongarch-next, thanks. > And fixes the concurrent modification issue of fast path for huge > pages. > This issue will occur in the following steps: >=20 > CPU-1 (In TLB exception) CPU-2 (In THP) > 1: Load PMD entry (HUGE=3D1) > 2: Goto huge path > 3: Store PMD entry (HUGE=3D0) > 4: Reload PMD entry (HUGE=3D0) > 5: Fill TLB entry (PA is incorrect) Is this issue causing problems in practice? If true should we pick this for loongarch-fixes and backport into 5.19 & 6.0 too? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University