Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1156083imj; Thu, 14 Feb 2019 02:06:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYqPdu4UlkddR5ufAFwtugKFOXHDGsjrDbamdUZj7xKboaDrCTfu9gRz+ORVa6ej71FdICJ X-Received: by 2002:a17:902:1e8:: with SMTP id b95mr3200490plb.325.1550138795321; Thu, 14 Feb 2019 02:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550138795; cv=none; d=google.com; s=arc-20160816; b=TYNeAcshkam6AN0ErF2y+vxF8HbEzBLgaoaD6vj/qofJbc8LUI6aBZGyfdcrT8M7ai bqUar8r0vrQvtXyykXnnEhUOy2QfvnX+8deoZ0RQwX5Ivu2n8KnW5IUI7XRvbgYf043N rrYNmF2ENjV8NLJuhvT0drvH+xrtaf8Dy2ZHIKGyAawsD5PnliZUXp1dVLVWhKBEMDEm 3elY8cCfB6oIs55AHaG9vJf0Cb65HUyOK1W+hkYiK1F7hJXjgxh0vmpx+3Ogq6BAe1vL yquojRYLzjlyRy4t7pdo75YfubasTJC5eBpFROCopRiIvgjkGSvL9GfCA10O9YRi1WNZ h34w== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=4YNhA6G9lOW17v41GSeYMA4e4WObkqs7yOUhebPENCA=; b=k8epZe/ZjwRdVIlpeFD2umsnNZBdkxomHNbf3oYCa4+l7+1UWyY07gFDy9+SS9vraP sGVAO4IlZvvZuBXd7L4lE0WgwDIf9Ai6tlB12sUQ3P6N2KYQUuL/pO7gcx7jRXnsdLbT NUEi+MW8Az2tz6UeGOG+MDPhdpjG/fAoRhtntsX8yIPYgyJxhbrEDSjcN8z+wbXV9t89 Cwea6EW4s9qv/c4g3BDQFDGxSwFhnvEYwyidKW45iOQMZ0XOZ1cTGTjw4KhAjro57mUy xi945iHvSYzTJClakfKCf91kMSdUJtE/8CF3QIToE9oJ7/zmcI2qksCItpQO6C7c82ux q9ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=SFYHNJwa; 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 o2si2038025pls.381.2019.02.14.02.06.18; Thu, 14 Feb 2019 02:06:35 -0800 (PST) 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=@sifive.com header.s=google header.b=SFYHNJwa; 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 S1726418AbfBNAhv (ORCPT + 99 others); Wed, 13 Feb 2019 19:37:51 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32928 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbfBNAhu (ORCPT ); Wed, 13 Feb 2019 19:37:50 -0500 Received: by mail-pf1-f194.google.com with SMTP id c123so2080405pfb.0 for ; Wed, 13 Feb 2019 16:37:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=4YNhA6G9lOW17v41GSeYMA4e4WObkqs7yOUhebPENCA=; b=SFYHNJwao4o90ci76fZTWarqbVmPkwGywvih8o8qdaKTFg5KfiNuLhkEXoK9EBRdaq Yy888l6TL/uQk3JGPY2WCYZWPu0B1GJGB8uin+O8I/X+/ybQAHHwQkynA6IK3/vZEVij j/GBPR6WjMtQsQhy6wR6gfiqBhgzgLu8qY3E4iM9TXAkE6Q30gxWyfZAMNU6HII73NiS prJEqQV3zwuTLIeOrE3Q4DVPd8oQzDmAEg4AzeWqrM2/ZLMoHStDgcIq95GCCLqaNvpb 5JVZ14C3KJj+8hLLAAP6QJ5q7b2zF10dvbvMlIicmLfTaKI6zQTOIdDi3Ant52Ebcqu/ p52Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=4YNhA6G9lOW17v41GSeYMA4e4WObkqs7yOUhebPENCA=; b=qhqvCeSuHt59XbsuGFB7kBz5H5NGYv3o/d3fXQotBhMi6WxtKHQiQ0WrKgolPOahfb S353gsUTgRZQzlyv/JfDoJ9kvuCJbWSyIW/hutKtG8JYenkRRRpDLpv8w/dah1cIgcSL b2ujrzXAmoLmcUx8vI0pm1Hie5kUMLZ6b8py0yIqPUZngEyYTeRcZWyNA+I5saPlEkXf aL7rBPyqySuc0vSVAMOLYdSDuVNwFA8ySUd2aV0nRf4Ojyu+dg63yOFw5GiflqhxrfrS T2LErle7xmrn8QBzPWgU3wRAKO+aiaT2qFBG+TsWpWYlffysd2Cklclwfr8KZiOZEGHT feZw== X-Gm-Message-State: AHQUAuYZRj1xd0n6F0Wn6dZtTc/dZrRoB4iNz6kZ2Z1Q5Wu7tzyYjrnZ CpGanUrvlS5HWv0u4Fd7X/9pUA== X-Received: by 2002:a63:2705:: with SMTP id n5mr954284pgn.429.1550104669632; Wed, 13 Feb 2019 16:37:49 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id 184sm685108pfe.106.2019.02.13.16.37.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 16:37:48 -0800 (PST) Date: Wed, 13 Feb 2019 16:37:48 -0800 (PST) X-Google-Original-Date: Wed, 13 Feb 2019 16:18:21 PST (-0800) Subject: Re: [PATCH v2 0/6] Fixmap support and MM cleanups In-Reply-To: CC: Anup Patel , aou@eecs.berkeley.edu, Atish Patra , Paul Walmsley , Christoph Hellwig , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: anup@brainfault.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Feb 2019 00:21:43 PST (-0800), anup@brainfault.org wrote: > On Wed, Feb 13, 2019 at 4:45 AM Palmer Dabbelt wrote: >> >> On Sat, 19 Jan 2019 05:27:53 PST (-0800), Anup Patel wrote: >> > This patchset does: >> > 1. Moves MM related code from kernel/setup.c to mm/init.c >> > 2. Implements compile-time fixed mappings >> > >> > Using fixed mappings available, we can now get earlyprints >> > even without SBI calls. For example, we can use kernel >> > parameter "earlycon=uart8250,mmio,0x10000000" to get early >> > prints on QEMU virt machine without using SBI calls. >> > >> > The patchset is tested on QEMU virt machine. It is based on >> > Linux-5.0-rc2 and can be found at riscv_fixmap_v2 branch of: >> > https://github.com/avpatel/linux.git. >> > >> > Changes since v1: >> > - Use more characters per line in changelog of PATCH3 >> > - Removed #ifndef __ASSEMBLY__ from PATCH5 >> > - Use more characters per line in commets of PATCH5 >> > - Added PATCH6 to implement keepinitrd kernel parameter >> > >> > Anup Patel (6): >> > RISC-V: Move free_initrd_mem() to kernel/setup.c >> > RISC-V: Setup init_mm before parse_early_param() >> > RISC-V: Move setup_bootmem() to mm/init.c >> > RISC-V: Move setup_vm() to mm/init.c >> > RISC-V: Implement compile-time fixed mappings >> > RISC-V: Implement keepinitrd kernel parameter >> > >> > arch/riscv/Kconfig | 3 + >> > arch/riscv/include/asm/fixmap.h | 44 +++++++++++ >> > arch/riscv/include/asm/pgtable.h | 1 + >> > arch/riscv/kernel/setup.c | 114 ++++++---------------------- >> > arch/riscv/mm/init.c | 124 ++++++++++++++++++++++++++++++- >> > 5 files changed, 189 insertions(+), 97 deletions(-) >> > create mode 100644 arch/riscv/include/asm/fixmap.h >> >> I'm getting some git issue when trying to merge the third patch via email >> >> $ mhng-pipe-show_stdout 4 | git am -s >> Applying: RISC-V: Move setup_bootmem() to mm/init.c >> error: patch failed: arch/riscv/kernel/setup.c:163 >> error: arch/riscv/kernel/setup.c: patch does not apply >> Patch failed at 0001 RISC-V: Move setup_bootmem() to mm/init.c >> Use 'git am --show-current-patch' to see the failed patch >> When you have resolved this problem, run "git am --continue". >> If you prefer to skip this patch, run "git am --skip" instead. >> To restore the original branch and stop patching, run "git am --abort". >> >> can you send a PR with a signed tag? I'll include this as part of the next >> merge window. >> >> Reviewed-by: Palmer Dabbelt > > Okay, I will prepare a PR with following patchsets: > 1. Fixmap support and MM cleanups (Author: Anup Patel) > 2. riscv: minor fixes and cleanups (Author: Johan Hovold) > 3. RISC-V related changes from "Various SMP related fixes" (Author: Atish Patra) > > All above patchsets touch same source files so this will > help you. Thanks. There's also a handful of comments from Christoph that I agree with about the keepinitrd stuff.