Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1929750ybl; Thu, 5 Dec 2019 09:11:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzTofTtH6umm55DokR9oB5Q0f5DMdlmuM4B8s28SIKAnHZV9i1N6Tgb6zTn3PnHi9exRceq X-Received: by 2002:a54:4f8e:: with SMTP id g14mr7949638oiy.144.1575565861613; Thu, 05 Dec 2019 09:11:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575565861; cv=none; d=google.com; s=arc-20160816; b=j/C9zuveUxaYdyL2yDtW41Y7PaVtxKlk1aNvszQDXLQst2oGnsAS5XcKWVfNZQLpy5 ldwHY52qyQtTYZGzBm2dNEYDkJ7bVs02mCYKlSsmMhmqLO1eNNj6L7n8wBeben0KV5PG Vf1o1wts46rRUeqow310shxtgPq4tCjAp2and9tr7kSYoZ21deCDi3cetWzKdYh/WVne jzyyCsZhQ6Wir+9s9D4KuR46h3VkDGtfcCUsGfZmRCTX+yUThLM1uTzRPTECigsPdSS6 NsxuRhfqoF3qvbKx0goEb4WRN9T5dB4aOxryQnHjFUI6Ykhm/HIMtYr3V4U6gOYmx0Wg jxLg== 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=HcoTcF4iRuur8fj4ZxTucRs4Jlu4z0J4uMeCsvrPgA0=; b=PxQC+Z0Os+pubqJ1262aAr9DZLDzGAdjK+OGZoQpXuyqQd+s7rOKskQU15xbCWjAzz 6Ohkf7HLZFjBUqfpRlrDT9cPH2jHrgP3CuvNzbf9H5YAFlLNrn4/BibN31+z78MNPRhF A42FB9MdjLJQWpox18wKwoPleDXNWd4NbVWMEL+JHvQUlb74nZF/2dz6RUtl9H7ypjpq m9cOksnp2I0xPGIVkjVB0eWTjtVYazx3TgDYrlt0lMoXq9R9s6cvbweHjny2K7BEO1HU UOkdI3N92/jYQF6IFkSaCcq8B4cQ2zrgJE1fxe8qA64r7aanZMv6rlqZy1GTFQXZ7ti1 q44g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=GhB+Cp5G; 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 i185si4427501oia.187.2019.12.05.09.10.48; Thu, 05 Dec 2019 09:11:01 -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=GhB+Cp5G; 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 S1729598AbfLERKM (ORCPT + 99 others); Thu, 5 Dec 2019 12:10:12 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40174 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfLERKM (ORCPT ); Thu, 5 Dec 2019 12:10:12 -0500 Received: by mail-wm1-f65.google.com with SMTP id t14so4481673wmi.5 for ; Thu, 05 Dec 2019 09:10:11 -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=HcoTcF4iRuur8fj4ZxTucRs4Jlu4z0J4uMeCsvrPgA0=; b=GhB+Cp5GOFV9kdBjApIpdy8Oog116Zo+KvrUdUrw4aeA3NNowP+teHJw08qpODUq58 Rd1X+kIkDOvrow7+B2HCFYOGogx9cRB4KrY8B0jO06HKDTfh95VhVbDwjHPotNILj0Wy mmmUvmsesOWiFMLwd/qFV67yUxuZ7fyFDpCWnbiGtCkSJ+wOS4Dm/UAAEELhj+toaQLk 4btu6/ModWT2ApflPzcCOeDme6VbmOXFAyV9aI//qKfWt6+/fGDtuvYKug78C/KQqV5w /dp0NqUIDNdvLstMHXRKEomk7cttm1xW6Cvo8unmJUOEvMf8nGkTYba7xbOLPtho0aFv kChw== 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=HcoTcF4iRuur8fj4ZxTucRs4Jlu4z0J4uMeCsvrPgA0=; b=WioBVMCLKc2HW3tAF8Hg+aM/WUUubbV0iwCaYp7CDTVWmEIin7JhP1xbMdnwfPeAM+ ZAYHUnFKvboyRTe+YAuP+A+4lLklFfTgm55ZwqpFl1gKHltuVRN8foGB2/p9N1TD1/dc 3m2+Jd4aINp3J7DCs3kxWwtyAR4aegRg4Z4fxC3M3oX9nB7NznBPphj3vJWKNWhfpo7d SfSbKizpaZSCF4Y6zs7Cd7Sj8mbVI7r407C+jUiLMDo5izFiBZ02GaYZP/GRI2+pVwAj Ey7Neh6MbsVVwoJrikCZykhHNqiUM4w2Sp2DvGHpr2eg2I5SqRW6OrEHSZB9xhHSs9oh 1IUA== X-Gm-Message-State: APjAAAWg28ilDmY1np7ZwRTuQYa1bWJ1LN9fahhBQeYMsU5CewJcq0sQ qG2Vrf/1eTV/O5OdCH86j1JnGs6kkrdj+0xuxzmpqA== X-Received: by 2002:a1c:9602:: with SMTP id y2mr6231625wmd.23.1575565810251; Thu, 05 Dec 2019 09:10:10 -0800 (PST) MIME-Version: 1.0 References: <20191205005601.1559-1-anup.patel@wdc.com> <20191205164706.svarpjp2kdokl2pg@holly.lan> In-Reply-To: <20191205164706.svarpjp2kdokl2pg@holly.lan> From: Anup Patel Date: Thu, 5 Dec 2019 22:39:59 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Add debug defconfigs To: Daniel Thompson Cc: Paul Walmsley , Anup Patel , Palmer Dabbelt , Albert Ou , Atish Patra , Alistair Francis , Christoph Hellwig , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" 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, Dec 5, 2019 at 10:17 PM Daniel Thompson wrote: > > On Thu, Dec 05, 2019 at 10:03:34PM +0530, Anup Patel wrote: > > On Thu, Dec 5, 2019 at 8:33 AM Paul Walmsley wrote: > > > > > > On Thu, 5 Dec 2019, Anup Patel wrote: > > > > > > > Various Linux kernel DEBUG options have big performance impact > > > > so these should not be enabled in RISC-V normal defconfigs. > > > > > > > > Instead we should have separate RISC-V debug defconfigs having > > > > these DEBUG options enabled. This way Linux RISC-V can build both > > > > non-debug and debug kernels separately. > > > > > > I respect your point of view, but until the RISC-V kernel port is more > > > mature, I personally am not planning to merge this patch, for reasons > > > discussed in the defconfig patch descriptions and the subsequent pull > > > request threads. > > > > > > I'm sure we'll revisit this in the future to realign with the defconfig > > > debug settings for more mature architecture ports - but my guess is that > > > we'll probably avoid creating debug_defconfigs, since only S390 does that. > > > > We have a lot of users (Yocto and Buildroot) dependent on the Linux > > defconfig. I understand that you need DEBUG options for SiFive internal > > use but this does not mean all users dependent on Linux defconfig > > should be penalized in-terms of performance. > > > > This is the right time to introduce debug defconfigs so that you can > > use it for your SiFive internal use and all users dependent on normal > > defconfigs are not penalized in-terms of performance. > > > > If you still don't want debug defconfigs then I recommend reverting > > your DEBUG options patch and you can find an alternative way to > > enable DEBUG options for SiFive internal use. > > None of my business (except that I watch threads with debug in the > subject line) but why propose putting debug options into any kind > of defconfig. If you want standardized set debug options to chase > problems why can't they into a .config file rather than a defconfig > file. > > In use it will look like: > make defconfig extra_debug.config > > That way you don't have to maintain two almost identical files that will > inevitably drift apart. This is a good suggestion. I will certainly try it out at my end and send a v2 with "extra_debug.config" file. Thanks, Anup