Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1330080rwd; Wed, 31 May 2023 12:19:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fIVAoQnec/y5UiwcM73J37juN3OP+mIH9ea++4nzn5Z5+e2NKLu2vtJpSII7TFz7iYExr X-Received: by 2002:a17:90a:cf08:b0:250:5511:64b6 with SMTP id h8-20020a17090acf0800b00250551164b6mr5194448pju.44.1685560785851; Wed, 31 May 2023 12:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560785; cv=none; d=google.com; s=arc-20160816; b=Mz++7zrUur/I8pDZIq3wClkxvEERPF55eUa5FC2pa9m/wN4DNLfi1pb+Mr8u7460cW yq1lTSjwj/cSn7MIjdDhNZ3dUFrU+VmvqgIO1H3w9uqh9hp5kOPzDTmPOkV+A12uA2o7 N51H/wJwvq2GWJ6Wlpb+phQwmiyM4ap4kfkJzcSuizc8AgTu/gMwsRW6TrQSXooMdv/O u+f3YWA07Hu2WkAv6K60OOTDK77Q/CaJklDfexhWOnUw82uWg40ks1auSv/75H8+FSb4 ae1urDWur5KF246am4bYcc2/BhUl9mbynYrNWd7iXxldC4ORUiWhtJY8QPA/pGmU0ze5 u1zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5VQjUBUpsyqw3DIJXc9ZoCTjdfBNwBfjzNGh8BXiADs=; b=Fjl3CggALMamemhCdi9jvo3Iwddze6l1i+cihG2NeCAGbTW45Gmc4eTUmnOwpqhQRX 57F94ZyHbaUku0joRlD9GqYtht3QeGd5klNtuVRwShO79Pu+ohriE13O/dm0m8bNzjGO UQ3J8zZl0p9AgDUZ/RVX3EDktNlegRrRSL1KQ/rVdvEvVYruspf+pbwXWo3Ll6eOa2FO ibjurl4uDnizR8ScXJgF3OaZxEgWjbRNr5f/WLcVB8jERt5ZKHaMCZZzZl6PB6znVImh czwz+YdeOwg9qk6s7mhyzffmeH6CW1l3b80TE8WgSAvIpVj9m4Z2QZH+O4Qegc5WgsCg UgYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jh0kZBMm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb1-20020a17090b35c100b00250365255b9si1500103pjb.116.2023.05.31.12.19.25; Wed, 31 May 2023 12:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jh0kZBMm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbjEaTR0 (ORCPT + 99 others); Wed, 31 May 2023 15:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjEaTR0 (ORCPT ); Wed, 31 May 2023 15:17:26 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A13012C for ; Wed, 31 May 2023 12:17:08 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2af2db78b38so303821fa.3 for ; Wed, 31 May 2023 12:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685560626; x=1688152626; 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=5VQjUBUpsyqw3DIJXc9ZoCTjdfBNwBfjzNGh8BXiADs=; b=jh0kZBMmMtcS2439V6qYL1c5YEfJN34HGXwoniup/3SprCzCI9f93LEWAN3mOihtSl bC00CU0tC434OljvAZgomggV+1iUKf6vJH2Xdgx4sJcWAYp5Mi56NpUCJ4ZF5749oD7x KD1ptUA+nYp6Hz5K5nCxtf3L9DzBLj1JTZtJCPQ0T419vaIaCc6pQWlLyejEjwUZ8OqI bbsbaDmZrtD4Yu0k1sPEzN7PwxHPV+Ecl/8SkFdrU5gdNPDouusQmtIYk3Y2nGBl113D MoBBE0G7MG6XFIpzWxvP60E91N3MZiiga34A1ds46OLB43+Q4Zv0+hql5UqK41PTbLAJ oBgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685560626; x=1688152626; 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=5VQjUBUpsyqw3DIJXc9ZoCTjdfBNwBfjzNGh8BXiADs=; b=W70jXUnfPeHA55CmZqSLyZQtI23ricMdUGAtlCHOW0c59IiVRR+k/kAkDMAjXxZgiU Q6iC6Oh7Ou4zJzWr0QfdLd0ru3iXqYmnAC8kITvhaOWIsXg418B9t+rY29OoV4yyeThx DyhXp9N2cFlGgyntu4f3rW2h0iiOSdKmVeRhIOKYd6v+pxXowf7o/ib04t+t3VXYN8Lt RMnXunxHgEvYYzRNChWZCHbqrdaS4kA6L8pl+g3TqoMjH/H/7SObBGbNfI0VlAh1OtbC ybJQCGUvRaRRTWSOEHpBVlBuUUPmecjHeXD7yTtOHDF6hdbhByGz/aGig1XqirbzzpC+ eShg== X-Gm-Message-State: AC+VfDxmRmJksfNFf3nikh4e1bQ/1/2Hc2RHMx+FoX7N+E3yvs4+ZhO6 lYD1Rf9Yj+uflE9fMZDbl1EaucLdxVvpxBACnjxuqqh5 X-Received: by 2002:a2e:8410:0:b0:2a8:bd1f:a377 with SMTP id z16-20020a2e8410000000b002a8bd1fa377mr3482936ljg.20.1685560626038; Wed, 31 May 2023 12:17:06 -0700 (PDT) MIME-Version: 1.0 References: <46eefccceb45556120a0d1fa95cf27c576e9649a.1685294131.git.pav@iki.fi> <8eacbb0919470938a9ea10fc507d684b6a6d169f.camel@iki.fi> In-Reply-To: <8eacbb0919470938a9ea10fc507d684b6a6d169f.camel@iki.fi> From: Luiz Augusto von Dentz Date: Wed, 31 May 2023 12:16:53 -0700 Message-ID: Subject: Re: [PATCH 1/6] Bluetooth: ISO: fix maximum number of CIS in Set CIG Parameters To: Pauli Virtanen Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pauli, On Sun, May 28, 2023 at 4:58=E2=80=AFPM Pauli Virtanen wrote: > > su, 2023-05-28 kello 17:44 +0000, Pauli Virtanen kirjoitti: > > The maximum CIS_Count is 0x1f (Core v5.3 Vol 4 Part E Sec 7.8.97). > > > > Fixes: 26afbd826ee3 ("Bluetooth: Add initial implementation of CIS conn= ections") > > Signed-off-by: Pauli Virtanen > > --- > > net/bluetooth/hci_conn.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c > > index 1f906f8508bc..7b1a83ec50ae 100644 > > --- a/net/bluetooth/hci_conn.c > > +++ b/net/bluetooth/hci_conn.c > > @@ -788,7 +788,7 @@ struct iso_list_data { > > int count; > > struct { > > struct hci_cp_le_set_cig_params cp; > > - struct hci_cis_params cis[0x11]; > > + struct hci_cis_params cis[0x1f]; > > } pdu; > > }; > > > > @@ -1815,7 +1815,8 @@ static bool hci_le_set_cig_params(struct hci_conn= *conn, struct bt_iso_qos *qos) > > } > > > > /* Reprogram all CIS(s) with the same CIG */ > > - for (data.cig =3D qos->ucast.cig, data.cis =3D 0x00; data.cis < 0= x11; > > + for (data.cig =3D qos->ucast.cig, data.cis =3D 0x00; > > + data.cis < ARRAY_SIZE(data.pdu.cis); > > data.cis++) { > > data.count =3D 0; > > > > Probably should also have cleaned up this loop while at it, the command > takes 0x1f configurations at most, but CIS IDs are <=3D 0xef. For v2... Can you prioritize this set? I'd like to have it merged asap since without it CI is failing some tests. --=20 Luiz Augusto von Dentz