Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp924968ybl; Fri, 6 Dec 2019 08:24:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxPDFh9rUbn+M4V9KiI0R8zng04T9YM9BrzQ6DE85I/Lmd74gVvqWea5OJLdU0zbLUeq0eY X-Received: by 2002:aca:1204:: with SMTP id 4mr7405504ois.143.1575649451449; Fri, 06 Dec 2019 08:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575649451; cv=none; d=google.com; s=arc-20160816; b=XsfVz2emq2bisawQoJvcFbSEsFzUeCEsedhh4sREX6zwIvK3CgmTngCK1b93OvrJnL AEUE3iEpAvUHe5Mu/MALTIYKeUKAvVtiMymPlYxIChS4jQb1YCOfr5H+R5PP6de6jscH ckq9Mv55HYRpAvxzafUOj0ulpJPhRMoTawUZvz1evu96pWz9rFOzdO0yiEmRzIslwTQE boHD7QjEYJgfAMTIcFFk3O4aPHP0RLBWEtL4YjKxmJMzzU6rf8o7aCuy1hE1384caUqR tKdzv7Kfe0CB5Da2q/FdJpR3QGIHQ5TFMlZFaE+FJQ0fiWugKNW+TmBD/ApPBcrwmCaU iB5A== 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=fdPlznXjsegEiAPYnd0HK7CV3hab9ZO87Ii/Lizh6WE=; b=TpHFXVJDq5wK0IZ42Zu6WFdyZc98x5RONcBtXaljoA4+S7j7SkJYESxFk0FnTxF3X3 9MeQ6ZEtwG9lgjC8RMiLtwwGM4RsKq2bvqMll8gGsS3Iu37XdJXBGNWtFw70IJe30aen iNpo6uw5teHkTComCeGr2RpBQ5bN6sqqs81T8P+Sr7bj34q1Iv0cHQb2oK2nGjd15pM9 Y8CGz9yCPRkqu/xML+8klV10A3zJn28igBPNHzBz2DD+BcS9KMSpSVO2fGRbjRDpJQy5 XZM5mPXcGIW7pwmTjFUW2ptyduQuaPYJlLAc2A2+G5+lOzU/lrBJE0mH5bV9aQO2XcgZ E37A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PMP8XJvc; 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 x24si7805744otk.188.2019.12.06.08.23.58; Fri, 06 Dec 2019 08:24:11 -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=PMP8XJvc; 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 S1726321AbfLFQXW (ORCPT + 99 others); Fri, 6 Dec 2019 11:23:22 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37582 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbfLFQXV (ORCPT ); Fri, 6 Dec 2019 11:23:21 -0500 Received: by mail-wm1-f68.google.com with SMTP id f129so7942998wmf.2 for ; Fri, 06 Dec 2019 08:23:20 -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=fdPlznXjsegEiAPYnd0HK7CV3hab9ZO87Ii/Lizh6WE=; b=PMP8XJvcJDVfVU//ePjm6Du7LzjMC5qbbnQOVa5H1FaRZARVngl8tHBqkedQYDI1iR VdQtTm8G4ZVeqpqsyKoXSWomDfoYHZAzART67qQxmCrJ7AXx+0w53Qw+Qo5+3/XaL/YD SsfFD9oSuSop9Ee2wb94p511OUk5Q+nLRQONesFmDhapfmyVgTFP3z6/eQe7l8ewS8Ru 5bLY39ghP3r4Zsohk4KQXsyKrpNJ8hNwPlkfxfoJmaI94cjua3jM46mmUlNsJrsyuRQ+ qBwngECftopDIfJbkfNEYwLHLfcC1VRAZ7gfNdkqUSneYu+bzgaekbldDzEq7nw52NSk L/Pw== 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=fdPlznXjsegEiAPYnd0HK7CV3hab9ZO87Ii/Lizh6WE=; b=kn+B5Lc45WqW8AWu/RzVAX0fRJubWbzo/OUWi/4Cn+N5e9MAI2uij7LaNiiKK+sl7w LbvSodlYRCRc8lQM002j0afz6RSVnV6tWVJadjdpaWGytRZ/5ozGOBopYy30XdWA0SGg HRyaHEmXD4do2RIgXpWjHNhygIxK0DHpG9moRXBrHJifyXEsuhZdLsV7WEOKdRhXec9H LTyZP2hoJErTzmmxFCkX31Iu3kVgKjfDQO57XnzXVkgz4pod6lU3igbqU4odoXdCagXj kpadu9hIWCXrZ2sgdoO42EFfznbGXLmUDOhlfmtm8UTNX65M0+EgCbnjBMnyrZyOR3AU 4M2w== X-Gm-Message-State: APjAAAVrZKbJ51QrRugbvtO5gNREWyKH98wB6G0lDBLZhLZvIQ+OQhPn jCIrWsW21KQROHkMnFIZtwOMqhIgK4RujcxlLHSfOa+RlFXdYQ== X-Received: by 2002:a1c:9602:: with SMTP id y2mr11253181wmd.23.1575649399094; Fri, 06 Dec 2019 08:23:19 -0800 (PST) MIME-Version: 1.0 References: <20191205174902.4935-1-anup.patel@wdc.com> <20191206090059.vpwku3gsqjtcubf5@holly.lan> In-Reply-To: <20191206090059.vpwku3gsqjtcubf5@holly.lan> From: Anup Patel Date: Fri, 6 Dec 2019 21:53:07 +0530 Message-ID: Subject: Re: [PATCH v2] RISC-V: Add fragmented config for debug options To: Daniel Thompson Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , 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 Fri, Dec 6, 2019 at 2:31 PM Daniel Thompson wrote: > > On Thu, Dec 05, 2019 at 05:49:18PM +0000, 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 fragmented config for enabling > > these DEBUG options. This way Linux RISC-V kernel can be built for > > both non-debug and debug purposes using same defconfig. > > > > This patch moves additional DEBUG options to extra_debug.config. > > > > To configure a non-debug RV64 kernel, we use our normal defconfig: > > $ make O= defconfig > > Wherease to configure a debug RV64 kernel, we use extra_debug.config: > > $ make O= defconfig extra_debug.config > > > > Signed-off-by: Anup Patel > > --- > > Changes since v1: > > - Use fragmented .config instead of separate debug defconfigs. > > --- > > arch/riscv/configs/defconfig | 23 ----------------------- > > arch/riscv/configs/extra_debug.config | 21 +++++++++++++++++++++ > > Might be better to call this rv_debug.config (or riscv_debug.config), > This would imply it is a set of options recommended by riscv > maintainers and also having a suitable prefix means it is less > likely to ever conflict with .config files in kernel/configs . Yes, rv_debug.config seems a better name. I will wait for more comments before renaming it to rv_debug.config > > BTW don't respin the patch on my account. Using a .config file was just > an idea and I'm not sure it reached consensus on the v1 thread. Not a problem, actually David Abdurachmanov (SiFive) had also suggested to use fragmented config for debug options. Actually, we are seeing 12% performance drop in Hackbench by having DEBUG options enabled by default in normal defconfigs so we certainly need to move it out of normal defconfigs. Having fragmented config for DEBUG options is certainly a clean and maintainable approach that's why I went ahead with your suggestion. Regards, Anup