From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Wed, 23 Oct 2019 21:21:33 +0000 Subject: Re: [PATCH v2 09/12] sparc32: use pgtable-nopud instead of 4level-fixup Message-Id: <20191023.142133.1980049426362664052.davem@davemloft.net> List-Id: References: <1571822941-29776-1-git-send-email-rppt@kernel.org> <1571822941-29776-10-git-send-email-rppt@kernel.org> <20191023195859.GA24394@rapoport-lnx> In-Reply-To: <20191023195859.GA24394@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: rppt@kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, anton.ivanov@cambridgegreys.com, arnd@arndb.de, geert@linux-m68k.org, green.hu@gmail.com, gerg@linux-m68k.org, deller@gmx.de, James.Bottomley@HansenPartnership.com, jdike@addtoit.com, kirill@shutemov.name, torvalds@linux-foundation.org, msalter@redhat.com, mattst88@gmail.com, monstr@monstr.eu, richard@nod.at, linux@armlinux.org.uk, sammy@sammy.net, deanbo422@gmail.com, Vineet.Gupta1@synopsys.com, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, sparclinux@vger.kernel.org, rppt@linux.ibm.com From: Mike Rapoport Date: Wed, 23 Oct 2019 22:59:00 +0300 > I've just discovered that I've booted qemu-sparc with the wrong kernel and > this patch crashes miserably :( > > The better version that does allow qemu-sparc to boot with folded page > tables is below: > > > From a90e1d157b7f8786a4276ffc8553f2167c8bc0e7 Mon Sep 17 00:00:00 2001 > From: Mike Rapoport > Date: Tue, 1 Oct 2019 17:14:38 +0300 > Subject: [PATCH v2] sparc32: use pgtable-nopud instead of 4level-fixup > > 32-bit version of sparc has three-level page tables and can use > pgtable-nopud and folding of the upper layers. > > Replace usage of include/asm-generic/4level-fixup.h with > include/asm-generic/pgtable-nopud.h and adjust page table manipulation > macros and functions accordingly. > > Signed-off-by: Mike Rapoport Acked-by: David S. Miller 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=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 49CEDCA9EBB for ; Wed, 23 Oct 2019 21:21:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 243EE2084C for ; Wed, 23 Oct 2019 21:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407337AbfJWVVj (ORCPT ); Wed, 23 Oct 2019 17:21:39 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:38582 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406354AbfJWVVi (ORCPT ); Wed, 23 Oct 2019 17:21:38 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5FA2B148EA243; Wed, 23 Oct 2019 14:21:36 -0700 (PDT) Date: Wed, 23 Oct 2019 14:21:33 -0700 (PDT) Message-Id: <20191023.142133.1980049426362664052.davem@davemloft.net> To: rppt@kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, anton.ivanov@cambridgegreys.com, arnd@arndb.de, geert@linux-m68k.org, green.hu@gmail.com, gerg@linux-m68k.org, deller@gmx.de, James.Bottomley@HansenPartnership.com, jdike@addtoit.com, kirill@shutemov.name, torvalds@linux-foundation.org, msalter@redhat.com, mattst88@gmail.com, monstr@monstr.eu, richard@nod.at, linux@armlinux.org.uk, sammy@sammy.net, deanbo422@gmail.com, Vineet.Gupta1@synopsys.com, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, sparclinux@vger.kernel.org, rppt@linux.ibm.com Subject: Re: [PATCH v2 09/12] sparc32: use pgtable-nopud instead of 4level-fixup From: David Miller In-Reply-To: <20191023195859.GA24394@rapoport-lnx> References: <1571822941-29776-1-git-send-email-rppt@kernel.org> <1571822941-29776-10-git-send-email-rppt@kernel.org> <20191023195859.GA24394@rapoport-lnx> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 23 Oct 2019 14:21:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport Date: Wed, 23 Oct 2019 22:59:00 +0300 > I've just discovered that I've booted qemu-sparc with the wrong kernel and > this patch crashes miserably :( > > The better version that does allow qemu-sparc to boot with folded page > tables is below: > > > From a90e1d157b7f8786a4276ffc8553f2167c8bc0e7 Mon Sep 17 00:00:00 2001 > From: Mike Rapoport > Date: Tue, 1 Oct 2019 17:14:38 +0300 > Subject: [PATCH v2] sparc32: use pgtable-nopud instead of 4level-fixup > > 32-bit version of sparc has three-level page tables and can use > pgtable-nopud and folding of the upper layers. > > Replace usage of include/asm-generic/4level-fixup.h with > include/asm-generic/pgtable-nopud.h and adjust page table manipulation > macros and functions accordingly. > > Signed-off-by: Mike Rapoport Acked-by: David S. Miller 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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 976DACA9EB9 for ; Wed, 23 Oct 2019 21:21:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6838F2084C for ; Wed, 23 Oct 2019 21:21:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gfiKQ6OA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6838F2084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=davemloft.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To: From:Subject:To:Message-Id:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9YrWtxjivRs1mucuMKLNoYBsGXQnvBQcPu/s5l8na08=; b=gfiKQ6OA4LNccY GM5clvL0hhP8Ws67KSNfFfYcioeytq9iP/EPCgpMwJdNtHY+/IZOstkiVfclLLzP/jsDmCusyE3Es 4ntHnwfSY6C7e11pydpR6GADApS8uR//YrmF3BD9PuC81KBI31BZ2J4GsACU+xCzsyygHhGGP5rMJ quVqwnwQm3x1ugSv499+r2yyaltRuCMlbfrSS4ZCUnE18+OR53Oq6e4d78YlbplPqwhh4pam7q5At 2DP+pNMsVL24gnURmtTHcu/FJphq60JQsm6P4r1o0AxCzCtZa6SUq6tfdwdsdf21bdD6zrinD4znN Pfx3Kt29oWBGCMdk0ugQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNO4h-0007l0-1D; Wed, 23 Oct 2019 21:21:47 +0000 Received: from shards.monkeyblade.net ([2620:137:e000::1:9]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNO4d-0007k8-OA; Wed, 23 Oct 2019 21:21:45 +0000 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5FA2B148EA243; Wed, 23 Oct 2019 14:21:36 -0700 (PDT) Date: Wed, 23 Oct 2019 14:21:33 -0700 (PDT) Message-Id: <20191023.142133.1980049426362664052.davem@davemloft.net> To: rppt@kernel.org Subject: Re: [PATCH v2 09/12] sparc32: use pgtable-nopud instead of 4level-fixup From: David Miller In-Reply-To: <20191023195859.GA24394@rapoport-lnx> References: <1571822941-29776-1-git-send-email-rppt@kernel.org> <1571822941-29776-10-git-send-email-rppt@kernel.org> <20191023195859.GA24394@rapoport-lnx> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 23 Oct 2019 14:21:37 -0700 (PDT) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191023_142143_788822_B344B3FE X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James.Bottomley@HansenPartnership.com, linux-mm@kvack.org, sparclinux@vger.kernel.org, deanbo422@gmail.com, gerg@linux-m68k.org, anton.ivanov@cambridgegreys.com, linux-arch@vger.kernel.org, linux-c6x-dev@linux-c6x.org, richard@nod.at, deller@gmx.de, linux@armlinux.org.uk, rppt@linux.ibm.com, geert@linux-m68k.org, msalter@redhat.com, mattst88@gmail.com, jdike@addtoit.com, sammy@sammy.net, arnd@arndb.de, Vineet.Gupta1@synopsys.com, linux-um@lists.infradead.org, linux-m68k@lists.linux-m68k.org, green.hu@gmail.com, kirill@shutemov.name, linux-arm-kernel@lists.infradead.org, monstr@monstr.eu, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Mike Rapoport Date: Wed, 23 Oct 2019 22:59:00 +0300 > I've just discovered that I've booted qemu-sparc with the wrong kernel and > this patch crashes miserably :( > > The better version that does allow qemu-sparc to boot with folded page > tables is below: > > > From a90e1d157b7f8786a4276ffc8553f2167c8bc0e7 Mon Sep 17 00:00:00 2001 > From: Mike Rapoport > Date: Tue, 1 Oct 2019 17:14:38 +0300 > Subject: [PATCH v2] sparc32: use pgtable-nopud instead of 4level-fixup > > 32-bit version of sparc has three-level page tables and can use > pgtable-nopud and folding of the upper layers. > > Replace usage of include/asm-generic/4level-fixup.h with > include/asm-generic/pgtable-nopud.h and adjust page table manipulation > macros and functions accordingly. > > Signed-off-by: Mike Rapoport Acked-by: David S. Miller _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel