Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1980717ybg; Thu, 24 Oct 2019 03:11:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzk4iWOcXaWCKbM7fkLUVMYViBkml5U3m82gSBmVgV50NObPJ4603Yz1wE5Qxx506wrxFuY X-Received: by 2002:a17:906:7202:: with SMTP id m2mr36396120ejk.138.1571911906112; Thu, 24 Oct 2019 03:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571911906; cv=none; d=google.com; s=arc-20160816; b=ASIRqthDiMDotwGtQwcbWa6r9SusAOlfQoiF47ObpORlPEGX0ivOAUmYkQh7SlspiP X1IpcflM1pzKjmTULn34yI49aYVp/ImZuCAMb45EUoSfrtlkFQMTCUTE6+uu7KiO732C pQOkG1Fzwynueun9GCjB1ps5ulmzCsu2WKLPpevEW3980xXZ8izAKLHIg6zamO+2RS9C V1uYsZGH2GKIFj6/drqeaUpYyI++3EXwKwfKm98qV4eKfJb7N9lZ745XtC75otMwwf9o c4rMsFbxqklodyD6hY11xAWH+q37TK8COL2sSulXYJVWDoeAiWsFrm0w8sAA6xaCc9Yt VzYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=YdbLSAZjfE7jscYGeUYfxJbR3rTORVazBcWLCKkUM+s=; b=oxJmlWN6gZgPV4lY1MsuFZt8JMAZrQqubmPWnnu/AqukM9NkEhn0t/pyvtFlSETNH0 hzy1tnyo4d3naizgDscIaSnn2qdzyBJnX1N4M3diZb3Cqp9yMpgNNmgg/sbVHdmUer6h P4Jx/cJurFaroWUsCXsEzvDDGIvHBddcGXwPfD/6/fyJ4NZCKx+pX2SwoO2V8Y7rYEyc 2Ve+LV8A6bjOmgn6ThTgY3zlNmchrewSdOjIUmekSbeQgwPXLLrGfDklPC+5Epn6cdrv O095u9rrEEm705MtA3Mju/ZawTncIKSTlOyYYKbXwvU+A/kZFdqEtQP+f8c2vR7C9i2T XL3g== ARC-Authentication-Results: i=1; mx.google.com; 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 i6si5040006ejr.430.2019.10.24.03.11.21; Thu, 24 Oct 2019 03:11:46 -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; 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 S2407241AbfJWVVj (ORCPT + 99 others); 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