Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp669239lqp; Fri, 5 Apr 2024 05:41:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7KZ/yv2h3AfdZ5LAsV+HBiSBfrWMuw5QTfmSxDGtSorWcHB4gUmIHWfg+eHRBu5rTOYy+2xDah5CktSzzyBQk9iotfLzdkcshCPz2rg== X-Google-Smtp-Source: AGHT+IErV3dBWtmx2NlMRhCPYwwQ+JQmMWxWx7vV1ykcarsjwqlhKgHSqqODqMBsjHEAPrARdFqq X-Received: by 2002:a50:d75c:0:b0:56e:2fb9:66d6 with SMTP id i28-20020a50d75c000000b0056e2fb966d6mr1177532edj.27.1712320911688; Fri, 05 Apr 2024 05:41:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712320911; cv=pass; d=google.com; s=arc-20160816; b=eq2080Gb0EV8UKG7HOdQtBTTg92Bqp2FpHgmdGlPGGUoUN1PrnZpnT1oWSNeknsrgD LRFuG/DABmwM+W3u3SZ8/hlSCbNoEkppNGzk7YiLVWVS8kdNwBJ63xoiwM9tMKczDeXf B/M9VkqEH/K6dRUJVppmeszi6+/7zbbjlzIJUsWpzdD53PonB4/fjqkJgxIvfcre9Eap lxwGN+o8F5F9Z8sir9O9M9CHgMCBbAPY+yXChsgMW/SfTdJXUjW0RJCrnk5c8LqqgOOm tZW3Ib1n7sGI7gDePo91maKdbXj5dHSvgYvnfg+DID+U6mQJCHECwuZ8mY4MZJHE/5HO A/wA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=hXjaSwdqCjovN9pj4QZqbyEENHMxVjVAz127GuwwYY0=; fh=c64NljolSJXxy0ZajBktTJGN7MCMnsg5xYQI0v0fF2c=; b=P9q1L5xjRfQNTSaUvh4TOFsP44r/SeMCuiwvdId/bYoCkH3NLSSShlJ9VyxTWMf8Ga 1uUpwGhzgYbL70fdo022YPWx4FvflewcGWYUy1yjxugwQziW2Eki4xd+B+mrPzPvxou1 MlbBAfoS2lzc7qC1OBzWj6A/uPRxVKTps5Dc8qyl7nPbf9XNig5Akr74c8q0SUnIDlRr LxtKJMmcO45IUaPjeNL+kabPN2elRF3zQ0sAjKammcOfuULS7Gdr4HVaeNabhDARXOtl ARJOsu1Cect5iR/NRcO6SkSgjg+9U79uSj5oGuVQ1R+0HR/UbVkCI/xpdoxfwEX6rLQk ir4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pFHM2C2G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a97-20020a509eea000000b0056e24aa57b6si692441edf.587.2024.04.05.05.41.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 05:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pFHM2C2G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1900C1F23673 for ; Fri, 5 Apr 2024 12:41:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EE7D16ABDE; Fri, 5 Apr 2024 12:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pFHM2C2G" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C270328DB; Fri, 5 Apr 2024 12:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320904; cv=none; b=HgsQ0EeA9g2rCOpJlnq6yM+NzOyBgjXmnMJPWHqPPwpUHkq/gbjmeUj/895SgKLvQzsTjNdG9qb0L1A/7eI3StwzpF5E3a/Cah3DlfnebSF7M5JhJUOPa2xAHRd1CPKBu4fJEI8yNFoRi0w1NJvh+hyMxUcfyyOyJlPmb6Jkc2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320904; c=relaxed/simple; bh=XstQV4I3hA64wkJdbVIzI8G3hTpnTOdEI888VqMr7I4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=RKmpB9TDOOPvnKRwSFD/b4n2ohnB+5AUgP64dtJ3e5/OCRQIw2fBukUOyNY661e1G+NHnFXjBOZ/kCU7A5q9kTierD8PYeTgKCecPIPhuVb2VHlLTcO4kP4Kwjl2gJc8i5hfg+gEsarvli2pKg+nCq9jhCirTvhI1WfkYEqpG+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pFHM2C2G; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 366B1C433F1; Fri, 5 Apr 2024 12:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712320903; bh=XstQV4I3hA64wkJdbVIzI8G3hTpnTOdEI888VqMr7I4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=pFHM2C2GbsBvF2xfSpXbDbaeeEthKyyQgnk3Sh1pD+g7kaPMyMOdDsUUKD8nhM5ei b2Wrjp9NU01rX5iBliGumbHoX/2Uas8in0Of+sBK9wmOIK9ItUsc+0xeoYjiAFLC+M 3RTH2EaieomEgwH69yqkFwNxh3zfPfohpjhKZbSQMLF6eseattZCeR8jxqDjXwmJk0 DjsaoTkLKvG6tEvkbIOhvjBZzMqATIKYE0HqU1SIThb3v8zBpyiox4mz8CQ4rsGvnQ 34zZP9u3HcKyKiw6J3e3nHKstbXuWjqfbR/b5w4viCAk65sw5lYGu+5wfYmy9We2Fu /hFNursI5SIog== From: Kalle Valo To: Dmitry Baryshkov Cc: Jeff Johnson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH RFC v2 0/4] wifi: ath10k: support board-specific firmware overrides References: <20240306-wcn3990-firmware-path-v2-0-f89e98e71a57@linaro.org> <87plw7hgt4.fsf@kernel.org> <87cys7hard.fsf@kernel.org> <87v85wg39y.fsf@kernel.org> <871q7k3tnq.fsf@kernel.org> Date: Fri, 05 Apr 2024 15:41:38 +0300 In-Reply-To: (Dmitry Baryshkov's message of "Fri, 5 Apr 2024 15:34:29 +0300") Message-ID: <87sf002d8d.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Dmitry Baryshkov writes: > On Fri, 5 Apr 2024 at 15:01, Kalle Valo wrote: > >> >> Dmitry Baryshkov writes: >> >> > On Fri, 8 Mar 2024 at 17:19, Kalle Valo wrote: >> >> >> >> Dmitry Baryshkov writes: >> >> >> >> >> To be on the safe side using 'qcom-rb1' makes sense but on the other >> >> >> hand that means we need to update linux-firmware (basically add a new >> >> >> symlink) everytime a new product is added. But are there going to be >> >> >> that many new ath10k based products? >> >> >> >> >> >> Using 'qcm2290' is easier because for a new product then there only >> >> >> needs to be a change in DTS and no need to change anything >> >> >> linux-firmware. But here the risk is that if there's actually two >> >> >> different ath10k firmware branches for 'qcm2290'. If that ever happens >> >> >> (I hope not) I guess we could solve that by adding new 'qcm2290-foo' >> >> >> directory? >> >> >> >> >> >> But I don't really know, thoughts? >> >> > >> >> > After some thought, I'd suggest to follow approach taken by the rest >> >> > of qcom firmware: >> >> >> >> Can you provide pointers to those cases? >> > >> > https://gitlab.com/kernel-firmware/linux-firmware/-/tree/main/qcom/sc8280xp/LENOVO/21BX >> > >> >> >> >> > put a default (accepted by non-secured hardware) firmware to SoC dir >> >> > and then put a vendor-specific firmware into subdir. If any of such >> >> > vendors appear, we might even implement structural fallback: first >> >> > look into sdm845/Google/blueline, then in sdm845/Google, sdm845/ and >> >> > finally just under hw1.0. >> >> >> >> Honestly that looks quite compilicated compared to having just one >> >> sub-directory. How will ath10k find the directory names (or I vendor and >> >> model names) like 'Google' or 'blueline' in this example? >> > >> > I was thinking about the firmware-name = "sdm845/Google/blueline". But >> > this can be really simpler, firmware-name = "blueline" or >> > "sdm845/blueline" with no need for fallbacks. >> >> I have been also thinking about this and I would prefer not to have the >> fallbacks. But good if you agree with that. >> >> IMHO just "sdm845-blueline" would be the most simple. I don't see the >> point of having a directory structure when there are not that many >> directories really. But this is just cosmetics. > > It is "not many directories" if we are thinking about the > linux-firmware or open devices. But once embedded distros start > picking this up for the supported devices, this can quickly become a > nuisance. Ok. Just out of curiosity, any ideas how many devices/products are there with wcn3990 who want to use ath10k? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches