mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mihai Moldovan <ionic@ionic.de>
To: Juha-Matti Tilli <juha-matti.tilli@iki.fi>,
	Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Jeff Johnson <jjohnson@kernel.org>
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>,
	david@3adesign.co.uk, nakonechnij.sergsj@gmail.com
Subject: Re: [PATCH 4/4] wifi: ath12k: Connect to the QMI server belonging to the device owned by this driver
Date: Sat, 19 Sep 2026 17:45:37 +0200	[thread overview]
Message-ID: <a13e783a-1c55-4e9d-92e0-634f8fbb10d1@ionic.de> (raw)
In-Reply-To: <cb6766f8-54b9-435f-a69a-e712727dabdb@app.fastmail.com>

* On 9/18/26 18:51, Juha-Matti Tilli wrote:
>> 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, skip 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.
>>
>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> 
> CC'ing Mihai. He is known to have a platform with two ath12k cards,
> but he said he's been busy recently, so his testing input is uncertain.

I probably could change the setup to use 2 x ath12k modules, yes, but really I 
have always been testing with one module using ath11k and the other module using 
ath12k. Never tested two ath11k or ath12k at a time. There might be even more 
obstacles to getting that to work correctly.

My "test setup" is in the new flat where I don't have a proper networking setup, 
though, so... meh. Don't count on me testing it this year still.

The proposed code looks simple enough, though, and generally makes sense. It 
also does away with aux data on the qrtr socket, and if both endpoints can 
access the same MHI data, it probably makes sense to let them both determine the 
node ID via the shared MHI controller index (the important part here is that the 
node ID knowledge is not stored or passed through anywhere in a common qrtr data 
structure, but essentially becomes a "shared secret" that both end points 
determine individually, but also in a deterministic, matching way).

Since this changes the endpoint ID completely, this might even make the 
user-space qrtr tools work transparently with multiple devices, i.e., not 
requiring any changes to that part. That would be my hope at least. Definitely 
needs testing, though. It would be great if the user-space tools could directly 
communicate with the servers on the modules, but I'm not quite sure how the 
user-space tools would come to the correct node ID conclusion. This might be one 
drawback of the "shared knowledge" architecture - it might be difficult to make 
it work outside of the driver realm.


Indeed a cleaner and more simple approach, though.



Mihai

  reply	other threads:[~2026-09-19 15:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 16:28 [PATCH 0/4] net: qrtr: Add support for using identical MHI endpoint devices Manivannan Sadhasivam via B4 Relay
2026-09-18 16:28 ` [PATCH 1/4] net: qrtr: Allow the host QRTR to assign a unique node id Manivannan Sadhasivam via B4 Relay
2026-09-18 16:28 ` [PATCH 2/4] net: qrtr: Assign unique node id for MHI endpoints Manivannan Sadhasivam via B4 Relay
2026-09-18 16:28 ` [PATCH 3/4] wifi: ath11k: Connect to the QMI server belonging to the device owned by this driver Manivannan Sadhasivam via B4 Relay
2026-09-18 16:39   ` Juha-Matti Tilli
2026-09-18 16:28 ` [PATCH 4/4] wifi: ath12k: " Manivannan Sadhasivam via B4 Relay
2026-09-18 16:51   ` Juha-Matti Tilli
2026-09-19 15:45     ` Mihai Moldovan [this message]
2026-09-18 18:13 ` [PATCH 0/4] net: qrtr: Add support for using identical MHI endpoint devices Jeff Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a13e783a-1c55-4e9d-92e0-634f8fbb10d1@ionic.de \
    --to=ionic@ionic.de \
    --cc=andersson@kernel.org \
    --cc=ath11k@lists.infradead.org \
    --cc=ath12k@lists.infradead.org \
    --cc=christopher.lew@oss.qualcomm.com \
    --cc=davem@davemloft.net \
    --cc=david@3adesign.co.uk \
    --cc=deepak.singh@oss.qualcomm.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jeff.hugo@oss.qualcomm.com \
    --cc=jjohnson@kernel.org \
    --cc=juha-matti.tilli@iki.fi \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@oss.qualcomm.com \
    --cc=nakonechnij.sergsj@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=raj.bhagat@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®