Re: [PATCH RFC v2] mhi: Enable unique QRTR node ID support

From: Jeffrey Hugo
Date: Fri Feb 26 2021 - 09:50:01 EST


On 2/26/2021 3:42 AM, Gokul Sriram Palanisamy wrote:
On multi-mhi platforms, host WiFi driver and
QMI test driver needs to differntiate between
QMI packets received from multiple mhi devices.

With QCN9000 PCI cards, once SBL gets loaded, we
utilize ERRDBG2 register to write a unique value
per mhi device from device-tree that the device
utilizes to set a unique QRTR node ID and
instance ID for the QMI service. This helps QRTR
stack in differenting the packets in a multi-mhi
environment and can route them accordingly.

sample:
root@OpenWrt:/# qrtr-lookup
Service Version Instance Node Port
15 1 0 8 1 Test service
69 1 8 8 2 ATH10k WLAN firmware service
15 1 0 24 1 Test service
69 1 24 24 2 ATH10k WLAN firmware service

Here 8 and 24 on column 3 (QMI Instance ID)
and 4 (QRTR Node ID) are the node IDs that
is unique per mhi device.

Changes since v1:
- Addressed review comments by Jeffrey Hugo.

No, you didn't. You fixed the DT comment, but didn't address the rest. This gets a NACK from me.


Gokul Sriram Palanisamy (1):
bus: mhi: core: Add unique qrtr node id support

drivers/bus/mhi/core/boot.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)



--
Jeffrey Hugo
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.