Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3305484pxj; Mon, 24 May 2021 03:44:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAYXYn9pu/zVwFbIkHEV4q09QWW59IWG0RQHtB2B+2tlEF506vTC8s4ncCFNmozOoTBeIb X-Received: by 2002:a50:eb89:: with SMTP id y9mr25364951edr.257.1621853049177; Mon, 24 May 2021 03:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621853049; cv=none; d=google.com; s=arc-20160816; b=m7exEw/DLBWF6wwboWBssIeXvaIV7bHOkcH2ooHTp82NlSn7gAV7l1DcqhS0u3gMb8 vgGr45pqM2j2XliH9F7Ai6Nb/urZhRhqcCgPsBiFRWmO7g2fwQnRlU7yvX8ivfo2iXtd eNdPwusHGKjLWvnWtO8SjXwFhsHbJj4ucpevp6bRlJtwwS/3FcRaYrVeFY+Nrl/XQPUG TghSATmJ4vvu8fm6II3thSuCL/epe+hPmUur1dD9WXOR3QKijWoDU/KYQkQX+Wojr+Vk uJAKdQjiG2tfkpbPISrQzT2xpMUsJ31tNAa0whmPnZqLSP7KuhXcV+8sQTMOcCcPsHhM B4eA== 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=/eUOrn9lE2HWE5uWnHqSiVPbmorQyM5RkNMwB1g8oIs=; b=0HbGzX9n5Us/Yv7b2ayMmHpwlyuvHaC3F3QtocaOnccB0+pi7zA8hrZPU6CUffOWQr NltBc4lCcnHE+sZ31/V9H5/acJ2O9zUuBrvYoPqmXcz8+AcnLIRNPTZYXGX/RPD8F7A7 yoNB21SXuDfIvvk4S3RCCWwAWZo+R3JOsLwUK6LSm5rz09wJevpe6/9ukRoBsTPXERfv T2VnPsFbeB9EKL3Woud91y+GSdmLdH1W5ng7c7SI0Fxk3bErxf9JNjHxyIJdvvuc3eq4 nXZOs/0zEDL+s+avoehgU2RbkY9GxuZzOwKE9ML2tnHCTjLOEo6WY4P/RAMd/BiHxWDk CTdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=0yAdh939; 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 b10si6822627ejq.460.2021.05.24.03.43.46; Mon, 24 May 2021 03:44:09 -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=0yAdh939; 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 S232547AbhEXKoQ (ORCPT + 99 others); Mon, 24 May 2021 06:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232548AbhEXKoI (ORCPT ); Mon, 24 May 2021 06:44:08 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA0B3C061756 for ; Mon, 24 May 2021 03:42:39 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id y14so25941990wrm.13 for ; Mon, 24 May 2021 03:42:39 -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=/eUOrn9lE2HWE5uWnHqSiVPbmorQyM5RkNMwB1g8oIs=; b=0yAdh939lZC+DNZj9zX08KI/2bh/2h7zmkHMSnczbPROY1mBpcwAmg0BQPTddC33YH 4poJ7dKhhKT4R4TGNXdtorC9bI2PVGH3oXRIPpAS/DKiuIxy/TzYsazkdd3Qpzv1SG/2 r9YwVzaeFmSJAJ3aqiEVi9Ry0XwMT4iGOOiqcC9zemBuKsWaAgalXyA5WRQrcMbcdMoY sOdd9GnmW7iWCEJydL+7x3rrUSV+8pYIOL2gETTo15dqXQtU/3MvCuijaryNcvW2d3fA DRH8il9kC3BqiomKign1XqgPFDcyL8bPJvmkWu1ndPqOrDtLgeCriIec0SZ8emwQGmU5 IH+g== 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=/eUOrn9lE2HWE5uWnHqSiVPbmorQyM5RkNMwB1g8oIs=; b=FpFxku5p/oEo1g2ew3ZwNiqSVDCOFHaaK1rHmVbF+ya/X17FtbyR66PtBgacOkJIX4 ldEJiMfpStr1OnAkIKdfWh3q1ICx36yotwtcIA4NdJIWScmlWxeQDC/GRgtUet96hXpf irHYIPTgl4hVy/7RXruMbcYZHJKlXNS+xy9xbGOpSuddZWzXbJpsGsaJD1mwRtV2pgo0 VZnyzOeYSpBYlViDryuSUQQfYdTDSyAhv7Cv8kouDOqdBtSdJX0wUBo6UkUlONvlP4Zq SJP9mqruk7YOilmcaybg1ZyRYpcTuhseSfCzuJdo/91ssYPwIL12DcCbWbaCy7XXgnVF nmjw== X-Gm-Message-State: AOAM533YThgwFI8Ga/pVMq161LRnJRTIVwa5iOvdpzR5ts/HQ98JSPr0 M2Cu4hDL9Qm7DApw4WS1SEj0sgtBZjGLFePyxYR1gg== X-Received: by 2002:a5d:6701:: with SMTP id o1mr22084731wru.390.1621852958251; Mon, 24 May 2021 03:42:38 -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 16:12:26 +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 > --- > 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) It seems this patch is not based on the upstream kernel. The _PAGE_CACHE seems to be from your other patch series. Please rebase these patches on the latest upstream kernel without dependency on any other patch series. Regards, Anup > > #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) > -- > 2.7.4 >