Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6413744pxu; Thu, 24 Dec 2020 01:26:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd7zyHl+Baij0yvxfk21etcHiFeNXUBi7VlJoAwEZe/Nl6SwoYAIuvkoF4W82K60B/1MOX X-Received: by 2002:a50:cd9c:: with SMTP id p28mr27337573edi.83.1608801979504; Thu, 24 Dec 2020 01:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608801979; cv=none; d=google.com; s=arc-20160816; b=Cs7AzVE7oPTDtgQTj6DZeiJviTLL4RmPpl8D5ateiCwQtRxIGV1SQm9luWtEaFiI6M XO8knm+KN0939kBSTfm4TQaOocAZRvkYGX0ie6ulUFZOvMn03LcOcWUzRyDBDaLep25c q28cYOiC9p7lJL0TG4uvxbomXZTT/blymVj8t7oQUVebpxfaj5vtbGxl8KfwiynwVZbi fuMnPeNVjdswZz1Q6mkai4DjGdlcTyII7V7kSfIHK1qs2UYA14D+fX52JOMuWWTqE1kH 3xJ45JJ+cBpo041s/W616U0ZJs3wRJxh86hBp1jkJjlu5+++tV4Ow+YXywt2fktRBKF4 YRvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=XZUHJRcx/mqjg75xWSx07cLhLeFdQy0blvKCCT7UznA=; b=aVyIhiCi23BKKM925dsmxeWGugzfoIJ+XqMh3ZoYfwYmVpzud8WNNIgWWMc4VdJ1dN m8kSwKN37bKDQBGH8N6NIHlCbMUN/PZOphM05tJMAyK0aOVicjYwS4j4CFi3MSozOIow hE7AuCFXIUGem6e6nx7P5WXxYRQE/AXRZZLLN1x3go8nv/83Y6o6gA8bh7TpVp5Zkl7F jdsRusYXkbrIkRlQm+OIn0lHaL7AVTX3M2D5eHLW+uZnT6btlJMvvIhEyqPNP5Yr6sgE l8mfR5btNgcRxfD2A9Dj1mKMwc/AdKy8Cs8YMI3UVp1UlywCO5bDuSstAOkvxgxrmF1j ArSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si15564896edv.161.2020.12.24.01.25.41; Thu, 24 Dec 2020 01:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726266AbgLXJYM (ORCPT + 99 others); Thu, 24 Dec 2020 04:24:12 -0500 Received: from jax4mhob03.myregisteredsite.com ([64.69.218.83]:44182 "EHLO jax4mhob03.registeredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgLXJYM (ORCPT ); Thu, 24 Dec 2020 04:24:12 -0500 X-Greylist: delayed 149189 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Dec 2020 04:24:11 EST Received: from mailpod.hostingplatform.com ([10.30.71.85]) by jax4mhob03.registeredsite.com (8.14.4/8.14.4) with ESMTP id 0BO9NTXc010636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 24 Dec 2020 04:23:29 -0500 Received: (qmail 56186 invoked by uid 0); 24 Dec 2020 09:23:29 -0000 X-TCPREMOTEIP: 65.41.18.216 X-Authenticated-UID: sbrown@opensat.com Received: from unknown (HELO 155-15-85-208.altiusbb.net) (sbrown@opensat.com@65.41.18.216) by 0 with ESMTPA; 24 Dec 2020 09:23:29 -0000 Received: from localhost (localhost [127.0.0.1]) by 155-15-85-208.altiusbb.net (Postfix) with ESMTP id 2D0B815403CC; Thu, 24 Dec 2020 04:23:28 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at ewol.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from 155-15-85-208.altiusbb.net ([127.0.0.1]) by localhost (fl-server.ewol.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lbIAtnjdurD6; Thu, 24 Dec 2020 04:23:22 -0500 (EST) Received: from z230.lan (z230.lan [192.168.1.3]) by 155-15-85-208.altiusbb.net (Postfix) with ESMTP id 032D31540350; Thu, 24 Dec 2020 04:23:22 -0500 (EST) Message-ID: Subject: Re: mesh: call to Publish triggers apparent output loop in mesh/mesh-io-generic.c From: Steve Brown To: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" Cc: "Stotland, Inga" Date: Thu, 24 Dec 2020 04:23:21 -0500 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, On Tue, 2020-12-22 at 18:43 +0000, Gix, Brian wrote: > Hi Steve, I will investigate on my RPI4 > > -----Original Message----- > From: Steve Brown > Sent: Tuesday, December 22, 2020 7:57 AM > To: linux-bluetooth@vger.kernel.org > Subject: mesh: call to Publish triggers apparent output loop in > mesh/mesh-io-generic.c > > Publish functions as expected, but results in continuous, very heavy > HCI traffic (~every .7ms per btmon log). I don't think it's my > application as the problem persists after the application disconnects > from dbus and exits. > > The calls to LE Set Adv Param all fail. Prior to the Publish call, LE > Set Param calls succeed. The only difference I can see is the failing > ones have an interval of 50ms and the ones that succeed have 100ms. A > successful one is appended. > > I'm at current Bluez head (65231892cd). The platform is a rpi4. > > Below is a pretty normal looking meshd log, a btmon dump and some > more > normal looking dbus traffic. > > Steve I think I found my problem. My retransmit count was set to zero. If the publish retransmit count is 0, mesh-io-generic.c:tx_to() repeats the message indefinitely. However, 4.2.2.6 of the mesh profile spec V1.0 seems to state that 0 means no retransmissions. Steve