Quick regression status pre 7.3-rc4
Hi Linus! Here is a quick report about a one regression from the current cycle that I found worth mentioning:
* 544d85de4dc2 ("net: qrtr: Send HELLO message on endpoint register") [v7.3-rc2] causes resume problems with various ath wifi drivers.
Three subsystem maintainers recently ran into this and two asked kindly to merge a fix for it quickly -- among them the ath* wifi driver maintainer, as the culprit made it into the ath devel trees. But we afaics haven't heard anything from the net maintainers:
https://lore.kernel.org/all/[email protected]/
Would be great if you could merge that fix directly. To make it easy for you, I'll send it as a reply to this mail with all the tags added that came up over the last few days.
HTH, Ciao, Thorsten
Thorsten Leemhuis
maintainerPATCH 1/1 net: qrtr: resend HELLO on MHI resume
From: Daniel J Blueman <[email protected]>
Since the MHI HELLO exchange was relocated, it is sent only at device registration. During a suspend-resume cycle, the firmware in WiFi cards such as WCN7850 indefinitely waits for another HELLO, triggering:
ath12k_wifi7_pci 0004:01:00.0: timeout while waiting for restart complete ath12k_wifi7_pci 0004:01:00.0: failed to resume core: -110
Fix this by triggering the handshake from resume_early in the MHI transport.
Validated on Qualcomm X1E-801800 on Lenovo Slim 7x across 10 suspend-resume cycles.
---
Hi Linus, as mentioned earlier in this thread, would be great if you could merge this directly to fix an annoying regression. Ciao, THorsteh
--- net/qrtr/af_qrtr.c | 13 +++++++++++++ net/qrtr/mhi.c | 9 ++++++++- net/qrtr/qrtr.h | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-)
qrtr/af_qrtr.c +13 -0
@@ -623,6 +623,19 @@ static void qrtr_hello_work(struct work_struct *work)qrtr_port_put (ctrl); } +/* Trigger the HELLO handshake after the remote has been reset, eg on resume */ +void qrtr_endpoint_hello (struct qrtr_endpoint *ep) +{ +struct qrtr_node *node = ep->node; + +mutex_lock (&node->ep_lock); + node->hello_sent = false; +mutex_unlock (&node->ep_lock); + +schedule_delayed_work (&node->say_hello,0 ); +} +EXPORT_SYMBOL_GPL (qrtr_endpoint_hello); +/** * qrtr_endpoint_register() - register a new endpoint * @ep: endpoint to register
qrtr/mhi.c +8 -1
@@ -183,6 +183,7 @@ static int __maybe_unused qcom_mhi_qrtr_pm_suspend_late(struct device *dev)static int __maybe_unused qcom_mhi_qrtr_pm_resume_early (struct device *dev) { struct mhi_device *mhi_dev = container_of(dev, struct mhi_device, dev); +struct qrtr_mhi_dev *qdev =dev_get_drvdata (dev);enum mhi_state state;int rc;
@@ -201,7 +202,13 @@ static int __maybe_unused qcom_mhi_qrtr_pm_resume_early(struct device *dev)return rc; } -return qcom_mhi_qrtr_queue_dl_buffers (mhi_dev); + rc =qcom_mhi_qrtr_queue_dl_buffers (mhi_dev); +if (rc) +return rc; + +qrtr_endpoint_hello (&qdev->ep); + +return 0 ; }static const struct dev_pm_ops qcom_mhi_qrtr_pm_ops = {
qrtr/qrtr.h +2 -0
@@ -27,6 +27,8 @@ int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid);void qrtr_endpoint_unregister (struct qrtr_endpoint *ep); +void qrtr_endpoint_hello (struct qrtr_endpoint *ep); +int qrtr_endpoint_post (struct qrtr_endpoint *ep,const void *data,size_t len);int qrtr_ns_init (void );
base-commit: 5dd1818b15d98d4a20806cd00b1b40320b06004f
Signature · 1 line
2.55.0
Re: [PATCH] net: qrtr: resend HELLO on MHI resume
qrtr/af_qrtr.c
Quoted 5 lines · Thorsten Leemhuis
qrtr/af_qrtr.c +0
-0
How did you generate this diff? You have some very broken setup.
A real git diff should have had an extra path component, and looks like
diff --git a/net/qrtr/af_qrtr.c b/net/qrtr/af_qrtr.c index 78347c937af7..e7b3647424b8 100644 --- a/net/qrtr/af_qrtr.c +++ b/net/qrtr/af_qrtr.c
and I don't know what broken scripts you use that break that standard format.
I fixed it up in order to apply it, but you have a "--no-prefix" or similar horror somewhere that needs to go away.
Linus
Thorsten Leemhuis
maintainerRe: [PATCH] net: qrtr: resend HELLO on MHI resume
Quoted 11 lines · Linus Torvalds
qrtr/af_qrtr.c
Quoted 5 lines · Thorsten Leemhuis
qrtr/af_qrtr.c +0
-0How did you generate this diff? You have some very broken setup. [...]
I fixed it up in order to apply it, but you have a "--no-prefix" or similar horror somewhere that needs to go away.
Thx for mentioning and especially for fixing this up! I briefly confused two git options and than that "--no-prefix" stayed behind accidentally. :-/
Ciao, Thorsten