Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp764726pxb; Thu, 30 Sep 2021 17:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoLe/dF5S3ur9yXAge9JIoa7vD7og+FlU5Gi1ywPuX1ARHRai2WXip7f4eJxzEV3Xm2ECz X-Received: by 2002:a63:1e4c:: with SMTP id p12mr7251093pgm.275.1633047278140; Thu, 30 Sep 2021 17:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633047278; cv=none; d=google.com; s=arc-20160816; b=Nvrn/ew1Y4RNRih4H6/bF5cxWiOE4I37sHLhVfqdW/65/KY7QFv9aYk/y8Jyx02QW4 W17MtJH0aASL5F6Busd5XjAUj4HA9I02A+WG5dM1zhoncjQOhvuKcXxbsfxsdlveM6xp zqMEdcRr/N0CzI5kpx2pNozIZkyicID6vPUrtrfqMOvX4aLLAniZGa1QOoiwd96v6Z0Q /ZZ9sh05tliKpG0VeGsH7q8yiPTBigiU3etP3z/Fxvxzh7v67LLg7NM7JwlzejyreMXj wEv6h1uuYzKXsatHJnDppRnh5eKVk1P2RMtNHn/03oVVaC2qMmjSy5GB7Pu67IMOzrmG dehw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FNKKr9E1dVe3sE87atOo7bDCMgvAC5uMdOIVxSHldZI=; b=s90ydd06hg0zOL3xlX+n31+xOrs/BRwz096SKk3J/7uocerpFyCDMuFPhJCBBptlG+ 9O92YkoM4xS4Nd1j3KbEsXh4JpD6UZ6B2sqPsuAY1xfgd8LkO74iVj9XoEokEiKmzwZV 97+tbwJYXGO4II+Wb3xQWPmMfifUsSHrNKgKXBrk25uJH6eDDuI3T1frvjsM//Hkp2hQ Ld0xqXYD9015bki3lsavapiwPKjB6FxjOukmAkjBfp0qhnyTsMIAuH9bj5hZODtggG6j mouK22J4I76ADsfffih1iS05PqPU4xyMuZ9INY0Ei8/9ZQEVip+3T1RuQZhz2tz9ug3T hG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMk2682Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu12si8198453pjb.148.2021.09.30.17.14.24; Thu, 30 Sep 2021 17:14:38 -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=@linaro.org header.s=google header.b=FMk2682Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350998AbhJAAOv (ORCPT + 99 others); Thu, 30 Sep 2021 20:14:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345765AbhJAAOu (ORCPT ); Thu, 30 Sep 2021 20:14:50 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10C9CC06176A for ; Thu, 30 Sep 2021 17:13:07 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id 72so7596772qkk.7 for ; Thu, 30 Sep 2021 17:13:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FNKKr9E1dVe3sE87atOo7bDCMgvAC5uMdOIVxSHldZI=; b=FMk2682Q3LfDJL6qfYd3sqNp4kR7efCRowAdIiyYpGqErUuRyLaLscC7UYBE/vKX50 M0PlTaAuYt6pO7UsspmZMPRLkwJr0dVivYVpQUv02Gr1ByHo8eFKLrkv9tHEvzkLSGnA AmHO7uS8LMgJZScOwO+vfjZ9fNIeZVHIlq8gzBy1etaFXdLU08YhFNkKrEpQYaFvR5QP ty2Ms6R95h9JjFD+4KzDmtxTF1jrOVp2nYpl/NfEANs4Wp4EES+aieKHflJ/ejqpJKf7 odr138CBqrY9sBShYQMHtyyfMWk6jjauhA3m7KvLI11Hjo/EjG8TSd11Q/bY40dV+2ty f1Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FNKKr9E1dVe3sE87atOo7bDCMgvAC5uMdOIVxSHldZI=; b=6pw0AIYbkEnU3F0Xn089ctpY3sZJoH1UQbx2DUskc6WjZTjzHa2GDUl/unzITGf4VX bwVIFMwsIiFigW47UtmHUcVA5uzX8a6TWeeLmjORTNM+LbyK+pe1Pakd6ygirK037gUz liWUECCu/bL8EruEnaaVUAc0BLMYP6VNtU6gs/vPer51RIHGVdC33fmbLtpUY1c0h925 MSc+869R1G/4V/CaNIAaT+zKbmNSlID1Tu+DoXqrA/+mDAPMn/Syj36SwUUDMsyaWcSC fP/9UA0+DiboRguUegYllwAqmMfJK0ciNJ0wG9ViqYP5iAlKQR2HCu5TXH9PQrWgpoFe 3G/A== X-Gm-Message-State: AOAM533OFO+MWD2CjBO9EetPnqfyB7lBA+sa1ByxBEkb50o5kK0Ylqtl rJ0an7ujsm451Ncmla0n9nDe+FXpuoh1YbHWDS0L5Q== X-Received: by 2002:a37:a391:: with SMTP id m139mr7319292qke.186.1633047186236; Thu, 30 Sep 2021 17:13:06 -0700 (PDT) MIME-Version: 1.0 References: <20210930215300.60290-1-bjorn.andersson@linaro.org> In-Reply-To: <20210930215300.60290-1-bjorn.andersson@linaro.org> From: Dmitry Baryshkov Date: Fri, 1 Oct 2021 03:12:55 +0300 Message-ID: Subject: Re: [PATCH] arm64: defconfig: Disable firmware sysfs fallback To: Bjorn Andersson Cc: Catalin Marinas , Will Deacon , Shawn Guo , Geert Uytterhoeven , Vinod Koul , Arnd Bergmann , Linux ARM , open list , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Robin Gong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Oct 2021 at 00:51, Bjorn Andersson wrote: > > Part of the enablement of SDMA on the IMX platforms, '7f4e4afa140c > ("arm64: defconfig: Enable SDMA on i.mx8mq/8mm")' also enabled > CONFIG_FW_LOADER_USER_HELPER_FALLBACK, to allow "firmware loaded by > udev". > > Unfortunately having the fallback enabled does, due to the 60 second > timeout, essentially requiring userspace to provide a firmware loader. > But systemd dropped the support for this interface back in 2014 and > because arm64 is the only architecture that has this enabled, there > doesn't seem to be any standard solution available. I tend to use the following 'standard' solution: cat /lib/udev/rules.d/50-firmware.rules # stub for immediately telling the kernel that userspace firmware loading # failed; necessary to avoid long timeouts with CONFIG_FW_LOADER_USER_HELPER=y SUBSYSTEM=="firmware", ACTION=="add", ATTR{loading}="-1" > Examples of this problem can be found in e.g. the ath10k driver, which > with a standard distro can take about 10 minutes before wlan0 appears. > > The alternative to this patch would be to change these drivers to use > firmware_request_direct(), to avoid the sysfs fallback. But that would > prevent other systems, such as Android, to rely on a userspace firmware > loader to pick the firmware from a non-standard place, with just a > custom defconfig. > > This patch therefor attempts to align the arm64 defconfig will all other > architectures in the upstream kernel. > > Cc: Robin Gong > Cc: Shawn Guo > Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov > --- > arch/arm64/configs/defconfig | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index da988a54bfb9..f9e0b3fdaf0b 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -243,7 +243,6 @@ CONFIG_PCI_EPF_TEST=m > CONFIG_DEVTMPFS=y > CONFIG_DEVTMPFS_MOUNT=y > CONFIG_FW_LOADER_USER_HELPER=y > -CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y > CONFIG_HISILICON_LPC=y > CONFIG_SIMPLE_PM_BUS=y > CONFIG_FSL_MC_BUS=y > -- > 2.29.2 > -- With best wishes Dmitry