Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24AEDC6FD1A for ; Mon, 6 Mar 2023 18:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbjCFSwL (ORCPT ); Mon, 6 Mar 2023 13:52:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjCFSwJ (ORCPT ); Mon, 6 Mar 2023 13:52:09 -0500 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 D1F8A41B4E for ; Mon, 6 Mar 2023 10:52:06 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id r18so9892500wrx.1 for ; Mon, 06 Mar 2023 10:52:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678128725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b6Kcl5snT4dOT1Wk63DsCfYmCJln0IX3AMZ3xLgwxEE=; b=tmdUDj4teYRPGPVmMc0RPsl1zl5vsv3S8+GCXAW0/s1S267aiJlsDabus51wc2BaFf RQNpEKYrxga62mE8kwkh2pdz/ZqmbeLZIxQ4igs9EmQVEwMIMf5MI7QAsE6LzXfNK2+/ 1Tm87rGjzxKEctE1klwstJe+gysP9trhlFv3M0VrHQczZFLI/2jkB6860mPzHgkJ/cEC tONrDQC7H1ppljQ799985LTKaViqcIUzQlYWSOVcCC1IiEzbVnstvAF3EoMKxQfwD5dL 1CnQe6Eclrp5BkhYMqh7YIGq9iqXmEVPkxMzWA/rXop/9gdoqAwcAjlMzRww4PqhttMF lwvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678128725; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b6Kcl5snT4dOT1Wk63DsCfYmCJln0IX3AMZ3xLgwxEE=; b=TraNSU/O+mZkptfeXtGmeu2cVvWqSlB/ttaCy2E+FSs951G8ny9g3sMK9x74QyqCcy OAJ9yF4IxYVPRRPAsbgmeOQm3UkqkvCKf57t/ZqnZKmG4g4PpTK5oa2Q4e9DcDgjy2qE 3/ZbR/lZhkfGWjfIWklMy8J19GbVwibvSKKtjQkYcIomF+mR1RCyKEKCSz+xt3W97IDb j8DLL/e4e1FDDki7Rc4FJ6MI/JM7k1WmoPuaxFSTts6jYnq4VXoj8yOupGq+EADMmLcY IWHYgtypRKwXZISBvoOExWADff0LhrI5ojJa4ZtL67XkI7zcq+AuZ8iTtZ/+dtt95V2b 3d1g== X-Gm-Message-State: AO0yUKXQUC8aTlwyxLqYotCF+nYduQRH4la2Ck/O6JdYpoKxZBJwH/is kRume+PrqXesriFhuYc0rtGqiN2LcbkZZGVlakKpGg== X-Google-Smtp-Source: AK7set8I+3jxDfAUEo7frBA3dq8huNi9KnbKovbnIOQ0/OQKEcAAicBWKJUD2c5b7PTUdIxHwYxf1SZVe1fSQaWvLtY= X-Received: by 2002:a5d:5951:0:b0:2ce:7219:4d64 with SMTP id e17-20020a5d5951000000b002ce72194d64mr373680wri.11.1678128725393; Mon, 06 Mar 2023 10:52:05 -0800 (PST) MIME-Version: 1.0 References: <20230301082552.274331-1-alexghiti@rivosinc.com> In-Reply-To: From: Alexandre Ghiti Date: Mon, 6 Mar 2023 19:51:54 +0100 Message-ID: Subject: Re: [PATCH v6 0/2] riscv: Use PUD/P4D/PGD pages for the linear mapping To: Anup Patel Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Frank Rowand , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anup, On Mon, Mar 6, 2023 at 5:33=E2=80=AFPM Anup Patel = wrote: > > On Wed, Mar 1, 2023 at 1:56=E2=80=AFPM Alexandre Ghiti wrote: > > > > This patchset intends to improve tlb utilization by using hugepages for > > the linear mapping. > > > > base-commit-tag: v6.2-rc7 > > > > v6: > > - quiet LLVM warning by casting phys_ram_base into an unsigned long > > > > v5: > > - Fix nommu builds by getting rid of riscv_pfn_base in patch 1, thanks > > Conor > > - Add RB from Andrew > > > > v4: > > - Rebase on top of v6.2-rc3, as noted by Conor > > - Add Acked-by Rob > > > > v3: > > - Change the comment about initrd_start VA conversion so that it fits > > ARM64 and RISCV64 (and others in the future if needed), as suggested > > by Rob > > > > v2: > > - Add a comment on why RISCV64 does not need to set initrd_start/end th= at > > early in the boot process, as asked by Rob > > > > Alexandre Ghiti (2): > > riscv: Get rid of riscv_pfn_base variable > > riscv: Use PUD/P4D/PGD pages for the linear mapping > > I tried this series but it is getting stuck after reaching user space. > > Does this series require some other dependent patches ? No it should not. Let me take a look: what's your config and the base commi= t? > > Regards, > Anup > > > > > arch/riscv/include/asm/page.h | 19 +++++++++++++++++-- > > arch/riscv/mm/init.c | 28 ++++++++++++++++++---------- > > arch/riscv/mm/physaddr.c | 16 ++++++++++++++++ > > drivers/of/fdt.c | 11 ++++++----- > > 4 files changed, 57 insertions(+), 17 deletions(-) > > > > -- > > 2.37.2 > >