* [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
@ 2024-05-18 0:02 Douglas Anderson
2024-05-18 1:06 ` bluez.test.bot
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Douglas Anderson @ 2024-05-18 0:02 UTC (permalink / raw)
To: Marcel Holtmann, Luiz Augusto von Dentz
Cc: Stephen Boyd, Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Douglas Anderson, Sai Teja Aluvala, linux-bluetooth, linux-kernel
On systems in the field, we are seeing this sometimes in the kernel logs:
Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
This means that _something_ decided that it wanted to get a memdump
but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
The cleanup code in qca_controller_memdump() when we get back an error
from hci_devcd_init() undoes most things but forgets to clear
QCA_IBS_DISABLED. One side effect of this is that, during the next
suspend, qca_suspend() will always get a timeout.
Let's fix it so that we clear the bit.
Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
I'm nowhere near an expert on this code so please give extra eyes on
this patch. I also have no idea how to reproduce the problem nor even
how to trigger a memdump to test it. I'd love any advice that folks
could give. ;-)
drivers/bluetooth/hci_qca.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 0c9c9ee56592..1ef12f5a115d 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1090,6 +1090,7 @@ static void qca_controller_memdump(struct work_struct *work)
qca->memdump_state = QCA_MEMDUMP_COLLECTED;
cancel_delayed_work(&qca->ctrl_memdump_timeout);
clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
+ clear_bit(QCA_IBS_DISABLED, &qca->flags);
mutex_unlock(&qca->hci_memdump_lock);
return;
}
--
2.45.0.rc1.225.g2a3ae87e7f-goog
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-05-18 0:02 [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
@ 2024-05-18 1:06 ` bluez.test.bot
2024-05-22 22:13 ` [PATCH] " Stephen Boyd
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: bluez.test.bot @ 2024-05-18 1:06 UTC (permalink / raw)
To: linux-bluetooth, dianders
[-- Attachment #1: Type: text/plain, Size: 2578 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=854121
---Test result---
Test Summary:
CheckPatch PASS 0.64 seconds
GitLint PASS 0.29 seconds
SubjectPrefix PASS 0.11 seconds
BuildKernel PASS 29.99 seconds
CheckAllWarning PASS 32.49 seconds
CheckSparse PASS 37.61 seconds
CheckSmatch FAIL 38.05 seconds
BuildKernel32 PASS 28.58 seconds
TestRunnerSetup PASS 518.20 seconds
TestRunner_l2cap-tester PASS 20.53 seconds
TestRunner_iso-tester FAIL 33.05 seconds
TestRunner_bnep-tester PASS 4.76 seconds
TestRunner_mgmt-tester PASS 112.08 seconds
TestRunner_rfcomm-tester PASS 7.30 seconds
TestRunner_sco-tester PASS 14.85 seconds
TestRunner_ioctl-tester PASS 7.72 seconds
TestRunner_mesh-tester PASS 5.80 seconds
TestRunner_smp-tester PASS 6.80 seconds
TestRunner_userchan-tester PASS 4.98 seconds
IncrementalBuild PASS 27.90 seconds
Details
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139
make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
Total: 122, Passed: 117 (95.9%), Failed: 1, Not Run: 4
Failed Test Cases
ISO Connect Suspend - Success Failed 4.177 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-05-18 0:02 [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
2024-05-18 1:06 ` bluez.test.bot
@ 2024-05-22 22:13 ` Stephen Boyd
2024-05-22 22:18 ` Guenter Roeck
2024-06-10 23:52 ` Doug Anderson
3 siblings, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2024-05-22 22:13 UTC (permalink / raw)
To: Douglas Anderson, Luiz Augusto von Dentz, Marcel Holtmann
Cc: Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Sai Teja Aluvala, linux-bluetooth, linux-kernel
Quoting Douglas Anderson (2024-05-17 17:02:46)
> On systems in the field, we are seeing this sometimes in the kernel logs:
> Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
>
> This means that _something_ decided that it wanted to get a memdump
> but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
>
> The cleanup code in qca_controller_memdump() when we get back an error
> from hci_devcd_init() undoes most things but forgets to clear
> QCA_IBS_DISABLED. One side effect of this is that, during the next
> suspend, qca_suspend() will always get a timeout.
>
> Let's fix it so that we clear the bit.
>
> Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-05-18 0:02 [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
2024-05-18 1:06 ` bluez.test.bot
2024-05-22 22:13 ` [PATCH] " Stephen Boyd
@ 2024-05-22 22:18 ` Guenter Roeck
2024-06-10 23:52 ` Doug Anderson
3 siblings, 0 replies; 8+ messages in thread
From: Guenter Roeck @ 2024-05-22 22:18 UTC (permalink / raw)
To: Douglas Anderson
Cc: Marcel Holtmann, Luiz Augusto von Dentz, Stephen Boyd,
Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Sai Teja Aluvala, linux-bluetooth, linux-kernel
On Fri, May 17, 2024 at 5:03 PM Douglas Anderson <dianders@chromium.org> wrote:
>
> On systems in the field, we are seeing this sometimes in the kernel logs:
> Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
>
> This means that _something_ decided that it wanted to get a memdump
> but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
>
> The cleanup code in qca_controller_memdump() when we get back an error
> from hci_devcd_init() undoes most things but forgets to clear
> QCA_IBS_DISABLED. One side effect of this is that, during the next
> suspend, qca_suspend() will always get a timeout.
>
> Let's fix it so that we clear the bit.
>
> Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
> ---
> I'm nowhere near an expert on this code so please give extra eyes on
> this patch. I also have no idea how to reproduce the problem nor even
> how to trigger a memdump to test it. I'd love any advice that folks
> could give. ;-)
>
> drivers/bluetooth/hci_qca.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
> index 0c9c9ee56592..1ef12f5a115d 100644
> --- a/drivers/bluetooth/hci_qca.c
> +++ b/drivers/bluetooth/hci_qca.c
> @@ -1090,6 +1090,7 @@ static void qca_controller_memdump(struct work_struct *work)
> qca->memdump_state = QCA_MEMDUMP_COLLECTED;
> cancel_delayed_work(&qca->ctrl_memdump_timeout);
> clear_bit(QCA_MEMDUMP_COLLECTION, &qca->flags);
> + clear_bit(QCA_IBS_DISABLED, &qca->flags);
> mutex_unlock(&qca->hci_memdump_lock);
> return;
> }
> --
> 2.45.0.rc1.225.g2a3ae87e7f-goog
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-05-18 0:02 [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
` (2 preceding siblings ...)
2024-05-22 22:18 ` Guenter Roeck
@ 2024-06-10 23:52 ` Doug Anderson
2024-07-31 20:29 ` Doug Anderson
3 siblings, 1 reply; 8+ messages in thread
From: Doug Anderson @ 2024-06-10 23:52 UTC (permalink / raw)
To: Marcel Holtmann, Luiz Augusto von Dentz
Cc: Stephen Boyd, Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Sai Teja Aluvala, linux-bluetooth, linux-kernel
Hi,
On Fri, May 17, 2024 at 5:03 PM Douglas Anderson <dianders@chromium.org> wrote:
>
> On systems in the field, we are seeing this sometimes in the kernel logs:
> Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
>
> This means that _something_ decided that it wanted to get a memdump
> but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
>
> The cleanup code in qca_controller_memdump() when we get back an error
> from hci_devcd_init() undoes most things but forgets to clear
> QCA_IBS_DISABLED. One side effect of this is that, during the next
> suspend, qca_suspend() will always get a timeout.
>
> Let's fix it so that we clear the bit.
>
> Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
> I'm nowhere near an expert on this code so please give extra eyes on
> this patch. I also have no idea how to reproduce the problem nor even
> how to trigger a memdump to test it. I'd love any advice that folks
> could give. ;-)
>
> drivers/bluetooth/hci_qca.c | 1 +
> 1 file changed, 1 insertion(+)
Totally fine if you just need more time, but I wanted to follow up and
check to see if there is anything you need me to do to help move this
patch forward. If not, I'll snooze this patch and check up on it again
sometime around the end of July.
Thanks!
-Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-06-10 23:52 ` Doug Anderson
@ 2024-07-31 20:29 ` Doug Anderson
2024-08-21 21:18 ` Doug Anderson
0 siblings, 1 reply; 8+ messages in thread
From: Doug Anderson @ 2024-07-31 20:29 UTC (permalink / raw)
To: Marcel Holtmann, Luiz Augusto von Dentz
Cc: Stephen Boyd, Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Sai Teja Aluvala, linux-bluetooth, linux-kernel
Hi,
On Mon, Jun 10, 2024 at 4:52 PM Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Fri, May 17, 2024 at 5:03 PM Douglas Anderson <dianders@chromium.org> wrote:
> >
> > On systems in the field, we are seeing this sometimes in the kernel logs:
> > Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
> >
> > This means that _something_ decided that it wanted to get a memdump
> > but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
> >
> > The cleanup code in qca_controller_memdump() when we get back an error
> > from hci_devcd_init() undoes most things but forgets to clear
> > QCA_IBS_DISABLED. One side effect of this is that, during the next
> > suspend, qca_suspend() will always get a timeout.
> >
> > Let's fix it so that we clear the bit.
> >
> > Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> > Signed-off-by: Douglas Anderson <dianders@chromium.org>
> > ---
> > I'm nowhere near an expert on this code so please give extra eyes on
> > this patch. I also have no idea how to reproduce the problem nor even
> > how to trigger a memdump to test it. I'd love any advice that folks
> > could give. ;-)
> >
> > drivers/bluetooth/hci_qca.c | 1 +
> > 1 file changed, 1 insertion(+)
>
> Totally fine if you just need more time, but I wanted to follow up and
> check to see if there is anything you need me to do to help move this
> patch forward. If not, I'll snooze this patch and check up on it again
> sometime around the end of July.
It being the end of July, I'm back to check up on this patch. I
checked mainline and bluetooth-next and I don't see any sign of this
patch. Is there anything blocking it? Do you need me to repost it or
take any other actions?
Thanks!
-Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-07-31 20:29 ` Doug Anderson
@ 2024-08-21 21:18 ` Doug Anderson
2024-08-21 22:10 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 8+ messages in thread
From: Doug Anderson @ 2024-08-21 21:18 UTC (permalink / raw)
To: Marcel Holtmann, Luiz Augusto von Dentz
Cc: Stephen Boyd, Guenter Roeck, Johan Hovold, Bartosz Golaszewski,
Sai Teja Aluvala, linux-bluetooth, linux-kernel
Hi,
On Wed, Jul 31, 2024 at 1:29 PM Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Mon, Jun 10, 2024 at 4:52 PM Doug Anderson <dianders@chromium.org> wrote:
> >
> > Hi,
> >
> > On Fri, May 17, 2024 at 5:03 PM Douglas Anderson <dianders@chromium.org> wrote:
> > >
> > > On systems in the field, we are seeing this sometimes in the kernel logs:
> > > Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
> > >
> > > This means that _something_ decided that it wanted to get a memdump
> > > but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
> > >
> > > The cleanup code in qca_controller_memdump() when we get back an error
> > > from hci_devcd_init() undoes most things but forgets to clear
> > > QCA_IBS_DISABLED. One side effect of this is that, during the next
> > > suspend, qca_suspend() will always get a timeout.
> > >
> > > Let's fix it so that we clear the bit.
> > >
> > > Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> > > Signed-off-by: Douglas Anderson <dianders@chromium.org>
> > > ---
> > > I'm nowhere near an expert on this code so please give extra eyes on
> > > this patch. I also have no idea how to reproduce the problem nor even
> > > how to trigger a memdump to test it. I'd love any advice that folks
> > > could give. ;-)
> > >
> > > drivers/bluetooth/hci_qca.c | 1 +
> > > 1 file changed, 1 insertion(+)
> >
> > Totally fine if you just need more time, but I wanted to follow up and
> > check to see if there is anything you need me to do to help move this
> > patch forward. If not, I'll snooze this patch and check up on it again
> > sometime around the end of July.
>
> It being the end of July, I'm back to check up on this patch. I
> checked mainline and bluetooth-next and I don't see any sign of this
> patch. Is there anything blocking it? Do you need me to repost it or
> take any other actions?
I feel like I'm shouting into the wind. Am I following some incorrect
process for submitting this patch? Can anyone suggest something I
should do differently to get a response here?
Thanks!
-Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS
2024-08-21 21:18 ` Doug Anderson
@ 2024-08-21 22:10 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 8+ messages in thread
From: Luiz Augusto von Dentz @ 2024-08-21 22:10 UTC (permalink / raw)
To: Doug Anderson
Cc: Marcel Holtmann, Stephen Boyd, Guenter Roeck, Johan Hovold,
Bartosz Golaszewski, Sai Teja Aluvala, linux-bluetooth,
linux-kernel
Hi Doug,
On Wed, Aug 21, 2024 at 5:19 PM Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Wed, Jul 31, 2024 at 1:29 PM Doug Anderson <dianders@chromium.org> wrote:
> >
> > Hi,
> >
> > On Mon, Jun 10, 2024 at 4:52 PM Doug Anderson <dianders@chromium.org> wrote:
> > >
> > > Hi,
> > >
> > > On Fri, May 17, 2024 at 5:03 PM Douglas Anderson <dianders@chromium.org> wrote:
> > > >
> > > > On systems in the field, we are seeing this sometimes in the kernel logs:
> > > > Bluetooth: qca_controller_memdump() hci0: hci_devcd_init Return:-95
> > > >
> > > > This means that _something_ decided that it wanted to get a memdump
> > > > but then hci_devcd_init() returned -EOPNOTSUPP (AKA -95).
> > > >
> > > > The cleanup code in qca_controller_memdump() when we get back an error
> > > > from hci_devcd_init() undoes most things but forgets to clear
> > > > QCA_IBS_DISABLED. One side effect of this is that, during the next
> > > > suspend, qca_suspend() will always get a timeout.
> > > >
> > > > Let's fix it so that we clear the bit.
> > > >
> > > > Fixes: 06d3fdfcdf5c ("Bluetooth: hci_qca: Add qcom devcoredump support")
> > > > Signed-off-by: Douglas Anderson <dianders@chromium.org>
> > > > ---
> > > > I'm nowhere near an expert on this code so please give extra eyes on
> > > > this patch. I also have no idea how to reproduce the problem nor even
> > > > how to trigger a memdump to test it. I'd love any advice that folks
> > > > could give. ;-)
> > > >
> > > > drivers/bluetooth/hci_qca.c | 1 +
> > > > 1 file changed, 1 insertion(+)
> > >
> > > Totally fine if you just need more time, but I wanted to follow up and
> > > check to see if there is anything you need me to do to help move this
> > > patch forward. If not, I'll snooze this patch and check up on it again
> > > sometime around the end of July.
> >
> > It being the end of July, I'm back to check up on this patch. I
> > checked mainline and bluetooth-next and I don't see any sign of this
> > patch. Is there anything blocking it? Do you need me to repost it or
> > take any other actions?
>
> I feel like I'm shouting into the wind. Am I following some incorrect
> process for submitting this patch? Can anyone suggest something I
> should do differently to get a response here?
Just resend it since it is no longer listed on patchwork it felt off my radar.
> Thanks!
>
> -Doug
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-08-21 22:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-18 0:02 [PATCH] Bluetooth: qca: If memdump doesn't work, re-enable IBS Douglas Anderson
2024-05-18 1:06 ` bluez.test.bot
2024-05-22 22:13 ` [PATCH] " Stephen Boyd
2024-05-22 22:18 ` Guenter Roeck
2024-06-10 23:52 ` Doug Anderson
2024-07-31 20:29 ` Doug Anderson
2024-08-21 21:18 ` Doug Anderson
2024-08-21 22:10 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox