* [PATCH Bluetooth v2 0/1] LE Create Connection command timeout changed to 20 secs
@ 2024-05-02 9:01 Mahesh Talewad
2024-05-02 9:01 ` [PATCH Bluetooth v2 1/1] LE Create Connection command timeout increased " Mahesh Talewad
2024-05-02 14:50 ` [PATCH Bluetooth v2 0/1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 5+ messages in thread
From: Mahesh Talewad @ 2024-05-02 9:01 UTC (permalink / raw)
To: linux-bluetooth
Cc: devyani.godbole, luiz.dentz, sarveshwar.bajaj, mahesh.talewad
Hello Maintainers,
On our DUT, we can see that the host issues create connection cancel
command after 4-sec if there is no connection complete event for
LE create connection cmd.
As per core spec v5.3 section 7.8.5, advertisement interval range is-
Advertising_Interval_Min
Default : 0x0800(1.28s)
Time Range: 20ms to 10.24s
Advertising_Interval_Max
Default : 0x0800(1.28s)
Time Range: 20ms to 10.24s
If the remote device is using adv interval of > 4 sec, it is
difficult to make a connection with the current timeout value.
Also, with the default interval of 1.28 sec, we will get only
3 chances to capture the adv packets with the 4 sec window.
Hence we want to increase this timeout to 20sec.
Thank you in advance for your review.
Thanks and regards,
Mahesh Vithal Talewad
Mahesh Talewad (1):
LE Create Connection command timeout increased to 20 secs
include/net/bluetooth/hci.h | 1 -
net/bluetooth/hci_core.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH Bluetooth v2 1/1] LE Create Connection command timeout increased to 20 secs
2024-05-02 9:01 [PATCH Bluetooth v2 0/1] LE Create Connection command timeout changed to 20 secs Mahesh Talewad
@ 2024-05-02 9:01 ` Mahesh Talewad
2024-05-02 9:33 ` LE Create Connection command timeout changed " bluez.test.bot
2024-05-02 14:50 ` [PATCH Bluetooth v2 0/1] " patchwork-bot+bluetooth
1 sibling, 1 reply; 5+ messages in thread
From: Mahesh Talewad @ 2024-05-02 9:01 UTC (permalink / raw)
To: linux-bluetooth
Cc: devyani.godbole, luiz.dentz, sarveshwar.bajaj, mahesh.talewad
On our DUT, we can see that the host issues create connection cancel
command after 4-sec if there is no connection complete event for
LE create connection cmd.
As per core spec v5.3 section 7.8.5, advertisement interval range is-
Advertising_Interval_Min
Default : 0x0800(1.28s)
Time Range: 20ms to 10.24s
Advertising_Interval_Max
Default : 0x0800(1.28s)
Time Range: 20ms to 10.24s
If the remote device is using adv interval of > 4 sec, it is
difficult to make a connection with the current timeout value.
Also, with the default interval of 1.28 sec, we will get only
3 chances to capture the adv packets with the 4 sec window.
Hence we want to increase this timeout to 20sec.
Signed-off-by: Mahesh Talewad <mahesh.talewad@nxp.com>
---
include/net/bluetooth/hci.h | 1 -
net/bluetooth/hci_core.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 8701ca5f31ee..a0f13a213e12 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -447,7 +447,6 @@ enum {
#define HCI_AUTO_OFF_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
#define HCI_ACL_CONN_TIMEOUT msecs_to_jiffies(20000) /* 20 seconds */
#define HCI_LE_CONN_TIMEOUT msecs_to_jiffies(20000) /* 20 seconds */
-#define HCI_LE_AUTOCONN_TIMEOUT msecs_to_jiffies(4000) /* 4 seconds */
/* HCI data types */
#define HCI_COMMAND_PKT 0x01
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 1690ae57a09d..f5aa7448de30 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2549,7 +2549,7 @@ struct hci_dev *hci_alloc_dev_priv(int sizeof_priv)
hdev->le_rx_def_phys = HCI_LE_SET_PHY_1M;
hdev->le_num_of_adv_sets = HCI_MAX_ADV_INSTANCES;
hdev->def_multi_adv_rotation_duration = HCI_DEFAULT_ADV_DURATION;
- hdev->def_le_autoconnect_timeout = HCI_LE_AUTOCONN_TIMEOUT;
+ hdev->def_le_autoconnect_timeout = HCI_LE_CONN_TIMEOUT;
hdev->min_le_tx_power = HCI_TX_POWER_INVALID;
hdev->max_le_tx_power = HCI_TX_POWER_INVALID;
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: LE Create Connection command timeout changed to 20 secs
2024-05-02 9:01 ` [PATCH Bluetooth v2 1/1] LE Create Connection command timeout increased " Mahesh Talewad
@ 2024-05-02 9:33 ` bluez.test.bot
0 siblings, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-05-02 9:33 UTC (permalink / raw)
To: linux-bluetooth, mahesh.talewad
[-- Attachment #1: Type: text/plain, Size: 2914 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=849830
---Test result---
Test Summary:
CheckPatch PASS 0.67 seconds
GitLint PASS 0.21 seconds
SubjectPrefix FAIL 0.38 seconds
BuildKernel PASS 29.79 seconds
CheckAllWarning PASS 32.53 seconds
CheckSparse PASS 37.61 seconds
CheckSmatch FAIL 36.25 seconds
BuildKernel32 PASS 28.90 seconds
TestRunnerSetup PASS 520.04 seconds
TestRunner_l2cap-tester PASS 18.56 seconds
TestRunner_iso-tester FAIL 33.74 seconds
TestRunner_bnep-tester PASS 4.67 seconds
TestRunner_mgmt-tester PASS 111.73 seconds
TestRunner_rfcomm-tester PASS 7.27 seconds
TestRunner_sco-tester PASS 14.93 seconds
TestRunner_ioctl-tester PASS 7.65 seconds
TestRunner_mesh-tester PASS 5.70 seconds
TestRunner_smp-tester PASS 6.65 seconds
TestRunner_userchan-tester PASS 4.85 seconds
IncrementalBuild PASS 27.52 seconds
Details
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix
Output:
"Bluetooth: " prefix is not specified in the subject
##############################
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....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bpa10x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bpa10x.o'
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: 121 (99.2%), Failed: 1, Not Run: 0
Failed Test Cases
ISO Connect2 Suspend - Success Failed 4.221 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH Bluetooth v2 0/1] LE Create Connection command timeout changed to 20 secs
2024-05-02 9:01 [PATCH Bluetooth v2 0/1] LE Create Connection command timeout changed to 20 secs Mahesh Talewad
2024-05-02 9:01 ` [PATCH Bluetooth v2 1/1] LE Create Connection command timeout increased " Mahesh Talewad
@ 2024-05-02 14:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+bluetooth @ 2024-05-02 14:50 UTC (permalink / raw)
To: Mahesh Talewad
Cc: linux-bluetooth, devyani.godbole, luiz.dentz, sarveshwar.bajaj
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 2 May 2024 12:01:22 +0300 you wrote:
> Hello Maintainers,
>
> On our DUT, we can see that the host issues create connection cancel
> command after 4-sec if there is no connection complete event for
> LE create connection cmd.
> As per core spec v5.3 section 7.8.5, advertisement interval range is-
>
> [...]
Here is the summary with links:
- [v2,1/1] LE Create Connection command timeout increased to 20 secs
https://git.kernel.org/bluetooth/bluetooth-next/c/3de7f943c07f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: LE Create Connection command timeout changed to 20 secs
2024-03-18 12:37 [PATCH BlueZ v1 1/1] LE Create Connection command timeout increased to 20 secs from 4 secs Mahesh Talewad
@ 2024-03-18 13:10 ` bluez.test.bot
0 siblings, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-03-18 13:10 UTC (permalink / raw)
To: linux-bluetooth, mahesh.talewad
[-- Attachment #1: Type: text/plain, Size: 3176 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=836066
---Test result---
Test Summary:
CheckPatch PASS 0.49 seconds
GitLint FAIL 0.47 seconds
SubjectPrefix FAIL 0.32 seconds
BuildKernel PASS 27.83 seconds
CheckAllWarning PASS 32.20 seconds
CheckSparse WARNING 36.11 seconds
CheckSmatch WARNING 98.74 seconds
BuildKernel32 PASS 27.90 seconds
TestRunnerSetup PASS 517.55 seconds
TestRunner_l2cap-tester PASS 22.12 seconds
TestRunner_iso-tester FAIL 32.70 seconds
TestRunner_bnep-tester PASS 4.71 seconds
TestRunner_mgmt-tester FAIL 111.33 seconds
TestRunner_rfcomm-tester PASS 7.35 seconds
TestRunner_sco-tester PASS 12.96 seconds
TestRunner_ioctl-tester PASS 7.75 seconds
TestRunner_mesh-tester PASS 5.79 seconds
TestRunner_smp-tester PASS 6.99 seconds
TestRunner_userchan-tester PASS 4.93 seconds
IncrementalBuild PASS 26.30 seconds
Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[BlueZ,v1,1/1] LE Create Connection command timeout increased to 20 secs from 4 secs
WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
1: T1 Title exceeds max length (84>80): "[BlueZ,v1,1/1] LE Create Connection command timeout increased to 20 secs from 4 secs"
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix
Output:
"Bluetooth: " prefix is not specified in the subject
##############################
Test: CheckSparse - WARNING
Desc: Run sparse tool with linux kernel
Output:
net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
Total: 117, Passed: 116 (99.1%), Failed: 1, Not Run: 0
Failed Test Cases
ISO Connect2 Suspend - Success Failed 4.211 seconds
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 489 (99.4%), Failed: 1, Not Run: 2
Failed Test Cases
LL Privacy - Start Discovery 2 (Disable RL) Failed 0.173 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-05-02 14:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02 9:01 [PATCH Bluetooth v2 0/1] LE Create Connection command timeout changed to 20 secs Mahesh Talewad
2024-05-02 9:01 ` [PATCH Bluetooth v2 1/1] LE Create Connection command timeout increased " Mahesh Talewad
2024-05-02 9:33 ` LE Create Connection command timeout changed " bluez.test.bot
2024-05-02 14:50 ` [PATCH Bluetooth v2 0/1] " patchwork-bot+bluetooth
-- strict thread matches above, loose matches on Subject: below --
2024-03-18 12:37 [PATCH BlueZ v1 1/1] LE Create Connection command timeout increased to 20 secs from 4 secs Mahesh Talewad
2024-03-18 13:10 ` LE Create Connection command timeout changed to 20 secs bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.