Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp673678lqp; Fri, 5 Apr 2024 05:50:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVysSG0Qbo4o0klN5vgdl3rBA5roiuDQ/uE/6LLIdr8pK7Cn3AkQYzoZCXZxi71pw+jEAKKcN/S46qcMchj9rO5ZA3cGRgXrHckStZSNg== X-Google-Smtp-Source: AGHT+IEYI3YZSlCk81CUjr2DouuF++OZo3gQYfD64fAyq1ZxJtlVpULQpD8L/vv+WVdJnKzqdfss X-Received: by 2002:a05:622a:180a:b0:434:5877:fbd6 with SMTP id t10-20020a05622a180a00b004345877fbd6mr1237713qtc.43.1712321405874; Fri, 05 Apr 2024 05:50:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712321405; cv=pass; d=google.com; s=arc-20160816; b=CZi4heuOiJF/7ccpl2F5WOkhI0iK7Zr4l8Id5MPD4BC8syFyasNQX922OMjAlVL5sn 0w0xHvbDUCXOsLwSY508jGHaxx5Qhn+Re5Pk9NbAUaTVAlB8c6BbYD4UvWZY/4w5nkrR 1gH5STGgdrqAi7/DKNM6vmyV9X0XNdfD80AI87aO5Rj7TUi2xRspqZ7h/kowuwGBS2Le IH+X2OSmGaG14j3XJydqcGGvnr0/YTYOS3CFg4JdYXN3K5eACokDnP+Li0t/aAtkEuB6 w78tIfDgPe7RoDa7C9mLkZp78f0uoBSZBCRF2Q3yqKHLBfRwiKabdk9jXvRk6jvL86a1 nUdw== 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=/h5ZKUyP0Cry0+mHbTzooNJMYvg5n+9KMU/0TdwKBUE=; fh=uh1QD5ohjidIPqdGXCp26nDUH7EDiYm+ydFKgF+j5dg=; b=LH98xf5bAOXQzb1S8aYh1M52dssTajfU2I66Or4EjM2AMCwohHml+uPBPb+lVP5aug zQ3MafK8dl4Ugg28AiZ3KIp7+eufKoPcJxL0O62D8ApjPfUxm1grl6j0/H4ZYQkgrkzS ozbDPa87oJWjEJlvRMvhT0uM2dY0ww41iiVhpWX/+fOGUPfqSZ2jNL6CBw3I9kIVm3G+ y0F+cPgcpPTEyHjyC17igRravNBSsMJ7fmfpw8PnIpnm2Iyd8GH4KhtQ9Ivz4Fu6F1sT Jj3mzQ8LYRHSs/OX2pLMCfP3z6zSYCtDXGE6fmR1T42KFVdg/rFciO2YblEn8KhJO43c DGMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rp6+rZ9/"; 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-5905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g21-20020ac85d55000000b004344a136cbasi1753981qtx.707.2024.04.05.05.50.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 05:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rp6+rZ9/"; 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-5905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5905-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 89A241C21530 for ; Fri, 5 Apr 2024 12:50:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C0EF16C86F; Fri, 5 Apr 2024 12:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rp6+rZ9/" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 434C216ABFA for ; Fri, 5 Apr 2024 12:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712321402; cv=none; b=Ku6wN4WLJq3IosNgTeMaYyMEWoYyKe91RVy/OUkAnvKcAevXGm3MEXurVmUArXNIRiGT4chqAmf2iEpeosmTEfy7n0m4eX4XmSLALp2LuV5Kd5snsOWVhQgnOkTUBHfskmLdxbusV3jKLKLkP/oyD/bIyELXXXciHom731fKnQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712321402; c=relaxed/simple; bh=/h5ZKUyP0Cry0+mHbTzooNJMYvg5n+9KMU/0TdwKBUE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bRVAvS6NFVV0zGKGbLZCrRK7cXsHsSphERdEOwBtosv7P27wlwY14IAFkx2PDqpPA9DNMoHMiFIiUqT4cpBoByNzljwccYN4q3/NlnqNQBUGFqHegDjA+kzPc7cP78zG5mMo+ocNMTCB3AETyiReeNeaLuBNf32R5plseefAI+A= 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=rp6+rZ9/; arc=none smtp.client-ip=209.85.219.170 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-f170.google.com with SMTP id 3f1490d57ef6-ddaad2aeab1so2056923276.3 for ; Fri, 05 Apr 2024 05:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712321399; x=1712926199; 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=/h5ZKUyP0Cry0+mHbTzooNJMYvg5n+9KMU/0TdwKBUE=; b=rp6+rZ9/wlE3O1qClOfG0L8PLIxmbUpZOenVR/srWXYqtseT5+l/ULqHIHQRUqTg0d CxbC/CWYDL0m09UAH+BPoYzSeYKU4E/75//5bsPidPrNtsrJj/N5fEQki5WYTd3QFcLg ASZbgcUNZhu2OVD0neIgiQb0moNPJjGr8x9CFAE7tqd8BufL4M2Z5S29VMFYYxQhlfUS kOMHK3oB+dpM5AnUveKI+8c9QUfoeZrLOy5xxaFDDjqKRL3e0PYP6UnHFQMmJA0DrzfH LCEtqxiCSdlv+yXU7Qxk0QRgbIZTXaq4pPCAoWM4t20icObba1xNokmKqYrWfQJpouMM LWmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712321399; x=1712926199; 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=/h5ZKUyP0Cry0+mHbTzooNJMYvg5n+9KMU/0TdwKBUE=; b=uCOpH8Qy1VUY+nfzuiOleVt+MolznYScVbY8i6tHOmg2C9lW+1S2XaTWYE0dTXNaVT MJ4/EXgxmgFWK7m6E4+Z65WfuvQzkRhludK/CjcSx0clLAmTSaZSL32EHpwBsIJCpNYt 6fkNGZAcHRNecHBs3wXkFeHcU00ZzsSc2lnUQsFMfT5C61Fj81RqikDvMMYenEcOlWvv /HiQQHyi6IF5AnqJslRfd4tSiuur/SMrN85Y5J7BPYZ4v9peVcypva01dneie9j719Qh woml7ywGTGYXCkbU/mtnx146jIr/2duQsivfhTwP3zab2x961tuiSgRWOZLji9g2Pnv8 cWQA== X-Forwarded-Encrypted: i=1; AJvYcCVPyfXr+eJHX1xS4vAHLjh4iXrRTifOkh3BbNu/n1iMDGZd9EWOLNR9R0cxsKhDUuGGji6gYZMnmNbSgIan/hjDVSCN9wAp60i9Wqj8IVA= X-Gm-Message-State: AOJu0YyCyKPZTDondoiDyftmc6KTEcbnLGZ9YZNhjeGD9085mb1rGQpI QLK9VntZzGvUDOlBPRrA9enAOcVU8/FfN2tUGyBWhRvd38pgN8kIjCnqjNTrf/ua5c0j1QQO+c3 vX/K88LMJHjQDf2uegECzw9SraW6FXRYDhCg9Gg== X-Received: by 2002:a5b:9c5:0:b0:dcc:4b84:67cd with SMTP id y5-20020a5b09c5000000b00dcc4b8467cdmr937832ybq.9.1712321399265; Fri, 05 Apr 2024 05:49:59 -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> <87sf002d8d.fsf@kernel.org> In-Reply-To: <87sf002d8d.fsf@kernel.org> From: Dmitry Baryshkov Date: Fri, 5 Apr 2024 15:49:48 +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:41, Kalle Valo wrote: > > 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? Just for the DT in mainline I can count about 30 devices that have ath10k WiFi node: arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi:&wifi { arch/arm64/boot/dts/qcom/msm8998-fxtec-pro1.dts:&wifi { arch/arm64/boot/dts/qcom/msm8998-mtp.dts:&wifi { arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi:&wifi { arch/arm64/boot/dts/qcom/msm8998-xiaomi-sagit.dts:&wifi { arch/arm64/boot/dts/qcom/qcs404-evb.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts:&wifi { arch/arm64/boot/dts/qcom/sc7180-idp.dts:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dts:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel360.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi:&wifi { arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts:&wifi { arch/arm64/boot/dts/qcom/sc8180x-primus.dts:&wifi { arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:&wifi { arch/arm64/boot/dts/qcom/sdm845-db845c.dts:&wifi { arch/arm64/boot/dts/qcom/sdm845-mtp.dts:&wifi { arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi:&wifi { arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts:&wifi { arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts:&wifi { arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi:&wifi { arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts:&wifi { arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts:&wifi { arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts:&wifi { arch/arm64/boot/dts/qcom/sm8150-mtp.dts:&wifi { arch/arm64/boot/dts/qcom/qrb2210-rb1.dts:&wifi { arch/arm64/boot/dts/qcom/qrb4210-rb2.dts:&wifi { The list doesn't include e.g. PIxel 2-3-4-5 or some other phones which are still on their way for the proper mainline support. -- With best wishes Dmitry