Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp460388rwd; Mon, 12 Jun 2023 16:53:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71ZAVH/D4fbEgHb8MAulFsSlOKqMwRqkcN+DUAcO98chaWN6OLRd86oW/nqh2tux8ko9aT X-Received: by 2002:a05:6402:5256:b0:514:a566:103b with SMTP id t22-20020a056402525600b00514a566103bmr6832395edd.19.1686614030658; Mon, 12 Jun 2023 16:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686614030; cv=none; d=google.com; s=arc-20160816; b=zMb2lIVSHm6bZoCUWPFVd8Q6SHcwXoce6Jno2J2aWMU740/l69wbIz6+5zYdYH8ZY4 zx2POowpcqkS7UhweliFbAluVbidKHrFHsCbk4heoUro7mWEYr5VsTyj4RtTn43P7TVZ ftyg1y8gBC3ioAfcX7Ttq77KWNUqTpnbm99d7ELdI6hYzfMZ2s475vXYGKwy++XnAm3H SP5F6CytTR6kIQdiw973d2MKjUS1TyuTg7Ztf53j/pHjwZdFpqnwE7o6nch1hf1YTPQ1 m8ZR9dPvZ2JCaJ9/iYYaNbN7CyUjve5PFGkGxlu4sHb0/XMxLQbnFG+h66obRPXnQLzF Vcuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zWh9DZ7JNAtNpX17CUlzUgnxqEqVKUVt17wNyTVgk7U=; b=ycPTCUovLsricCNGDgnT6xUjhJlhJHNlsuA18iJrNUWgVqOnvUttsIJ3geVBuQuP1K LerQaE0CJ+2Gw+/7E+0oigbghUJXjr5goMglMxM7t5qtd9H206LBqOtDjN6yRdvcNzGF s4gQLQREu61mPAkrXzVzEUoioNQ3MSHH+ewhrd6jGnElFdX344qZHeJ5+QLr0i4V2Ygi JxPbNBzpYwOaKBwdJqLX83YVu3LNs3dJadRy71tIWHbG7arzwjscHWd7fKdbt1w7o918 9AUOiZo3kBE3QUys77xcuidDNTNl+3iwFTVjlexCWEOS16dLeycuKhOl8SW68Yiokrnp GqCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mh62KYaI; 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 f23-20020a056402151700b00514b296d207si6618688edw.445.2023.06.12.16.53.31; Mon, 12 Jun 2023 16:53:50 -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=mh62KYaI; 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 S235728AbjFLXrX (ORCPT + 62 others); Mon, 12 Jun 2023 19:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjFLXrW (ORCPT ); Mon, 12 Jun 2023 19:47:22 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD211101 for ; Mon, 12 Jun 2023 16:47:20 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-25bf6902882so940960a91.1 for ; Mon, 12 Jun 2023 16:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686613640; x=1689205640; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zWh9DZ7JNAtNpX17CUlzUgnxqEqVKUVt17wNyTVgk7U=; b=mh62KYaIhX54gxKQBEA84fQptOqik2Nrlcs0XWMfo8rWSGUGdnyqQWnsXJpwxFUUmj WPjJR9oIxKuFjlVPI6LGnxFwDZCh9sqIcfMswRUIqRMX7YhrUPH1qEYJnTtZGak9LkOR 1rbxXj4tPlQd8QLE14SDpXlB/EkstSaea7ZF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686613640; x=1689205640; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zWh9DZ7JNAtNpX17CUlzUgnxqEqVKUVt17wNyTVgk7U=; b=TBUI6nmh9T9RSy4/Nth76AXgBhC8mJ6lU8b4euEwb2fQvlK2dyeXMT9Iwqo5wbF/nY zyKN1kGfKf9CNiLO7lsN1E5TshY19iO2GA0/nvqDfDzRBAh9mxsUz/sUaELIt0/jQQBd 7CFlCj8gI7llHP5EItwGdR3AfxHyU9E3XTX3Xpzrwj9XwjKHj/4LR3OaZoSQypw8Y+y9 ytG8A8lKpHX+3S+mTuGpxDD8w+3raiLCOa2Cl+i/bi8rNCcmfMx9LkwJCtqlMgZQAlDf el660l0VeFzwpwV6EcMD8HMT1QLz6+dTSZTkeHbdHlRmswxeqjyfIxd/bbrWXEcKqckc YBug== X-Gm-Message-State: AC+VfDxTfMIwuHR3nluf+a/l73Ghfh6s4I/pBMqYseEkUWgGBtBV+WUZ ZwulLQOF/BmFkSu3mI2uysHxhw== X-Received: by 2002:a17:90a:9109:b0:23f:9445:318e with SMTP id k9-20020a17090a910900b0023f9445318emr12274874pjo.3.1686613640044; Mon, 12 Jun 2023 16:47:20 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:5666:8195:ab60:72b3]) by smtp.gmail.com with ESMTPSA id b12-20020a170902d88c00b001ac40488620sm8800152plz.92.2023.06.12.16.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 16:47:19 -0700 (PDT) Date: Mon, 12 Jun 2023 16:47:17 -0700 From: Brian Norris To: Pin-yen Lin Cc: Kalle Valo , Amitkumar Karwar , Ganapathi Bhat , Sharvari Harisangam , Xinming Hu , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] wifi: mwifiex: Replace RX workqueues with kthreads Message-ID: References: <20230609103651.313194-1-treapking@chromium.org> <87o7lohq9e.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Thanks Pin-yen for most of the investigation here and for pushing the patch. With some additional information though, I might suggest *not* landing this patch at the moment. More details appended: On Sat, Jun 10, 2023 at 01:41:51AM +0800, Pin-yen Lin wrote: > 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/ I (we?) was optimistic this would be an improvement (or at least, no worse) due to some of the reasoning at [1]. And, the work here is just a single work item, queued repeatedly to the same unbound workqueue. So conceptually, it shouldn't be much different than a kthread_worker, except for scheduler details -- where again, we'd think this should be an improvement, as the scheduler would now better track load for the task (mwifiex RX) in question. But additional testing on other mwifiex-based systems (RK3399 + PCIE 8997) showed the inverse: some throughput drops on similar benchmarks, from 110 Mbps to 80 Mbps. (Frankly, both numbers are significantly below where we might like...) Considering we still don't have a full explanation for all the performance differences we've been seeing (on either test platform), and that at least one of our platforms showed a (smaller) regression, I think we might want to do more research before committing to this. Brian