Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2852879rdd; Sat, 13 Jan 2024 04:52:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGIRExoMqBR9l+uz7SsPSFKzbF+28LUvLxIfEsQTaVMc3BxYm+dCfsBcuRWpFxW01NCS+G X-Received: by 2002:a05:6214:e87:b0:680:8373:4932 with SMTP id hf7-20020a0562140e8700b0068083734932mr3485740qvb.69.1705150350026; Sat, 13 Jan 2024 04:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705150350; cv=none; d=google.com; s=arc-20160816; b=PQIZd87XAEeNaYMgAZ5oLJiJbb6+nu7wdFQvP71K3xNsDR964KRlTGRfZdFlBjOJ5d zEBITBNjpa1oin/dHEZxId5SCv/qYq0gNyHEv+nXk7FvadbWF5ApsmG9ZXbqGh5wxWtY Hp8TEvp98YoJSVHTMaDYLXWF/G1evlec/zOGx0H4L3iahtZnLJhxVC1v2PaAvB7hL7+n KxzHZx1Tr2lS7JonVnpcXgOHaz/b+TibcjbaL8TlW78oL72u1OS2VeT5rhjrYAeoEvpo 04EGRNoeefpRSkHMB4pR/DUN5tb3BkzPLvEpfo2OPma8c8sJmvuMPac2395WeUE2ogj3 nQtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=cGjtZ3fFoJibCsfnxgjzdDg4xSHMfQgT1C8uiQFZsbk=; fh=KLYZroe+hx7PXWHWhHVHm3kyvVqb0KvAA/sfTDNY4Ss=; b=0FH+zGZXj50rioW2PqLiYr26s24Ex0YJyvpCTimhGTd3pix2kgbWhLtI46AgV9dH9C +DQVuAgHtM1L/3wCndpnE2eR6Tz85Y3FthNGWky6askudsPvl3XTeWS9d7nuXjugkx8Q n0NJuyDzT7uUFb+ics8gWgM31eE7/i+swSLBYFV57qefLy4EasKVF5A2E9Wy14XLJmIP jroCt5GioQXW+2iyIHRTCLZXdmTM0qaGlufnLjas+TH8Xry/RvKVjTBmN7tbLlo7wEMx ryZGobBhjjjboYqpo76YJYWWQHZg48VaBqdv323TPKxtJ+zX4k0xaUdxmLXbKC+gJuwD uEcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eJC1XS8q; spf=pass (google.com: domain of linux-wireless+bounces-1877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x15-20020a0c8e8f000000b006800eced41asi4610544qvb.614.2024.01.13.04.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 04:52:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eJC1XS8q; spf=pass (google.com: domain of linux-wireless+bounces-1877-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AEEF41C2141F for ; Sat, 13 Jan 2024 12:52:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A7A021106; Sat, 13 Jan 2024 12:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eJC1XS8q" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8122C17BDB for ; Sat, 13 Jan 2024 12:52:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07FCFC433F1; Sat, 13 Jan 2024 12:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705150346; bh=r4J2teQ8JFRhqzsOZabxx7oBbE4IBBjUw16HhgLQwFc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eJC1XS8qJaI3bK5rFgOo2wq09dv5ZpTVh7D9ixTNjfrl3UAMC6CCb0DMuyratin3g Qmw878dD120m2sktrHKkUcWqV6LC/36rvih1gBkw15+tgP43jWNhXTJ0nvKmsQRAMM lU8KYeZ0cfrIQpsRjCCZ+Iw6j1pp+m2vZpRYDIAZUGJBtkoBstG7wl6W2biwjrZ2wI xE9QPIsBpwxCmsdz+7A/AGBV7ShgwhpZtjYOe9gGbo0LsmaNK8Sybv7kORi9A+v1Vm UlbQZ8ZFXh/ufe/LJcZjKOLO65+GrvJ28FWAr1OSOdNPGN7a7QzKezJtjezXVBRpY3 kSL0dVepNnuBQ== From: Kalle Valo To: Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" , Ping-Ke Shih , Larry Finger Subject: Re: wifi: rtlwifi: Speed up firmware loading for USB References: <6351ca3f-6b06-4fe1-ace7-6e9d67497dce@gmail.com> <87o7dphha3.fsf@kernel.org> Date: Sat, 13 Jan 2024 14:52:22 +0200 In-Reply-To: (Bitterblue Smith's message of "Sat, 13 Jan 2024 14:08:45 +0200") Message-ID: <87v87x8kft.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Bitterblue Smith writes: > On 13/01/2024 08:35, Kalle Valo wrote: > >> Bitterblue Smith writes: >> >>> Currently it takes almost 6 seconds to upload the firmware for RTL8192CU >>> (and 11 seconds for RTL8192DU). That's because the firmware is uploaded >>> one byte at a time. >>> >>> Also, after plugging the device, the firmware gets uploaded three times >>> before a connection to the AP is established. >>> >>> Maybe this is fine for most users, but when testing changes to the >>> driver it's really annoying to wait so long. >>> >>> Speed up the firmware upload by writing chunks of 64 bytes at a time. >>> This way it takes about 110 ms for RTL8192CU (and about 210 ms for >>> RTL8192DU). >>> >>> PCI devices could upload it in chunks of 4 bytes, but I don't have any >>> to test and commit 89d32c9071aa ("rtlwifi: Download firmware as bytes >>> rather than as dwords") decided otherwise anyway. >>> >>> Signed-off-by: Bitterblue Smith >> >> There's another version so I assume I can drop this one: >> >> https://patchwork.kernel.org/project/linux-wireless/patch/0d262acd-4f94-41c2-8d15-83486aeb976b@gmail.com/ >> > > Yes, you can drop this one. Sorry about that. I forgot to write > "[PATCH]" in the subject. I thought you wouldn't even notice this > one because of that. I think patchwork assumes that any mail with a diff is a patch, like this one: https://patchwork.kernel.org/project/linux-wireless/patch/c7b331edd65b66521a6605177d654e55051568a3.camel@toradex.com/ So "[PATCH]" is more like a visual clue. BTW usually it's a good idea to mark the next mail as v2 and explain in changelog what happened/changed, that way everyone are on the same page. But no big deal, just trying to make this smooth for everyone :) -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches