Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp198074ybz; Tue, 21 Apr 2020 07:25:06 -0700 (PDT) X-Google-Smtp-Source: APiQypK+XFgAsXcXwFSxBBsSKRC/fr4niKyyjebmX7NqyyfjXrYAtchMgVUjxIQuT+BWvm7d2ubT X-Received: by 2002:a17:907:2107:: with SMTP id qn7mr21684892ejb.316.1587479105918; Tue, 21 Apr 2020 07:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587479105; cv=none; d=google.com; s=arc-20160816; b=0fJ+BR1M+zMfw9TOUF7FqnE2Ke3nvDV1+N4ujl1MKwWZR9xZXHj8NO4eLB5o3ogN1l WxhmmuNS+ti0QFiLtgmbK7Ov4vWZjvl5AlCL7WBcgIZxvORvyxBAXq//2KgD6y0Tfjkm MqFj1L5HWCbnHYPgiVmnVM0D8NsQWbeqRtDBuvRC1jyDx0rOIhM6I7xwzOC9q+ZFTVN5 70mzhqNAzKAJyzOK3jlzEBdXUi4c0bg7zGeeXFxomlNKSIrZqJ7AJkK/am7hMbML3acn w4i42Xto84ci+qVWQQmvKwDhinTBzGKCDwyQRVXK4TDQhCb6dSm43NmS0FxPGMQFh7I5 hhTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I4nnfG9Q33ATSProM2aKSASA6ATsQT7Yhsde880ru80=; b=iX7FcvlnmHyL8PXydPLorqiiASof88vTu8w9tt3VCgYpZ6/r5A9LJa0sqYlj554YZe 90ftRkXtSAOfFqzSDAe3gehVu+QrvMUlFbq9xlpNNUYXL63StrueORkvgPHIiMEGW7MN 1bhMJ1lBRxjpYNRHRg47yw2JAo8BjTsKOtkxMVuorWTtgebcjufVuLJNjct58FvPGWo/ s/6Ce2viloUOg2FzgQHKYbOlkOTqwBDaxltPjfEPSSaUkmXtZCBOS0GXn67bnA/dxdng lztY/CI6gMTCNmGu6yy76vE7CF1CH+27vxceI01UNM0RtU6SvqrUp2Rp38hQkWFZfdCL WETw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 dj13si243493edb.342.2020.04.21.07.24.35; Tue, 21 Apr 2020 07:25:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728676AbgDUOWu (ORCPT + 99 others); Tue, 21 Apr 2020 10:22:50 -0400 Received: from foss.arm.com ([217.140.110.172]:35738 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUOWt (ORCPT ); Tue, 21 Apr 2020 10:22:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E415731B; Tue, 21 Apr 2020 07:22:48 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6E2513F68F; Tue, 21 Apr 2020 07:22:46 -0700 (PDT) Date: Tue, 21 Apr 2020 15:22:44 +0100 From: Qais Yousef To: Marc Zyngier Cc: Valentin Schneider , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Andrew Morton , Thomas Gleixner , Yury Norov , Paul Turner , Alexey Dobriyan , Josh Don , Pavan Kondeti , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: [PATCH 0/4] sched/rt: Distribute tasks in find_lowest_rq() Message-ID: <20200421142243.lea26mnmxnjpynlf@e107158-lin.cambridge.arm.com> References: <20200414150556.10920-1-qais.yousef@arm.com> <20200421121305.ziu3dfqwo7cw6ymu@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/21/20 15:09, Marc Zyngier wrote: > On 2020-04-21 14:18, Valentin Schneider wrote: > > On 21/04/20 13:13, Qais Yousef wrote: > > [...] > > > > I CCed Marc who's the maintainer of this file who can clarify better > > > if this > > > really breaks anything. > > > > > > If any interrupt expects to be affined to a specific CPU then this > > > must be > > > described in DT/driver. I think the GIC controller is free to > > > distribute them > > > to any cpu otherwise if !force. Which is usually done by > > > irq_balancer anyway > > > in userspace, IIUC. > > > > > > I don't see how cpumask_any_and() break anything here too. I > > > actually think it > > > improves on things by better distribute the irqs on the system by > > > default. > > That's a pretty bold statement. Unfortunately, it isn't universally true. > Some workload will be very happy with interrupts spread all over the map, > and some others will suffer from it because, well, it interrupts userspace. > > > As you say, if someone wants smarter IRQ affinity they can do > > irq_balancer > > and whatnot. The default kernel policy for now has been to shove > > everything > > on the lowest-numbered CPU, and I see no valid reason to change that. > > Exactly. I would like to keep the kernel policy as simple as possible for > non-managed interrupts (managed interrupts are another kettle of fish > entirely). > Userpace is in control to place things "intelligently", so let's not try and > make the kernel smarter than it strictly needs to be. Fair enough. But why is it asking for cpumask_any() in the first place? Thanks -- Qais Yousef