Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp217559lqk; Sat, 9 Mar 2024 07:08:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZlAO37zOECVnodxA5PixNCHNFXjDXDLxUwRXVklVGf0SOG+nw7DASE1sJhr8icOLBH7euEizRz2jX81iDxUmsTb08bqS4rnUuL0Ix8w== X-Google-Smtp-Source: AGHT+IEsLVIhFyjefe80plENX3SdY8Na9z0VbfOKP76mxeTlhQJTJkCBtbtL2VUf85MueruHA3AL X-Received: by 2002:a17:906:d7ac:b0:a46:13d5:affd with SMTP id pk12-20020a170906d7ac00b00a4613d5affdmr404809ejb.0.1709996884902; Sat, 09 Mar 2024 07:08:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709996884; cv=pass; d=google.com; s=arc-20160816; b=N0X0Vbi9HfCOjNI2uYu0Wwc1w5MzFaoag6qTtxUpW78PO/PcwMVvh9ef+CAadSjRJm J7EV/NDAB1aMK881hGFfc7XtvEqDorpKbssZ5j44eWhqTbgUh6nQ4QIP2W65+JJ6m7A3 uyvpxsVW2QCgnfbjj0A4MKQ/6a1zaSxO4Aea0WJ+xrlXT68blUO8Yab053FqtaPuxZFs CbldVbcsKU3urpL3/fVSJPmNdMGWNzDm0/Ke9IL6VcIXkLO355uT+SkQwd33luuuVqdu R95ZrTiNRoGEA9D6PZU2g8IOmgmQPgFDANxvZotJYQxMrsGPtiuKIAM2nqleHaAvuax4 pKVg== 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=bsRsreksVUwY3JxwOHcn4AH1bjEDIW9wxkCIfNiLooU=; fh=e7ZmbmagH9oElRuQNWsuxCTvUgfdkTLgmY6+pXv/M/Y=; b=0vagv7/RbNKAlHg76+Bcld4LMr8pAif5UertS3o3UOUcjodImgl1Iu8JYoyYgtuQWq Tt8Oi7Crnuf2oCCdLQYmMIxKr8PsHloKUMTC+W0U6eEJHEhwlMocOW2LIwQOxUEuMpE3 C6mNYXwFrgB0LvbuLmYioNMNzclN4Jff04cl0kXOJOiPyRxoc7+1Kyo3bQgvV8qoHh1y 6pa0MhC96+selHJKqqvN/YrWUkWmjHntb6hsc7PV1eHEr/XRG2anpD9NF0eKcm5Wf9n+ cf01Zol9RnmAuc0JOiPz77CDbWvZSg3NtMv0Khz+KCFCtcxDFcaveBkrBAZ+YJKinnO2 ryfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqR+EJKN; 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-4519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g25-20020a1709067c5900b00a440fb646b3si828018ejp.791.2024.03.09.07.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 07:08:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqR+EJKN; 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-4519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4519-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9D8181F21577 for ; Sat, 9 Mar 2024 15:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 964DD43AA3; Sat, 9 Mar 2024 15:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TqR+EJKN" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 DEF1A28DDC for ; Sat, 9 Mar 2024 15:07:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996880; cv=none; b=CAD6X1sX3nJkyu5MQBfivl14/WCvdxv2trHX/jdvQGeCzonFFf87lU5x703vtgl6X91RW7zMeGaod0EHuhTjgMcWiP3+hom7bV9HJASc+lkJ4FhSMqYmkM8le/dXtgBEVV51riUt6HhWTNYzAT556SkhLyObU6k6ut75D+7Sy7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709996880; c=relaxed/simple; bh=4m3hPqMvoFdvGn08wcU+Z5iHs4T7zsjJ+434nMiwhVI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mqk3eZJ8LQJDDLPMxbQMn6RZDkq41vg0MZzQNFyChQjbhLZRg75JPTn/B4Itt1bVbcB3HFF5BFtkWLISWJNcZ8/vCb5CulN3pluKJUsb5cYmLH9d1xywvxhJI7wGXMA+/6sl5KPcM4Jl6KeymbdHc4N79ePqFcPXMBMkR8kCWLU= 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=TqR+EJKN; arc=none smtp.client-ip=209.85.219.177 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-f177.google.com with SMTP id 3f1490d57ef6-db4364ecd6aso1989470276.2 for ; Sat, 09 Mar 2024 07:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709996878; x=1710601678; 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=bsRsreksVUwY3JxwOHcn4AH1bjEDIW9wxkCIfNiLooU=; b=TqR+EJKNDp+gRQUVitt30nbxcZzS2rqNKdN/EW1WFiZASHPYmyH7HGRZ5HZnDe7iLp WoVqekJKiuY4m/RDLPhqSOqrNCQf2Od2306OJH233a6zyoM+5/8AtdKiLMOrz4bsrbLQ cmcfdVJ4cZg01fQQYee6RwoYPMarMi8JqHMbaLRn1jdEbBOVlWY42HQw4kaqE/3gljry GUMr5Oq6mAIwYiErzG3kVG7bQXHrEKTTCmTyEzjhcQiS18uakPvaxrbKUUjIMhATDgin DINaoiK01V2zKZBslGlGp4SZ+71yIkvbdedGEA21un29Xg5u68fO4Y6YdTcTmolw2tD/ h6eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709996878; x=1710601678; 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=bsRsreksVUwY3JxwOHcn4AH1bjEDIW9wxkCIfNiLooU=; b=YRiGqHqc0RMkTsxs4Plrh/w79JYh0O5/ulWTEAJFrKSfzWHT9youTGTn2wzDadgg3t dI7dS8OHVf3g6W2Yvau4xYi/FJ/RYz5Dct7u8sMw84fCRL8o1YA7P/6LHIZUc1EFeOeK bcJ4A9UGovoA/doPCWgZHXTLXDPD8SVNzaCfwcy12gZSBBgdFsZSts+lvUDYQ1ZVpCFs vj/gbFipsSIUfTrY/rPloNK4BZ8lM9eQbpNVTtBUiVAcRAfr+I5E5Xn0D871GMhczytU xJIlYHpm6+8D27A1IkXsNMktij3fveAR3bN4hv8MHEN/tSxXq1Aq7jwwKPMGMVd/ODpU EHWA== X-Forwarded-Encrypted: i=1; AJvYcCXwFUaTNg9mQWFgdEUOz0Pihb16E6CGQQ0IEI+Ve0PIEc5nNNh8gNzbPlxWGwqslav2I/jpY1xu7fbAWRkHFe3mvZkWXzKATB+lBUzHf0M= X-Gm-Message-State: AOJu0YxabvTALUbWmvpTznY6q/slBsJ/BXQ7KC+6UyYhUtm6Kco963jM tgtOGcH/hF1sBhskPCWij7WgM6LbA1tZxNzXSoEHpNdDS6ezwxn9w34TOmZzByPL0OngsQARM3Y xSDlDLTVQvwj87LvkTTqdtPuHps13WDOFbOIe2w== X-Received: by 2002:a25:6c09:0:b0:dd0:453b:485e with SMTP id h9-20020a256c09000000b00dd0453b485emr859326ybc.58.1709996877891; Sat, 09 Mar 2024 07:07:57 -0800 (PST) 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> In-Reply-To: <87v85wg39y.fsf@kernel.org> From: Dmitry Baryshkov Date: Sat, 9 Mar 2024 17:07:46 +0200 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, 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. My point is that the firmware-name provides the possibility to handle that in different ways. -- With best wishes Dmitry