Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2443863ybc; Wed, 13 Nov 2019 14:35:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzIh3JaZnj+ccFHI+eCchIQxC2jhG/ofEx/XWxdhLhtysQRHBNzueteTzoOOKzc/Be08Jv7 X-Received: by 2002:a17:906:6d59:: with SMTP id a25mr5373204ejt.57.1573684517692; Wed, 13 Nov 2019 14:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573684517; cv=none; d=google.com; s=arc-20160816; b=v8rfqjQrWAMsVvJ4fyY75EdIq+8nrq648JZhNQIuX8lqcNe+6+mdsnPglK+HvkHv2B R94ZTZ5hGBuNGxfCaOVCi9Vf5zC2xufXMmObR/f+5Cl1fBAdvVgVcaE/3IFWewSORXvq 7DtrnqIQueKsMUUVHL17MpPmbMvtZWPb7NFzOWuXjbkPMYD34X05qEuvYZRVTcwu7NCo zb1OUOUrdW8WRRDlZ9e9w7dlUAaT35wb3LwZ2hqE16aItG1e6XhDT4GWqGNNzCfQAEzA sBZT7rAryUtTvlDH/roz3Zw8S/XzFsqqOtziU6JQ1wDs364+JFo9N0aLSG2wDMdTFoqy oxSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aZxJ73oZSgqijSV53S37oyWVbREhPPJnkeSvFjOaHRY=; b=K/RPhwfl7by+Xn5KMomw/OEmwRxZCLsSEmuUMb9xfEksU6HY/0cLwZM4yfAwxk1Rgi vA/zt2+Y8ubknVLfMa6OW/xpBLU4mkL0rbl9hnSywwDLyLgNPLapoOcQaRLmvMZmwixe XJLfFQO/WIHSga+FYoaAH/hcmMuI/peXGOjxPNQM3dsh0nfTcMpjRcVGHw2f3f0heCph GDQteyX3gusCkpK3rj6GPS8TAwUUTi/vR+0tKTnM2ddUfud8Ymi8/ouQmLSO3p40ylYA QL4mq5Paonib1mU7CYgPl/Ul9PAbYVscxPSSxZEl0Mx5kgHvCNZkni93jzsBsx/jdifX W4zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=pGbXq5tO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15si2702726edl.95.2019.11.13.14.34.52; Wed, 13 Nov 2019 14:35:17 -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=@android.com header.s=20161025 header.b=pGbXq5tO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbfKMWds (ORCPT + 99 others); Wed, 13 Nov 2019 17:33:48 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:45824 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbfKMWdr (ORCPT ); Wed, 13 Nov 2019 17:33:47 -0500 Received: by mail-pl1-f193.google.com with SMTP id w7so1663056plz.12 for ; Wed, 13 Nov 2019 14:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aZxJ73oZSgqijSV53S37oyWVbREhPPJnkeSvFjOaHRY=; b=pGbXq5tOdXqAg/QNG2WO1pDSzCg18VJpo5e8JVAeyA08wpHt93eBSIOiwYU4O6VYV6 3fqDM1SjMi0iPBhJh0mWlWiKtvQHk+6MlFP2TImCwDiLDtaazNSwSQMoq0Pnni0HQRbF +2gOc/mWOIf6psbQYqOEbsez2yrScfAorVEHBl9g6hwnDxoKxBvkUtkxvimPNxyL3aH7 Z+L6jkCBKAhCVFKjDzTz4jO4SchCsFMT1lf0TzNibMizGXqwQex/klicjC3++P6wk/HG sfjBTygoDRtlJKn+RscDbwJXF/PdIawPRQGlZYdRIr9nxTM13ZOskYw6hL+NFi58HdBA QjWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aZxJ73oZSgqijSV53S37oyWVbREhPPJnkeSvFjOaHRY=; b=cFCt7NWDVMb99JUsZvNClB8aftgHqrHPTt+HaCoZsyiLwpvZ1RXLCx5OX/UDZqrEmi N6JNXliJqCELo6Bji40cZWSxrTNpU2wI5Cf34zHoHAlw/PHzC+TIITrPc47gxEcGBdf7 LCR/ftrWMrnygo541+g7hgWvjUWVqaqVlOyBohawwV9LCkjTe+aF/m63WTIr7tHe58+o ZVuqpzdUJvjfO9HBMDhqcIW7XRyoXQ7b8U0NR2knDiFO+bvEzireQ3pkpY93DEKULddA mDCZR59NnFiVdtRoEhyQ1Kw2ST5QJsrec2EXVT/xfqfiwY0chYOM4yYvBNGosZNFUf5X zSZQ== X-Gm-Message-State: APjAAAU4O8GOMXLU4abqvsoGZYqwUw1AJ4uqew5CwgjAO7eW4WDtvOcC OxEvUVBGzZYxLco6caq7SO08r8vQE9HdSg== X-Received: by 2002:a17:902:7c04:: with SMTP id x4mr6423766pll.0.1573684425432; Wed, 13 Nov 2019 14:33:45 -0800 (PST) Received: from nebulus.mtv.corp.google.com ([2620:15c:211:200:5404:91ba:59dc:9400]) by smtp.googlemail.com with ESMTPSA id u24sm3805963pfh.48.2019.11.13.14.33.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Nov 2019 14:33:44 -0800 (PST) Subject: Re: [PATCH] firmware_class: make firmware caching configurable To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Tim Murray , Venkata Narendra Kumar Gutta , "Rafael J. Wysocki" , Luis Chamberlain References: <20191113210124.59909-1-salyzyn@android.com> <20191113215031.GA3944533@kroah.com> From: Mark Salyzyn Message-ID: <4bca568b-4ffd-f880-7273-37db4d9f8f54@android.com> Date: Wed, 13 Nov 2019 14:33:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191113215031.GA3944533@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/19 1:50 PM, Greg Kroah-Hartman wrote: > On Wed, Nov 13, 2019 at 01:01:13PM -0800, Mark Salyzyn wrote: >> Because firmware caching generates uevent messages that are sent over >> a netlink socket, it can prevent suspend on many platforms. It's >> also not always useful, so make it a configurable option. >> >> Signed-off-by: Mark Salyzyn >> Cc: Tim Murray >> Cc: Venkata Narendra Kumar Gutta >> Acked-by: Luis Chamberlain >> --- >> drivers/base/Kconfig | 13 +++++++++++++ >> drivers/base/firmware_loader/main.c | 6 +++--- >> 2 files changed, 16 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig >> index 28b92e3cc570..36351c3a62b0 100644 >> --- a/drivers/base/Kconfig >> +++ b/drivers/base/Kconfig >> @@ -89,6 +89,19 @@ config PREVENT_FIRMWARE_BUILD >> >> source "drivers/base/firmware_loader/Kconfig" >> >> +config FW_CACHE >> + bool "Enable firmware caching during suspend" >> + depends on PM_SLEEP >> + default y >> + help >> + Because firmware caching generates uevent messages that are sent >> + over a netlink socket, it can prevent suspend on many platforms. >> + It is also not always useful, so on such platforms we have the >> + option. >> + >> + If unsure, say Y. >> + >> + > Shouldn't this entry go into drivers/base/firmware_loader/Kconfig > instead and depend on FW_LOADER by putting it in the correct location in > that file? Good point, respin on its way. > > Also, no need for two blank lines. > > And finally, 'default y' is only a good idea if your machine can not > boot without the option. I don't think that's the case here, correct? > > thanks, > > greg k-h I am concerned about the change in user space behavior and to prevent defconfig churn.