Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp372023imd; Wed, 31 Oct 2018 21:22:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5drozBHplUV49T2UhpbHWtMjyUC5Nv80Q0NG9OGo2HheHyhsG3OFrrsrcpQcEXpZZWVp89Q X-Received: by 2002:a65:60c9:: with SMTP id r9-v6mr5717021pgv.285.1541046138801; Wed, 31 Oct 2018 21:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541046138; cv=none; d=google.com; s=arc-20160816; b=XsrehRAgYBBbMAN+5UoFOw7fZf94wQ24EDHE5Ox2uh6R5bBkuovx2aUSfemDaJ1pFy A6v+/wdZe+awB9KMf0BurGW1OPc2j7jPqhts1dPudgs0x3y+BGs4RTQHSM7AbwWbSlgJ 5YGPLZHWg1s3qDFJVm/t8DxwbSz3SV3HrhRIeu+WDYDlQ9DaiPmqJbcFECm7UDCz424g wCA66mXyNgUzlt4LowZn26uAAejGgmNvC4mkLurMzlMUrumI4zqMzkmTEJWaCe7Fnzsv CbRS4jSsPD8SExgrJ/2KqkNe5tCuXmSUVlofbV4xVQZZtyuUaDfK2CxRk+89IlWTExIL cc1w== 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=j16l5dr4MqYSx094xWUe0/P9jIVKP+hv7JWO+T5J8ic=; b=um1dRn7orQnmXKOSLE+z5uDcGrlYzsSC/eEFVf9iO93pnKWCTZv/3sbb8h7zgPyAFR 02CS9U9vteErnmsu4mM9b+nogvFcnCGBbRhljzYTROjPl0RCNVwLa3tzfQqPpPSKKfFK +gs9GZF9EzLpYBn+kM7g9ksX89pDrvayIRAkbDTCdZz11rbenHwGWT+V71ZODjDZQHZU HutL2lgISeUu4ZdZwccVfJoUe47tVXN3K/AXd1kaw1A6eBwq1tDAwfi9FtydJUNz0xnB b9O5vjPBoT562+sH4+fll95sv9wN6rj366euVA9MszH4Z/1givUr55T9jnk8SQOKL+x9 i6EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rwgVWrIX; 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 bh7-v6si2025670plb.225.2018.10.31.21.22.03; Wed, 31 Oct 2018 21:22:18 -0700 (PDT) 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=rwgVWrIX; 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 S1727644AbeKANWz (ORCPT + 99 others); Thu, 1 Nov 2018 09:22:55 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38245 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbeKANWz (ORCPT ); Thu, 1 Nov 2018 09:22:55 -0400 Received: by mail-wr1-f67.google.com with SMTP id d10-v6so18746481wrs.5 for ; Wed, 31 Oct 2018 21:21:39 -0700 (PDT) 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=j16l5dr4MqYSx094xWUe0/P9jIVKP+hv7JWO+T5J8ic=; b=rwgVWrIXg9mRXMHeQ2B4btxvwj97tNOe1i/n1I877ArZpI8047SYuB99Q1oYJO0ZJI vWVsPSk5ZXiN9VBkUPyFJF6Ur3tDeTFR67nxxH6HLEtMivrOhxTrIvpkucnilClwV11C RpkI/0OxGpauhkx0JsDuznEGHALFsUEsPEEjCiir3WDG87V/la7MmSrMsmSN+9vZNGAP B/q0lEnn+l972XnKr9wBN2hNjnCGrDZC3rhDeLCKsrv3xrDyjjpgwMHVY3DWa+0bIRq/ BnG+pL5WQtLRhu6jpSaVbnmW5BABn0EoR8yohLaLlgdBCIh0HU+ZOX/lPUiUUWFfwNxr q43A== 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=j16l5dr4MqYSx094xWUe0/P9jIVKP+hv7JWO+T5J8ic=; b=OoRux/rtTNDS84okk5L4nnFmY7s7g3NX77MKpTT2EnWZVmkrcW5eckj9bZ5S63ZFHG w/eghM6hGjo2tUSqRdCoPeCV2+r5hMZZyctNftnHZR8l8l4XjVNGcv7d+OdaLPHx66ZF YLoz5PE5qJPoK6v2Qp9eOIe+2Rf3uB5k9WATRb/Z70HcmCjezuoig9oBy/gAWxm7pYZp Ae22hUwX7gadz36PcQOLUdBgVXdJ04vqfrG8cvoaDlqj+F7DIiyGqZxatVPwZOrnEtFg O87Fl/O1wG97H9q0Rs0KuutOLUowI62qkV4zNbB8r85uSkyiaUWy4H0af+VLMZdVSpZB I8qg== X-Gm-Message-State: AGRZ1gIVUL1fNuJkMaXh38dg4a12kDjV7kPtGuQa1WG2GdaT4GZvXC46 NiO0ajL9krkelbNkAJBgYt7iDDX/z+zgWHaE6h0axg== X-Received: by 2002:adf:eb8e:: with SMTP id t14-v6mr5156851wrn.109.1541046099000; Wed, 31 Oct 2018 21:21:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Anup Patel Date: Thu, 1 Nov 2018 09:51:28 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: defconfig: Enable printk timestamps To: Olof Johansson Cc: Palmer Dabbelt , davem@sunset.davemloft.net, Albert Ou , Atish Patra , 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 Thu, Nov 1, 2018 at 4:20 AM Olof Johansson wrote: > > On Wed, Oct 31, 2018 at 1:42 PM Palmer Dabbelt wrote: > > > > On Wed, 31 Oct 2018 12:20:40 PDT (-0700), Olof Johansson wrote: > > > On Tue, Oct 30, 2018 at 5:37 AM Anup Patel wrote: > > >> > > >> The printk timestamps are very useful information to visually see > > >> where kernel is spending time during boot. It also helps us see > > >> the timing of hotplug events at runtime. > > >> > > >> This patch enables printk timestamps in RISC-V defconfig so that > > >> we have it enabled by default (similar to other architectures > > >> such as x86_64, arm64, etc). > > >> > > >> Signed-off-by: Anup Patel > > > > > > Acked-by: Olof Johansson > > > > > > For next time: doing a re-format of the defconfig (to shuffle config > > > order), plus changes in the same patch, tends to be a bit fragile. For > > > cases like these, I'd recommend hand-pruning to just flip the one > > > option if needed, and then have Palmer or Andrew refresh the defconfig > > > during a merge window if needed (usually quite rare). > > > > I poked around and it looks like most architectures have this enabled for at > > least one defconfig, with the big architectures having it enabled for all of > > them. > > It's pretty convenient to have it on, and I think those who haven't > probably don't use those defconfigs much. > > > I decided to do a bit of a case study here to try and figure out why some > > architectures have this enabled for some defconfigs but not for others, and as > > far as I can tell it's just an oversight. Specifically, looking at sparc32 (# > > CONFIG_PRINTK_TIME is not set) vs sparc64 (CONFIG_PRINTK_TIME=y) I can't find > > any reason for the difference. sparc32's setting can be traced back to > > I'm not sure sparc32 is overly active these days, which might help explain it? > > > commit 216da721b881838d639a3987bf8a825e6b4aacdd > > Author: David S. Miller > > Date: Sun Dec 17 14:21:34 2006 -0800 > > > > [SPARC]: Update defconfig. > > > > Signed-off-by: David S. Miller > > > > which changes everything in the defconfig, while the sparc64 version dates back to > > > > commit 3ebc284d52757cf39788731f8fddd70a89f7fc23 > > Author: David S. Miller > > Date: Mon Jan 9 14:36:49 2006 -0800 > > > > [SPARC64]: Update defconfig. > > > > Signed-off-by: David S. Miller > > > > When we first submitted out port upstream we had an empty defconfig, with the > > theory being that we should just pick whatever the default in Kconfig is for > > everything. That's obviously the wrong thing to do because most of those > > options are bogus. At the time I didn't care enough to look because I just > > wanted something to work, but now I find myself asking the question "what goes > > in a defconfig?" Is it: > > > > * What I, as the maintainer of arch/riscv, want? That's essentially what it is > > now, as we have things like "CONFIG_R8169=y" in there because I happened to > > have one sitting around when we needed to plug in an Ethernet card to test > > out PCIe. > > * What distributions expect? There's a major element of this in there right > > now, as half this stuff was just selected because the Debian and Fedora guys > > suggested we do so because adding things to the RISC-V defconfig made it > > easier to put together their build scripts. For example, we ended up with > > "CONFIG_EXPERT=y" because some setting necessary for the distros was hidden > > behind it -- that seems like an odd default. > > * What users expect? I'm not even sure who users are in this case, as from my > > understating most people use distro kernels and don't twiddle Kconfig > > options. > > * What is necessary to work on RISC-V hardware? This seems like the most > > reasonable use for an arch-specific defconfig, and subsumes things like > > "CONFIG_SIFIVE_PLIC=y" because without the PLIC driver nothing will work (but > > the PLIC driver shouldn't be enabled by default for all architectures, as > > it's useless everywhere else). > > > > Maybe I've opened up a big can of worms here... It just seems silly to have > > most of our current defconfig be RISC-V specific. > > So, on 32-bit ARM we have heavy defconfig proliferation, and for arm64 > there was a push to only have one defconfig. I'm heavily in favor of > the latter. > > On ARM64, the options turned on, are more or less "what makes the > kernel useful on systems". Anything that would be needed to boot to a > rootfs tends to be =y, while some other things that might be optional > and not used everywhere tends to go in as modules. > > Beyond that, for the most part it is maintainer preference. I've > normally turned on platforms and drivers I need for my boot farm on > the multi*defconfig configs on 32-bit ARM, and the same has been going > for 64-bit. > > Distros will always want something different, for policy reasons or > otherwise. Main purpose of mainline defconfigs is to make mainline > kernels useful and bootable, so having more of a superset approach > makes a lot of sense in my mind. > > > Anyway, I'm happy with the change because it meets my "what I want" criteria > > :). I'll split it into two parts, though, as that way when someone else has to > > go to some archaeology on our port they'll be less likely to get lost. > > Sounds good to me. On ARM, we sometimes do the "refresh defconfig" > runs across the board, but not for every release since it tends to get > churny. Make sure you do it before -rc1 to avoid conflicts if > contributors base branches on -rc1 and send them to you (probably not > that common yet). > Thanks for the comments Olof and Palmar. I will break it into two patches and send it right away. Regards, Anup