From nobody Mon Feb 9 17:14:37 2026 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 3A81A3A8D70; Tue, 11 Nov 2025 12:34:24 +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=1762864464; cv=none; b=Yky1toHMc2Zfvdsxd3YUsLJ5U3J9NuHiuyUxhsqMhH8QeSHgL6VcSltfT3egA3O2n6S83uJMQ/3N+kY6c0cYuASwdQVSv83DMJFOk/E1VwX0W8h/lqUt3tFzqicfyztbpeKD4vAeKhsUo1OK6yj4zBhCwT+qVvw5li4LuGR3C/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762864464; c=relaxed/simple; bh=D4wbUhiFW8lL58BJ96tV/S4vY+chn5S9Zd4+E3M3Z0k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E3G4zsr50FnB4L0ktquuCFbTdMTQ5/XlotDeNl1vZsyHvUN753yjghE3Qx1pYIpp+UcZTOOihQQSNusV0lASiBP+a6ef3DCJ48N8YNo3KaO6+RJMg7cTFT5sgPVtK5yBbooMKHp6gQ9IrybKzbcf2Ws/f6LCSr2vG8CTtTQ7gzI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SpN6pEHQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SpN6pEHQ" Received: by smtp.kernel.org (Postfix) with ESMTPS id C163EC19422; Tue, 11 Nov 2025 12:34:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762864463; bh=D4wbUhiFW8lL58BJ96tV/S4vY+chn5S9Zd4+E3M3Z0k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=SpN6pEHQvQisjuZ+MYq5O0aTZM4syGd4jvueEvbxoaPIJ+UzQamzcyeOddIZ+3t8B OS8xitaYndGrIpqUHIErnKLQM6i3iCT4GtXuGNwzR8aPFRGu0H2bUv7HzYQrAU3NvH F43KrJf8hj0K7e9ZglHuDDsL0hXmZCSUxIfsuV8xpb07+MauiWTkFcbWxBu2EyNfQf UJu1kWDMdxzsWAhVVG9WjIHMRMGFUff4VRIhLRdtoPNmdShsaiTgwM3+T2LR4Ktzdh W3O8DNk23932Pw65hLvWxghQOtLhUW+QmTZpY89Cz2GzPr+ChT++4Vcklo1JKKS4r0 +VI0orQbRNMZQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7977CCFA1A; Tue, 11 Nov 2025 12:34:23 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 11 Nov 2025 13:34:22 +0100 Subject: [PATCH 1/2] ath10k: Introduce a firmware quirk to skip host cap QMI requests Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251111-xiaomi-beryllium-firmware-v1-1-836b9c51ad86@ixit.cz> References: <20251111-xiaomi-beryllium-firmware-v1-0-836b9c51ad86@ixit.cz> In-Reply-To: <20251111-xiaomi-beryllium-firmware-v1-0-836b9c51ad86@ixit.cz> To: Jeff Johnson , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Selvaraj Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3152; i=david@ixit.cz; h=from:subject:message-id; bh=5FMo9aFaXqxUB4HypgN53V7+QK1qunFr3c9JmlKcclY=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpEy1OcjSNQgfs3SkjYQdqB3Ac1e1i9BymzVK5p q4Vd41ioPWJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaRMtTgAKCRBgAj/E00kg cuyWEAC9D0030HM8wP/qOsIJRe/Pu8yq1QRUwOLD8sGwTzLPMwrqnQvJxZAZYY4KDsblKksdaqB E6isr1E4Rwhw5/0C/CLclqBDTR5rESUqxnXB2wgAnRtIS6Gcf4V+Eoo5tNWo9NXoxES+dcfEfm8 iIHczTJEU1p+gAeI4FBS548n3rA52l99eq15iCO7gMwGZaPWsJimQm3wrtQujkBQc+WKwCb/GgX +nOIXwd6X13j1/zyk8BVIud1PTTvzpWIjmpEPiQDig0/KJIfU1RecnWuMXmW3C+Y/peFjpJmnXb lv1/40F5WjdPWiViIpu4ilAO2FIdjcrkJzIRReREHA/9yHb8I+p4FDwIO5qGEe7Q1eSYp6jmqAb cbG6mvK8RmkwE71vUk8CHTnRTmLyJd/CWmLXHUTEfxWljiy1sW8emsS8QhVpuizCrSMeplh1aqA QMvB51XPKAIaiabfWZnS5LcAeGgd0o77VBCI6R+PK9ijJOpwH8hguuOh6Dev9VT4DQh1fRu7qsr vYTvxKNFVTRtICrzq5G8AtjGIy0aaBhjsNUvQBLukVtQoQKl2DEiw/lTz38Ghxo03IEc9kxLI3k zhUodl6gKCl6O9hByLElR7Qjxx4cbAxFpuqxtPSIp7jXvKpb+TCpZxOEWc82FMTaT8CgWttDnwV R1n70DsqzVPrzBA== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg There are firmware versions which do not support host capability QMI request. We suspect either the host cap is not implemented or there may be firmware specific issues, but apparently there seem to be a generation of firmware that has this particular behavior. For example, firmware build on Xiaomi Poco F1 (sdm845) phone: "QC_IMAGE_VERSION_STRING=3DWLAN.HL.2.0.c3-00257-QCAHLSWMTPLZ-1" If we do not skip the host cap QMI request on Xiaomi Poco F1, then we get a QMI_ERR_MALFORMED_MSG_V01 error message in the ath10k_qmi_host_cap_send_sync(). But this error message is not fatal to the firmware nor to the ath10k driver and we can still bring up the WiFi services successfully if we just ignore it. Hence introducing this firmware quirk to skip host capability QMI request for the firmware versions which do not support this feature. Suggested-by: Dmitry Baryshkov Signed-off-by: David Heidelberg --- drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/core.h | 3 +++ drivers/net/wireless/ath/ath10k/qmi.c | 13 ++++++++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/= ath/ath10k/core.c index 7c2939cbde5f0..7602631696798 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -773,6 +773,7 @@ static const char *const ath10k_core_fw_feature_str[] = =3D { [ATH10K_FW_FEATURE_SINGLE_CHAN_INFO_PER_CHANNEL] =3D "single-chan-info-pe= r-channel", [ATH10K_FW_FEATURE_PEER_FIXED_RATE] =3D "peer-fixed-rate", [ATH10K_FW_FEATURE_IRAM_RECOVERY] =3D "iram-recovery", + [ATH10K_FW_FEATURE_NO_HOST_CAP_QMI_REQ] =3D "no-host-cap-qmi-req", }; =20 static unsigned int ath10k_core_get_fw_feature_str(char *buf, diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/= ath/ath10k/core.h index 73a9db302245d..b20541e4046f8 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -838,6 +838,9 @@ enum ath10k_fw_features { /* Firmware support IRAM recovery */ ATH10K_FW_FEATURE_IRAM_RECOVERY =3D 22, =20 + /* Firmware does not support host capability QMI request */ + ATH10K_FW_FEATURE_NO_HOST_CAP_QMI_REQ =3D 23, + /* keep last */ ATH10K_FW_FEATURE_COUNT, }; diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/a= th/ath10k/qmi.c index 8275345631a0b..5dc8ea39372c1 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.c +++ b/drivers/net/wireless/ath/ath10k/qmi.c @@ -819,9 +819,16 @@ static void ath10k_qmi_event_server_arrive(struct ath1= 0k_qmi *qmi) return; } =20 - ret =3D ath10k_qmi_host_cap_send_sync(qmi); - if (ret) - return; + /* + * Skip the host capability request for the firmware versions which + * do not support this feature. + */ + if (!test_bit(ATH10K_FW_FEATURE_NO_HOST_CAP_QMI_REQ, + ar->running_fw->fw_file.fw_features)) { + ret =3D ath10k_qmi_host_cap_send_sync(qmi); + if (ret) + return; + } =20 ret =3D ath10k_qmi_msa_mem_info_send_sync_msg(qmi); if (ret) --=20 2.51.0 From nobody Mon Feb 9 17:14:37 2026 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 8263D3A8D7E; Tue, 11 Nov 2025 12:34:24 +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=1762864464; cv=none; b=XJr0vAIs63S4SxniErxXC0AG7SK4oExyJrxyxIY6SaGmxfgsJ4xxmk6gpI+frmwxGEqUvP+5TP6DHD7PXetRAfKHOCPZBIjUnxT7ip9vhlgy9XxySgIYt34frDWMC1GU4sZ4hbtJd/K06jMd7pZnn1b4965pPU+VHFdDN2oxTxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762864464; c=relaxed/simple; bh=SpMO8rNLi4WnoDG3Yi9fIqh/wGiw/wFnS+65N5FsU7Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bp7pvzIOfLxKeAsJtNiajrvJQFNOg8qWLAmtnYU0rAhq6wXItRxnHSpz0SMevbt3kW7P8tZ+Z2drI8ASWhNAbQlCi9T6s0mAiJoRn6xt/2dWwx3QPB9D4PM+FhmEvin2lO+UQ1FwxzeLCxCBHzaIz8VIfWxLHDVe1heOq1OEFRA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bv5UA32i; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bv5UA32i" Received: by smtp.kernel.org (Postfix) with ESMTPS id CF47AC19421; Tue, 11 Nov 2025 12:34:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762864463; bh=SpMO8rNLi4WnoDG3Yi9fIqh/wGiw/wFnS+65N5FsU7Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Bv5UA32ic1+AjfNmANErYBXXeWiQb91m1+Z8kdWhtxuQ4JyrwNHlXVY6k3YDmMU/g dNtxJYIZWStZVaqZB6hmdcH52dup0MFgNSqh3sOVI8P9Q9JIFKQniON3LfOxMnyGh7 eG8UHSoNQDI+WzoXT6VfZQ1PpYhCmVfyt2E5ywyPLmPMb1PvdEHxyrWH+fJe3nHliC Zn4LJsLw7IRQ0t9SHrWyWMoPL01YMgaAEdkcFBL1mAxjmYv9pxKAZpYnCRQvtn13VE v2z+sFRBxmqnvr7zWkWo4FyQYNK4lJYDuYQ9uwU6Z+KQLIDWUv1D944lohfgU+Ep7c G0vngCkqpMYqQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C44D1CCFA1E; Tue, 11 Nov 2025 12:34:23 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 11 Nov 2025 13:34:23 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: xiaomi-beryllium: Add firmware-name qualifier to WiFi node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251111-xiaomi-beryllium-firmware-v1-2-836b9c51ad86@ixit.cz> References: <20251111-xiaomi-beryllium-firmware-v1-0-836b9c51ad86@ixit.cz> In-Reply-To: <20251111-xiaomi-beryllium-firmware-v1-0-836b9c51ad86@ixit.cz> To: Jeff Johnson , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Selvaraj Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=833; i=david@ixit.cz; h=from:subject:message-id; bh=PLFjs1iQMEpbEN9hhCiOw/xCedAmYh/qG3YE5NSot4M=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpEy1Okb3cPXX9Y89695Vx+MeosWDF6xW2cVz7g tOCsy9+c/2JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaRMtTgAKCRBgAj/E00kg chboD/9HkOnD7mNoc5x0SjLwvUIyjfP/XAyPuo2/fo+b0CgXiafeRyWnTQfk1HQIvAIpTHLaSaY cxSWPVxwlrYuaMN41qSBgsCA5GMp0CqGE7v4W/AU3jdEPe5dcueeVM++tDa9cJ1aQPmKG9QQR8d fg0pcCErXfEGhm8kXen5sMS2cDj0dd1EolMARMjpAfQW4P8Eq9CcjXq47NiDr6NNooZ2NEEVoMS qWLuB4EOYaNe35it/XMxsvrIZ73JIEavQOsvIr/MOZf0rIKhq1wRN+D3AIC0IcC/5VcCncOlTYm jy1qEeriVgzGlsaTHX+Mi7C2C1fGhjLy/LUj3yxldJ5c0nNMoQjSAUDOHkBgZ80t8Z5+7esNeAv p7OboW1JODXeyNpjQsIT3KcUEoRZaLQmeLkx1AA+FoAXTl1W1HW6htvZHorBr5/dy9aW9p64L3i AITU84iFvvuUJ4QrZkItmSdy6CyUfRDsJCezzrs2mgQLurZcCN+kddATl68a3feqzK7bt5tJaeE ObeaBHO7sulWi4kFy2keGxX8pzjY+R4shMHOMua/KF7820ouNQJpV0kxYdcYY6E074EVxgEZdrM DWeaMLM/4VTt+yd+GZiAHXgfHXRwSPZw0K4cfRocMljeo09chzWtM6cJ31EavNaBaRcUvC8fIAG 0N5XwRaWjFwru2Q== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Add firmware-name property to the WiFi device tree node to specify board-specific lookup directory. Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi b= /arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index 785006a15e979..9b0b0446f4ad3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -631,6 +631,8 @@ &wcd9340 { &wifi { status =3D "okay"; =20 + firmware-name "sdm845/Xiaomi/beryllium"; + vdd-0.8-cx-mx-supply =3D <&vreg_l5a_0p8>; vdd-1.8-xo-supply =3D <&vreg_l7a_1p8>; vdd-1.3-rfa-supply =3D <&vreg_l17a_1p3>; --=20 2.51.0