Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1979840ybl; Thu, 5 Dec 2019 10:00:00 -0800 (PST) X-Google-Smtp-Source: APXvYqw5xTM7oJF0OcGCJVfGtwFqdO66dktplvLB1BfRW1Oqj9/DQy1FKX1s1ASRiRi/o0NayUX5 X-Received: by 2002:a9d:6a98:: with SMTP id l24mr7761159otq.160.1575568800671; Thu, 05 Dec 2019 10:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575568800; cv=none; d=google.com; s=arc-20160816; b=Vcw7ykkOiiGF2llLLJkSAZEO0gpyh/M4BqM0g76VX4jy5qJ51YVgjZiAAtctvSbwlp wKOiHcNJQR5/4qC4bpKJJgHIhfiI8PtCXPEzY4JsrAEKtkxT0THY92eHOd2wMxPAFlbS dg0sh2HCvmLRYxymJwQkwiWCroolTp257/3DG6GR4W5fx1A76LB3TQZNOMQEtTgwfXMY Jkij4YpgsNeBCrg5Sei5eROnhLY2yI9p7NqnnPL+S8zYWN6MZ9SahT4B2sljfgkXsKk0 q5Lsxnjz9HgeMI2mXVwp1Nihh7hTuJL0LYFjSwI+iiHSK4Re8om6OytSEIBoUx8Rm/ex 2DFQ== 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=oi4NxqIcB/sLBs0ZuKTjMv5e03fZL2Q3JzIP+n3fXmY=; b=TnKUq2OzpoI7w1dm5I6Nm4hPXrVep16rp985g+b+YkQrTmfnjHHqCwIfjUOjgHe2Wu LSaK49LUtKnXylNwFtsTO2pXwA3M3bd2WAv6ypZGN9z6Hr7+NeXgCquiYeJ1q3CTfUh+ NVgdeyOHv78CI/woQHTyU65XRiacAkge7guVP+gUbJ7QDizggYrS95ra3X6mNTapt8Pi dO1Ou6TMaI/gYy5jISpmgoyVghGI9kr4CMrWkkgEtvCtFePzQakgX7+D/CG8m+/O5uu/ riwc32d7Kgd/ifanHfQv7+tgswyc0ucBc98xsNR5M2yG/qzZyZYR839x3hUC25QxI/p+ uk4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=RA4tiDzg; 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 l26si5412206oti.152.2019.12.05.09.59.48; Thu, 05 Dec 2019 10:00:00 -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=RA4tiDzg; 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 S1729709AbfLEQdr (ORCPT + 99 others); Thu, 5 Dec 2019 11:33:47 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52120 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbfLEQdr (ORCPT ); Thu, 5 Dec 2019 11:33:47 -0500 Received: by mail-wm1-f68.google.com with SMTP id g206so4594444wme.1 for ; Thu, 05 Dec 2019 08:33:46 -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=oi4NxqIcB/sLBs0ZuKTjMv5e03fZL2Q3JzIP+n3fXmY=; b=RA4tiDzg8xnt85vBNiTM8llJjCZOYbDw6eGVTzKAdeDWOme5cGtcTQF98ptJ/nQf6B IqTMoOYdJbaoPjFpTlzKfXt+99zF4bXB56j1Gel47AQ0OmhgCkLgla7g8STbsf03EEY4 HC3GdgIrBYGgJO3gJbeY7VVOiVUGxpXP26EtBosLK0cG2ZN9gTMCLA0FA5HSlYOUFhpM 0GPL9mfrC1MGj7xQ4ENqoDFeNw6XdhPpz7N2un++jCbjtu1898ymrk6ca/CXSosSYn5g uGxzZc3apmIFN65W1szYpl2QhjIuLXISDTxKD1x7YnCyfFq4SkyBsgPaMh9hpCkQC3E0 3AUA== 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=oi4NxqIcB/sLBs0ZuKTjMv5e03fZL2Q3JzIP+n3fXmY=; b=L0Yi/dMdC/7zbg+GQQZ6jP5KtK+AYUNLhL2DGGq5cpXh2yULTZ5s99nzCDUNBVBtFG OfQNMGCg3VC2nhuoSiB0vTmvPJgrcsKszSLkkU5w5eIgydUcHe7uto4vPvEPyFPQmb0v GfWk9Gohp6moGIAmsXcO4IiHV4pv2xLDG1IuTQ0IQm3JeQZP+ZwphSIux3udSNhVpWPF qqFME2y4m66bGjYXF/bpcBFov63StW6l1H/WkW1mHZCehLQ1Upa9Ulkwhor0EkPks9cj VogfwPwM6iT2xtFsV9am7OpbjzHBUIHgxUEx7CYyJagazv24SBixtSiNNzIuVxvouaDm V0ng== X-Gm-Message-State: APjAAAWn0GGh1f29meU30ESM9o+sLwAxRzkwgbiVyeZ1SIiGHK/c5Fzu aM0Te88ceyrbQhFRDrzUqnl+B9NSD7Mk8hZ0LoSmSw== X-Received: by 2002:a1c:9602:: with SMTP id y2mr6074952wmd.23.1575563625723; Thu, 05 Dec 2019 08:33:45 -0800 (PST) MIME-Version: 1.0 References: <20191205005601.1559-1-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Thu, 5 Dec 2019 22:03:34 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Add debug defconfigs To: Paul Walmsley Cc: 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 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. Regards, Anup