Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3082373rwi; Fri, 28 Oct 2022 15:43:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Je2FcUrtFGJBlfnDGRoimfnCwCeSG8E89bIxjvMcHHZ49xoF1DlyNI/hhiNequQPbkpVW X-Received: by 2002:aa7:d744:0:b0:45c:e353:e891 with SMTP id a4-20020aa7d744000000b0045ce353e891mr1684509eds.36.1666997031941; Fri, 28 Oct 2022 15:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666997031; cv=none; d=google.com; s=arc-20160816; b=NxjA69aSUfxfG3dOLvY0nL4J5X8A5mw7Me7FojLVlLp2OGAq4KULjG63gOf5XJ6dgQ ZqYAn3SrkV2gADA4g7OkjUKjy6Ibam72/wCVzYYyiRjCCh2e5HJ9XCFFrNZqw+VwceDS 3Ls1mhNzOyUMcythn/E4xvvx9BJQoRR38jqBN34LzcdvmapTfB5qRAj988bxQhwG8nW5 MhFI8+s+gs8KuaJ2hAwP7EHl86qojurKhrBLY57xoVWhhe2ek3cZcE5MM20q4xJS4mkg kBlp6Vm7rbsKqcj6lIkOC4QVRGRHbiCO0+tgWsg9ypuPuW1K8LNsKxjmumevlZ25p5L0 ulxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:date:message-id:subject:references:in-reply-to :dkim-signature; bh=96klAYK4L8VEW80FVp8o5wKDkKqz0+lk+6pkw6OjoQg=; b=k6HGtIx5YV8VYK6oaSc7f2IpSxXvoXtbTshn1jGbHofB45YlgKqAHdBD18Ozkn4v9O Y0s1dQPW4XrcC+pV9gCiSXg3icUOfWBiaM9ThgDcXCpd4o1vBdv+bHujYiRdw6Gyx68/ qrUAwCSt1gN8FKA3fapU7ec+Ii5OJsxm+HFRLrQbvoq2staNJPbeF98y+JI8tmG2RVkQ UvatUdftNEmkW3/iMiXYSrNtLdHfADMM/MsxPETE2xpUXJhniRhkzi01TLahqmYtCdpi ibax/DYDMzGW50qMYEaDfFBvQWYZYyVG/mwTss5GGEFXptGD5af0bXCASdI2qLMIaOXj FF4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ccsxS6Qd; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a1709064fc600b00732fa9d3df0si6283644ejw.795.2022.10.28.15.43.26; Fri, 28 Oct 2022 15:43:51 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ccsxS6Qd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbiJ1WX3 (ORCPT + 99 others); Fri, 28 Oct 2022 18:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJ1WX1 (ORCPT ); Fri, 28 Oct 2022 18:23:27 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AA424C115 for ; Fri, 28 Oct 2022 15:23:24 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id b11so5803728pjp.2 for ; Fri, 28 Oct 2022 15:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=96klAYK4L8VEW80FVp8o5wKDkKqz0+lk+6pkw6OjoQg=; b=ccsxS6QdpCQpwhqNvcwYJAR1mDDSkq70idXCUyZO2Wir6nUHAmexSdcHETJ3EB5nuE ODsLCIR02AIieFRK77tygtI0kSzdDCMT8cSoROH3eoUVB5zpOc/6mdz09qfktv/jjZOW FSdSDKxOsCPqHs8n7ruTtKsOfBo2qAs6y9cZ0ECUskSwV+LzJnjqx/898J8B+BKzpwis qWhuDvYiCRJNtfHLq5c3ZFHvBc6nUrDNsTfajC/i/xNaUNMKQgiC1rQNYXSjOqyBm6T/ 8RBytLABDk+8GhK0z7i8sYcgZbjaajGs2GUTltzl4dKlXHh+LL5StwnZlsMnerko7X/e SRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=96klAYK4L8VEW80FVp8o5wKDkKqz0+lk+6pkw6OjoQg=; b=Qb3/M+IpnFhSR0PCGDTnsQaKNpCQJhCkWmPTktYvkd+JDZ2U5JryqCONeHvkWZtmP6 BsPj4dtQ/sgYk0r7USjFB7Ke05kgq4489JWUe2PHelQoYWS+uFgDPqKhJFIBKn3Ed4MS 2p2WMNqsqyXT5E+1uH4y6Hoq0J8u5KXuKlpyca7YT/5RREOeo/tpR8GOmtwIeDiywCck petPIzrXFI4EU4pN4ilUxv0zNxEOeljUBYtN/zvyRhCXwvERIi7XI0vpZCG/BpCQrYiV PmrpUWWscaYeImM4WMOkK0WQYAJm6LY5Bj/9LfNkHtYDtp+VRmo35LewQN6zyGbIUM3T MMsQ== X-Gm-Message-State: ACrzQf0JrdbZ36DviGiP2o/cPM3RIsTPEfOkl2ZnRCh1rPU3y9b7E6rE 9yDLYCV7Ilj90UIo1HmbvXANXw== X-Received: by 2002:a17:902:e944:b0:179:dee4:f115 with SMTP id b4-20020a170902e94400b00179dee4f115mr1240644pll.141.1666995804162; Fri, 28 Oct 2022 15:23:24 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id q10-20020a170903204a00b00176e6f553efsm3482022pla.84.2022.10.28.15.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 15:23:23 -0700 (PDT) In-Reply-To: <20221009134503.18783-1-tjytimi@163.com> References: <20221009134503.18783-1-tjytimi@163.com> Subject: Re: [PATCH v3] riscv: support update_mmu_tlb() Message-Id: <166699579458.30369.3811976740296212930.b4-ty@rivosinc.com> Date: Fri, 28 Oct 2022 15:23:14 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-36ce3 Cc: falcon@tinylab.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: guoren@kernel.org, akpm@linux-foundation.org, alexandre.ghiti@canonical.com, anup@brainfault.org, Jinyu Tang , Palmer Dabbelt , Conor Dooley , tongtiangen@huawei.com, ajones@ventanamicro.com, Paul Walmsley , aou@eecs.berkeley.edu, panqinglin2020@iscas.ac.cn, maobibo@loongson.cn X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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, 9 Oct 2022 21:45:03 +0800, Jinyu Tang wrote: > Add macro definition to support update_mmu_tlb() for riscv, > this function is from commit:7df676974359 ("mm/memory.c:Update > local TLB if PTE entry exists"). > > update_mmu_tlb() is used when a thread notice that other cpu thread > has handled the fault and changed the PTE. For MIPS, it's worth to > do that,this cpu thread will trap in tlb fault again otherwise. > > [...] Applied, thanks! [1/1] riscv: support update_mmu_tlb() https://git.kernel.org/palmer/c/1b52861f0e04 Best regards, -- Palmer Dabbelt