Message ID | 20190212135942.105008-1-anup.patel@wdc.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C87F1922 for <patchwork-linux-riscv@patchwork.kernel.org>; Tue, 12 Feb 2019 14:00:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5FCB2B580 for <patchwork-linux-riscv@patchwork.kernel.org>; Tue, 12 Feb 2019 14:00:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA79C2B8ED; Tue, 12 Feb 2019 14:00:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 986792B89F for <patchwork-linux-riscv@patchwork.kernel.org>; Tue, 12 Feb 2019 14:00:23 +0000 (UTC) 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:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vG8spXTZ+z8p7Hb1D5WG8VKqlOplNJNKJQ3R+2HV1O0=; b=jNlpFQBLk8dAt2 zljrFHFI7YdUcTYLriMzOEb/Pe5Odc2t4n2gEy3f/mrcTBG+R/IZhingxn3ZRtgOllfhXXRc7nVi2 TVeXwHyBDL2l9WppDaCjr/2/DazLTRUwg8sVo4P2xM1e62E5khC/V/dAYj2pTaY4/dtFNJ9DRE2iO pE3/yU0RoUmotaQz/B/3xBX1Wdzp2imY9tqIKwPXUlJ1zSreoYpQos2QXE1qtnnO+Uq3Yrbs8QRS5 bR85fIWuLH04TYS+GQ4xDMORabGlJYO2gLyHyYTQOrFQ+C9RU7FkOti0lrn+k/+xUPFjYL+bZtEZe gWQdJO9zKiENuvEC5sfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtYbk-0002xI-Ic; Tue, 12 Feb 2019 14:00:20 +0000 Received: from esa3.hgst.iphmx.com ([216.71.153.141]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtYbb-0002vY-M4 for linux-riscv@lists.infradead.org; Tue, 12 Feb 2019 14:00:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1549980012; x=1581516012; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=dmyDCrD8QLnkWSCpsz7FmLQrGwQlEOYty15e5kOk15I=; b=DEUALcxT8ucaoiXgHHThR/R0Arcu3Wj/ilWJ276n8GUUEnteq3Y5BWeL MfMYiFQHTfR8G9y9tkBj9z/7F/dbgTzmEWDUHTbTEFGnFjyHSh2gZRHcZ LjOBMrw8mOSXcvUIHgFsxDZmugm4uJduF048m5xrOMuANteUNARJ3LnKM 0zlMnslf9K0/DDQVw5+0WVYXqKoOVQtECk2snCsyqjnCHSNtzXPGCpm4L FMdWhxnZLqLAAZF8qcIRmsOG7z8mKlydKvJC+6CDpBOmwgXu1GLi/VmG4 yRoD6WGqMNifi7XM++Exi82i91Yzoj0jIl5nGdoe+wu6I/c/WlK7lA6Kx A==; X-IronPort-AV: E=Sophos;i="5.58,362,1544457600"; d="scan'208";a="106025544" Received: from mail-bn3nam01lp2059.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([104.47.33.59]) by ob1.hgst.iphmx.com with ESMTP; 12 Feb 2019 22:00:09 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uX2I6izvPXiyFQYtGp1alvn8Gtkx12oF3L4mzWU2+EY=; b=WRcaXP/eYKWH21u3CrCXKT8qRKXitPrVAMlIj6//pBD5RswldkVxlWK9lGxynvekycZzs1nPp3xP3ctE0fkOAUfFpMFYK3FnWc7msiaMCWjK3BVXaVaoxHikBhAYhmpwJo52gu3sqK/yJgjufCErXlYcY2/PSlPrWA4izXUlxDc= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.247.148) by MN2PR04MB6062.namprd04.prod.outlook.com (20.178.247.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Tue, 12 Feb 2019 14:00:06 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::2cdb:c465:af57:8be1%7]) with mapi id 15.20.1601.023; Tue, 12 Feb 2019 14:00:06 +0000 From: Anup Patel <Anup.Patel@wdc.com> To: Palmer Dabbelt <palmer@sifive.com>, Albert Ou <aou@eecs.berkeley.edu> Subject: [PATCH v3 0/6] Fixmap support and MM cleanups Thread-Topic: [PATCH v3 0/6] Fixmap support and MM cleanups Thread-Index: AQHUwttCy3g1cjjuyEa0lFKk0Qn0DQ== Date: Tue, 12 Feb 2019 14:00:06 +0000 Message-ID: <20190212135942.105008-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0126.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::20) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:de::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [49.207.48.205] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c77e8cba-a3f7-4cf3-36e1-08d690f264a2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:MN2PR04MB6062; x-ms-traffictypediagnostic: MN2PR04MB6062: x-ms-exchange-purlcount: 1 wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MN2PR04MB6062; 23:GZ5cSFOAuqa1UQuLL9Txj/t8XSRFyulF6/EfSWk?= =?iso-8859-1?q?aZa9cR3lh0NYZE1?= =?iso-8859-1?q?UhGUzFEUEEtddzvqWMU55QSy1Etaq/tpCfqz1H8STfLEDJP4zfgyXOkqeNSk?= =?iso-8859-1?q?a35Z39171WIXrd2fYqpLN5SR5UQ/gfGTPTnE0Lt542rw+Fmv4v9FhWUjn5cN?= =?iso-8859-1?q?tuperDG7i23mxyu0GZdyAYmV4lygGl47sfWcwTk1qf0HQuMeqL7/gyjH42uh?= =?iso-8859-1?q?nHW7wZdWouyghiTsRrxwxC5BtpLoS7s/IaLU0Frm8HSOypGkWXv8DyjEFOcU?= =?iso-8859-1?q?T2CYKTeBazSIFkzX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PpQJwDt8YqCBwfFE1BtB+ngQT0nNo?= =?iso-8859-1?q?cMMJKrRnoR2oHzrF9wnN6mk0jGMWK809vIZKgw0klJfU/y1HpocepCz3eA1v?= =?iso-8859-1?q?+gTUjhZx07qPG4ippIbRfmIF2V?= x-microsoft-antispam-prvs: <MN2PR04MB60623F1DAD295ECCFD0D37958D650@MN2PR04MB6062.namprd04.prod.outlook.com> x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(346002)(136003)(366004)(396003)(199004)(189003)(54534003)(8676002)(2906002)(81166006)(86362001)(44832011)(50226002)(2616005)(106356001)(68736007)(316002)(53936002)(476003)(81156014)(105586002)(25786009)(486006)(8936002)(55236004)(14454004)(6116002)(256004)(4326008)(36756003)(3846002)(71200400001)(71190400001)(102836004)(966005)(66066001)(386003)(52116002)(6506007)(99286004)(1076003)(186003)(6512007)(2171002)(6306002)(54906003)(110136005)(6436002)(7736002)(26005)(72206003)(478600001)(305945005)(6486002)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB6062; H:MN2PR04MB6061.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: PYfdDfe6vGeGOJ/IbhUsYNj5cVCRbtY8WnfG37p6kS3pxRQU+2/xBU/IwLWBVpKTp4Tb0j4x31ePccuF0L2417Qk9RCbTB0Oh8LkkxTGxSvWV4+YB3kU0D8vTe9pTDkjAfnikVCUFjiC0wY432w27j5rW2UWUh0h8PGFIRitchs5vizcmJo8hBkLdfUUD96PpK3GKYgtam3GewMqvkzAuRCHjxa3X+iVlS4ZoxeYXG2Sxo61/w3V8mnUXsc3HRheyVlsCN7p/CYlRIpyAIFrSUZQ9SyLMWDqGrfDn8UuQTk96h8kQHVLDYllAyRE44pOH5HbP9f4TPvsM0nORctySNAQY/8RjfS8yiH41cLpgaIBxtkT0O+y7pJKgaHbUaNNKxAHtlpAAHVgbTQekpGN1PsB+46oZEDF7VRi2Z+54zY= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: c77e8cba-a3f7-4cf3-36e1-08d690f264a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2019 14:00:04.0174 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6062 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190212_060011_901364_0DFAE985 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Cc: Anup Patel <anup@brainfault.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Christoph Hellwig <hch@infradead.org>, Atish Patra <Atish.Patra@wdc.com>, Paul Walmsley <paul.walmsley@sifive.com>, "linux-riscv@lists.infradead.org" <linux-riscv@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Fixmap support and MM cleanups
|
expand
|
From: Anup Patel <anup@brainfault.org> 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-rc6 and can be found at riscv_fixmap_v3 branch of: https://github.com/avpatel/linux.git. Changes since v2: - Fixed commit description of PATCH6 - Ensured commit description of all PATCH use upto 72 characters per line 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