From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16B12C2D0CD for ; Tue, 17 Dec 2019 18:32:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D116320733 for ; Tue, 17 Dec 2019 18:32:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="rdWRiqTK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D116320733 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 594DF8E009D; Tue, 17 Dec 2019 13:32:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 545F48E0079; Tue, 17 Dec 2019 13:32:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 482BD8E009D; Tue, 17 Dec 2019 13:32:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0062.hostedemail.com [216.40.44.62]) by kanga.kvack.org (Postfix) with ESMTP id 3299E8E0079 for ; Tue, 17 Dec 2019 13:32:23 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id C9D4A8249980 for ; Tue, 17 Dec 2019 18:32:22 +0000 (UTC) X-FDA: 76275478524.15.women91_4eecd3dd71010 X-HE-Tag: women91_4eecd3dd71010 X-Filterd-Recvd-Size: 3860 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Tue, 17 Dec 2019 18:32:22 +0000 (UTC) Received: from rapoport-lnx (unknown [87.71.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4F022072D; Tue, 17 Dec 2019 18:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576607541; bh=utRU0rcTxqsnhWk9PNVbjZTpVL/hhO/HrBD/nPxq4fM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rdWRiqTKQ4SxW0b6an1UEYpDfBwhuvKp6ARSjzCkngo1iXrbrLgOZnAOaq+ATyvkp ioZZY+/NDuvIYNtHKlBjfGGiAtAFhaQCLhG2bJW9ozes7DFPaaudXXilp6WsB3EBDN OUnCOguhqK7w7hztbs3HnqpA0mK2yijRgOMvgWx4= Date: Tue, 17 Dec 2019 20:32:14 +0200 From: Mike Rapoport To: Geert Uytterhoeven Cc: Linux-sh list , Yoshinori Sato , Rich Felker , Linux MM , Linux Kernel Mailing List , Mike Rapoport Subject: Re: [PATCH 2/2] sh: add support for folded p4d page tables Message-ID: <20191217183213.GA29446@rapoport-lnx> References: <20191217142150.10392-1-rppt@kernel.org> <20191217142150.10392-3-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Dec 17, 2019 at 06:59:43PM +0100, Geert Uytterhoeven wrote: > Hi Mike, > > On Tue, Dec 17, 2019 at 3:23 PM Mike Rapoport wrote: > > From: Mike Rapoport > > > > Implement primitives necessary for the 4th level folding, add walks of p4d > > level where appropriate and remove usage of __ARCH_USE_5LEVEL_HACK. > > > > Signed-off-by: Mike Rapoport > > Thanks for your patch! > > > --- a/arch/sh/mm/fault.c > > +++ b/arch/sh/mm/fault.c > > @@ -65,7 +66,20 @@ static void show_pte(struct mm_struct *mm, unsigned long addr) > > break; > > } > > > > - pud = pud_offset(pgd, addr); > > + p4d = p4d_offset(pgd, addr); > > + if (PTRS_PER_P4D != 1) > > + printk(", *p4d=%0*Lx", (u32)(sizeof(*p4d) * 2), > > + (u64)p4d_val(*p4d)); > > This (and the prints below) is gonna cause lots of broken output lines. > You should use pr_cont() instead, and probably rebase on top of my > "[PATCH 7/7] sh: fault: Modernize printing of kernel messages" > (https://lore.kernel.org/lkml/20191203162645.19950-8-geert+renesas@glider.be/). Ok, will fix. > > + > > + if (p4d_none(*p4d)) > > + break; > > + > > + if (p4d_bad(*p4d)) { > > + printk("(bad)"); > > + break; > > + } > > + > > + pud = pud_offset(p4d, addr); > > if (PTRS_PER_PUD != 1) > > printk(", *pud=%0*Lx", (u32)(sizeof(*pud) * 2), > > (u64)pud_val(*pud)); > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Sincerely yours, Mike.