Article View: linux.kernel.netdev
Article #6693Re: [PATCH v4 4/4] wifi: ath12k: Connect to the QMI server belonging to the device owned by this driver
From: "Juha-Matti Tilli"
Date: Fri, 23 Oct 2026 05:51
Date: Fri, 23 Oct 2026 05:51
32 lines
13331 bytes
13331 bytes
On Thu, Oct 22, 2026, at 20:43, Manivannan Sadhasivam via B4 Relay wrote: > From: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> > > When two identical ath12k PCIe devices are connected to the same host, both > advertise the WLFW service with the same service and instance id. The QMI > lookup reports both servers to each device, so a device may connect to the > firmware running on the other device. > > But now, QRTR provides each MHI endpoint a unique node id which is > different from the node id announced by the device. So use the same id to > pick the correct server. Add a get_qrtr_node_id() HIF callback that returns > the node id derived from the MHI controller index and zero for transports > that do not assign one. In the new_server callback, reject any service > whose node id does not match. A node id of zero disables the check, so > transports that do not assign one keep their current behavior. Tested-by: Juha-Matti Tilli <juha-matti.tilli@iki.fi> Tested-on: 2x WCN7850 hw2.0 WLAN.IOE_HMT.1.1-00018-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1 As always, I took the entire state of the QRTR directory as of after these changes, on top of 6.18.53 kernel, and with some trivial changes like kzalloc_obj made it compile. Then I cherry-picked the ath11k/ath12k changes, which had no conflicts now. I have two ath12k access points on this router, both work simultaneously. If somebody wants to test this backported variant, it's here: https://github.com/jmtilli/linux/tree/6_18_multi_ath11k_ath12k_mani_v4 BR, Juha-Matti
Technical Details
Message-ID:
<b9dc8c23-9c4e-448a-a159-434ccde72c78@app.fastmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350925-linux-kernel-netdev=dewy.ruReferences:
<20261022-qrtr-multi-ep-v4-0-c6fdb75fcd3e@oss.qualcomm.com> <20261022-qrtr-multi-ep-v4-4-c6fdb75fcd3e@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350925-linux-kernel-netdev=dewy.ru
From: juha-matti.tilli@iki.fi ("Juha-Matti Tilli")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v4 4/4] wifi: ath12k: Connect to the QMI server belonging to the
device owned by this driver
Date: Fri, 23 Oct 2026 08:51:17 +0300
Organization: Usenet Network
Message-ID: <b9dc8c23-9c4e-448a-a159-434ccde72c78@app.fastmail.com>
References: <20261022-qrtr-multi-ep-v4-0-c6fdb75fcd3e@oss.qualcomm.com>
<20261022-qrtr-multi-ep-v4-4-c6fdb75fcd3e@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="423319"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Dby2UYsD6mNxKSItJYZUgbD32Qw= sha256:jBN5WuuqSK9XFdsxOcp1xUphzR2+UQlkX+LqKCQeZDs=
sha1:x8KHWj2JW1zvKRcxNnh0Db/nh8Q= sha256:bJhfrcuVZ79WcA9/Ky4iuQf/IxlJ/37hjUb9hZQawIQ=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 553DC1113F9; Fri, 23 Oct 2026 08:52:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=iki.fi
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id yS9hok7uZ_Yh;
Fri, 23 Oct 2026 08:52:16 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350925-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=iki.fi
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 53CA31113F5; Fri, 23 Oct 2026 08:52:07 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 4A52042E31; Fri, 23 Oct 2026 05:51:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792734717;
b=T9VJilUspKOMa/TIp8VUvl53CWDvRhIb2XEoclAMqH0Abgcx967YMS/ElIPbLSxL80Mu
9TIrY9qrb2ZDawtvsJS7PCCGUgKC2foyOPz9jsIuxGmwHmXh7qqXtwxOqKQEL2XkBiYhf
46FaYPCk9afhAO0yY6hhUdZSsS5QtH48ZvQiZ/w/QYU65GvUHBWI9tDLy2cYI7Pxtrk/D
6cvBQxw0ZNU/aav/WZH2F6G5ZnXn8tJvlzQusg+73XgdyAf/bmi73YD7ruFeKDBGxeDPD
ohGBApifWKkdiWG5b0Z1aib0XfMbxFGNM0NYCLGI70h52PcjHRZKKP9m0AwGCVePASQ==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792734717;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
Received:X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:
X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:X-ThreadId:Date:
From:To:Cc:Message-Id:In-Reply-To:References:Subject:Content-Type:
Content-Transfer-Encoding;
bh=3s1r5gmalSPoDYnFT/d9Qqqf/FI59P/VjbJqXlAkQZY=;
b=1fRV8MN1100SHufCb6edYewRuMK/cm0Y7gXd5SM5G14v1JbGItgwm0ha3aPc+tTuWjvS
YaUV4uJ/wa6u/gvDNgWYJharp79xHICs6Q2B8dQsCTf2HFKafqFwVx798dqYmQw47aU3B
2tn0YzXHENrabneCAMrhYo8sJtpN4EtxBUMz/XBIGpKkZ4IToXviraygm5mqQ0j5HkoJS
XUEdCNlKHm9gXJjRlgzY+9AB4rU2f00aZx/ufJR4YmLxLVhI5HHDYsGtS5M2wbSMdfYAW
QB3HZbngpS+/pFweo8tOlOWmHBVfPZvdoyMSi/LkIUcQ20Z7zdrWzEG8Id6JjW2pRDg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=iki.fi header.i=@iki.fi header.a=rsa-sha256 header.s=meesny header.b=XjQt+Noj;
dmarc=none header.from=iki.fi;
spf=pass smtp.mailfrom=iki.fi;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id BBF28606A322;
Fri, 23 Oct 2026 05:51:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key, unprotected) header.d=iki.fi header.i=@iki.fi header.a=rsa-sha256 header.s=meesny header.b=XjQt+Noj
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=195.140.195.201
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1792734716;
b=oS61gEEm/wLhM1dESab+9kVk02TquoNCmA/xCO6hMW2KESwQmj1F2DTFC/0Of6eUKeB4
y04oTUUl6gTa9ySQ23SFbokv+/oCyuhFLcurFGqXruaABHzXngsW5UlfdfnwaEoSpa5tl
fRv6gMD6F0ctEXyfdJ1cxClmOSsrINyv5dAy8N2gsZOOxJmomGEf403Y/jKgKSqTlNgu9
pwNxWIjS6ha0E+iyirf0ZqLu9ZrHVioulZvJdCSEwSg37fvNHpt1eefs6oQk0Ha4lelDB
D5dhRJibp49oJtrwnVreA3xRqJEe+dFDsnPV+wOYbuKfQTKov0xfzQHsb81F0Nh/8qg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792734716;
h=DMARC-Filter:Received:DKIM-Signature:Received:Received:X-ME-Sender:
X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To:
References:Subject:Content-Type:Content-Transfer-Encoding;
bh=3s1r5gmalSPoDYnFT/d9Qqqf/FI59P/VjbJqXlAkQZY=;
b=lfEF3xs9g1WvOmdN2OsScBI3Y4zUFk7vQm7vCyzupDJ6Es3wfS/JrXiS4fIhcU3KBrpi
L81+yFmKe7Fn6Il/FNeMKkJ79f1cBOVdxcykHQNibT/RNWvLLbBveh4nk3MSoo299IfeY
eU26PadzpYxxbLj0xSyt95X4PxA63H0uOZUkSx4YSZkW3q002nMCv0Nph+COIcR63VBXb
Jv9c89wn8wJ5wvgZymLLcMAia8CcASejaAH/LUUnZ+d/kCBRFNE8hsIKI/sUedasv2+hK
KDFwhl64KLP7q6oVFNP6DeGFbdV+8miIVpkROnRraXjznGZ94/9ImHGfFM7lZmrMazg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=none header.from=iki.fi;
spf=pass smtp.mailfrom=iki.fi;
dkim=pass header.d=iki.fi header.i=@iki.fi header.a=rsa-sha256 header.s=meesny header.b=XjQt+Noj;
arc=pass header.oldest-pass=0 smtp.remote-ip=195.140.195.201
X-Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8546D606A31B
for <netdev@vger.kernel.org>; Fri, 23 Oct 2026 05:51:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8546D606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi
X-Received: from fauth-c2-smtp.messagingengine.com (fauth-c2-smtp.messagingengine.com [204.75.18.201])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
(No client certificate requested)
(Authenticated sender: jmtilli)
by meesny.iki.fi (Postfix) with ESMTPSA id 4j9sbL4CGmzyQv;
Fri, 23 Oct 2026 08:51:41 +0300 (EEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny;
t=1792734703;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=3s1r5gmalSPoDYnFT/d9Qqqf/FI59P/VjbJqXlAkQZY=;
b=XjQt+NojvA5vLZXlM6CafqE3OQNtzXVMQB9+lTfI4hXFu+ukmCz8JYXa9d9LWMCeQrH1sx
PrExNO+u6vJP7AgFzKzZnwrS6fDaKgt5qh4xiqEwU3Yb17JMZRTAoNMTyuFo7Zje/WVrDP
Mz9sidL6wtHyMjtD4nuplXCpZwh47po=
X-ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1792734703;
b=xejW6Jrc8H+viRQd+M0WhQa4h9yvQQvT3BVNagdU6/v+uyUe07JyY6im34Sio0omdShKVf
ebpAXso+5dSdxI9vpZKSvYN//rFIh3hwUwgANJIoQU9R/SRM5ZaJzvFxTfLNzBst62Rhja
d2SKMd1R+/v02MR26LUuMH0XcxTXyrw=
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
s=meesny; t=1792734703;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=3s1r5gmalSPoDYnFT/d9Qqqf/FI59P/VjbJqXlAkQZY=;
b=xBtgWaLkNBolpOnDpkKErDPXxxkitooOZsXQV0hb8sjFGpx9dPDK1doK4/xuskmCGr3TZy
YL+KVmGreZOQrXtNkG0v9KWLkSHFfmuBwqXWzx81dpGVdyFgRHnr3PTJyNMcoqnFLsW3jr
dhpw/6m+8uwBcUxusZoK6pfxB3T8g0k=
X-ARC-Authentication-Results: i=1;
ORIGINATING;
auth=pass smtp.auth=jmtilli smtp.mailfrom=juha-matti.tilli@iki.fi
X-Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62])
by mailfauth.ams.internal (Postfix) with ESMTP id 4D9A3198003A;
Fri, 23 Oct 2026 01:51:41 -0400 (EDT)
X-Received: from ams-imap-13 ([10.64.2.33])
by ams-compute-02.internal (MEProxy); Fri, 23 Oct 2026 01:51:41 -0400
X-ME-Sender: <xms:6vXaatT642KtAE2v1k4apwVm6NamCAP4qZad1MYMpBXOgct0ZHo5Vg>
<xme:6vXaahkYa91a9gZcxJzj0c09mbJXjmINtL1EH_bTPf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G-xF8S3qW0dlfRje9krjTn8YfVTsqiX>
X-Feedback-ID: i02414972:Fastmail
X-Received: by mailuser.ams.internal (Postfix, from userid 501)
id 9A464F80098; Fri, 23 Oct 2026 01:51:38 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-ThreadId: AlBSNYy1g8DB
X-Cc: linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org,
ath11k@lists.infradead.org, ath12k@lists.infradead.org,
"Bjorn Andersson" <andersson@kernel.org>,
"Chris Lew" <christopher.lew@oss.qualcomm.com>,
"Deepak Kumar Singh" <deepak.singh@oss.qualcomm.com>,
"Raj Kumar Bhagat" <raj.bhagat@oss.qualcomm.com>,
"Jeff Hugo" <jeff.hugo@oss.qualcomm.com>
X-In-Reply-To: <20261022-qrtr-multi-ep-v4-4-c6fdb75fcd3e@oss.qualcomm.com>