Received: by 10.223.185.116 with SMTP id b49csp6824671wrg; Wed, 28 Feb 2018 16:40:10 -0800 (PST) X-Google-Smtp-Source: AG47ELsrfrO1Suc1ejaw/CRlghx/l7tbdThq5O/7do49qBJp6x+Yq5jhJS70L19qJ3+E7beu/anW X-Received: by 10.98.83.6 with SMTP id h6mr6163pfb.174.1519864810489; Wed, 28 Feb 2018 16:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519864810; cv=none; d=google.com; s=arc-20160816; b=IkLRDxYKho0IQG8NCC7u+nYzD/APEY8P0dtdDoccSeeQpDdPlSE14GtITJ3dY45rJF Rk3VYpXcERRNHYojkwyPx3ctRvs/TlyYAIO3k6vK3WtFJ70dijbb5upUQenG3hkd8REI l3wKumqunZwtf5bxFH2sqPn42McyofB2Xy1vn5QPm9SNsXvQryKQ2kDdJTU0pdDD28Ue beHbIsuxGys6ND3/WFmTUcdUd0MZD7jT+UrYRrgd85OJSGns6XIxhzNhhDQ3clUCjxej XA6LkNqabhQP6fss/TQW2pM23ALznU6pncKORgTTVeHhSP16uCYyu9nTIcfS+9R78mSZ TY5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=cBP7LG6BUvs+nmQYRXBEI+P1B+pkmazkxBE/CnyXN00=; b=SGOQc/IrXvxsQA1GJMyxSaNvHQjqgb9Cpy/CHrwcXfZ/RKZc/Je+CSUX0z98YeU93+ NqnNHg0K3gtXlhO/ueMwgjFPoh/kSYwCX3P+1CQ22+hUzseA2I0bulGSAB4KFln1YHK5 0cQz4PPCwTAYSMSXwEfFcwq8bcGuyujWPxLCzWeS+WOsd0LD7SrGAlW/P4bhHdelJ6Eq /aNZbVdDxKO6hlAbglutzUvB5BwFjMPa0b9xDXh9Fy7yYdnjGzuVS2srXDpVxSpSqaor FhanWFMm8KHbHXjkyTB5irhzR3mMpkyLEDCQPOV539quPsrD9cV6vJHj5h88m6fpL/Hw t2vQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l19si1690465pgc.239.2018.02.28.16.39.54; Wed, 28 Feb 2018 16:40:10 -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; 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 S965395AbeCAAiW (ORCPT + 99 others); Wed, 28 Feb 2018 19:38:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:60687 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965280AbeCAAiU (ORCPT ); Wed, 28 Feb 2018 19:38:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 76C0BAD27; Thu, 1 Mar 2018 00:38:18 +0000 (UTC) Date: Thu, 1 Mar 2018 00:38:16 +0000 From: "Luis R. Rodriguez" To: Josh Triplett Cc: "Luis R. Rodriguez" , Kees Cook , Greg KH , Andrew Morton , Shuah Khan , Martin Fuzzey , Mimi Zohar , David Howells , pali.rohar@gmail.com, Takashi Iwai , arend.vanspriel@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , nbroeking@me.com, Vikram Mulukutla , stephen.boyd@linaro.org, Mark Brown , Dmitry Torokhov , David Woodhouse , Linus Torvalds , Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, LKML , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH v2 11/11] test_firmware: test three firmware kernel configs using a proc knob Message-ID: <20180301003816.GR14069@wotan.suse.de> References: <20180224024613.24078-1-mcgrof@kernel.org> <20180224024613.24078-12-mcgrof@kernel.org> <20180228013237.GH14069@wotan.suse.de> <20180228090723.GA11438@localhost> <20180228182603.GI14069@wotan.suse.de> <20180301000057.GA3426@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180301000057.GA3426@localhost> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 04:00:58PM -0800, Josh Triplett wrote: > On Wed, Feb 28, 2018 at 06:26:03PM +0000, Luis R. Rodriguez wrote: > > So for folks who enable CONFIG_FW_LOADER=y, they'd now be forced to gain an > > extra 13436 bytes broken down as follows: > > Ah, I see. > > If you have CONFIG_FW_LOADER and not CONFIG_FW_LOADER_USER_HELPER, then > you only have the in-kernel firmware loading mechanism? Right, we don't have the old fallback mechanism (which BTW used to be the default way back in the hayday). > Given the > *substantial* size difference between the two, it seems useful to have > that option. That's what I wanted to get to, is 13436 bytes is*substantial* enough to merit a kernel configuration option? It seems like that is the case. > What would it gain to combine the two? Well Android enables CONFIG_FW_LOADER_USER_HELPER, and if they do, I was trying to think if there really was any point in having CONFIG_FW_LOADER_USER_HELPER as an option. Who would enable CONFIG_FW_LOADER but not CONFIG_FW_LOADER_USER_HELPER? You see other than CONFIG_FW_LOADER_USER_HELPER we also have CONFIG_FW_LOADER_USER_HELPER_FALLBACK and Android defaults that to y too. It used to be that CONFIG_FW_LOADER_USER_HELPER_FALLBACK was a mess to understand in code, and this series has reduced it to simple bool now. I started wondering if trimming kconfig options may be worth it. Sadly I don't think we can remove CONFIG_FW_LOADER_USER_HELPER_FALLBACK, and we'll have to just deal with it mapping to switching a sysctl option. But I figured it was a good time to also reconsider also if we even had any need for CONFIG_FW_LOADER_USER_HELPER. The less hairball of mess of kconfig options the better to test. Even though this series has reduced being able to consolidating being able to make a kernel now which lets us test all configurations in one build. Who would save some 13436 bytes in the real world? Luis