Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp3081046rdd; Sat, 13 Jan 2024 14:55:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0UVf9VLlkO3mr+YjXlvljxK5cXmxvF2A18l7oupacokcChwzYXeqJxvQMRApEkwPttWze X-Received: by 2002:a05:6e02:4af:b0:35f:eec5:3b14 with SMTP id e15-20020a056e0204af00b0035feec53b14mr3813833ils.28.1705186535766; Sat, 13 Jan 2024 14:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705186535; cv=none; d=google.com; s=arc-20160816; b=vcUL/QKoV09y/Jk8HQbbGBWz2tdbGn4BiH2fk1D+twKV98jXLzou0MrlE2t71rc73a vLC5RPPp9eorcFx63CLfK9wjwd85atshAl758y2X7x0jjOYz7ZpRghU5OdzWrdV2/QLF WATp3qxl0JFYZgNiy0xya9RZJDsN5MsT7Ugd+xLw3KI0qqjHxzElmn+bM+Ej4/chs639 0RV8+46I1ncIPPEyPOiKYKJK1BTx7gNP9AfPXJ0J3lFSD3tGIWC9tl2ugn62xGWo0oWI MKXRSDVGVZNNAznwYbHcmhxdCkXpH9BFBf9WPJ1iKOheY+x+dC1PcXc+w1C0Zw6FlEk6 Zm6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=scyGgWx+S19nzeMm3XKHE4H/wDN57mlqC/FIRkzKKfg=; fh=pVii8HclgDMC9LNO3AidHbJuWLtAjvvJR7+vhk0jMwY=; b=z/Ymv/i1njf89yNGNY9/CPn93qIcX6PdJXPOrEP4ESUUADIlHp7TOeNuS6CYrP3BPr 1SebAzh87dMVAklANAjbVTld5nnRjS5R1bu5i1T2TbkdylkjKPydeQMsLDLSB9HEsGQG /GdcfhPvDt0om/g/cUeqwz07npeOwdfSJwEmtM6egEBk6Nu2nKd6VAA4AAz+nU0S762W DHgXx6+FOMNzgB114fAmFlQTaGRPSZAiQahxjOoDgePOEf4jxWrVhZJzoaEJ0rvCs7SQ KBJCasDlUwipk65ENoRNJ8f6OkzOxvAihwD9SHD+QBiNpz3x11LFLnJPiSGtsc7b3XJd PuZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ASjtNXuI; spf=pass (google.com: domain of linux-wireless+bounces-1883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z3-20020a170902ee0300b001d51f3c3181si5848121plb.40.2024.01.13.14.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 14:55:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ASjtNXuI; spf=pass (google.com: domain of linux-wireless+bounces-1883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 38C43282639 for ; Sat, 13 Jan 2024 22:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C12318036; Sat, 13 Jan 2024 22:55:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ASjtNXuI" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C48471802B for ; Sat, 13 Jan 2024 22:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-40e6275e9beso13215365e9.1 for ; Sat, 13 Jan 2024 14:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705186530; x=1705791330; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=scyGgWx+S19nzeMm3XKHE4H/wDN57mlqC/FIRkzKKfg=; b=ASjtNXuIkkLeE/RKxc2+mQOY507Gurh0zlyv9wjx2u+wndcagV6PeWJicFQgyvBSJn y8AikifNXfRgj0TN2Q11aR43siRa+Iz2N3ROaLgVXMnIOpVzw2mTHSWfK/vBXUxDh0n8 dqfei5J07QTyVeoDH+5D+7nS25iQnrm9McnJBXvUAO1aLpF3hH5babQQaWz7kkGHL5qW LLa9wBmbuhQS9F99CvWUJmsgO/Vh0C+0uIRSEddPHj7t8Oe5CVrw0ywHLXS877bE3nnX nF48TizE7StBj+nIBbua/jaQKjDei6xIhjOw33xtqqfF+C5/yy0VpDzV5iBu1N3+2y4W 1N2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705186530; x=1705791330; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=scyGgWx+S19nzeMm3XKHE4H/wDN57mlqC/FIRkzKKfg=; b=PzeVvxh4Cjv4TZQl+xBQiThyspeEAg4kEoQhTbRAEUX+YYlfbUfActS6Y+a5GI1FHN KMpiL4l0Js2h/zAY86M4aiGruVlkOfDPCKJ1yx87R56B6sHvA39MBQDvTsVru7ZEf3Os +gLW6kn9HGCIV5pwSXlt5s0qNTmCT6EtSLwX74R0QzWJEiZ5+27d2SRInMDu5KvEporE WTCJ0b5tQ+CPYX0ka9VOiuaP3YOj8ClB0zKHwM5785++QH7X5pjud7y6z8HJStxbq8Gf sgARJE9kurZvm+SSKVC+fPhOC5CXS0cWrcPMWj6maNN7sIeUw3sxKF65WbIrhbMXY9xM yxwg== X-Gm-Message-State: AOJu0YyRz1vyYtfse5TRbhBqbD4PLIQ38ZxzGhYNgkMUZBDK0WV6kZ1z zhY5i6TtaKDamOCkyMKyr8s= X-Received: by 2002:a05:600c:4e8d:b0:40e:4a60:4f4b with SMTP id f13-20020a05600c4e8d00b0040e4a604f4bmr1514689wmq.121.1705186529714; Sat, 13 Jan 2024 14:55:29 -0800 (PST) Received: from [192.168.1.50] ([81.196.40.51]) by smtp.gmail.com with ESMTPSA id m35-20020a05600c3b2300b0040e541ddcb1sm10720483wms.33.2024.01.13.14.55.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Jan 2024 14:55:29 -0800 (PST) Message-ID: Date: Sun, 14 Jan 2024 00:55:28 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: wifi: rtlwifi: Speed up firmware loading for USB To: Kalle Valo Cc: "linux-wireless@vger.kernel.org" , Ping-Ke Shih , Larry Finger References: <6351ca3f-6b06-4fe1-ace7-6e9d67497dce@gmail.com> <87o7dphha3.fsf@kernel.org> <87v87x8kft.fsf@kernel.org> Content-Language: en-US From: Bitterblue Smith In-Reply-To: <87v87x8kft.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13/01/2024 14:52, Kalle Valo wrote: > 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 :) > Ahh, got it. I will remember to do that if something like this happens again.