From patchwork Thu Sep 29 11:23:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 12993931 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8604EC433FE for ; Thu, 29 Sep 2022 11:23:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 105988D0002; Thu, 29 Sep 2022 07:23:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B5158D0001; Thu, 29 Sep 2022 07:23:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EBF9C8D0002; Thu, 29 Sep 2022 07:23:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D83258D0001 for ; Thu, 29 Sep 2022 07:23:31 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9A37FC10B0 for ; Thu, 29 Sep 2022 11:23:31 +0000 (UTC) X-FDA: 79964887422.06.9702730 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by imf06.hostedemail.com (Postfix) with ESMTP id 2500E180003 for ; Thu, 29 Sep 2022 11:23:29 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id a80so1177796pfa.4 for ; Thu, 29 Sep 2022 04:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=r/PBU5z71sX2zMZDTYPxe8Ov6/ObpI5wnc7fTRzYGJI=; b=nlAR3UGxJw8mM7U3ZP49KQZwp09SWSS7FhW6dBf4HidEuZsgQ/Qe95WCto0YTVWbHQ dh1g4q76lhuUSj/AwWyDqQXV1amXnFPSrR+FtGamyDYNbcxTeYHOW/wPfeFmAZ1MmFrL eUJjxWKYo2hCWHd6pATT+pHMHcgk4m6lexrZwqlsM1exSExC9K3yByiAPu2ec8swX0w1 PS8NM1/BOUWB+5JOs8U6LsLtgmjm7F1yxrr4DT11ZB0ZxXv5mAbKHyZMSsGquEUR1XEe YGvDxd/6vct0eSWdw4BlaP0Kji/fn5FoRlFuO/6coi0aq6S5eEmhXvlCNyWb+HdY0xi1 f1Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=r/PBU5z71sX2zMZDTYPxe8Ov6/ObpI5wnc7fTRzYGJI=; b=EI80pm46obH/2PUHm2oiJ48QIYm8rsCaSFBWIxJ+93hh2HOTh7hNZrP1YEcsth1DlW 9pdlGkFwjKHvpMqYbTqvIsCdv7VUsEjpPdolTvjpuOA9/rbze0xmzSLe1noXFljeWvMh 6Lr0rK4BFAIT6Ki+uwLnMRtgR8s1Hu+kM7CJbfrugxLF8tD4QB7sBdEI2cZcPY00rogB CcFBNmrJk3DVYaiUBgfGdGoiD2vW1PM7+FmjvT7VszB33IQJPaZ4GCD/axysG/lITg7o ikWEiBNsY9riStZI2fqaQdXpH+2t4jmskPsSDbNSyR8mbJOOv/bkowvlnUk1BKMuXLGF 12gA== X-Gm-Message-State: ACrzQf0XRETc/vMs2yXmAE5GDZrylWtmiga1aXanFABJdoGVx603B8ex xVux4GjYAX663AcBx3vRoHzsPg== X-Google-Smtp-Source: AMsMyM4RKSiRyMbM0mV2FWs/Ku8dZ2NIcUEldNW0Z34ls1vE3MwhIWVSxdglMPZl2347wi/OIzIbBw== X-Received: by 2002:a63:fc5b:0:b0:43c:3f90:ca07 with SMTP id r27-20020a63fc5b000000b0043c3f90ca07mr2576383pgk.110.1664450608825; Thu, 29 Sep 2022 04:23:28 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.254]) by smtp.gmail.com with ESMTPSA id i8-20020a655b88000000b00434651f9a96sm5225401pgr.15.2022.09.29.04.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 04:23:28 -0700 (PDT) From: Qi Zheng To: akpm@linux-foundation.org, maobibo@loongson.cn, chenhuacai@loongson.cn, songmuchun@bytedance.com, david@redhat.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, loongarch@lists.linux.dev, chris@zankel.net, jcmvbkbc@gmail.com, Qi Zheng Subject: [PATCH v3 0/2] use update_mmu_tlb() on the second thread Date: Thu, 29 Sep 2022 19:23:16 +0800 Message-Id: <20220929112318.32393-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=nlAR3UGx; spf=pass (imf06.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.182 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664450611; a=rsa-sha256; cv=none; b=A2giNLmp2g//XqjUQbWVXp9R7Nz5pbTynhungznvuDOrJjjnkXgNtZAENze1VCGebRe+DL m0Y5ZLsOEofDQO3ihrxw0K4HHkKY07o771TeJ5IjAZox3fkL+9HCrGKrALt1uf0PFr3OGn DzRSftEEjWf8IJFJ0XIR6CgyTlZ8rSc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664450611; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=r/PBU5z71sX2zMZDTYPxe8Ov6/ObpI5wnc7fTRzYGJI=; b=mzglolz2We5XDHB3zjv3L+ZvTryWqQqPBGDZSc0l/TPbmfQJ/9SeI/iFdY1jIxNm1wdhIi BwpoDKY2G79e1jbv9qdNIfuaYVVSuJca7WrqHmO5ZNjN3nTQ22XMAo58B40R7JgPdtZyTn V945/rTOVpAlqKAaxCS9rGFK8/xMiZE= X-Stat-Signature: kzm7ur9fkis4grgokcix7yh6fbrk6ibe X-Rspamd-Queue-Id: 2500E180003 Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=nlAR3UGx; spf=pass (imf06.hostedemail.com: domain of zhengqi.arch@bytedance.com designates 209.85.210.182 as permitted sender) smtp.mailfrom=zhengqi.arch@bytedance.com; dmarc=pass (policy=none) header.from=bytedance.com X-Rspam-User: X-Rspamd-Server: rspam07 X-HE-Tag: 1664450609-322712 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: v1: https://lore.kernel.org/lkml/20220924053239.91661-1-zhengqi.arch@bytedance.com/ v2: https://lore.kernel.org/linux-mm/20220926115621.13849-1-zhengqi.arch@bytedance.com/ Changelog in v2 -> v3: - implement update_mmu_tlb() for LoongArch (suggested by Bibo) Changelog in v1 -> v2: - change the subject and commit message (David) Qi Zheng (2): mm: use update_mmu_tlb() on the second thread LoongArch: update local TLB if PTE entry exists arch/loongarch/include/asm/pgtable.h | 3 +++ mm/memory.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)