Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp667431lqp; Fri, 5 Apr 2024 05:38:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvNaJwNXY5gCQwEP1DnjhWRBpXlKG79lYnnHUd+bkLREUX3G3zrRb9fe7eTu/Z2aCbNjrfBTdJW/zokpMkkvBgKqfRngk//3/p9uHNKg== X-Google-Smtp-Source: AGHT+IEustuJ2oYnwyl5Yb1osC4kvP9tereMCwnCAOttJnvcCijXJqYpayOfFp+CUBKy6YHexWdR X-Received: by 2002:a17:90b:198:b0:2a2:9002:288c with SMTP id t24-20020a17090b019800b002a29002288cmr1365753pjs.21.1712320712103; Fri, 05 Apr 2024 05:38:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712320712; cv=pass; d=google.com; s=arc-20160816; b=yOttedruij3wIMPwDM19O53vRdTMDE3AvGUnnKq1oOhgDlZa5WFzKw6e27p116nEd0 19ASNRqZTBccqJaAtr/u9VCzbdq90/c4lag3oxwFOqriQ8H+rU1M5o0Q6q95cQQk2V2U ZyUPB0Cy8HyjPEPJKKMIRtktjU0863jucwo08YaGxxx0PUaCcUVDVOF1cLXfr1uVX25W JryxhFY37Ce3S1fjJamrA5uYZU4fyFRh2pNo1uv5XEHRh4SV2WAH3aAtWSlpzx81G/7G M1u1DrmFzVklAuG8UVQAzLQTX60IOUMekTQCrMf8iNZhzn2P92Fh502oobMo23CSnlev CqAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=2N0mn42V43jKjndtGzZY3LzMYKGKo3zYQTHJIkNMpNM=; fh=+CHW0WyjENRRNYB/6MOTNRHdPfzbLe4vaoltGMZymIw=; b=OoQ06Guqt6vNkU/fQV38Dznh0Ppnlpu19JfGMPFpJotLoRYTHf50wIJqPoH+NgHC00 Rqhq+mhIo7uF/Gw5R/8bjAxXS04ei9iE6RIJFd5AwlLePja67pwMBMVz/tNY3Upt3DwO teagYB+XFSI3qRDOZ7PyGwWZ3qksydoo6GFpQCWjbGP1nd9H8wVN2/CNHq8Ta+jRtjhW J83JikqB9ligpdV/mAVDJjG4/Ooyx3pHnavWlTeGJ+YtVkjYb2rOGg/6GXJnSUQ6cfEM rw+9iltDLT3xhg8DjP8A038dTWwAooGNxQvsVLi9MH21A3wCErf7RUBolOqfL+cbTBwf ALNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTSfYwsW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gd6-20020a17090b0fc600b002a097394975si3452160pjb.160.2024.04.05.05.38.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 05:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTSfYwsW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 509BDB23DE7 for ; Fri, 5 Apr 2024 12:34:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56F9416C872; Fri, 5 Apr 2024 12:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BTSfYwsW" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D6E014F10C for ; Fri, 5 Apr 2024 12:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320483; cv=none; b=Bqx6X9tEwRq8ZtWF9fRLXNMjNtBP7lMcCzBvuB2fKjEOpPKvxNEzkivgPLDuj2qDTq5L+qGrnkFYtSdH0qbPI/3sKZ5SSrHypmq60R5R/6WMEomXCjOuutipy5cMaIBO3Bi1a0gsddtsRXKrePnmpKKrG7Bgjwa+f+Yb0pPrtA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320483; c=relaxed/simple; bh=BWbY/KZqhbCE40wnvC4PrO70/N6mw5Yg/TSOavfYMW4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BXtEHOz4bq+1iMeuMGlALDfViFNyrJBkPuLrAe2lu+wGFs5KoG9VyrEqWhQG7o/+Vn/5KyOgaQWu2t5lBVeTUSn5o7IdInGjR6vb1RmR2gz81X2lp0b73CoTP0T1a4sz+aod407N7vrOtOLuRRZ7d5DbJ8qozxP3h0I1fOt73OQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BTSfYwsW; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dcbc6a6808fso2178451276.2 for ; Fri, 05 Apr 2024 05:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712320480; x=1712925280; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2N0mn42V43jKjndtGzZY3LzMYKGKo3zYQTHJIkNMpNM=; b=BTSfYwsWCoqZZH32oDYnrXtrdpOCurlcDMXRZE91dYNqKJ2/h86iTFn3+45swiUc1Z Ymbduk/5zJCypoowvSasv2ji8qGvJCoM8YVpNu89B8Dgr0GtEsPqtbeEdBKpzd/znF4q AAL5VQBFjpD6ihZn0PN3S27TreJeJCYfdwVi89vdgqMofSnq5H/aG+zf5E2opDKG9zVc h9gybZkMkr9dRC3jzSVl8MwxubWxdlgnV008LdN+7uzMO4HMxVH3msmv38awTOzRM3LR p+Q7Tx8cDtST79ze0KYAnrwKZUsX8UMOfKQUag2GyAuqKFhdlK5XIWYbYEYh2/3XX8Up d6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712320480; x=1712925280; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2N0mn42V43jKjndtGzZY3LzMYKGKo3zYQTHJIkNMpNM=; b=Pt4OrpIgDr/F1pnHcdiH4BZso+b037ekg68nDQJNbMhQJVKM92xhcAuFrJ3av6VAik alerACY5DN6EhTl6NDN8y4AeanIZwd1sXsNPuKu66PkdbS1Tpmu7ldN6nP6DTuTfcfZD tdj/3J0P+Qa6oKlNOdobrGSXdwJ/PhbzatauFD3GHijmXpLwIxVSrsUYvHQ1uF8iz9aL x8UAXwkfrOYDpd8vnTf+RCF+oLaNpV9aR9eglIwmj/knn7WkDKHOJb0IIe7sHMZJVE8n eewu2NmVitOSGrAT7I9RtdK6dSqo3h3Aon1aUmdV6c440Try23HMDqulvs4MNlEVP6BA ksFQ== X-Forwarded-Encrypted: i=1; AJvYcCVtkcdzpUwY1K2CaiiqqOeFuqwt4m+Un3HtsmSqgXrHgvYPjjRcJILU/iPd2g3a0SgpEkSLsEL2spcI69RcKJLDMyk4dMX5KRPixCRMz9s= X-Gm-Message-State: AOJu0YzuM0oNwHjO2bdSHse1ZDa/xzylhzVdVr5FOj0znJI/fBC7pDJ6 IiJq72dcIELhz9SQ1zU/Ox8dreDRLxw0wd/I/oCmORdjohrn6jBdQwvhcYyEmg990fmyQYwD93g lY1Zddsjc5E2o/R7J+ijbCCYCZFBWBdl8nIfzsA== X-Received: by 2002:a25:800c:0:b0:dc7:4367:2527 with SMTP id m12-20020a25800c000000b00dc743672527mr1236431ybk.49.1712320480356; Fri, 05 Apr 2024 05:34:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: <871q7k3tnq.fsf@kernel.org> From: Dmitry Baryshkov Date: Fri, 5 Apr 2024 15:34:29 +0300 Message-ID: Subject: Re: [PATCH RFC v2 0/4] wifi: ath10k: support board-specific firmware overrides To: Kalle Valo 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 Content-Type: text/plain; charset="UTF-8" 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. We have been there for Qualcomm DSP firmware and we ended up adopting the SoC/vendor/device structure, because otherwise it becomes a bedlam. > > My point is that the firmware-name provides the possibility to handle > > that in different ways. > > Very good, thanks. Thanks for your suggestions and for picking the patches. Bjorn, could you please pick up the DT patches now? -- With best wishes Dmitry