Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4813140imj; Wed, 13 Feb 2019 01:18:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IZP1ro6TAFie8ysNltV0gQS3OCrHhk/6yD5UsfDH7B/zA5JwTuckcnDxb6dTr+8g6Bb/pQq X-Received: by 2002:a63:be0a:: with SMTP id l10mr7943703pgf.292.1550049508570; Wed, 13 Feb 2019 01:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550049508; cv=none; d=google.com; s=arc-20160816; b=VbkNu+1EgEtaB9spSfRlC+F+yjwVxjXoQIi5ZY+UgqnV6QbIOftPy+PQcQtLAx26o5 lahKZdZmJXmbgnWKEWKQQxkl+Cb77Js3lG8Bia+0hJY4x1LfMsy0BmXRfASs1Leh3Ceh RArB6EhBx88gcrMugBa+6R4CXUuWXz6mrmHtIAdLr6BKxH0VkOvjnze2aXXgvzGdh+BV mdfJurP/zoUvvIE3HtZkjxwjHk7m1iuYgzf+lE3b69ALKHlBGU5xRFYO0IrVa0oJiFMP kU3aDUj3w/PC9EXHmKvBDu3Q+2LeXW5dLv+/2rXhhNjelo89nmWsTG4HAzGxb56MLpp7 nCRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature; bh=u5mLVIlyq3+7gsH0enD0DJ35+/Yw9cRuWnTt6HiD/zg=; b=H59v4rEvc3IlYAaUrfGClcz5Em+Jz5ZV9MUwr4F3LnCMERcCIu7BK7uVIlVpK9jK5R zM4ArJ69T9YqvCkJXWVfJaWptNP/0SV3+yEHMND0CCfx7q6xt4jSpmNafjuJCDlasXiZ VNKwl8uVamcR4kG9bSoS2jqNgtfs/bJzP7woLQmJvXmzpA7hdSNJ1uy6TodB1XaPDv4r R13S5j4OzQ/lWsrdCk4DroyhziRGSogswJrpbXPj/mRggY3xaDnuvsuI2OQ0gcjRKIP/ FydNAwiQptkUt+ZJ+ZLX5OhjKQN56pLJM9UoTL32UIv9PPFfyHIlaUKoCDZtKPLi1sXy T6FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oBgWkGZC; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=Ix4h6eQK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si14610343pgm.501.2019.02.13.01.18.12; Wed, 13 Feb 2019 01:18:28 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oBgWkGZC; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=Ix4h6eQK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730460AbfBMDna (ORCPT + 99 others); Tue, 12 Feb 2019 22:43:30 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:11110 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbfBMDn3 (ORCPT ); Tue, 12 Feb 2019 22:43:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1550029409; x=1581565409; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Dsk08b4BjhTECz94FDeT7jmFU/7hAUhfKh7TQ1CbB0c=; b=oBgWkGZCUeYhccnPbzORb2KAJGyTb94YUcqMi78hUWljj/iXnHR3it4l LtRiOdpP17VSq8P3Au99pCF4BzPXEmqxb2/wZSxUH9vUnwxP1HDVkQM9b TD6BMZSkEmne1mmlVSwKtLL42x9kicugViVjMQtI1Vq6Y7RhOs0NLOGuT wJJJTxlgkvcU+RjtzV32+XiSOka1rtF6s4OiMQr+OqtM5WJ+E/TaS2k7Y YsEAC8+GqYirA6YhFFf5BTidNWQ3fLvPE5IVhLpoEUADV27wSMY0+Lxml LHJOa2aUbiFbUh97bm9fA2ChrQ9ybu9JxTVFrLrzqkUW/AP5IhUAZyI1p g==; X-IronPort-AV: E=Sophos;i="5.58,364,1544457600"; d="scan'208";a="101061603" Received: from mail-bl2nam02lp2057.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([104.47.38.57]) by ob1.hgst.iphmx.com with ESMTP; 13 Feb 2019 11:43:28 +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=u5mLVIlyq3+7gsH0enD0DJ35+/Yw9cRuWnTt6HiD/zg=; b=Ix4h6eQKv5yynKYuQ4aJ8bgtgB525QaOlr0rfU+FifFr/bi10EjCKa6z6Lj93khSGlbIOh1b9I7s959EbuqhZGotPl9TXTX7921voA334HUxSzV4iOHQA0DQdvOJ1HAi4iSKT38TWjq2oTOZpFrsFX0kgthimS4J3YP6w3wFtro= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.247.148) by MN2PR04MB5822.namprd04.prod.outlook.com (20.179.22.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 03:43: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; Wed, 13 Feb 2019 03:43:06 +0000 From: Anup Patel To: Christoph Hellwig , Anup Patel CC: Palmer Dabbelt , "linux-kernel@vger.kernel.org" , Atish Patra , Albert Ou , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: RE: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter Thread-Topic: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter Thread-Index: AQHUr/rvNlD18fFOHEuGvgVx64rC4aXb43KAgAA2jICAAIwvgIAAlc7g Date: Wed, 13 Feb 2019 03:43:06 +0000 Message-ID: References: <20190119132650.9978-1-anup.patel@wdc.com> <20190119132650.9978-7-anup.patel@wdc.com> <20190212070807.GD26747@infradead.org> <20190212184505.GA10984@infradead.org> In-Reply-To: <20190212184505.GA10984@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-originating-ip: [129.253.179.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0b78e866-5a5b-4398-6d7b-08d691655d78 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:MN2PR04MB5822; x-ms-traffictypediagnostic: MN2PR04MB5822: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?us-ascii?Q?1;MN2PR04MB5822;23:4FoqXf5wojY+u5Pi+bNE8NmxU7e1M2lUK1/CB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OcuJGI349fwsQRFvzM0iefUG9Y4cEVs?= =?us-ascii?Q?q6DRUwkx2yxTfmcfUZ1GNsSb8kv3dthk5EPXvY5ZP5cSSyEgI5bXWxklCDSp?= =?us-ascii?Q?fWt14Qn8KhQbeuQnCCSybd+fSHs01l4GoZjKiAFmCY3XsoMDjEE0JTm5kKN8?= =?us-ascii?Q?yBFONfyaZCS7BmJfH5UoEacAhbiBKR8PSo7iHor8F1hx+cHD7cj+WMsjSNeL?= =?us-ascii?Q?QT3dfRDswLTaGBqk7GuK0OrzIhUZi+7XI0/NuFVLUNcX2Am4ZS3CtovlMdPv?= =?us-ascii?Q?/kdXQ3ykTZ4+pRn2t4F6B3mSj3zq9Am5LlWeZYEV+fEHssfQS22JSYI/EOvl?= =?us-ascii?Q?6xLBHWu7TyZEUNMZkmPqMraFzFAAHyHl8G9vj+G?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(366004)(346002)(376002)(136003)(199004)(13464003)(189003)(81166006)(478600001)(186003)(11346002)(446003)(8936002)(97736004)(81156014)(6506007)(26005)(66066001)(53546011)(4326008)(93886005)(14444005)(102836004)(8676002)(256004)(105586002)(55016002)(6246003)(9686003)(6116002)(3846002)(86362001)(71200400001)(6436002)(99286004)(71190400001)(53936002)(7696005)(229853002)(25786009)(54906003)(110136005)(7736002)(305945005)(68736007)(476003)(486006)(316002)(14454004)(74316002)(33656002)(2906002)(106356001)(76176011)(72206003);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5822;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: 8sHM5KJXChe0kNUjeCvLJ8TlRtbYtaSpOsnXI5bzKmGMuZb5Lv9FCYg1rgO8Ar7mXXorxoSWko6NQiC0UrAFe2BEWd8km1tjXoP7HEn/lBN9vBWYnqBxLj1M+V2pWZWZrghzi3+ffzqBU4eixt0L/Cj6ZbyEqj1XOjHb+CSA5Ytvk+LRPzkqpjwbOxts0qu+PlrQxhInrUwjFlM8eGrqdbvoyXoePLaYpIHtCXHbEwVmStsvPuc18k/X5xIEGHeaCmG6fy8700WkGI7YKPI8pTXc07z2Ohsw4DQwIRqRfZLial8QK9zh9XBioFi7PB5lNbQmvxH6hzUmrn5DW28xiR5NnvCilmFTHZqvZzlSg/uD5KcLB6ubdf7/bbuL6YgtTcTeFR7BIDhLKW95UH5ja8n3+tyF+eRNt5GSC6ngTp8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b78e866-5a5b-4398-6d7b-08d691655d78 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 03:43:06.4120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5822 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel- > owner@vger.kernel.org] On Behalf Of Christoph Hellwig > Sent: Wednesday, February 13, 2019 12:15 AM > To: Anup Patel > Cc: Christoph Hellwig ; Palmer Dabbelt > ; Anup Patel ; linux- > kernel@vger.kernel.org; Atish Patra ; Albert Ou > ; Paul Walmsley ; > linux-riscv@lists.infradead.org > Subject: Re: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter >=20 > On Tue, Feb 12, 2019 at 03:53:21PM +0530, Anup Patel wrote: > > If it is initramfs (i.e. CPIO image) then contents of CPIO archive are > > extracted to create a ramfs instance. > > > > If it is initrd (i.e. some filesystem image) then RAM block device is > > created in-place at initrd location. (Please correct me if I am wrong > > about initrd here). >=20 > No. If it is an initrd image we still copy it into the rootfs first, and= then load it > into a ram disk. Take a look at > init/initramfs.c:populate_rootfs() and > init/do_mounts_initrd.c:initrd_load(). >=20 > > So in case of initrd we might not want to free-up the RAM but we can > > certainly free-up in case of initramfs. >=20 > No, in either case we do not need the original initramfs/initrd memory. = I > suspect arm has this as a workaround for some weird legacy boot issue, bu= t I > can't see any reason why we would not want to free the memory on riscv. Sure, the keepinitrd=3D0 by default so it will always free-up initrd by def= ault. Please look at v3 patchset. Of course, we need separate patch to update documentation of keepinitrd. Regards, Anup