All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] MSFT offloading support for advertisement monitor
@ 2020-12-15  8:31 Archie Pusaka
  2020-12-15  8:31 ` [PATCH v2 1/5] Bluetooth: advmon offload MSFT add rssi support Archie Pusaka
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Archie Pusaka @ 2020-12-15  8:31 UTC (permalink / raw)
  To: linux-bluetooth, Marcel Holtmann
  Cc: CrosBT Upstreaming, Archie Pusaka, David S. Miller,
	Jakub Kicinski, Johan Hedberg, Luiz Augusto von Dentz,
	linux-kernel, netdev

From: Archie Pusaka <apusaka@chromium.org>


Hi linux-bluetooth,

This series of patches manages the hardware offloading part of MSFT
extension API. The full documentation can be accessed by this link:
https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/microsoft-defined-bluetooth-hci-commands-and-events

Only four of the HCI commands are planned to be implemented:
HCI_VS_MSFT_Read_Supported_Features (implemented in previous patch),
HCI_VS_MSFT_LE_Monitor_Advertisement,
HCI_VS_MSFT_LE_Cancel_Monitor_Advertisement, and
HCI_VS_MSFT_LE_Set_Advertisement_Filter_Enable.
These are the commands which would be used for advertisement monitor
feature. Only if the controller supports the MSFT extension would
these commands be sent. Otherwise, software-based monitoring would be
performed in the user space instead.

Thanks in advance for your feedback!

Archie

Changes in v2:
* Add a new opcode instead of modifying an existing one
* Also implement the new MGMT opcode and merge the functionality with
  the old one.

Archie Pusaka (5):
  Bluetooth: advmon offload MSFT add rssi support
  Bluetooth: advmon offload MSFT add monitor
  Bluetooth: advmon offload MSFT remove monitor
  Bluetooth: advmon offload MSFT handle controller reset
  Bluetooth: advmon offload MSFT handle filter enablement

 include/net/bluetooth/hci_core.h |  34 ++-
 include/net/bluetooth/mgmt.h     |  16 ++
 net/bluetooth/hci_core.c         | 173 +++++++++---
 net/bluetooth/mgmt.c             | 333 ++++++++++++++++------
 net/bluetooth/msft.c             | 456 ++++++++++++++++++++++++++++++-
 net/bluetooth/msft.h             |  27 ++
 6 files changed, 919 insertions(+), 120 deletions(-)

-- 
2.29.2.684.gfbc64c5ab5-goog


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH v2 3/5] Bluetooth: advmon offload MSFT remove monitor
@ 2020-12-15 18:34 kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2020-12-15 18:34 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2505 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20201215163106.v2.3.I2bdb3d9953a91dc7865da6e57166260b3a75c146@changeid>
References: <20201215163106.v2.3.I2bdb3d9953a91dc7865da6e57166260b3a75c146(a)changeid>
TO: Archie Pusaka <apusaka@google.com>
TO: "linux-bluetooth" <linux-bluetooth@vger.kernel.org>
TO: Marcel Holtmann <marcel@holtmann.org>
CC: CrosBT Upstreaming <chromeos-bluetooth-upstreaming@chromium.org>
CC: Archie Pusaka <apusaka@chromium.org>
CC: "Miao-chen Chou" <mcchou@chromium.org>
CC: "Yun-Hao Chung" <howardchung@google.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Johan Hedberg <johan.hedberg@gmail.com>
CC: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
CC: linux-kernel(a)vger.kernel.org

Hi Archie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on net-next/master next-20201215]
[cannot apply to net/master sparc-next/master v5.10]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Archie-Pusaka/MSFT-offloading-support-for-advertisement-monitor/20201215-163858
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: i386-randconfig-m021-20201215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
net/bluetooth/msft.h:45 msft_remove_monitor() warn: signedness bug returning '(-95)'

vim +45 net/bluetooth/msft.h

145373cb1b1fcdb Miao-chen Chou 2020-04-03  40  
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  41  static inline bool msft_remove_monitor(struct hci_dev *hdev,
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  42  				       struct adv_monitor *monitor,
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  43  				       u16 handle)
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  44  {
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15 @45  	return -EOPNOTSUPP;
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  46  }
d8ca4cbc63c57c8 Archie Pusaka  2020-12-15  47  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32738 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-12-16  4:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-15  8:31 [PATCH v2 0/5] MSFT offloading support for advertisement monitor Archie Pusaka
2020-12-15  8:31 ` [PATCH v2 1/5] Bluetooth: advmon offload MSFT add rssi support Archie Pusaka
2020-12-15  9:16   ` MSFT offloading support for advertisement monitor bluez.test.bot
2020-12-15  8:31 ` [PATCH v2 2/5] Bluetooth: advmon offload MSFT add monitor Archie Pusaka
2020-12-15  8:31 ` [PATCH v2 3/5] Bluetooth: advmon offload MSFT remove monitor Archie Pusaka
2020-12-15 19:03   ` Dan Carpenter
2020-12-15 19:03     ` Dan Carpenter
2020-12-15 19:03     ` Dan Carpenter
2020-12-16  4:33     ` Archie Pusaka
2020-12-16  4:33       ` Archie Pusaka
2020-12-15  8:32 ` [PATCH v2 4/5] Bluetooth: advmon offload MSFT handle controller reset Archie Pusaka
2020-12-15  8:32 ` [PATCH v2 5/5] Bluetooth: advmon offload MSFT handle filter enablement Archie Pusaka
  -- strict thread matches above, loose matches on Subject: below --
2020-12-15 18:34 [PATCH v2 3/5] Bluetooth: advmon offload MSFT remove monitor kernel test robot

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.