Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp837575pxb; Tue, 14 Sep 2021 09:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTJ+EXEbijXdyzY/MCx08Q3Vmgkcy8hHIJAk+/1hoAu/AMP1xYtMVuEfm4eWE1vfwGM/ZI X-Received: by 2002:a92:7f0a:: with SMTP id a10mr13447253ild.22.1631637912096; Tue, 14 Sep 2021 09:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631637912; cv=none; d=google.com; s=arc-20160816; b=DTUyzHifFX5xhAn21CW/15Avqy8soPktjJ/spWu1eh3fxoHoKERhN6y3DdNPpOB/Jk YqH5kRZvaA4WkN2DCd+iuyclXQJuzjeyZyXJWLtsO1J4ncBftU5UZq4Fc9P0gBYrSVgg YBTMceQhHy0LHkdnH/RweBXzHsIQdzzs1NkKyIf0ZOaZRAhhBPmllwIc4/2NYBAFtz72 Z/bUyq/CtTEmhhe9cQLk0Nlha7UgQas+lQKc8yffGiVDolJEWXRhGH8WE8Ij2qcd+p3+ FL8png2v/9BEnJgV2wprOeUyM2/Xf0EQBfmGMWTbC8K1d0DXtt+yTbILVjQcANtWfS/U xVUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n6CAK2ehnhV5D05PFbTpVXv8GW58kVhsKzx/9xBlgbw=; b=lFjEOoESudmfgMUJUypmEV42rvZSv3dbRaruJMC/z32Qc0fHNltEtsW/g/dQrGqtM+ hYiKvgA3img5plgz8llhPZMXbqFstw/UZ8DO1Vc5IhOEgGYDC0TlUe+/BoZAdEKG3naK G2rQhLIyhkJVNrhzwYrjk9G/0ZHLuUdsNKgxnXr5zMVBMLpGLV0j8tCLGSImtuf8fRdC 19paLm2CCk/3MlUgILj5ueNm6pkp8Pp94efQFeP7nn/7q8duIaL+80hb/54BcmPjyTLP vgWjw3ub427DVEKi5+9B7EK4sJwPjaJMzRu9UgHlYxcfKqGg9cFO1cUUAgsQ5BKI/DXR g/3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=YtvEUTDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si3127758jaq.62.2021.09.14.09.44.59; Tue, 14 Sep 2021 09:45:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=YtvEUTDv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbhINQpU (ORCPT + 99 others); Tue, 14 Sep 2021 12:45:20 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41072 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhINQpT (ORCPT ); Tue, 14 Sep 2021 12:45:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=n6CAK2ehnhV5D05PFbTpVXv8GW58kVhsKzx/9xBlgbw=; b=YtvEUTDvdgQVZL7zt/8QUe4Ad6 E+vOcMKr33Yxv5tZ/9x3bLPCnKLaJlj9Jr/26HWLKSp0ii0o1rCvoNXCpoFyruWvWDhNSuyMxEMXF 0C3yiCmTY52QBhtbUuzH/m1CgGKRBoIIWgDPsywSj8JjQ3hZbej80WZaX+Zyb0IqCevM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mQBXE-006cqY-EE; Tue, 14 Sep 2021 18:43:52 +0200 Date: Tue, 14 Sep 2021 18:43:52 +0200 From: Andrew Lunn To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , John Stultz , Marek Szyprowski , Rob Herring , Geert Uytterhoeven , Vladimir Oltean , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 5/5] driver core: Add fw_devlink.debug command line boolean parameter Message-ID: References: <20210914043928.4066136-1-saravanak@google.com> <20210914043928.4066136-6-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I did think of this, but the problem is that dynamic debug logs can > get compiled out (when DYNAMIC_DEBUG isn't set). I think debugging of > fw_devlink needs to be possible without having to recompile the > kernel. So in a sense similar to how initcall_debug works today. My off the shelf Debian kernel has it enabled. Maybe you can check other mainline distributions and see if it is enabled by default. You are also on a slippery path. You argue this is needed all the time and add a custom knob. Somebody else adds a new feature which they also argue always needs bug, and add there own custom knob. We soon have lots of custom knobs, each doing it slightly differently, in different places. Chaos. So you need a really good argument why your code really is special. I would suggest you start with dynamic debug, and collect some statistics of how often you need to ask people to recompile their kernel. Andrew