Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2338906lqo; Mon, 13 May 2024 15:43:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTBXHyn5j9rO1I6AQQbhuFLTGA4xS7OnNr3J7viGMhZGfU0mgfQ0vUkyxucJLhtDG4e3Zc+txJ2gRKkGOKoDdeBu8Vk3ytP+6EVhFeug== X-Google-Smtp-Source: AGHT+IFRinz9STRFOKyTJ9m/nAy24sQKaI71sm8T3FJa8twMiIZ8UiAef3wKoScEuCtnoPhWoktS X-Received: by 2002:a81:924f:0:b0:618:6fc7:2218 with SMTP id 00721157ae682-622b013d66emr108419587b3.38.1715640221340; Mon, 13 May 2024 15:43:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715640221; cv=pass; d=google.com; s=arc-20160816; b=vSNMeB4rN3Gpsp6E1dMZfvr5ykrDX8W7Tg3PcLSR3FOWSTyO7ja/ds196qjYsetDlQ D2RKIk+F5KzA/Ltyi5MXSVkkUyUP+9eGOiiC3M4ylycEFmZ20PvjNDtCm0bt9RGEGZ34 wZHC8SsaIsXVipOptnMeTPpsOkt8I9LGYUal5Zp2oNJnszGWK3RLrzzkGNlKPzFx0LeH fBKcFzguIjRXXmyc6qSWtL2YZxZ+gkZ2Pu+3BPN1SJm+c9+c+7IX6e5ZSLk4axAI/ykV LSOwGrh7tV3AEYp+3R3roatxh/cq2Ez4DYA3a8X4wZnBkU2U37tl391wv+/8t5+vJ9Kn L5pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=7isn92Mxy7FjzfU+atdnC/eOOlipBuAiwAoQWrBwNWI=; fh=63+Eye9idS3AD27zlmK46SMfxI5QElV2MkgA4RX3Z7A=; b=OcUemGfgeQ7Jdet7xf3ghWtxHF3ZaFxRgkOhHn0By9LYcjKMArz2E38idQHmd6rSF3 Wp+CI73yKm0Ds012iAqVCAcfOrkEfTOtEv4I7+4Dvo4//B51KqOwG4gnLGmG0jVgk+Xy zJwlZHtk4eUL+aCgw8jn407cApazmJAMrpusTQKb0iYjdb/XNUUeFFLLF8wC0nOIegFC rT1e5IXGGIz/1pA4OEytH36G7cTTZumg6MKahTV6wPlLz3XfcIWGw526X2SAJcKI3F3v de2xxRsZlnoZC5pZDe7q2eZC1Fj68E0Do0sWGENSqvpJ2QJBG2nS884K907mmcUV82YB dNaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tQ7vlJVR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56db02bsi103089361cf.734.2024.05.13.15.43.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 15:43:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tQ7vlJVR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 14C0A1C216C3 for ; Mon, 13 May 2024 22:43:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B143184DEF; Mon, 13 May 2024 22:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tQ7vlJVR" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BF222AF09; Mon, 13 May 2024 22:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640214; cv=none; b=Ab1myaSfkfDyUuLsUwujIh7ld6ZlUOuNFTeUFCJ8rTriuobPKsWqxVZ5BvcqaXbXnzdu2BRnruhCZRp0FaYwG8Xlk1Qdw3UAkw40suRN1cc8YMCcifq2ZA8LRS0luqCd1WqGZxif/2XpAbph+tpXq/iFYhGU7hwpc8kd+Rj5IHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715640214; c=relaxed/simple; bh=VQ9Urm59rmUv8jDvOau4fdEQRHbiw9popBWNhKOZ7Bw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=siRwSjJlufyV2CUZLkRgIondt88nDbN654mhKApPomH0XAw4diGuapuvoKBNGuhD3MuE1fp5iVqCuLgzam72ecM8I1XUbS9CDp3PvLkADiN4pyJawPIux0nuHr6EPHTToEZOt7N/UgvWO/OlOgdDkUTrVHn9lUAUAn/M+HswA8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tQ7vlJVR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4644EC113CC; Mon, 13 May 2024 22:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715640213; bh=VQ9Urm59rmUv8jDvOau4fdEQRHbiw9popBWNhKOZ7Bw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tQ7vlJVRc2ECTpRE6TpVoz4yGD+gwv2CHAwasKSsvG2OxlS5H6QwNS16joypOrN0s UpWX9AzJqYSTh9M9y6NZCJwZBzODNK+yb2kBN2D8sDIwsNWbfXiHjhrj4KaoyOxJip yIjXaY/m+Kx2bWVT/KkNgE2qZvnrSOB1exe3K/+y9uxsx7w0kgBL6ZockGQBJaEqA7 pHtnGWIw3tktLWlj5h3tOsAJuNJIq/H+CwQJ1yOKIIZg9pyFL1XfnljeEmzYVxLupC xNyNU7K5AR32fSXnZ5OQQoSqMUnEtXiH/CKjF0Xd5+n8i+Mqhh5u8EzR2FVWxcnBlW hwDsf+yheyc7Q== Date: Mon, 13 May 2024 15:43:32 -0700 From: Jakub Kicinski To: Luiz Augusto von Dentz Cc: Willem de Bruijn , davem@davemloft.net, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, Pauli Virtanen Subject: Re: pull request: bluetooth-next 2024-05-10 Message-ID: <20240513154332.16e4e259@kernel.org> In-Reply-To: References: <20240510211431.1728667-1-luiz.dentz@gmail.com> <20240513142641.0d721b18@kernel.org> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 13 May 2024 18:09:31 -0400 Luiz Augusto von Dentz wrote: > > There is one more warning in the Intel driver: > > > > drivers/bluetooth/btintel_pcie.c:673:33: warning: symbol 'causes_list' > > was not declared. Should it be static? > > We have a fix for that but I was hoping to have it in before the merge > window and then have the fix merged later. > > > It'd also be great to get an ACK from someone familiar with the socket > > time stamping (Willem?) I'm not sure there's sufficient detail in the > > commit message to explain the choices to: > > - change the definition of SCHED / SEND to mean queued / completed, > > while for Ethernet they mean queued to qdisc, queued to HW. > > hmm I thought this was hardware specific, it obviously won't work > exactly as Ethernet since it is a completely different protocol stack, > or are you suggesting we need other definitions for things like TX > completed? I don't know anything about queuing in BT, in terms of timestamping the SEND - SCHED difference is supposed to indicate the level of host delay or host congestion. If the queuing in BT happens mostly in the device HW queue then it may make sense to generate SCHED when handing over to the driver. OTOH if the devices can coalesce or delay completions the completion timeout may be less accurate than stamping before submitting to HW... I'm looking for the analysis that the choices were well thought thru. > > How does it compare to stamping in the driver in terms of accuracy? > > @Pauli any input here? > > > - the "experimental" BT_POLL_ERRQUEUE, how does the user space look? > > There are test cases in BlueZ: > > https://github.com/bluez/bluez/commit/141f66411ca488e26bdd64e6f858ffa190395d23 > > > What is the "upper layer"? What does it mean for kernel uAPI to be > > "experimental"? When does the "upper layer" get to run and how does > > it know that there are time stamps on the error queue? > > The socketopt only gets enabled with use of MGMT Set Experimental > Feature Command: > > https://github.com/bluez/bluez/blob/master/doc/mgmt-api.txt#L3205 > > Anyway you can see on the tests how we are using it. Either I didn't grok the test or it doesn't answer my question. What is the lower layer that we want to "protect" from POLLERR? > > Would be great to get more info and/or second opinion, because it's not > > sufficiently "obviously right" to me to pull right away :( > > Well I assumed sockopt starting with SO_ sort of means it applies that > all socket families, in fact SO_TIMESTAMP already seem to work without > these changes they just don't generate anything, so in a way we are > just implementing a missing feature.