Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp733791iog; Mon, 13 Jun 2022 11:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM1zutf1J9V/psbxvHGiDkNS/6b5PV2mAr0eynbQDXFRVYAag1pHCXtfRz2V9BwNd0rNki X-Received: by 2002:a05:6402:40c6:b0:42f:9ff8:62f8 with SMTP id z6-20020a05640240c600b0042f9ff862f8mr1279082edb.95.1655145791996; Mon, 13 Jun 2022 11:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655145791; cv=none; d=google.com; s=arc-20160816; b=0hfAklZp0qVMSt0t29tyMOXj3qabEB755D0wTyCrl+pC7p5XEnlqzAr4EMvmyi06sO muqXQgmHV3Xtx7zQ7UW/I2Pf84Z+8Rzd7DOFoLyiFQUIwGgFlbjmsjq8gxtgK574kmjR dSlhdyBLKLJ4VPdSYkBDdi383HLi1a/eUJ1ql28vZ2Ok19cYZKSxCqvbQ94WsVSXqgQE HyN7GI4lKnNOtJ5GVN5cXkK6kLrmsqPFcUkTp5HlcoHNNHMC9werapeb6n8onslD6szc jdrzlZsXKWa5c9+SOqNnPl2ufoBIFIW+jmhuaxhOxNQlVb1aqSnrMSKzr+pHS4cuPJJ3 ZwqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qIyjHtlgmZ2mGqkFBQdbyeKZViSqALiGs38sp6wvC98=; b=v30CJci2+X2aU43KpQhO4Gb0AmJNNboP0IvcLPa9pH52vqp/vX+1lHagGH179zZ9La jgbwxwpGoH5uabHFwJwGg9ypUGJyr5jz6vOwQ0T/Kq2fdFIEi2uOaLdAEjQGRXDIBYYP GzwaRBeJKKH5NZcMQse6oKIP4CGnpJup5Uwu2vU6eguIijJNyfoi9Dmkt1QoS+VFlrDS Puyv9Nq+2apq1ScqP5RX5xPhI90cQWcKUa+pFr4zdY+DKHhcb+5YpOl/W0SKO1XBHV4d zJ8wqhQ6GKSKzuLKQCzj8voY6ldvu9q2O+pRXTpqQIfCzT+K5tyEvKsodeqnkUyTKJ0I 7oEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hhHS9wDW; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a50e696000000b0042b2375f906si8855953edm.327.2022.06.13.11.42.30; Mon, 13 Jun 2022 11:43:11 -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=@canonical.com header.s=20210705 header.b=hhHS9wDW; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240410AbiFMSiG (ORCPT + 99 others); Mon, 13 Jun 2022 14:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343549AbiFMShy (ORCPT ); Mon, 13 Jun 2022 14:37:54 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EB8A13F19 for ; Mon, 13 Jun 2022 08:39:13 -0700 (PDT) Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 596BD3F210 for ; Mon, 13 Jun 2022 15:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1655134751; bh=qIyjHtlgmZ2mGqkFBQdbyeKZViSqALiGs38sp6wvC98=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hhHS9wDWo1T9emOiQdZR2fVXZEHA+VXzYtoFnKfticEc/tHOBat/vtYjbgmiUUh0y awfmyrhnFMGQWX2KTL9OgvUPQp+UfF7KRECmbN1YFHG9N1Y2cWByTR37Gf9hcGl798 cdsyQRryMMmcsC4566uGX2i8F0ioQV1cjbJYIhcE7tlxJd2NBQ/qJ1NpM1ggBQBHs1 QCtbCyTfDPUdQbNHuPgVijITEAXqGl+YEVO9ZUvGMamEcG9Mw5SiOzJ6HDzwqSUhhy blOgDukk0xa7OfO0gEfJ7HT1Ng66yYyfhW6xijBqujtlEbOgqesXjcOjH6wpHs1Eru ALNT28DOWg4jw== Received: by mail-il1-f197.google.com with SMTP id i18-20020a926d12000000b002d1b13b896cso4815501ilc.7 for ; Mon, 13 Jun 2022 08:39:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qIyjHtlgmZ2mGqkFBQdbyeKZViSqALiGs38sp6wvC98=; b=psHFG18M0/mh491lRNYhJOGFRLNvS4T7vjWgAD75Mj/FgoSgFYsuixicNmxw/V93NA C26eBXQPLcFjwXhCGfIkyZdnxK3c0XXtbIuT5dU5QDvlfEYgD6fm1j0hD9m2Xwl1a3im v7Tw+4M27tkcRWXU7tlyrsFqf90POaOEr1ZqYXKPTd5wJf/HprAdlrsJpnm0BII35J2v 78vtQaIIMDdu8hs/aBfwNiBkQaNCF0YUGnxm1Lf9OhTsMm/rUWJYUrl5QN4424zoHCVQ +KOumk9LzOOGEzAZ5HfYf8NaPwVspBtNT2ELR2amPIFq71K4i3ioQRnQXNdN5mbdvb04 sPzg== X-Gm-Message-State: AOAM5318aoevbqgLJMNXYypPyZL6nOFfCH8Iqjeq88zRJPuoXli97B4m 7PgvnPydR2hPtzxTckQS/WIFzoH82XO0blKwSDu27RM+66igxIb7gtcN9RiImHeCLfgl9St0sB8 +svqHOpA3iS8gyrdl2Z8ADP/cVTXkXr1LaHh5Mc2u62r0tezBcoukRBSmOWtJ9g== X-Received: by 2002:a05:6638:144d:b0:332:fa9:28a9 with SMTP id l13-20020a056638144d00b003320fa928a9mr201874jad.237.1655134749715; Mon, 13 Jun 2022 08:39:09 -0700 (PDT) X-Received: by 2002:a05:6638:144d:b0:332:fa9:28a9 with SMTP id l13-20020a056638144d00b003320fa928a9mr201863jad.237.1655134749505; Mon, 13 Jun 2022 08:39:09 -0700 (PDT) MIME-Version: 1.0 References: <20220516103329.516952-1-dimitri.ledkov@canonical.com> In-Reply-To: <20220516103329.516952-1-dimitri.ledkov@canonical.com> From: =?UTF-8?B?RGltaXRyaSBKb2huIExlZGtvdiDwn4+z77iP4oCN8J+MiA==?= Date: Mon, 13 Jun 2022 16:38:33 +0100 Message-ID: Subject: Re: [PATCH v2] Bluetooth: btintel: Correctly declare all module firmware files To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Marcel Does this v2 patch address the concerns you mentioned in your review of the v1 patch at https://lore.kernel.org/linux-bluetooth/3EA82A93-D167-482D-AAF4-D781B77A4646@holtmann.org/ ? Or can you explain a bit more how I misunderstood your request? This patch correctly documents the strict patterns of dozens or so existing firmware files which this driver can load for each of the hw variants. On Mon, 16 May 2022 at 11:33, Dimitri John Ledkov wrote: > > Strictly encode patterns of supported hw_variants of firmware files > the kernel driver supports requesting. This now includes many missing > and previously undeclared module firmware files for 0x07, 0x08, > 0x11-0x14 hw_variants. > > This especially affects environments that only install firmware files > declared and referenced by the kernel modules. In such environments, > only the declared firmware files are copied resulting in most Intel > Bluetooth devices not working. I.e. host-only dracut-install initrds, > or Ubuntu Core kernel snaps. > > BugLink: https://bugs.launchpad.net/bugs/1970819 > Signed-off-by: Dimitri John Ledkov > --- > > Changes since v1: > - encode strict patterns of supported firmware files for each of the > supported hw_variant generations. > > v1 submission link > https://lore.kernel.org/linux-bluetooth/20220509163259.1513242-1-dimitri.ledkov@canonical.com/ > > drivers/bluetooth/btintel.c | 23 +++++++++++++++++++---- > 1 file changed, 19 insertions(+), 4 deletions(-) > > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c > index 06514ed66022..17022758b5bd 100644 > --- a/drivers/bluetooth/btintel.c > +++ b/drivers/bluetooth/btintel.c > @@ -2654,7 +2654,22 @@ MODULE_AUTHOR("Marcel Holtmann "); > MODULE_DESCRIPTION("Bluetooth support for Intel devices ver " VERSION); > MODULE_VERSION(VERSION); > MODULE_LICENSE("GPL"); > -MODULE_FIRMWARE("intel/ibt-11-5.sfi"); > -MODULE_FIRMWARE("intel/ibt-11-5.ddc"); > -MODULE_FIRMWARE("intel/ibt-12-16.sfi"); > -MODULE_FIRMWARE("intel/ibt-12-16.ddc"); > +/* hw_variant 0x07 0x08 */ > +MODULE_FIRMWARE("intel/ibt-hw-37.7.*-fw-*.*.*.*.*.bseq"); > +MODULE_FIRMWARE("intel/ibt-hw-37.7.bseq"); > +MODULE_FIRMWARE("intel/ibt-hw-37.8.*-fw-*.*.*.*.*.bseq"); > +MODULE_FIRMWARE("intel/ibt-hw-37.8.bseq"); > +/* hw_variant 0x0b 0x0c */ > +MODULE_FIRMWARE("intel/ibt-11-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-12-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-11-*.ddc"); > +MODULE_FIRMWARE("intel/ibt-12-*.ddc"); > +/* hw_variant 0x11 0x12 0x13 0x14 */ > +MODULE_FIRMWARE("intel/ibt-17-*-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-18-*-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-19-*-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-20-*-*.sfi"); > +MODULE_FIRMWARE("intel/ibt-17-*-*.ddc"); > +MODULE_FIRMWARE("intel/ibt-18-*-*.ddc"); > +MODULE_FIRMWARE("intel/ibt-19-*-*.ddc"); > +MODULE_FIRMWARE("intel/ibt-20-*-*.ddc"); > -- > 2.32.0 > -- Happy Pride, Dimitri