Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp144277lqg; Fri, 1 Mar 2024 00:16:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTNJLiguqUns/asII/EW2RbqkwzzX4Zs6Z6mJwwfP++V2cG2fVnjo+HYfbjywXd3R+AUnQi5BeKdxklG28/LZph9Yhm6WK2hL7dhgbcQ== X-Google-Smtp-Source: AGHT+IHpF+nR9zLxjETbHDkTEzaAfAjtttwVbhTdA6ScAnx6omtwoULujDfhtHgTy0/HxC+0PN6E X-Received: by 2002:a05:6a21:189:b0:1a0:e639:7d56 with SMTP id le9-20020a056a21018900b001a0e6397d56mr917402pzb.22.1709281004949; Fri, 01 Mar 2024 00:16:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709281004; cv=pass; d=google.com; s=arc-20160816; b=XQBxYUF9z5KCVRFCHVyrrzHtCh3MKSE8ThxWcW6TcuucNbfl4sOlEnaJxSGXIk2862 K2tCG5V/+RI5UAg3K0cWfcl+vYAk7psqivdnOl/NIA2MkzbGbQQnFqc1EbN8tP+Jxtqd MAhrstLAsN9CM8b8HyhEW4mI8C9TcEtWFEinxIIFWmzbsKf9xIUSvI3oFqc3rRjddYhV VTAAQ1tmvVozvhwB+rId+zURxCSoWXh55EkGVkAQi1qGlcE3pLki5GX2nJfmkUtWvLfe 8wz6wSfTHQYhmzURSbsGd2zPheFuUq0ZVABSCOf/VtWpuM+BONppS3QYpLLPIZy4/4rj P75g== 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=fKepha/jX1ZniHttNKLse1SAbC+yOgtDNlN9Q72sK+E=; fh=spScFEMhlrlGJ0/yRuhOMZmmNvveXk2pWXtdsQ95Vck=; b=uhpdgqjilm5dgP3n0jC3pRsC9L92u4httZTwaYczFZqzkdeKJQfSvlw5Z5f5x29zV/ ZjIEb9pKjRQpqWXyimEt0W88nIDMVsOf0IK67Hmxl0Q8M2Qof0RTk8FivpsyiYuZFxor baG99cWhpSVbKSOH83Nj3o64Zsy22QBdhrqtlvHQkkMrp00EL4voJTDZopaufvcsgpC0 pHV2KywdXOCO+SUI7Bs9EV3UNRW+mQf1sarNIRJnKtv47Ap0n5cJBgrpTh/7BI/3L4Oa O3EhnxS0bRtryJ1rAdUQhxHByWKYf0sIPLVAhtb7mk2b1sSujPsganuJb43ThqPCDreL qBew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q1dp3Nk5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m9-20020a056a00080900b006e04eba5d03si3224095pfk.283.2024.03.01.00.16.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:16:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q1dp3Nk5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4291-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 12E0FB263A4 for ; Fri, 1 Mar 2024 08:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40BB269D09; Fri, 1 Mar 2024 08:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q1dp3Nk5" 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 19B3069D13; Fri, 1 Mar 2024 08:10:33 +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=1709280634; cv=none; b=tkUbImPALQJldaVh/uWqTBaPHptrQAd8VrxLTpeNBPlHl9Z5bQfi06iAExxlARZJZGGx+1H65QnLqaaMu0iQiRcA538PVYoHFR6HP7QNORpaXILDWrcVb/TL3euyyq6TLq27ZfUpIqSsNICiXY4w54q60lorr1UleN5Hp+U9FkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709280634; c=relaxed/simple; bh=X72NJCeGEpyO5TljCIfKuVss8NrQT972LEnQW9Au8jM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=TwMP5baYS1YzsF80kAiLJaFaVM3n970+2OLVDJKNoMXUyDA8p5fnrMTRx131GWurtwW5186+k+ltkppG6cPhNYy+DLklKTI3moq7Ey3bZyIOyMqzykWHFyF78LfonXHTyVbxH4cKwrZj6Xc7E75KgG4pylGp64mtA6o2LNw2u2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q1dp3Nk5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F44C433F1; Fri, 1 Mar 2024 08:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709280633; bh=X72NJCeGEpyO5TljCIfKuVss8NrQT972LEnQW9Au8jM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Q1dp3Nk59WBXj18jqNBXspTsq5n0O4AOx0Og1H93g0tbsS+tbBCzrVB+pjBRHSE4g 9IHoheYQ6qlctQ+vd9fsnFDXQyr6OHSi6J+zttT/c3C5oZ9+zG+HLFeHRzsAWAqyw/ RslBzZcW+LJmGH74iLKKYXK1ddG5eizTYw9jorCkKEiXBqrs2OwlziLQEggpSZWmwc HFahnW+dpjO4+AQCBkVO70s9VDffgevfO1Q/X5AlYreZGjz7VZ5uObFt7hhR55F0gg LUjpdfO4qkKlsjfwPh9YdqYFhrbzI9wuKofxuRzHU6AnJ7ZYRVCbDq+tj+NToO/MyF hQFY+Cog5LBUg== From: Kalle Valo To: Marc Gonzalez Cc: Jeff Johnson , ath10k , wireless , DT , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Jami Kettunen , Jeffrey Hugo Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath10k: add qcom,no-msa-ready-indicator prop References: <14daa98e-7fd3-4ebb-87bb-5d2c1fba679f@freebox.fr> <871q8wk7o3.fsf@kernel.org> <3392f356-7b19-483d-b9f8-3bd84068fa52@freebox.fr> <87wmqoilzf.fsf@kernel.org> Date: Fri, 01 Mar 2024 10:10:29 +0200 In-Reply-To: (Marc Gonzalez's message of "Wed, 28 Feb 2024 18:19:03 +0100") Message-ID: <87cyse8j9m.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 Marc Gonzalez writes: >> Here's one example where in ath10k we use a feature bit as a workaround: >> >> /* Don't trust error code from otp.bin */ >> ATH10K_FW_FEATURE_IGNORE_OTP_RESULT = 7, >> >> .... >> >> if (!(skip_otp || test_bit(ATH10K_FW_FEATURE_IGNORE_OTP_RESULT, >> ar->running_fw->fw_file.fw_features)) && >> result != 0) { >> ath10k_err(ar, "otp calibration failed: %d", result); >> return -EINVAL; >> } >> >> BTW for modifying firmware-N.bin files we have a script here: >> >> https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath10k/ath10k-fwencoder > > If I understand correctly, you are saying that there is > (maybe... probably) a bug in the FW, so it makes sense to > tag that specific FW file with a special bit which the kernel > will interpret as "this FW is broken in a specific way; > and here's how to work around the issue." > > So this bit would serve the same purpose as my proposed > "qcom,no-msa-ready-indicator" bit (that bit existed instead > in my board's device tree). > > The problem I see is that the firmware files are signed. > Thus, changing a single bit breaks the verification... > UNLESS the FW format allows for a signed section ALONG-SIDE > an unsigned section? firmware-N.bin is ath10k specific container file format and we (the Linux community) have full access to it using ath10k-fwencoder, there's no signing or anything like that. One of the major reasons why it was designed was to handle differences between firmware branches, just like in this case. Of course plan A should be to fix the firmware but if that doesn't work out then plan B could be using the feature bit in firmware-N.bin. BTW related to this Dmitry is extending firmware-N.bin handling for WCN3990, you will most likely need to use that: https://patchwork.kernel.org/project/linux-wireless/cover/20240130-wcn3990-firmware-path-v1-0-826b93202964@linaro.org/ -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches