Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3973270rwo; Mon, 24 Jul 2023 21:21:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKrddJ5eQjSZLesqzXyf9rFdDrXFIVwDm+M6oBw66to7XjblGjKXaVTW4cO/aX6BZeHmpm X-Received: by 2002:a05:6402:893:b0:522:2813:2557 with SMTP id e19-20020a056402089300b0052228132557mr5050955edy.15.1690258906091; Mon, 24 Jul 2023 21:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690258906; cv=none; d=google.com; s=arc-20160816; b=EgMfsga/W/gFrRUKWJzUu8Q4J+M/tQClnHgD3vYEtoo4rtEzJhE6Itjr8777gaHcvA i+kMYAeT9wj8xRsrJK3F7RLAVkVvPFzB2jYIGKAoBEWAFx9cKAVqTRW+j6WaXGcakkR8 IElCnWJHhH7uzEk2zenZ0/3cuLxq3vPC2sUmgAnUnk33sdrK9EKJYmbWX4I+GRABRIEP Y6enlSbAOQBVB/XSN/zL0CoI2DFONnxmuxONav/AjV3MCrjv8DZcb+qrCUg/Po9tDW0x sK/ZHvIEU9/FEi5IySRWmr2LlJ/EoiUyUXl0nspzg9qmFSeZUykyaYMKrJ/xQEKs965y JfLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=hcMGIR9Wc3GzXip84+xa9v7BoediRSyQ1YPFPXO2UGQ=; fh=A1oEnI8kaA8MT5MqcZgwjVoHhavUpQIMj7PuY4khkEg=; b=Ab5fnvx7z23pC9HYa+Bm14pPeo81zUhzwCrY34zIKiAypiDcyiWFLOXxFxnCKqmE0n PwJMjcDi5rlFSTmhFRcB9YDMNmDpZVVsFtGVd/9lHEG32EAoKqWSBNQ6uKOhEgeUdagG lfJ8AYiNF913TWdZVn91wgz8EJNNvUyfjB1QyxA8rlq1STuxtMXMaYsJ5fV0otlNd0ml 217YmU5XJJA9j8L7z2r1nV9ENBl/hUg4ePjwLZrOlXCApfLKfhfyfyBIl9d5GosPMaqp aR4oMCrCqFfhKOdog4B9tMkjyVfmQOeiYPMI/A2umvRBeqZVWSJdgDcenpY3rKn5sqRb zr1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 d20-20020aa7c1d4000000b0051a200c2d2bsi7779233edp.395.2023.07.24.21.21.26; Mon, 24 Jul 2023 21:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231329AbjGYDlR convert rfc822-to-8bit (ORCPT + 58 others); Mon, 24 Jul 2023 23:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbjGYDlK (ORCPT ); Mon, 24 Jul 2023 23:41:10 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EDC551735 for ; Mon, 24 Jul 2023 20:41:07 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36P3eOsZ5013054, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 36P3eOsZ5013054 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 25 Jul 2023 11:40:24 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 25 Jul 2023 11:40:35 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 25 Jul 2023 11:40:35 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Tue, 25 Jul 2023 11:40:35 +0800 From: Ping-Ke Shih To: Larry Finger , Kalle Valo CC: Johannes Berg , "linux-wireless@vger.kernel.org" , "Takashi Iwai" Subject: RE: [PATCH] wifi: rtw89: Fix loading of compressed firmware Thread-Topic: [PATCH] wifi: rtw89: Fix loading of compressed firmware Thread-Index: AQHZvl45NTY6Zd5s70uHF7Bey25uoK/JzMmQ Date: Tue, 25 Jul 2023 03:40:35 +0000 Message-ID: References: <20230724183927.28553-1-Larry.Finger@lwfinger.net> In-Reply-To: <20230724183927.28553-1-Larry.Finger@lwfinger.net> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,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-wireless@vger.kernel.org > -----Original Message----- > From: Larry Finger On Behalf Of Larry Finger > Sent: Tuesday, July 25, 2023 2:39 AM > To: Kalle Valo > Cc: Johannes Berg ; linux-wireless@vger.kernel.org; Larry Finger > ; Ping-Ke Shih ; Takashi Iwai > Subject: [PATCH] wifi: rtw89: Fix loading of compressed firmware > > When using compressed firmware, the early firmware load feature will fail. > In most cases, the only downside is that if a device has more than one > firmware version available, only the last one listed will be loaded. > In at least two cases, there is no firmware loaded, and the device fails > initialization. See https://github.com/lwfinger/rtw89/issues/259 and > https://bugzilla.opensuse.org/show_bug.cgi?id=1212808 for examples of > the failure. > Personally, I'm fine to avoid loading partial firmware, because of limitation of compressed firmware. What I care is driver probe time, so I measure the time 100 times and remove the highest/lowest 5% numbers, and then get the average probe time of 8852BE: Without this patch: 342,245,770ns With this patch: 346,473,726ns This patch increases about 4ms that can be acceptable. [...] > > Fixes: ffde7f3476a6 ("wifi: rtw89: add firmware format version to backward compatible with older drivers") > Cc: Ping-Ke Shih > Cc: Takashi Iwai > Signed-off-by: Larry Finger Tested-and-acked-by: Ping-Ke Shih