Received: by 10.192.165.148 with SMTP id m20csp323395imm; Fri, 4 May 2018 10:51:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWyXxdnnqYKpRHVw26vniL35JeElOYn9Hns9s+JQaA3iGO4C02YcYl8T83XbYz3uGYZZRe X-Received: by 10.98.75.139 with SMTP id d11mr27863605pfj.244.1525456260326; Fri, 04 May 2018 10:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525456260; cv=none; d=google.com; s=arc-20160816; b=ZDOoFPvW2TPdhZzqFoA+FqRVmyrM/WdfNeum5lhJ8bvbQwK9PcUGp/sIMIKqFUaqcf Asa3U8ZwUO+qD7p8c+TOgcrPiVSDDOIVZ1fPnDGgDoTtbQeMYbleZsvPIHx9XwDSBJga gSeRI1AtkxGa3gIZwcXUjuZ/IB2aCGepTip+eiZ7RFAJ0vfxBnYOsyzUQ+BYteysz4vW nFpMv7no93E0PONBR+rv4k92N3gFg9tODniX/tZmTjMzks9Isj0MtDjRUvQSCJw5XTse lCUCERDSsG3CThpkAKmP1554ErVYJc9x+r93wgWouqRmVklxMJIyw2PTbGkPkS+veU/i RVQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=E7q/Zh6QBeHiqkoWpgQOBr9NtxeZazTvUKiLs5EK5Dw=; b=Htw5fiPZwl31dwGhbIAyLaQEIh8dsByk+QVSJDvF+26idF/RlpnAVIDu8RZZZUAGuY tF4QZWupvXOPRbQyb02/ZILlIeVqsfNXWLDgtTkZQOHjtWM7bistTt6Depr07ndLFUPx cFEr7RV4OlaU48oQ9BfyXjjwSkJKwaVqADq+NMQQcPYNjDVT8VI1/FciWXnfi5hrnOGD AoMkt2bCF6EvCPRxfdnqycJWY5eDGXqqLGOAjnRTbmaIZVTZ5vV3gUOKVaKk6wRfaW27 L6vlwp8TUBvIhxGEqTzz0NmveuGp2VdsELjopNTWMczE/FOQabsxjDF9WDB30yeRlIKY efUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zuYIeAUl; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si15908309pfi.54.2018.05.04.10.50.16; Fri, 04 May 2018 10:51:00 -0700 (PDT) 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=@kernel.org header.s=default header.b=zuYIeAUl; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751622AbeEDRoB (ORCPT + 99 others); Fri, 4 May 2018 13:44:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbeEDRn7 (ORCPT ); Fri, 4 May 2018 13:43:59 -0400 Received: from garbanzo.do-not-panic.com (c-73-15-241-2.hsd1.ca.comcast.net [73.15.241.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A4A92177F; Fri, 4 May 2018 17:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525455839; bh=PKT455ywGoOfu8bZsT3CH9zkezvDkbPWSNsZ2TrLy4Y=; h=From:To:Cc:Subject:Date:From; b=zuYIeAUlqMBKE9Z7eodXL1dfSI40iHsV9sbc4HlFTA1f2wscU5fOrrTzBkt1medX6 /jTA7BKKhIqCS2TvNcw/ROc8ntr9wtulyyb4SaY/cHmPg3femjBNOzzRUgjH7+0i/W HkY4RfmKJYMCBPyfWgCMUWfg1l5LlKksE96EeXTE= From: "Luis R. Rodriguez" To: gregkh@linuxfoundation.org Cc: akpm@linux-foundation.org, keescook@chromium.org, josh@joshtriplett.org, teg@jklm.no, wagi@monom.org, hdegoede@redhat.com, andresx7@gmail.com, zohar@linux.vnet.ibm.com, kubakici@wp.pl, shuah@kernel.org, mfuzzey@parkeon.com, dhowells@redhat.com, pali.rohar@gmail.com, tiwai@suse.de, kvalo@codeaurora.org, arend.vanspriel@broadcom.com, zajec5@gmail.com, nbroeking@me.com, markivx@codeaurora.org, broonie@kernel.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, torvalds@linux-foundation.org, Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, oneukum@suse.com, cantabile.desu@gmail.com, ast@fb.com, hare@suse.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, khc@pm.waw.pl, davem@davemloft.net, maco@android.com, arve@android.com, tkjos@android.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v5 0/6] firmware_loader: cleanups for v4.18 Date: Fri, 4 May 2018 10:43:49 -0700 Message-Id: <20180504174356.13227-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg, I've reviewed the pending patches for the firmware_laoder and as for v4.18, the following 3 patches from Andres have been iterated enough that they're ready after I made some final minor changes, mostly just style fixes and re-arrangements in terms of order. The new API he was suggesting to add requires just a bit more review. The last 3 patches are my own and are new, so I'd like further review from others on them, but considering the changes Hans de Goede is having us consider, I think this will prove useful to his work in terms of splitting up code and documenting things properly. One thing that was clear -- is our Kconfig entries for FW_LOADER were *extremely* outdated, as such I've gone ahead and updated them. The kconfig wording update for FW_LOADER includes prior conclusions made to help justify keeping the split of the firmware fallback sysfs interface in terms of size which was discussed with Josh Triplett a while ago. It also includes modern recommendations, which would otherwise get lost, on what to do about corner case firmware situations on provisioning situations which folks have brought to my attention before and architectural solutions based on firmwared [0] for a few years now. Finally this work also reveals that a couple of candidate drivers could likely move to staging considering their age, *or* we could just remove the respective firmware build options. SCSI folks? Networking folks? To my surprise *nothing* has been done about PREVENT_FIRMWARE_BUILD for them since pre-git days! These sneaky litte buggers are: * CONFIG_WANXL --> CONFIG_WANXL_BUILD_FIRMWARE * CONFIG_SCSI_AIC79XX --> CONFIG_AIC79XX_BUILD_FIRMWARE To this day both of these drivers are building driver *firmwares* when the option CONFIG_PREVENT_FIRMWARE_BUILD is disabled, and they don't even make use of the firmware API at all. I find it *highly unlikely* pre-git day drivers are raging in new radical firmware updates these days. I'll go put a knife into some of that unless I hear back from SCSI or networking folks that WANXL_BUILD_FIRMWARE and AIC79XX_BUILD_FIRMWARE are still hip and very much needed. On my radar as well are Mimi's latest firmware_loader proposed changes, but I think those need considerable review and attention from more security folks, Android folks, and the linux-wireless community, our own scattered random folks of firmware reviewer folks. These patches are based on top of linux-next next-20180504, they are also available in a respective git branch, both for linux-next [1] and linux [2]. Question, and specially rants are greatly appreciated, and of course... may the 4th be with you. [0] https://github.com/teg/firmwared [1] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20180504-firmware_loader [2] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=20180504-firmware_loader Luis Andres Rodriguez (3): firmware: wrap FW_OPT_* into an enum firmware: use () to terminate kernel-doc function names firmware: rename fw_sysfs_fallback to firmware_fallback_sysfs() Luis R. Rodriguez (3): firmware_loader: document firmware_sysfs_fallback() firmware_loader: enhance Kconfig documentation over FW_LOADER firmware_loader: move kconfig FW_LOADER entries to its own file drivers/base/Kconfig | 90 +++----------- drivers/base/firmware_loader/Kconfig | 149 ++++++++++++++++++++++++ drivers/base/firmware_loader/fallback.c | 46 +++++--- drivers/base/firmware_loader/fallback.h | 18 +-- drivers/base/firmware_loader/firmware.h | 37 ++++-- drivers/base/firmware_loader/main.c | 28 ++--- 6 files changed, 252 insertions(+), 116 deletions(-) create mode 100644 drivers/base/firmware_loader/Kconfig -- 2.17.0