Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1485657rdg; Sat, 12 Aug 2023 03:21:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVtFaRpOTwnPHTGOLrhs7igwEhuMek+gGE5Z5/ukH9jmG1eFp2j/lYZb1FJM/rVwzWIhEn X-Received: by 2002:a17:906:1db:b0:99c:7eaa:28ec with SMTP id 27-20020a17090601db00b0099c7eaa28ecmr3446208ejj.12.1691835710081; Sat, 12 Aug 2023 03:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691835710; cv=none; d=google.com; s=arc-20160816; b=tXTcsbPX1GCKVGRF1eUyKjYBP1LpA8/19mVpkIaJQNpJoUL2uAPILpZxlNRB6YVVI1 BH98dDp1XkwOogFBg978GUtcHO55BTKMJEj8ArNjiQnqJE5dfihtK585KPkOnZQroV9m 7vWokVPD2KIFn945MGzmdIV1l59oFwxifAMVonWc4PXzV5IYgm7mTWhOl3UMIZRE86Bv dkmgKouh+SYq3QaiMzwowa1AbnySYxDXIW8J1mvAETTf5l1I8v6NPomqTNeMGh5uG34e 9KuC0VQozs5iABQhSA2YxB2X//EqYZk4Z+Y1vwL5FZGix6qZWNOkjIbLo5uXah4wzje2 hWrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=/C1Dlnr3g/LMTYTqBr2kHTFHsYLIX6GA9L2508iI63o=; fh=pOjVJMD/VpMh2eOVufLzZtJmnwpSBf9kzM9Ew92eTIc=; b=VNHk5xY+8xgTreFgMyAZaQxwFTMbYeGUHvrGq7E+d9cbz7b/QsJHtMnC5xL/IALv+T CGz40H2KEpwNbdv2cWQuNtDjvbFpuX9nSPz7RnQyj/UJQIU8u4LWr+hJNjGn18matsUj aAXe67ZpBdQYkT7DN66PZircgorSZWRvnALxjlG+kYNUUAajOK7pEL3kwxrtpXG1dmBp KgJyx3TCfqkE1keQbWM95dPI700dzPD3E1lspovf9VWbuZ8OWQdIiYVK7LN0MOr31MvC qFInPsefLqAF4neu1+YFWb/LGEs4KSSlozPuVX8A5oQKF24tTe29Wv2VpKbfm775pmWM OxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="f/nFW2aw"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb15-20020a170906edcf00b0098e1efaafc5si4887296ejb.195.2023.08.12.03.21.22; Sat, 12 Aug 2023 03:21:50 -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=@suse.de header.s=susede2_rsa header.b="f/nFW2aw"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbjHLKDr (ORCPT + 99 others); Sat, 12 Aug 2023 06:03:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHLKDq (ORCPT ); Sat, 12 Aug 2023 06:03:46 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C50052132 for ; Sat, 12 Aug 2023 03:03:49 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7237D218A0; Sat, 12 Aug 2023 10:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691834627; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/C1Dlnr3g/LMTYTqBr2kHTFHsYLIX6GA9L2508iI63o=; b=f/nFW2awF5Ku5ps/US743QqjkDKMfrSzbh59P5caBmrVwfL8MYMKNslToY5sZhX/oB3Og7 moOdMfeAhzyoN/bLFDr6nmpm2zvhpDf8NG4q1OuX/IS7zyDZvm0Utt23TrseX2+HiVWl9s DYbZJJex0X+d7SNCWLblzkQquO9w7c0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691834627; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/C1Dlnr3g/LMTYTqBr2kHTFHsYLIX6GA9L2508iI63o=; b=UT8F8RykrMoVL9Rp+PodbZI17EtFb9ATyNjP3o+u30/fFMfCIKzaSIabpO/Uz6RxM3FRCJ Q/OJpRtHNqu+UACQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3ECD313274; Sat, 12 Aug 2023 10:03:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ejPZDQNZ12QDNQAAMHmgww (envelope-from ); Sat, 12 Aug 2023 10:03:47 +0000 Date: Sat, 12 Aug 2023 12:03:46 +0200 Message-ID: <874jl4r30d.wl-tiwai@suse.de> From: Takashi Iwai To: Paul Menzel Cc: =?ISO-8859-1?Q?J=FCrgen?= Hofmann , linux-bluetooth@vger.kernel.org, Takashi Iwai , Qu Wenruo , Chris Lu Subject: Re: Firmware for MT7922 missing in initrd; bluetooth disabled after update In-Reply-To: References: <8ddaee26-b4d7-f694-ac8b-2aaf4d3c5f8e@shiphrah.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Sat, 12 Aug 2023 11:02:04 +0200, Paul Menzel wrote: > > [Cc: +Qu, +Chris] > > Dear Jürgen, > > > Am 10.08.23 um 22:24 schrieb Jürgen Hofmann: > > > I updated openSuse Tumbleweed 20230806 with a bluetooth keyboard > > attached to the PC. After the update to 20230808 and rebooting > > bluetooth was disabled and it was impossible to enable it > > again. Before the update bluetooth was working fine. > > Sorry, I do not know what software versions changed updating to > openSUSE Tumbleweed. Could you please mention that for the Linux > kernel and BlueZ and the initrd generator? > > > The attached bluetooth keyboard caused the bluetooth module being > > added to initrd. However, the corresponding firmware for MT7922 is > > not added. > > > > dmesg shows: > > > > [    4.368031] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin failed with error -2 > > > > In fact the file is present on the system > > > > ls -l /usr/lib/firmware/mediatek/BT_RAM_CODE* > > -rw-r--r-- 1 root root 512104  3. Aug 17:36 /usr/lib/firmware/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin.xz > > -rw-r--r-- 1 root root 343052  3. Aug 17:36 /usr/lib/firmware/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin.xz > > > > but missing in initrd > > > > lsinitrd | grep BT_RAM_CODE > > -rw-r--r--   1 root     root       343052 Aug  3 17:36 usr/lib/firmware/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin.xz > > > > Manually adding the file to initrd makes bluetooth work again. > > > > I reported the bug here > > https://bugzilla.suse.com/show_bug.cgi?id=1214133 > > and was requested to report here. > > > > If I can be of any help or you need further information please let me > > know. > From Qu’s answer in the thread *[PATCH v3 1/2] Bluetooth: btusb: Add > new VID/PID 0489/e102 for MT7922* [1] it sounds to me, support for > chip was only added recently, and is going to be in Linux v6.6. The problem is rather the lack of MODULE_FIRMWARE() declarations for the corresponding device. The device itself already works fine as is with the current upstream kernel as long as the firmware file is present on the system. But as dracut puts only the firmware file listed in MODULE_FIRMWARE() into initrd, it starts failing once when you build an initrd containing the BT. thanks, Takashi