Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1451663lqt; Wed, 20 Mar 2024 04:43:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/Qjvl94pL8EaZSQA+jqXuHS+4tTLVbw+E2lx9JqXCPqiSkE9zSqxANexBfijS60VtqUBpWeQmCznoPkPjOCpoqdbM3PbAwDJXz8uTmw== X-Google-Smtp-Source: AGHT+IF3mcGt3QLUdC3OH+yJUER0XzcWj7/Uecjp9T6hrvwuoCzelQpXTPLylRYVb630n3S2QMox X-Received: by 2002:a05:620a:13d0:b0:789:e7a0:7148 with SMTP id g16-20020a05620a13d000b00789e7a07148mr15049128qkl.7.1710934997897; Wed, 20 Mar 2024 04:43:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710934997; cv=pass; d=google.com; s=arc-20160816; b=DNxQ0b4jq0NwK2aNW2e9RfdDYhv96SXLJqGQ9GbuFCTEN0kR4RTdkD0Fb25IKe0XJr 1TaXLA51MuXe6lsZHpf89PN3pUfIa7NezItzZ/4rMXOO1JMKKp2KGgOFKuBUFrjt1ofa 3hZprb9zub84VINcQ0s1SDkT7t2ieUIK4kfwLHQfj/D8AlUNFRHvgXAWNpw7jwBkwUzc RTdP+M0lImJHS56+W85T0Wx+PT37ek1mKtBs2V79TRk/oe4CnyFMBCmj6/yB1UDYjid4 pSopGbrAKAIGzOCYx0DIISWiNkEt/08q7kKmoQez9XJhNwZLlanhEV85vd+TnjQLQsNv 2mBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZMDlq/PYNgPSXFBPlEAm5PfgdP8B23n/4oN/Y+Xt+YM=; fh=P/cuWWHZv19INddB2+DSGIt6MG0LXzss8XPmyjykwkw=; b=yD6C82sjAL16WRanlog0PSuS+DY9IyWdYFc/37kojYW3TtLOPorNKojpqS0LgdLWMZ oPDsjkelIXaf4mgtOIz+G48Xc8SB7FqeXbvzq2aAND11kJNzN9Kxbi81ubBcO8UeX+9k keAaWBF+4gQm5bLAx+5LRI25u/olClGatlF0HVKwFQ29U0s1VdBIfx+JynHS7qougYLE 87pub1LP2k6Kp6Hc1hRvNa0Ek5usHpIBuTDyZDP/gV7yB3Bhc76RNJalcy0k2zm+zNKy hGRWaumfvPaNQcEst3kdVSv8pxWhNlKkfYqDrhUViVkBbuq8RBIxUIjV1Ko0h6DXMXvc Aung==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DWQkpT60; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dz19-20020a05620a2b9300b00789e38cd1casi12503036qkb.590.2024.03.20.04.43.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 04:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DWQkpT60; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D2181C22496 for ; Wed, 20 Mar 2024 11:43:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D8233E49B; Wed, 20 Mar 2024 11:43:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DWQkpT60" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D356381D3 for ; Wed, 20 Mar 2024 11:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710934991; cv=none; b=V3pKwKc+W/ecMIHvHJjqPC4oUlcYc/myPvSx/doeI8ZdSQmE1BrWkc0Idjqh3sc0YtSvYNyZdY1IEvlrKbuWjvMaMgYHTlHOXp2YfYwm/4vaaZfzwslyqtsxcVbicM292cPJIeVTLSI1bPmq/Yznd9jnvoGfn6tfUIWWXarQ0Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710934991; c=relaxed/simple; bh=rAQV6Bdz1Pz9x+hSlilc5rHiJOD2YEWBWohItBtvvKY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TYzz8TaHRgUwKFeC6PDU6Uf6/au0V8op4BI5qVnQUm4+LxpOCx14Q8kMtwMPMi3eY4JfarzVBRrF24/dbjBirh7wx7KRz2ghaYSb45ZSinnOrAyviU+l0GvLzliCUHLAA5ehW8icK/nl4lbus4PDS1MDwRytYHM9ys++vRFjMIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DWQkpT60; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d49f7e5c2cso50783261fa.2 for ; Wed, 20 Mar 2024 04:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710934988; x=1711539788; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZMDlq/PYNgPSXFBPlEAm5PfgdP8B23n/4oN/Y+Xt+YM=; b=DWQkpT60xiBY+ImRHc6ACJxt9wliOdAy2FLprDC7SnGMS3DXRrVOdlVoFhlBzz8rze GwI4qwb5ID020hxziO53rXXo+s88Pm8usRqoaPXgtmXvZNDFTfroxX68BbLrbqHt7jTN KrkFNjZWA150Fp4NhWeIh0f3IXL/jC4y9eJ8AXUAs8yKnILMzlLdXhNKZzvMCSHjvIHv sU2pIv9gck2DWyatn/i5TcESPifVAgYFpJVajBZg7s4VJLIGclFE3MDGbR+oGiFyWz7P U9OMMMIWFiB2ud62lfOOHkLzRCEYtd2jcDFPKhPf0EZUudbjmDD3JR0l9S142pe+FKAy 2+jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710934988; x=1711539788; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZMDlq/PYNgPSXFBPlEAm5PfgdP8B23n/4oN/Y+Xt+YM=; b=molxnGwh2eLedHwmcpo2gLdDkJ13XgXLRrij4mA188HBOqzOywK0x2NGHV6zl0NnVc tjuad9DSXOWvHuO+Y/qS4PDzEKKEdxoHcah7axDurSzy4PCAzOW/865nLuZ/F+GnEn0b ppBeZfOLjukJgowpWUmpL6RLl1w+gLe8ZC4h0YE6EZxbLh/tUDFgcG5sntqb5BuYSIny hdbKOr2GLz4mQR5OzA5DTOQvr4duve/h9S5BVVh5Cbfm9q9RXX3pOp9xONIMKqTUCvkQ uXo/j99n1Rkml7oVFuiplDO007E/uebKLNnJa1KzeGUgGGjFOToNpovklZyZYjZqn/tg JJIg== X-Gm-Message-State: AOJu0YwDvlVemEoTVWvpA0gjWMaKDQU+0Tqv9R+IbYdDyccYMx7nI/Sy kttp7V104E+7sqUyk23+vJ/ExWd4dcNTbOhbgltQx9655E4G1TvzY3v1yezX2fGRuJfMuyZVVEo MvJwyz4l2MPBp0cLePySOa9hOmh6MjNn4+oS06Q== X-Received: by 2002:a2e:850b:0:b0:2d4:74ab:bc36 with SMTP id j11-20020a2e850b000000b002d474abbc36mr10878668lji.0.1710934988021; Wed, 20 Mar 2024 04:43:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318123712.9729-1-mahesh.talewad@nxp.com> <20240318123712.9729-2-mahesh.talewad@nxp.com> In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 20 Mar 2024 11:42:54 +0000 Message-ID: Subject: Re: [EXT] Re: [PATCH BlueZ v1 1/1] LE Create Connection command timeout increased to 20 secs from 4 secs To: Mahesh Talewad Cc: "linux-bluetooth@vger.kernel.org" , Devyani Godbole , Sarveshwar Bajaj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mahesh, On Wed, Mar 20, 2024 at 10:56=E2=80=AFAM Mahesh Talewad wrote: > > Hi Luiz, > > Yes, its auto connect scenario. > While running connect disconnect in a loop on one of the chip, we are get= ting issue with this default timeout . Hence we increased this timeout valu= e to standard LE timeout i.e 20s. > Kindly let us know, is there any timeout explicitly defined for the autoc= onnect in the spec. What exactly is the issue though, or are you saying it is a controller issue because the attempts are too closely together when the timeout is just 4 seconds, note that you are just working around the problem because users can bypass the default when set via conn->conn_timeout. > Thanks and regards, > Mahesh Vithal Talewad > > -----Original Message----- > From: Luiz Augusto von Dentz > Sent: Wednesday, March 20, 2024 3:21 PM > To: Mahesh Talewad > Cc: linux-bluetooth@vger.kernel.org; Devyani Godbole ; Sarveshwar Bajaj > Subject: [EXT] Re: [PATCH BlueZ v1 1/1] LE Create Connection command time= out increased to 20 secs from 4 secs > > Caution: This is an external email. Please take care when clicking links = or opening attachments. When in doubt, report the message using the 'Report= this email' button > > > Hi Mahesh, > > On Mon, Mar 18, 2024 at 12:37=E2=80=AFPM Mahesh Talewad wrote: > > > > - As per specs LE Connection timeout is 20 secs but in implementation, > > it was 4 secs. Hence increased this timeout to 20 Secs. > > > > Signed-off-by: Mahesh Talewad > > --- > > net/bluetooth/hci_event.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c > > index 4ae224824012..06fe5f6b9546 100644 > > --- a/net/bluetooth/hci_event.c > > +++ b/net/bluetooth/hci_event.c > > @@ -6067,7 +6067,7 @@ static struct hci_conn *check_pending_le_conn(str= uct hci_dev *hdev, > > } > > > > conn =3D hci_connect_le(hdev, addr, addr_type, addr_resolved, > > - BT_SECURITY_LOW, hdev->def_le_autoconnect= _timeout, > > + BT_SECURITY_LOW, HCI_LE_CONN_TIMEOUT, > > HCI_ROLE_MASTER); > > if (!IS_ERR(conn)) { > > /* If HCI_AUTO_CONN_EXPLICIT is set, conn is already > > owned > > -- > > 2.34.1 > > Afaik this is on purpose since it is the autoconnect procedure, rather th= an user initiate connection, so are you running into a problem if the timeo= ut is different? > > -- > Luiz Augusto von Dentz --=20 Luiz Augusto von Dentz