Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp70538imj; Wed, 13 Feb 2019 04:57:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IaMcqxrwB2EokXi4Rsl1KQ/Zgifx9n4m2gR/p+e7TpdpPDOSJvct3fTS1IRrrpxfkRyIcPN X-Received: by 2002:a63:981:: with SMTP id 123mr355625pgj.444.1550062637975; Wed, 13 Feb 2019 04:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550062637; cv=none; d=google.com; s=arc-20160816; b=coQADbBUnBm4APyP5kmyWwHgMsYUFXMDeyI9wySoQ2yXbIIqZmnNkAniXXCXh2BCkL /h9q1oI4Ir5IyemDbZekZFWp93cRIYOddDaiO5ipA6v7D8ml0GrqJGBorPKbF85m6q+m HAkC3cNMLj0jAOq1Drjfq9ErSj7UH/3xXzJAvIKjvL4hfi75Ksx+dLbuG/dJff8oVvyB fdrv4Y1erSo+RD3leyAPPD28X2wGsunnXNiJ7Q56JL6yMyacat/gmv7qRIbDNKXD5mop Phn7vyTTM74Msbis5nTxqK/XFgKiZgdzWBHSf306w7FOjGcVgbKaUFyFdFo0WMCxtWE+ E1KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KCtzblF1jR9J0InpD4f0Wn6K8qgn39HtvksF7U+weeU=; b=Yr9mCywNdDgtiek3NmdpxrniiuWATO14W/lSCCVhNS1nbKuv3uojc1hVnVwDbF2sda RlEUkZYMM/aw9Qil5bHP+Zo8PsiODEwJ6e0EdHtbLifgsohIu4hIUMuOdWnVYPISzWBK 6XDzY+HO8i18j6gFSJbq0lzqpeD1Ce+qhB3NpzrO0rX/6OtDL16eKDI/jwjyECWAIPiZ R2XJjwPWR0f/Kp4wBqFqhWckwP66cBg9vHiPEkd1iGNV1MmwGYeC1VtiPppc0i0eRRxY PCf6bnblRQbwKVWt1RVF2ZBVbtQzo4eBVwkR47B3wSh47g311sjOmUAFTVLpFVB/K1TW J7ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=mxQubxva; 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 b5si14673346pgw.377.2019.02.13.04.57.02; Wed, 13 Feb 2019 04:57:17 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=mxQubxva; 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 S2390605AbfBMIV6 (ORCPT + 99 others); Wed, 13 Feb 2019 03:21:58 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54091 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387986AbfBMIV4 (ORCPT ); Wed, 13 Feb 2019 03:21:56 -0500 Received: by mail-wm1-f65.google.com with SMTP id d15so1405164wmb.3 for ; Wed, 13 Feb 2019 00:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KCtzblF1jR9J0InpD4f0Wn6K8qgn39HtvksF7U+weeU=; b=mxQubxvawRjDb/feJX9gA2kRRytn5nwW6fNlmaQ09uB3tGhWC8g/Le/lwk/5b2qYYS v/VFadsIk9rGglWewtmksg8i6h5nMh7K0XQY8HhtYhahQenlebgT4pWK9X4LjYYTsYin Ag1dSAiGM9H9Vv7IuHWvbfMCyFQvIbN42FSKFdYqqT+5OQGYVuU5k9l7cUTPMN9+JrEQ yBpjE/stdtiLozPiUyRBvwww83D1IDeZgSlx3H/4yedHJqphJRUH4uJ/H/mFpkq5+q4b djx37mGUj9PkN/QkmSj1eI6GcboP9IcdgNdCeTzLIrVCEuTQZHwoFrhodzaTty/0WUXB rmfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KCtzblF1jR9J0InpD4f0Wn6K8qgn39HtvksF7U+weeU=; b=ZEzIOo4rOpSo9wtMPzl3YWA0TnsXjHXXCqpVPyVkvG6RAGfCaP6RGfVSctZNRC2ycI 2EinKNLWNNzRZn75u0djv6F+0UUcm2/cALI2EkDoG/pD3dTQ9M2rQEfbpUjoO/npogRw M7PRaXMdQ1PfdRQ7P5+dzhVNlcqmCwYv/LGJnsV+3QFxNvxs/BIXb2Ze5Sd4ZnYhV00q ioFhcm1sMvL3NiWGFbKm8mhlD1ogyd6/lW4NKClpw3OpZGKQYnlFnzk+7u+MEAxuE6n6 KlG6CfZ9tPC/aJ3nverACaSAVcK8RoDkw3X7pGdln0dHKKNS5cYSTf3bmNqdxuCmld1T ZSGw== X-Gm-Message-State: AHQUAubjzxPoKgeNQWH8PV/BgJft4EwHpJRfRpQGwQQ8jf4r7ABgx1iL KDMT9pHdpWPERxB0ZmnWM6lp419uhkiuTFUBZNAqnw== X-Received: by 2002:a1c:1d15:: with SMTP id d21mr2128285wmd.132.1550046114963; Wed, 13 Feb 2019 00:21:54 -0800 (PST) MIME-Version: 1.0 References: <20190119132650.9978-1-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Wed, 13 Feb 2019 13:51:43 +0530 Message-ID: Subject: Re: [PATCH v2 0/6] Fixmap support and MM cleanups To: Palmer Dabbelt Cc: Anup Patel , Albert Ou , Atish Patra , Paul Walmsley , Christoph Hellwig , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Anup