Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3357954pxj; Mon, 24 May 2021 05:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCZCpT/ug0Ay5xq/rm0sAsSK6qZ26Wzh9wiPJa1GYc4kxgviaGVW68vPn4+EogscKpAqVq X-Received: by 2002:a02:9107:: with SMTP id a7mr1107105jag.36.1621857824701; Mon, 24 May 2021 05:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621857824; cv=none; d=google.com; s=arc-20160816; b=zSqTUk2FLaA005ZSLPmdxB5+PTj6WB82D3NT+Tzha7rJ/HPhL+l7tI7kFQjbrAMsAC eWkqxlMEVn+dPMbWjhlRH8rFwb41bEXmznGI/4f1BHFJrpqWYPkTJYDydwao/s9dsHe7 ngbEft2kZ9781+oh/17ScQ65kWVweLRDbKOr/PyV0vFcG0rkI3ozkiZ6wDdBERVRITat fIq1WuVi4oL+wu2pVvedOS4Vo+nAOIZyGdmqymsur8ilnXW+J551gRUajfGIz1ckSM9h k50s3q3zZjjjHwN+dZNeVQh32aytQbYvDR4wMp4Lyh5FhfYoOM5Filalnq/x4BmkpAF0 sZWw== 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=j2IbsHWP/g8Bz9Zs6LSR+TZygyDFHdm9tEVzh1bcVRs=; b=ntverFnaJKnwjbv9ZCbyGg1GNhx/TKb+1EoTl3B5J78cLczuCHplWiALmbokiZ0CpQ dtZEu3SMZ8tGUcxzLdEpOk0ruToGRBJopGv+nvvyvVKgXTvsFqOMAG/LuUHnRA0Wm53K G/6SyFGzZkRDELJcs5o7b22x8l3/Dq3a/8G1VMv31NSQO5hWdu/Vgjhcg0OztaFsrX2Z JJ6c09wIok2HiyQVXCRfzvyf1j8meSb8g18IJqbScgAqX98BbFhsnoeE9FoncyOxJG2B AgNllAWPAt7lOJ7KAWu7KwJTt9eN8qQjJlB68TnN+Ef8gxgv/O8KLtdTYlDHKDet5+nZ oqtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nD8gwroa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si5629279ilg.2.2021.05.24.05.03.31; Mon, 24 May 2021 05:03:44 -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=@kernel.org header.s=k20201202 header.b=nD8gwroa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbhEXMDQ (ORCPT + 99 others); Mon, 24 May 2021 08:03:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:49304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232844AbhEXMC7 (ORCPT ); Mon, 24 May 2021 08:02:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3F0B2613CB; Mon, 24 May 2021 12:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621857691; bh=veNGvYxcLl+vDYUz1SMH3CGwccZ8IWRdI0wIqqjpXHk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nD8gwroafsuYGdv9NfLO0Co93IMx/me0F4AAZKDIR4kw849gUWF0ueVG7PLAVzHEq zul3q6dM9dUQ93Urx1vFQceK7M3j6tH6+N6bMr98eBb6rMOndl+c7Dh5hf88g4yblk Q5d5dTF1w8GnDEklR70EJBmKE80ZA49d2FyeYOOZnUgJP/MgVzoJqSp6l++emo3Ftd 9urpVUBIYqyaSzEQ/+/5T0kOmIi9Iou86kq+VsyhNwQUtA+/dXmVzzDRg00f623Ypk tTvCTu/v3jHt7kYXvnz1aukazjAxtGZKYMA0znBQasdoA5LvhqXEAyQ46zx9ASMX16 8hVMtlTLi1iDw== Received: by mail-lf1-f49.google.com with SMTP id j6so37622316lfr.11; Mon, 24 May 2021 05:01:31 -0700 (PDT) X-Gm-Message-State: AOAM530XLJhleg5ZWgnLUQDgHO9JppiqL4aeCAzZs24gyN32px9Vgo4y JDM+mt/nZVlHJX0wLtz/Q6hJP5CuYygOBXDFtWs= X-Received: by 2002:a05:6512:36c5:: with SMTP id e5mr10330380lfs.41.1621857689496; Mon, 24 May 2021 05:01:29 -0700 (PDT) MIME-Version: 1.0 References: <1621839068-31738-1-git-send-email-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Mon, 24 May 2021 20:01:18 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] riscv: Fixup _PAGE_GLOBAL in _PAGE_KERNEL To: Anup Patel 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 6:42 PM Anup Patel wrote: > > 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. Yes, it based on DMA_COHERENT. I'll rebase in PATCH V2, thx. > > Regards, > Anup > > > > > #define PAGE_KERNEL __pgprot(_PAGE_KERNEL) > > -- > > 2.7.4 > > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/