Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2416371rwd; Fri, 9 Jun 2023 10:50:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mqOAX0UVeTplj8NHuYrhXKLm7SqjEgYiEOHbgS/Y+sx1jp7mGJFBK4QD3kl6etIprBnSL X-Received: by 2002:a17:90a:303:b0:256:d4a:ea4c with SMTP id 3-20020a17090a030300b002560d4aea4cmr1769613pje.30.1686333031928; Fri, 09 Jun 2023 10:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686333031; cv=none; d=google.com; s=arc-20160816; b=xOPcwxa2dxB/Flf8n2pMrHQnSTZ6oOVjmhnLi79YdFMYnw5VUdOFYm9R1mT9mpwYw4 UjwWALCn/4LfVZk1onnE3LUaENOBNe5UdMdhFzN47RhRaf8cUxvw3NIpdWpA/WYs7Dhg i5ev43lUXaf9DZm0PpFs2YNT++qd1qgP3WbUtTRzSEn9GAtw3x6M8NNARrZmzBSimpKT 4ldDBbv5/vQ3ljSC5oLz3R4fJRSB+h7+wBJwMRSIiHPPKvFiiipQ9LMMwIPqH6/Dvg0G ZR2JeJYNHJrbZvYSmGgsf/AUAvB+2oVRQeRn6/krAHdTVyZSYMGKfkyVhG4soHDnwznn ahjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+WH76zqrenLLRU4W8LhvZYi9PSsVioQ+x5GUbNwlick=; b=QOHplovFvK0FxbphBWZjkdnBK4nyBpMlvle+femtEx+EKpCZLWsjcrJg/oQqech829 4K5hLuTAZmjizWXVDqD/GpuT/FtnFpTjYLjwFkeQnp81He1tZIzPPH+hOaq0AhLUvtK0 +dGGKKTYzy1v+HyVZlqTx6JJMmZk1GVzHmjiKXDhtMDIedVn6sLICgZRzRf14+q2KWvp tD/byAG7T78o4ppnsSBSR06Ucd53A+dlfHlS6X1Pe4ys5s5e4GC/5KtETP+/rphgweJ4 vWB8a9CTyUUbb3OhDILK0UIBTLB5lqXW/Lnhyyv+j3T6TBHiRmjpE9ipDvEKHEdwY1EN Z3RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmtFayTs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a63af14000000b005347fcb785dsi2905758pge.181.2023.06.09.10.50.20; Fri, 09 Jun 2023 10:50:31 -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; dkim=pass header.i=@chromium.org header.s=google header.b=RmtFayTs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbjFIRmR (ORCPT + 61 others); Fri, 9 Jun 2023 13:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbjFIRmP (ORCPT ); Fri, 9 Jun 2023 13:42:15 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19BDF35B5 for ; Fri, 9 Jun 2023 10:42:03 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-777a6ebb542so85071539f.0 for ; Fri, 09 Jun 2023 10:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686332522; x=1688924522; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+WH76zqrenLLRU4W8LhvZYi9PSsVioQ+x5GUbNwlick=; b=RmtFayTsh4XJVrVmpZNZe8tEtm1JuOMEEJvvpOrv76BOZv6b5Uoe1z8hxb1Ajy5tVc 993QugpmD2JIQMp8ysP4C3qIFz1QULTkhaj4u7oA0xtML4/8chtGYFTyBJilzHG5nMvE 8/RflVemJii5ujd3iu9pvJ+vL6XKdV1Un72KQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686332522; x=1688924522; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+WH76zqrenLLRU4W8LhvZYi9PSsVioQ+x5GUbNwlick=; b=NqSBltNtF6hfOB12XiGBUEQYHJxYZMrhFuCSoVPPevCWthy9Zu0hyJLCigLeU5fW6Q ZuSH8TloSL5YK2oqyCoqj0jqFv02dT5QbzMSnST7Y5+KLm18Wzw0H//aMJi+TncNAzvY eCpuotKSWzRuoksFbiLUTeZUqtKxg3o/je81rx+we2FyqDL35LgmZF5Eqi9Qj2McLxlK IPxQCm0EWEtF+0EPe6TKOj7nDwP1x35urF94JW896jLSPh+wNvKuSL2ZQrmlWt3i/rO4 1e0+/kDP4xp0RBteg32g8hcXgDImeU2sUPpmdvmlP6qK54KXqFj4ezoxOSZNU2s4RzF5 Bb/w== X-Gm-Message-State: AC+VfDzzId9bIv4WslenRLDKkeUJDzL+UwlgJqEzyHf3UtGBp+UAdSRH rWbTNYGuNfMy7z6dGH+Ug0R+T5/7dTOwAlhr2I2b/w== X-Received: by 2002:a92:d690:0:b0:33b:c914:a771 with SMTP id p16-20020a92d690000000b0033bc914a771mr1926446iln.6.1686332522428; Fri, 09 Jun 2023 10:42:02 -0700 (PDT) MIME-Version: 1.0 References: <20230609103651.313194-1-treapking@chromium.org> <87o7lohq9e.fsf@kernel.org> In-Reply-To: <87o7lohq9e.fsf@kernel.org> From: Pin-yen Lin Date: Sat, 10 Jun 2023 01:41:51 +0800 Message-ID: Subject: Re: [PATCH] wifi: mwifiex: Replace RX workqueues with kthreads To: Kalle Valo Cc: Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , Brian Norris , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Hi Kalle, On Fri, Jun 9, 2023 at 6:41=E2=80=AFPM Kalle Valo wrote: > > Pin-yen Lin writes: > > > This improves the RX throughput likely by better locality for the work > > loads. > > > > We tested this patch on Mediatek MT8173 Chromebooks, and it shows ~80% > > Rx throughput improvement on high data rate test cases. > > 80%? That's huge from so small patch like this! What are the before and > after numbers? I realized that I might have over-simplified the background and the impact of this patch... The short answer to the question is that the throughput improved from 100 mbps to 180 mbps. The test was run on ChromeOS's v5.15 kernel fork. More detailed test setting is mentioned in [1]. However, the throughput of the same test case on our v4.19 kernel is 320 mbps. That is, we observed a 320 mbps --> 100 mbps regression when we tried to update the kernel version. This patch is more like a mitigation of the regression. It improves the throughput, even though it is still not as good as the older kernel. That being said, this patch does improve the throughput, so we think this patch can be landed into the mainline kernel. Best regards, Pin-yen [1]: https://lore.kernel.org/all/ZFvpJb9Dh0FCkLQA@google.com/ > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches