Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2807248rwb; Mon, 7 Aug 2023 04:01:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMoFK14bJTYyGOuxD6ms/rlyQw3Vzd9W4MhO6ugMsmqSxBILspQU0HC0YyKIsw3LvhgL1y X-Received: by 2002:a19:9201:0:b0:4fb:a990:bb28 with SMTP id u1-20020a199201000000b004fba990bb28mr5747159lfd.18.1691406113997; Mon, 07 Aug 2023 04:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691406113; cv=none; d=google.com; s=arc-20160816; b=bNwhtuRER7m6HZKF0iGaM5ZAkSEdO6Ok1UD5XYr58o9RDb0vcAqfaEd+6Hcu6pvgoE XaVC/oZca31n0z6z4qncNp06Q1t9AeoVWBNWLdqhGf+LB9F855/h50UP8LCpSXW6GFok rkF+WPss32T1ODA9zS4bCJRfkjU5DDHrk4cowFaFu67752rwLCRzLqjFzBfAzZa3lu/u 8kHZRB0dCVBp7Zltc7pCeQTVrGQVFGAOxX9NxS8LMaNlge6KvlJQqfYexI8VBU5K1ICA q+ehbTsJX/MqSkYG4zFGvOG/YFhEofz/uRsrV5zBtwSRArTog2SMiHb5yptFbt7GfIyT R/Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=56VirOVV3HYsNzVcxCJBnZKhEr5SyG+OVv9xTWRaFaQ=; fh=AXFVWxVmabZlb4shhNuQ3YlWE6cQfIkaHC5zoqFEku4=; b=uTrkJ3TEmguNdTdUhdUxoremzy2zMOwRsy0UsBTmmNnZG0xZL00Wud6ViWCBB8PJ9+ q2rPhO4/PFXJr03Ka3CUB1rfR2v6eDkf5xAkfLlbvv0DrRqlX2mtiVLdtybQyJq47agD FmPcb565KDR/MJIctyr3teXi/We4VxV/f22MeCDLR+lO3FMPjZ55VNscUlfpHtLbRSve jfOfrqwC6bVdw6H8r24mhtKcwph0fmSXnUokpqLng5eCB4Q3bMreuYkYUgWwFLeaHJU5 UWUvIbJzIY//EeHxYOv0tc/1NUKRU4x5FK6LJbJzOEgZPlFRfOQeA7dFgHHDLOAXCT3y Z9Gg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a056402004c00b005231e5514ecsi4962369edu.689.2023.08.07.04.01.23; Mon, 07 Aug 2023 04:01:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjHGKlJ (ORCPT + 99 others); Mon, 7 Aug 2023 06:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjHGKlI (ORCPT ); Mon, 7 Aug 2023 06:41:08 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85D9110FA; Mon, 7 Aug 2023 03:41:05 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qSxfX-000663-HB; Mon, 07 Aug 2023 12:40:59 +0200 Message-ID: Date: Mon, 7 Aug 2023 12:40:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] Bluetooth: btrtl: Load FW v2 otherwise FW v1 for RTL8852C Content-Language: en-US, de-DE To: Juerg Haefliger , max.chou@realtek.com Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, alex_lu@realsil.com.cn, hildawu@realtek.com, karenhsu@realtek.com, kidman@realtek.com, vicamo.yang@canonical.com, Riley.Kao@dell.com, stable@vger.kernel.org, jwboyer@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, regressions@lists.linux.dev References: <20230807014415.12358-1-max.chou@realtek.com> <20230807120630.79b9e933@smeagol> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20230807120630.79b9e933@smeagol> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1691404865;526a6906; X-HE-SMSGID: 1qSxfX-000663-HB X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 On 07.08.23 12:06, Juerg Haefliger wrote: > On Mon, 7 Aug 2023 09:44:15 +0800 > wrote: > >> From: Max Chou >> >> In the commit of linux-firmware project, rtl8852cu_fw.bin is updated as >> FW v2 format[1]. Consider the case that if driver did not be updated for >> FW v2 supported[2], it can not use FW v2. >> By Canonical's suggestion, older driver should be able to load FW v1, >> so rtl8852cu_fw.bin will be revert to the previous commit as FW v1 and >> add rtl8852cu_fw_v2.bin as FW v2. This item will be started on >> linux-firmware project. >> >> In this commit, the driver prefers to load FW v2 if available. Fallback to >> FW v1 otherwise. >> >> Note that the driver has supported to extract the data for v1 and v2 >> since the commit[1]. >> The previous FW format of RTL8852C is v1. After the commit[2], the FW >> format was changed to v2. Only RTL8852C suffered the different FW formats, >> so we will use rtl8852cu_fw.bin for the original commit as FW v1 and >> rtl8852cu_fw_v2.bin for the future maintained as FW v2. Other Realtek >> chips will not been impacted by this patch. >> >> To do on linux-firmware project after this commit. >> 1. revert '55e7448533e7 ("rtl_bt: Update RTL8852C BT USB firmware >> to 0x040D_7225")' >> => rtl_bt/rtl8852cu_fw.bin: FW v1 (stay at ver. 0xD7B8_FABF) >> 2. Add a new commit for rtl8852cu_fw_v2.bin >> =>rtl_bt/rtl8852cu_fw_v2.bin: FW v2 (to be maintained) >> >> Reference: >> [1]'9a24ce5e29b1 ("Bluetooth: btrtl: Firmware format v2 support")' >> [2]'55e7448533e7 ("rtl_bt: Update RTL8852C BT USB firmware >> to 0x040D_7225")' > > IMO this commit message is too confusing. I don't think you need nor should > refer to linux-firmware commits and what happened in that repo. This commit > simply fixes the v2 support by trying to load a v2 file for certain chips > with a fall-back if fw is not found (or failed to load). That's all that > needs to be mentioned in the commit message. /me totally agrees that this in confusing the way it is and needs to be simplified, but explaining things briefly with maybe a Link: to the linux-firmware commit in question might nevertheless be a good idea (YMMV) >> Fixes: '9a24ce5e29b ("Bluetooth: btrtl: Firmware format v2 support")' > > No '' quotes. Max Chou, you could have just picked the two tags I mentioned earlier just without the space in front of it[1]. If you do so the 0-day robot will also stop complaining, as you apparently misunderstood what I meant with stable tag; [2] explains this. Ciao, Thorsten [1] https://lore.kernel.org/all/f11ba0ef-0bb1-b925-3088-2ba7a8d17393@leemhuis.info/ [2] https://docs.kernel.org/process/stable-kernel-rules.html