Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1540426ybh; Thu, 23 Jul 2020 11:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgig81NE4mrqYsYP3DBBFa+zSbUTEK+KUX5bEzFzKOdgUHezFsL9aZtdJODKdb8AGiUguu X-Received: by 2002:a05:6402:d0d:: with SMTP id eb13mr4092831edb.307.1595528537381; Thu, 23 Jul 2020 11:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595528537; cv=none; d=google.com; s=arc-20160816; b=O4dFC7i5DA7nfDKaf8bUCRo2N2NGtPukj9EeLLIgtJwtFKzMjJbSgnlSffxfiQI1QL PXAZBYx5ivROdsE69y6cIOnqqiTQfaDqYq7j6bMePM5WpW24qvwY6w4HI1C1UUdUOUm4 5QvFZM9PF+OLp4cjxUhInY7+soEn99//+C0iNZH5XeOxLirBtOVwHGLvNc45ioALX35e 0roG0p0FfPHfHsoRU4U4ZHjo0QwW2gHqK32mp1rnFSzXIRCItUB85ageAQWJGdGPF8oM 9SiyVitFsCbczJIiGzohhvxl3hPx9eU81sk1hJ2sHGBDIae8yMQmwLCN8zloAXsT/lbz 1krg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature; bh=j/N4OgIpS8UJZ7Blrr8EIZX5QrRY20vZgZBo/jYgApY=; b=tYliFpGhWkhGvWJ0QMezTVoCOg8b0sfvIbSfltbre+Cp0LwE5kEDSi+ZTbdgSCbD6l TowhmGEXVbqq1L4BfJMB8r1AwyPckxb56baWu0x3+hhgjC8Ff0KFWSQmEmfNXw0YHmNf UYWiKS1UwTrSwKe72nYRSFntkMxYXA89IMBbY/aVGHJkC9HzYAVYSEgEU2BJEASx7P6G lF7Ms7oIEXkp32phJka3ZmxoXEnfOidEKUG6ZfJeJFTIKf8uQUb8iTrOlwTnLFdAfNOh wt5Aa1YN75OpbrO8VxGJzVuuAfWWDCADa2T0G11ZrOHKoy9IjxiOkIgTN6gCd++7CZE+ n0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=d991mgDj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si1543140edv.314.2020.07.23.11.21.38; Thu, 23 Jul 2020 11:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=d991mgDj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbgGWSVf (ORCPT + 99 others); Thu, 23 Jul 2020 14:21:35 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:20627 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbgGWSVf (ORCPT ); Thu, 23 Jul 2020 14:21:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595528495; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=j/N4OgIpS8UJZ7Blrr8EIZX5QrRY20vZgZBo/jYgApY=; b=d991mgDjk3vpPqXRzetDVJrHOTkT4no08jiMLKy5ZimmNAXMwLrTvs2MtVjAngCK1V6qt340 7/ehbDjKhmmrBOGxeV/qX7gnOK+KwTR8AGQe4dHWRR45WUOIWD2GGV4nXCrU0y5dLOaV2Dw9 KzCHbbbK2UEOe9XRG2bg6yUMFUI= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n10.prod.us-east-1.postgun.com with SMTP id 5f19d51d427cd55766bb5fa3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 23 Jul 2020 18:21:17 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EED04C43395; Thu, 23 Jul 2020 18:21:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from Pillair (unknown [183.83.71.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pillair) by smtp.codeaurora.org (Postfix) with ESMTPSA id 25907C433C9; Thu, 23 Jul 2020 18:21:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 25907C433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=pillair@codeaurora.org From: "Rakesh Pillai" To: "'Florian Fainelli'" , "'Andrew Lunn'" Cc: , , , , , , , , , References: <1595351666-28193-1-git-send-email-pillair@codeaurora.org> <20200721172514.GT1339445@lunn.ch> In-Reply-To: Subject: RE: [RFC 0/7] Add support to process rx packets in thread Date: Thu, 23 Jul 2020 23:51:08 +0530 Message-ID: <002e01d6611e$0d8ac640$28a052c0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQG1Bu1FBYi7G1oVhHY/01uT1gSslwJNiRkqAuFxkXipLrYw8A== Content-Language: en-us Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Florian Fainelli > Sent: Tuesday, July 21, 2020 11:35 PM > To: Andrew Lunn ; Rakesh Pillai > Cc: ath10k@lists.infradead.org; linux-wireless@vger.kernel.org; linux- > kernel@vger.kernel.org; kvalo@codeaurora.org; johannes@sipsolutions.net; > davem@davemloft.net; kuba@kernel.org; netdev@vger.kernel.org; > dianders@chromium.org; evgreen@chromium.org > Subject: Re: [RFC 0/7] Add support to process rx packets in thread > > On 7/21/20 10:25 AM, Andrew Lunn wrote: > > On Tue, Jul 21, 2020 at 10:44:19PM +0530, Rakesh Pillai wrote: > >> NAPI gets scheduled on the CPU core which got the > >> interrupt. The linux scheduler cannot move it to a > >> different core, even if the CPU on which NAPI is running > >> is heavily loaded. This can lead to degraded wifi > >> performance when running traffic at peak data rates. > >> > >> A thread on the other hand can be moved to different > >> CPU cores, if the one on which its running is heavily > >> loaded. During high incoming data traffic, this gives > >> better performance, since the thread can be moved to a > >> less loaded or sometimes even a more powerful CPU core > >> to account for the required CPU performance in order > >> to process the incoming packets. > >> > >> This patch series adds the support to use a high priority > >> thread to process the incoming packets, as opposed to > >> everything being done in NAPI context. > > > > I don't see why this problem is limited to the ath10k driver. I expect > > it applies to all drivers using NAPI. So shouldn't you be solving this > > in the NAPI core? Allow a driver to request the NAPI core uses a > > thread? > > What's more, you should be able to configure interrupt affinity to steer > RX processing onto a desired CPU core, is not that working for you > somehow? Hi Florian, Yes, the affinity of IRQ does work for me. But the affinity of IRQ does not happen runtime based on load. > -- > Florian