Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2854024img; Sun, 24 Mar 2019 21:20:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFDZ6MOcLaSVBFF1+e8svZfR8Q6fh+h+m7gLFea80ogXNnSbWSAqAvMU/E1ny0IgQ7lYa5 X-Received: by 2002:a65:6383:: with SMTP id h3mr20858385pgv.11.1553487609040; Sun, 24 Mar 2019 21:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553487609; cv=none; d=google.com; s=arc-20160816; b=rCxRlZ1IrBv3kdndD1K8vMnxaPS2X5Z8vT+KAt633isP7NhnMH0fZfLJHu89dMMvQv 9/ZgH+4sauKmNpcU9sbDGiTJ7jDU/Q/SCnr5IoOO0fDehwySRMHfkBkqIDzYmrWCMJTm xiPGTuPhALzTcSZnvJfJ26Z8OFL/8rtvgrYl+sE3p483JfoYCNd4ZMQ2BTJ/LcE+AlMm Y/WNkyWKLzcuDjB8qRC0+EkTf/5eZVRfibKt+/FzyNyRdYbJw3WDibbD75yWhXZp881C rTe0zp+Du2vsUvz5VLBA37k6yeoxgz/6DBgZU30xz+tM2vnyTc97XvO8cGytk1lvsVp6 2TBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cmheFdWc1bDfDYTvQE/RQZvBHzMvLSWVjStZrxNss3U=; b=R4UjaqcAfMf1Lvq5iMRfgMiz4QLUvMbcTThFdXq7yDc/z7R+joB5CLv00HOreb/UfQ bW/4V6lICqnHeurHyYaJypvRBqdiSgDSNbir5L6wiHK+HT7ISU5Um6tTFP5VWy9XlHgo MIoOJUrJJmoBiJkO8q1P813qvf8/FsN80QdFF2E/NdkgJBV9uDlNUecnEEmr0s0SkHqD geTFRdySG6nEq/Sy/t8crMff8c8x2GRRgCDQY4zOA8r1tNL/eXUNSbBU/6nMUupQrsjm u2LrEiL+F35yyfImdLXO1dA5OoCCDYVuVBZP92S6lDP0n3OL40xP+ZCgAsGW673pkULO ZOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=oxghoU3B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si12380474pgq.72.2019.03.24.21.19.53; Sun, 24 Mar 2019 21:20:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=oxghoU3B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726197AbfCYERi (ORCPT + 99 others); Mon, 25 Mar 2019 00:17:38 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51083 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfCYERi (ORCPT ); Mon, 25 Mar 2019 00:17:38 -0400 Received: by mail-wm1-f68.google.com with SMTP id z11so7426914wmi.0 for ; Sun, 24 Mar 2019 21:17:36 -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=cmheFdWc1bDfDYTvQE/RQZvBHzMvLSWVjStZrxNss3U=; b=oxghoU3BsgelThxLKRNK4sWPtgiqP/FIPAi/imbQyu660GemIu3fEgxNxjeTIRJPW/ 5ta0AY9ZJXSpl/tl17QSTjbRkU4POrFCqv4iRbsrzASNyPS3XbgMpa1HFbhKxEuEktQR pTqqlEUlxblf3dr+bPOjuDq2kAloq6LICLrQ34mSTtIWNFC7dQnxwOQ2aKEKKFbFRpav aw0iaDtPqxz3rRHg6+E9yVZQSWUx903D0Xr0DhHim5LvKYcwGc/DsxjOWk+cM5SQu+iS v2Ocwujgh2mazGTeUn2zUx23FZXZk6lSp+YN3RJc8t3ENDd1DKs+86i3lc7hT93H9tn/ 3SmQ== 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=cmheFdWc1bDfDYTvQE/RQZvBHzMvLSWVjStZrxNss3U=; b=tiAcDgIpv0CA9UDxurf6rZFiF1SaqrDIC/8uq2OzMArreqml9Rtihip8NbujroBLrl fuBryDFYSYlJwyeyiC9E1c8jV9GjpiaENIk+/nvmYCVFfAwn3J1qu612Tu4KlKaw/rhn GVu80/51c0votQUF5Q55au9KuRvg56DogC7LysCP6E64rm7k7S0avT+QYdXNCnV+ARZB b9Kg32joc/eJpGSqxwCu5LbyEeA7G+G68p56O0kDJ9/AZcyMfpfkAwKsRYqF9p//O5+8 WhfWOAJGpPjUCl2j1HFza1piTB+sBxhfUFRP33J+0QK3QZdvefXAailnNtr9ePjvY6SD hfzQ== X-Gm-Message-State: APjAAAX7RQALmMG3/kP9gZVe5damZF/xl81bBlL+xhRj8hzZ4wmTRk6C FUijUDD+pRYyM1qkll1Sdc6tZiuXAch/QffeYWqbTw== X-Received: by 2002:a7b:cf18:: with SMTP id l24mr2088991wmg.132.1553487456191; Sun, 24 Mar 2019 21:17:36 -0700 (PDT) MIME-Version: 1.0 References: <20190321094710.16552-1-anup.patel@wdc.com> <20190321094710.16552-5-anup.patel@wdc.com> <20190322133330.GB32464@infradead.org> In-Reply-To: <20190322133330.GB32464@infradead.org> From: Anup Patel Date: Mon, 25 Mar 2019 09:47:24 +0530 Message-ID: Subject: Re: [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table To: Christoph Hellwig Cc: Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 7:03 PM Christoph Hellwig wrote: > > > > > - /* Compute satp for kernel page tables, but don't load it yet */ > > + /* Compute satp for kernel page directory, but don't load it yet */ > > > > /* > > - * Load trampoline page directory, which will cause us to trap to > > + * Load kernel page directory, which will cause us to trap to > > * stvec if VA != PA, or simply fall through if VA == PA > > */ > > If we want to nitpick comments I think this should take about the > page table root or something like that. Okay, I will update comments. > > Otherwise the idea looks good, but I really think we should do this > before all the changes to the setup_vm code. Sure, I will move it before setup_vm code so that setup_vm code is further simplified. Regards, Anup