Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp927303lqs; Wed, 6 Mar 2024 00:32:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVanQyPmoo1y5v5kbaRM6be+EEQFLSnTWUqtGpdENTPGkh1AV6mOAGGqdE9n3+DPKc1KoyUPZfZl00iY2IjblkyiAewm5OLIkoFtCqYA== X-Google-Smtp-Source: AGHT+IFMKpnacKpy7UodTgeE9nkh42lIpN4qqFJCsTlBXFRQu+d0JutCkvCZy2a4fsy9hgxSKQU3 X-Received: by 2002:a05:6e02:156d:b0:365:b5aa:135d with SMTP id k13-20020a056e02156d00b00365b5aa135dmr16931114ilu.32.1709713941606; Wed, 06 Mar 2024 00:32:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709713941; cv=pass; d=google.com; s=arc-20160816; b=wJoXy4P6Yp6eIDx5I9A65LrPsStXMvDxDpl7++fakhKVb3zPD7QQetmRD20w7jZ9k1 XmYZ6SaMdF4/OdVN0I1o+qeQ0MgeYWrQIh4OZ5Pkac9MwMaRLanwD38eqA/0M+ZgQ3E4 EBK9SXdShf+S1WxCR1YUoyEK/pqZrs11UH8Lmby/BL2PIS3+0x5puHzXQCIR/FGQj/1r Yc/SJceY5vRK1FG1AOx2kWlWKuO+kv+QEWtiDZzp5zh8X2GfAlcezc3KVkZXrqSxAdGw r1eXs1IpB0eO48KN+Z3qrYM9hs0egBwrbYoVRf4RhiFIQDpNoPEGQNM5hQCWFnUftCFP CNPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=IOVorbNDjmEYCRkOIJ6RfUvTGmzX7zzuHuefGqOjfNU=; fh=axAwzScjL0PfzjvhOjC5bp2HiYHmMqn7FvTQq3Wt+8I=; b=EChhYPDt1uYVIAK1yn0HyXOLnDFi5Os8KlddSn42ZNRAmvzuAhOrkrrjAWveaYCBIr asSJi5BwEoB+khxCgwnwMotseJvNkrHI/w6tknvcYAQwirIa6UpcKV/UmT9BE06bUMsN aFayEcuhQRogskWXnRqIVE2pgPMYJdwcjxkeV25psca9TQKT/mIrfMoiTAId8lHZhK0r sYs4cmfmzvqhW8O9cpCENNHjAhK7VPQ29CIwbrrhg2hn47kLalMk/tAhxunp1d5jAhZY Zb8DQ16GLngG5G8cIh//soJSCjNJxDJpQo+w9cV/huvNOADneddMIAkbyJ/YqZ0SPPlB hceg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tNWmsWGn; 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-4416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4416-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 s12-20020a63770c000000b005dbd5035dcdsi11553973pgc.192.2024.03.06.00.32.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:32:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4416-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=tNWmsWGn; 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-4416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4416-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 A8C9FB2132C for ; Wed, 6 Mar 2024 08:16:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C8DE5CDFF; Wed, 6 Mar 2024 08:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tNWmsWGn" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 43DB05C604 for ; Wed, 6 Mar 2024 08:16:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713012; cv=none; b=XaHVa7jBOpmyceSPxJlXai3VVpJx+3BOajOL8LgxhClRAHe/NJSZ04gQBOuvu2i7m05M7iIdKH2BAKt/Ie/wmxXC9L8NW2UFn6lqBXzWyyIHUDtNzcQKc7IWL6zLvxwrbYyPhOOCZAz0Vzh9PD52gJ3HND9QDS1sHpwkyxMy1+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709713012; c=relaxed/simple; bh=/EMjKJh7RTTCREzzTjnONmH5VAO67zSYckgm8+w1p+A=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BoiPqGpUOHDCTxLTq61cQgqRVPgLBGWuyGJN+AUEAJWA+LusbOS0ZdmRCJMA/uFiHpdY3UGQuXd+t59BAM5jxglnd94w6iOus1BdDMSBM47YEWQdMxyq6W8vW/hoeLcYIKwgZz40bS355zdiJza7yjOLi6G7WFNkmdDAN8LFmls= 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=tNWmsWGn; arc=none smtp.client-ip=209.85.167.47 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-lf1-f47.google.com with SMTP id 2adb3069b0e04-5133bd7eb47so4949745e87.3 for ; Wed, 06 Mar 2024 00:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709713008; x=1710317808; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=IOVorbNDjmEYCRkOIJ6RfUvTGmzX7zzuHuefGqOjfNU=; b=tNWmsWGnh1NK6ZECYnf8J/WvUd/OO8WK1bsOO313Q3pufAQnWZa/tV/CByAvyE0OND 6WTL/rhBKa3osrFcrTL3gYWhTp34dxu4x/0S5bFlIotfMLMlQmvtkLhUaHIqALUsrNk2 4OTGHtErnjtKXKEeqF6cBRoS1YZH4RJ28DBl2Fd7pzL8ZDDZG6oahUZ4K6oz2QtrEg8o P7a1IoLURUKt1xyWN2cBWU4QPhUa5QTa2KRW1oJTXAeapjPAfxuBkAQKxqLi7TWP5Rxd MGA/gG5SpNtWm+f8PFMVN31Mezd5EaBGN5EzwD7QgNvoH+/G8LnCXKEI9VZuRxVHJEwn ysiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709713008; x=1710317808; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IOVorbNDjmEYCRkOIJ6RfUvTGmzX7zzuHuefGqOjfNU=; b=bIaykAtcf58hQKQnQfuGgNUA+caqD1ndho0PQT/+3SRdBsEWJU15+myFhU+jx8F6wn DS/4i1Gk2XXyUBLZhtTEqn41H+g/EEuQPmpRfse/0GYQTPGSZ4rHJw1fqk3AZ8XmsPQw HWva77LosWnoUjzncMiF4E/rBnB/H//sFZb/tV6q71s1tCfVx4jZjM98y0mzqVaMMD+h dCxTp3UFvUm3QTD2s+u9k0+kO16j+lhUDpNcMrzkI5oaD58LD4OupdAEQgkjRpyLC3tM hEc0xQ9G+xuvc2FY8fw9hqL4t6CuC1yhh8WUch/t6kJyS2s/X5OwhF0xcLo/IIFz8Z5d vwnQ== X-Forwarded-Encrypted: i=1; AJvYcCWKBebLoukAtumx41ueYXcdw37u9d+qwaAWLzJJOvsxu6U7r6LAdWEXA5UPCnjC6ZBB8FdArVxmP7amAPXwcYlsvgJWsOpL4dKDxigsygc= X-Gm-Message-State: AOJu0YyRxkBpYAbbRxCmG1vj9+2vmhOQ6NY9iGFOm1kgg2rPK3jdNzAi 5ZuOTOaUNTqo43ThgkhxGveYR5xaD/Vz9X/bdV9woq4MyndT08nYnJ6sY+5AELw= X-Received: by 2002:a05:6512:2e8:b0:513:26e7:1b13 with SMTP id m8-20020a05651202e800b0051326e71b13mr2848069lfq.14.1709713008329; Wed, 06 Mar 2024 00:16:48 -0800 (PST) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id s9-20020ac24649000000b00512dc23bedcsm2162366lfo.99.2024.03.06.00.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:16:47 -0800 (PST) From: Dmitry Baryshkov Subject: [PATCH RFC v2 0/4] wifi: ath10k: support board-specific firmware overrides Date: Wed, 06 Mar 2024 10:16:44 +0200 Message-Id: <20240306-wcn3990-firmware-path-v2-0-f89e98e71a57@linaro.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGwm6GUC/4WNTQ6CMBCFr0Jm7ZhpQbCuTEw8gFvDomKBSbQlU wIawt1tuIDL9/e9BaITdhFO2QLiJo4cfBJ6l0HTW9855GfSoEkXpHLCufG5MYQty3u24nCwY4+ VpYOlpj0qqiBtB3EtfzbuHW7XC9TJ7DmOQb7b16S26A92Ukh41OXD5KlpyuL8Ym8l7IN0UK/r+ gNoSeg0wAAAAA== To: Kalle Valo , Jeff Johnson , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: 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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2186; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=/EMjKJh7RTTCREzzTjnONmH5VAO67zSYckgm8+w1p+A=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBl6CZuucldOlm1luyQUFD+7gU157AjQNbYIEZc4 k2wPW2lBZeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZegmbgAKCRCLPIo+Aiko 1TU9B/9j5w0jL9XNxvqu1AflOwDGcSRKyvic9ybSvcGkVtS6OUAccbDdevCYzJaPhhIiWqCpcLe QksNPMXw8xGef7skT3/O1H9DZvwklOXTQI43aqvqolNtv+CjZJlJCylbzry5NXZiUzdJAtRb59j ZYVtoFxlk0a9NvHwiJdJHoOnpMGI88ierKkEuG8duA4AjYPoQoFQoBB7nU2jyyjhWP3Y3kJATFL KOab5ZOrO2y7JvOw8uO3X+DkCoXLqTMrK+gmnU+12kqYDkLbw7JByEfnGAZKyYLubrCBR3iWwij RY109AOxtH/aMLBKqvWboM6Ypt+J2+2MQmxZZfDeEo3a/dQq X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On WCN3990 platforms actual firmware, wlanmdsp.mbn, is sideloaded to the modem DSP via the TQFTPserv. These MBN files are signed by the device vendor, can only be used with the particular SoC or device. Unfortunately different firmware versions come with different features. For example firmware for SDM845 doesn't use single-chan-info-per-channel feature, while firmware for QRB2210 / QRB4210 requires that feature. Allow board DT files to override the subdir of the fw dir used to lookup the firmware-N.bin file decribing corresponding WiFi firmware. For example, adding firmware-name = "qrb4210" property will make the driver look for the firmware-N.bin first in ath10k/WCN3990/hw1.0/qrb4210 directory and then fallback to the default ath10k/WCN3990/hw1.0 dir. Signed-off-by: Dmitry Baryshkov --- Changes in v2: - Fixed the comment about the default board name being NULL (Kalle) - Expanded commit message to provide examples for firmware paths (Kalle) - Added a note regarding board-2.bin to the commit message (Kalle) - Link to v1: https://lore.kernel.org/r/20240130-wcn3990-firmware-path-v1-0-826b93202964@linaro.org --- Dmitry Baryshkov (4): dt-bindings: net: wireless: ath10k: describe firmware-name property wifi: ath10k: support board-specific firmware overrides arm64: dts: qcom: qrb2210-rb1: add firmware-name qualifier to WiFi node arm64: dts: qcom: qrb4210-rb1: add firmware-name qualifier to WiFi node .../devicetree/bindings/net/wireless/qcom,ath10k.yaml | 6 ++++++ arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 1 + arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 1 + drivers/net/wireless/ath/ath10k/core.c | 11 ++++++++++- drivers/net/wireless/ath/ath10k/core.h | 2 ++ drivers/net/wireless/ath/ath10k/snoc.c | 3 +++ 6 files changed, 23 insertions(+), 1 deletion(-) --- base-commit: 596764183be8ebb13352b281a442a1f1151c9b06 change-id: 20240130-wcn3990-firmware-path-7a05a0cf8107 Best regards, -- Dmitry Baryshkov