Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4957908imu; Tue, 15 Jan 2019 08:46:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Jt9dR1BmBSYBHMVMKncUAMfIAwfcYVtCOTu+ppntwkMVAxWjlw5pbjfzxSCESXJotuW0l X-Received: by 2002:a63:fe48:: with SMTP id x8mr4637018pgj.261.1547570812765; Tue, 15 Jan 2019 08:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547570812; cv=none; d=google.com; s=arc-20160816; b=oY/QYYOIDyeR000OqBXttdTN8z1nR2d+qFEMhNPqTKXXE1ibVV6szF9IVmEONjpX5Q GlxzguG86qOiFUdRGdmh0o9bRVfwxPgeUI3wcy9Fblj5zlnwFSpOE1/5batX7abHnZdp rSWN+QgALNu3ro0Cqk0K6dxndLkVVtdvoZBZNwjHl+rH3jkJmMEvqjJWFCu61L4eXdFK CE9KE6SjP/BVkFaaF3Nl9qdLu9yEx50fha2fHP0DrQtW+u/pPZhdUtSYm2idUZw2SkSP UDtYQiqwojqRwaVD1pr7EGmo+tH6+xQBBK4jx1DK/YvpQKfbJ1S6y4FGM5EkC4CKwABI zkGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=e1aFnV3+AHjLIb3Cl49Jvjsz6oEkrBHz280IMDNEfiE=; b=sJST0+bXuwkgpaNV8CpG2Yl1IWHxXzQ4SXNqmY0vVUUVB1Sya/7a/R84soT0exKCfi m/pvEqXEHsdmIad/EKAUjBWpKqecWLZ4FfdYtBi3PrMGu3Iv48NThXExSFMkckmeBQFX StD33lRhNFluOF+96JPr77ZOTBDgsevJ3SnmoagVWdIg3MC3fl823xcxE7yNGEJfZO08 EJpQR08XL0rSLjd2vZLTGyGYCrcGWA4awz+SxTbgT7aT7qn991sRmeUX66k4V6q4Rgi5 yRm6mrDhEw+C+b+H7vvPtdcr9oESZVxnpNXEJmZlGWDE//vKhaeDfuwP8B5XN8vJrGuS ItKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Y7YLEHGV; 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 1si382431plk.296.2019.01.15.08.46.34; Tue, 15 Jan 2019 08:46:52 -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=@infradead.org header.s=bombadil.20170209 header.b=Y7YLEHGV; 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 S1731113AbfAOPo4 (ORCPT + 99 others); Tue, 15 Jan 2019 10:44:56 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58852 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729725AbfAOPo4 (ORCPT ); Tue, 15 Jan 2019 10:44:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=e1aFnV3+AHjLIb3Cl49Jvjsz6oEkrBHz280IMDNEfiE=; b=Y7YLEHGVL0d+HG8AbXeTq/v2m ZDbbxEn9Vx61wxgklriGHYq89BXEeUwVDPsVzS3ov/rw8QEay0gM+Ol/Xshbqw4bgVFSMc6k+5cWd lFoa8kRB4tTvbDxJvRyOadNn5AG7aF8d5Vorf0CnwCRZcnjNWwJMNltefU/GuL79yBhFZsp5svaBf 2fy5Ib+qanSjiuDM7g9BeLK45gdP6J2nYn4l1hJheMp9PhjyyAAr0kRi+Czu5QFFK13e+Y1R3oT7Y Q1Gc3O/2MpbEh7sNJPMeX9jD2fT+EOScwJeV3O8oVX83E8FEF8fUB6cQ573ZTuCL6+YA/BKbZLJb9 Km51MH+Bw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gjQtb-0008GG-6Z; Tue, 15 Jan 2019 15:44:55 +0000 Date: Tue, 15 Jan 2019 07:44:55 -0800 From: Christoph Hellwig To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul@pwsan.com, palmer@sifive.com, aou@eecs.berkeley.edu Subject: Re: [PATCH] arch: riscv: support kernel command line forcing when no DTB passed Message-ID: <20190115154455.GA29629@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 07:15:12PM -0800, Paul Walmsley wrote: > > CONFIG_CMDLINE_FORCE doesn't work on RISC-V when no DTB is passed into > the kernel. This is because the code that forces the kernel command > line only runs if a valid DTB is present at boot. During debugging, > it's useful to have the ability to force kernel command lines even > when no DTB is present. This patch adds support for doing so. This looks fine to me: Reviewed-by: Christoph Hellwig I just wish all this command line magic could be moved to common code somewhere instead of being reinvented badly in every port..