Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3211487pxj; Mon, 24 May 2021 01:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysDAwQaxsDmZvUqEVtgErKEvQzb0FuKW52FutCMuQ+nnvAR8ragvWl1zI0MmclHUMSdz3/ X-Received: by 2002:a92:6b05:: with SMTP id g5mr14456835ilc.40.1621843462960; Mon, 24 May 2021 01:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621843462; cv=none; d=google.com; s=arc-20160816; b=Wbbn86YVait+Evd9j2LKhGCny/arHvH2FEoTWJH/ukGvIAHTPOX5+js9sAUDtwa/zb VZt8Xw8u6saYoSLddlDSZojpjl70wrx8Ln8/4s9NrDR1qA8CQ4r0oz0E9WHlZ74n+6v+ eAFGRBMtdujojk5tbCkkxzH4YKPPq/PIfoX7iO1+esbV67JpvqHIOgAJVZsQYmIQivLs 3YeP/tP3ezrW73fadAKctjgJYGlaN7hpsrLJjDOjkolBErP6vaUuLH09cTi5IWh5sLFo zBTss8PdaaeGnH3JFm5bixm9rPoC4PJi7r9dJegFoujnKkAoDB537cXtb4nGAA4GKfKl BHVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l+lXZOkJT9ztp2JCl1bPRf8G039aIWHo+Vabd2KIAvY=; b=cjL9q6gJpf0Ja0sxgbc3OxK0CtaMIv2WAyKqFugnV+reXhrT1nPVG13TP802wTSVj/ U/sxaXAlscgKIRAKAN9rkz5ijC9s5UfybJSOzg+8DbjpW9s9xR5EprnlOrn5D9Bt2pj4 Y2I/wIHQE9ALfhY5o6fwM+S38iRIE+56YjKPmjk+j57kOpQ0ow9uaQ22V+ZCW2I4GKZx Aj2D5tHyMLvVoZtX8Wtvdee32Aa08pGN9veSYaDWY2WbvUJh/5vbMZFvxyhto5lXAiEj M0gwcqsE2D4GLNHnS5mFgWMJucBS7ei9zm5N0+RhiJvZdXCaOPqIq6I2fzHX2hbaBoNG KTcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=hE15bhqp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si14116105ios.29.2021.05.24.01.04.10; Mon, 24 May 2021 01:04:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=hE15bhqp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232099AbhEXIEv (ORCPT + 99 others); Mon, 24 May 2021 04:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbhEXIEu (ORCPT ); Mon, 24 May 2021 04:04:50 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370CFC061756 for ; Mon, 24 May 2021 01:03:22 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso10906058wmh.4 for ; Mon, 24 May 2021 01:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l+lXZOkJT9ztp2JCl1bPRf8G039aIWHo+Vabd2KIAvY=; b=hE15bhqpuXbPdzqAazrfGMf6jpdb7Plfzzuf8Tg3BA6zCx8evuNi5OahN0lBSi6jy0 gmL2pDkRxR+V6YGQV9V5IG0mTSsDV2iuox0/5/1IQawdULfqWvOg6DWh4BJg4fEGeK2E J2AQpGvMaXThT16y4SiEJuhqSbiUyYR3D+56Ik012/2/YQXTxBpjo/ebQAUY/pqFLjxY BcdjFYg6YKXxY2YcIZEYYwL+gRPsD5CEaNAlKZvfXvlhshNwe8bLJc/Nr73JUMDjdOQK ParA5bj6PXKxhEZ0fHTy1lfN+l7xXY9cQCLdHYnZ95OIjte1+fWjOUXB5M0A8iL1NkqS qU8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l+lXZOkJT9ztp2JCl1bPRf8G039aIWHo+Vabd2KIAvY=; b=bh0GA/ohPmZVRifVS7n9ozDK0wDWLGOTMDuEtSFrYygfa0/BHU3B7pxanw2O2Vi6TK FrDhKYPNcJquAauw8iDLjptpsRO7Fe5piedcT5udGKWK7cj4g05bt42qx0Fgoe30b+Tz +bQHPrmKLnKVLVclKE6dv0JfQig4VLRrogcuAXoEkq3pxH/O1+EKRKnoME8FhCIoXEar 8CLOF2g3qLhOS9Crq++s0zizN/5AwELwiWscFvD19nwIo/AlEZZmg6LzE/A8LU93evKd 1xdu2fIiGJh5lsMq6enX1yNeuH+I79bOsg/G3n+cdGxRNOLk3XZvfBtZABpsCVwMvXJc fCXQ== X-Gm-Message-State: AOAM532NKyYllyrReslKVU/mwAi50Jpl4dHgHulhhNSnmU+jMTX3eqq6 9vLxTzurM6X1FG1x4SRE3NI+pgE9nDpbf8mw6zjgMScCQuGBmw== X-Received: by 2002:a05:600c:b44:: with SMTP id k4mr19148969wmr.152.1621843400672; Mon, 24 May 2021 01:03:20 -0700 (PDT) MIME-Version: 1.0 References: <1621839068-31738-1-git-send-email-guoren@kernel.org> In-Reply-To: <1621839068-31738-1-git-send-email-guoren@kernel.org> From: Anup Patel Date: Mon, 24 May 2021 13:33:08 +0530 Message-ID: Subject: Re: [PATCH 1/3] riscv: Fixup _PAGE_GLOBAL in _PAGE_KERNEL To: Guo Ren Cc: Anup Patel , Palmer Dabbelt , Arnd Bergmann , linux-riscv , "linux-kernel@vger.kernel.org List" , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 12:22 PM wrote: > > From: Guo Ren > > Kernel virtual address translation should avoid care asid or it'll > cause more TLB-miss and TLB-refill. Because the current asid in satp > belongs to the current process, but the target kernel va TLB entry's > asid still belongs to the previous process. > > Signed-off-by: Guo Ren > Cc: Anup Patel > Cc: Palmer Dabbelt First of all thanks for doing this series, I had similar changes in mind as follow-up to the ASID allocator. I went through all three patches and at least I don't see any obvious issue but I think we should try testing it more on a few existing platforms. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/include/asm/pgtable.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h > index 78f2323..017da15 100644 > --- a/arch/riscv/include/asm/pgtable.h > +++ b/arch/riscv/include/asm/pgtable.h > @@ -135,6 +135,7 @@ > | _PAGE_PRESENT \ > | _PAGE_ACCESSED \ > | _PAGE_DIRTY \ > + | _PAGE_GLOBAL \ > | _PAGE_CACHE) > > #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) > -- > 2.7.4 >