Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1801810imn; Sun, 31 Jul 2022 23:59:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oyQQ6dlGjqQqKXJGueFhtTJgdp7t6OgDo46dLqiKe/pli33SN9Gx3eYRyILXxc49823t4 X-Received: by 2002:a17:903:22c8:b0:16c:4068:cd with SMTP id y8-20020a17090322c800b0016c406800cdmr15531958plg.59.1659337180023; Sun, 31 Jul 2022 23:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659337180; cv=none; d=google.com; s=arc-20160816; b=Bu7yVYsk8rr5dP8CnMnrxgwuN9vANgVVC8I0F2fJOilSBWW2YixlxJjfElistKRCDs r3SnAUNp6wLyU+QzExUH4fUMNYAN2FawNGE2aA5k49m8n3NR1xV2sq7PppY5onBuNXMi ZcQpmESWaVTctvWaUvsMkdoKtmTfY4+8fSVUhjNvmBpDpSrF/D8NJ2a81RGfs3Jg0ZWp TxA2Ew19qFPn7QVlfdug9Irm+4rxJw8+h/1nxxkjygoro2yIrY7uEtelfDBpziMCfaIh 8NgTz0PGduJQ/EP3gq+VKMv6jxWYwx6bo7qfGGBd60hDekdVPgWk0/rn5STQwAI772Bl CUpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CDcBVXsrd0NrQbcXwpCbvBTDqZ66JWuglUosC0YVlls=; b=woCs4MSIwT/D24UgKgV9KC7fJt0Qkw0vAX1o73+mcSpTnxKnaMzcVIokWI3hPW3K4s /7ImurZwYpdT3M2Ojuhj8TYaZa74vtnLZy/rm85rMqYsTGr54aNjle+QTccPW0+ETZ9s /ZqjT5/4eo9LFvf6DptU9SfISxkjVLJghpMg7IDRuWZ0FOazLMmSZdTXlEb8tFWr3iVr lIQlxFRd5oG1uu02URQ9P6kQjnAzg1AuX6u6s6urY6vHoIY83pVaIl3NLsQzcBRSu8l4 540pRh0Z5WZZa7F1hEWpZ3P0Ktt64gv3nCOEcTRl0uNjgDgIuYbFI2gyztpbRjepeWuc mtvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iwwETTw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a636e09000000b004150f6f4476si11205714pgc.292.2022.07.31.23.59.24; Sun, 31 Jul 2022 23:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b=iwwETTw0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiHAG4A (ORCPT + 99 others); Mon, 1 Aug 2022 02:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiHAGz7 (ORCPT ); Mon, 1 Aug 2022 02:55:59 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4E511A82D; Sun, 31 Jul 2022 23:55:55 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id j15so4808089wrr.2; Sun, 31 Jul 2022 23:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CDcBVXsrd0NrQbcXwpCbvBTDqZ66JWuglUosC0YVlls=; b=iwwETTw0Gx8Q0bnHGOSIXSecWZtqQ9ypNBTdOBTDsPhqj47RBVYX847rITz5/KDeFq P4joKgJRUnN3wirlwECuTGhdSLwagJQcu0924XhVkTn4zSHzuW2jpANrwF+Qqu5KmKkz /CFWbS/MPqP8scp5EnOHV8ZLDkUwdD+okUqkDlbQYR03brHkFeTEflU4pFFytwdeh0ly Bw1IPkndK6wzWPkwGxypi8pGp6sCV6nZ4kaUNmW76YcF0xG76cM1jMTFVFg7lXgOOqdH lwtDuoTj934IWYRl5WT0HQvuDF6/udxnWaTzSJVeyXYpmxNtkEuJG93QPM03Ta+Q9tZo eobg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CDcBVXsrd0NrQbcXwpCbvBTDqZ66JWuglUosC0YVlls=; b=dYUfldQZLM9RwfH6juvSqszlExMEfAJhNKTKo/l5zyjFM/TO+hcZv6L9FaM1qnp36q yGwSf7OrVJhbcUtbGFGnUici29fZRPe7VpHLBNz1zgTr/2TmbYjSHNdnmktesnHJvnB3 IdSKNEG3dyAp2E68avBgFp2bPiH1XyB6rkiqEwD3JK6zeBtvMtWHLsSFYoQWP/52a/1z 03XFF87666+cIBPL4BJYAnvb40QeEIXu3gouF/tgsBf7aCvncihf67RGvmmxEI4+A+yu GD/ZOYTqbnaJGHAbmLHos5QEoG08UOnVBY00dPGvcV5h0hzRamS+5w0k5vwOZXeFRjoJ YxwA== X-Gm-Message-State: ACgBeo3i1uynDxUja1mfFLImhukFZBOSxuOQB4m4/8MZzRKCaSdT81zu HKXqQfev2bYBux5YqcPNXQQ= X-Received: by 2002:a5d:6b50:0:b0:21e:298c:caad with SMTP id x16-20020a5d6b50000000b0021e298ccaadmr8786107wrw.509.1659336953965; Sun, 31 Jul 2022 23:55:53 -0700 (PDT) Received: from [192.168.0.104] ([77.126.166.31]) by smtp.gmail.com with ESMTPSA id bh15-20020a05600c3d0f00b003a4a5bcd37esm10316906wmb.23.2022.07.31.23.55.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jul 2022 23:55:53 -0700 (PDT) Message-ID: Date: Mon, 1 Aug 2022 09:55:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [net-next PATCH] octeontx2-pf: Use only non-isolated cpus in irq affinity Content-Language: en-US To: Sunil Kovvuri Cc: Jakub Kicinski , Geetha sowjanya , Tariq Toukan , Peter Zijlstra , Linux Netdev List , LKML , "David S. Miller" , edumazet@google.com, Sunil Kovvuri Goutham References: <20220725094402.21203-1-gakula@marvell.com> <20220726200804.72deb465@kernel.org> <23d40f8c-ad5b-c908-4081-24f882514ad7@gmail.com> From: Tariq Toukan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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-kernel@vger.kernel.org On 7/27/2022 10:03 AM, Sunil Kovvuri wrote: > > > On Wed, Jul 27, 2022 at 11:01 AM Tariq Toukan > wrote: > > > > On 7/27/2022 6:08 AM, Jakub Kicinski wrote: > > On Mon, 25 Jul 2022 15:14:02 +0530 Geetha sowjanya wrote: > >> This patch excludes the isolates cpus from the cpus list > >> while setting up TX/RX queue interrupts affinity > >> > >> Signed-off-by: Geetha sowjanya > > >> Signed-off-by: Sunil Kovvuri Goutham > > > > > Hm, housekeeping_cpumask() looks barely used by drivers, > > do you have any references to discussions indicated drivers > > are expected to pay attention to it? Really seems like something > > that the core should take care of. > > > > Tariq, thoughts? > > I agree. > IMO this logic best fits inside the new sched API I proposed last week > (pending Ack...), transparent to driver. > > Find here: > https://lore.kernel.org/all/20220719162339.23865-2-tariqt@nvidia.com/ > > > You mean > > +static bool sched_cpus_spread_by_distance(int node, u16 *cpus, int > ncpus) +{ + > > .... + cpumask_copy(cpumask, cpu_online_mask); > > Change cpu_online_mask here to a mask which gives non-isolated cores mask ? > Yes that was the intention. However, on a second thought, I'm not sure this is a good idea. In some cases, the device driver is isolated-out for other higher prio tasks. While in other cases, the device driver processing is the high prio task and is isolated in these cpus for best performance. As the cpus spread usually affects affinity hints and numa-aware allocations, your patch might cause a degradation if always applied.