linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Gix <bgix@codeaurora.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: [RFC] LE: Low Latency GATT Write-Sign-Cmd
Date: Fri, 18 Nov 2011 11:58:40 -0800	[thread overview]
Message-ID: <4EC6B8F0.2040904@codeaurora.org> (raw)
In-Reply-To: <1321643339.15441.622.camel@aeonflux>

Hi Marcel,

On 11/18/2011 11:08 AM, Marcel Holtmann wrote:
> the kernel crypto can be easily used from userspace. See PF_ALG.
>
> So the real question is what's the price of a context switch for us?
>

The timing to hit the earliest slot possible is what most concerns me. 
Although as Master we control the initial connection parameters, we 
really want the ACL packet ready to go as soon as we know the connection 
is up.

There is also the question about depending on positive verification from 
the Baseband that the packet has been sent (Num Cmplt Pkts Evt) before 
issuing the Disconnect HCI command.  An early problem that I had with 
gatttool (before the interactive enhancement) was that even if the ACL 
pkt had been properly sent over the HCI link, the Disconnect cmd was 
preempting it, and the remote device would never receive the ACL pkt.

[....]
>> I think this would be way cleaner than trying to wedge this use case
>> into our current GATT usage model.
>
> I think one of the most important questions that we have to ask
> ourselves at some point is if we wanna put ATT into the kernel.
>
> The potential candidate that forces us to think about this is HID over
> Low Energy. However I like to see numbers on how the context switches
> with keeping ATT in userspace will effect our latency.


I would support migrating ATT to the kernel.  In fact another issue I 
have dealt with is ensuring during Pairing, that we are able to at least 
respond with minimal Error responses if someone tries to read our name, 
and there is no GATT client socket to user space to respond.

-- 
Brian Gix
bgix@codeaurora.org
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

  reply	other threads:[~2011-11-18 19:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18 18:17 [RFC] LE: Low Latency GATT Write-Sign-Cmd Brian Gix
2011-11-18 19:08 ` Marcel Holtmann
2011-11-18 19:58   ` Brian Gix [this message]
2011-11-18 20:12     ` Johan Hedberg
2011-11-18 20:19       ` Brian Gix
2011-11-18 23:50       ` Vinicius Costa Gomes
2011-11-18 20:36   ` Anderson Lizardo
2011-11-18 20:48     ` Brian Gix
2011-11-18 20:58       ` Anderson Lizardo
2011-11-18 21:16         ` Brian Gix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EC6B8F0.2040904@codeaurora.org \
    --to=bgix@codeaurora.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).