Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp659494ybh; Sat, 3 Aug 2019 07:10:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEcQefIPaleEb7yRpLbRvWmZOBy99t2O0QIggHk1Zgwazj3Hflk/Q77lzzWz5I0PCaWX0U X-Received: by 2002:a17:90a:9386:: with SMTP id q6mr9316914pjo.81.1564841433899; Sat, 03 Aug 2019 07:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564841433; cv=none; d=google.com; s=arc-20160816; b=Q6MxV9+PECARCcl0IIURV1brmYhVHQP5SbdgMc6i6Q2jJ1irXMlgcii6QWeKZ0ryey eYhkDmSGAy4JAoVLR62YMsSgwp1LpBh0a9puH2cqWlHRHl+rkHFdqwSb1SNK5RsDpCje yQFn14jxmVtHatC4kpWqYfCScsYiv0xr5SovYZvoXc2BVhVD1m2xDZC2g9Y1WoFvoGu7 ZX6BO2K3em0T/n2TmNV3LRiTCItYxC9BQ38S5in6ekn0E6SpD/ILMfkdoYFh+Bbm8jCH Hk48Dm0uPuzTyfjuDhWHpgWAcXjAdVlKenfg6gpU6S0bppxum0ffVhpLugRT+2oQvNfC MN4w== 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:dkim-signature; bh=rgOIxhvmzzRkxe+QepP7XIs/hwgiVex6JxHcwodnLQc=; b=cAXXv5bcWqlEhkHxRstjnV3O0ExlAgH6ajmLweF3Lmw5TuxEZqmoCok27INa5A5F0X 7+iLz729rviTeawgvmMZ8sdZppJh6UOqgRq9F8wRCvX2FdrxXjIqnYWt1DxwEAYhHKwn bodnJzomMET2c5AE9sp979eSu7gA0ft0QQc+2UMvVFwmmXwOC13P+EU5QapQa8tGOrFB 7NX+B4K+Pv0bd6TUjCbHPd5kBunFwP35wEIndcb+5ZF1qhE0xzGeWbtrVSQmqbxNBNGr maLtYJlQHxu7LU5MFoUJLwpM85GDkkiH3Lc8Rf94T5+q2wCsU04yzwJ2fZVMC16VxDSF cuLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Q72XB1jM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si40739331plp.264.2019.08.03.07.10.18; Sat, 03 Aug 2019 07:10:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Q72XB1jM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394957AbfHBOdb (ORCPT + 99 others); Fri, 2 Aug 2019 10:33:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57368 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731131AbfHBOdb (ORCPT ); Fri, 2 Aug 2019 10:33:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rgOIxhvmzzRkxe+QepP7XIs/hwgiVex6JxHcwodnLQc=; b=Q72XB1jMyU/8NpNSF0oqEApFU C3dplxXJ8GMS3HZ/CblmNC4cz2iNERozDXsBXwKF8s2FBPpU4yuprWjRcX/xuAXQzn1om/mAbg2tn hAhrV8oL9WK+PjWNxKjnlp2aYnyt8nnLEUJk89u9UTm7YgR8s+4/v6l3Y5hNec0wvFmEXVhK0YzA/ tk1lpQ8dAV7BV6hi+OvQCWTW4HkfwknhGEGsNM+zY7VwPDbmYzIOOrRKw/DBU6S3xL2k2QVmxfjO/ VZs4wnQmYF1pvMfitzd8Unku9K/Z8QWo5w7Vf2fnqe3VpUXILNSbfhgwjNVcyRxFlpdQaMPC9kbTG iTs83bTUA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1htYcY-0002kW-Lw; Fri, 02 Aug 2019 14:33:26 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6A501202953BA; Fri, 2 Aug 2019 16:33:24 +0200 (CEST) Date: Fri, 2 Aug 2019 16:33:24 +0200 From: Peter Zijlstra To: Qais Yousef Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Thomas Gleixner Subject: Re: [PATCH 0/5] Fix FIFO-99 abuse Message-ID: <20190802143324.GH2332@hirez.programming.kicks-ass.net> References: <20190801111348.530242235@infradead.org> <20190801131707.5rpyydznnhz474la@e107158-lin.cambridge.arm.com> <20190802093244.GF2332@hirez.programming.kicks-ass.net> <20190802102611.54sae3onftck5fye@e107158-lin.cambridge.arm.com> <20190802124151.GG2332@hirez.programming.kicks-ass.net> <20190802140854.ixq4cmo5nsfdaj24@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190802140854.ixq4cmo5nsfdaj24@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 02, 2019 at 03:08:54PM +0100, Qais Yousef wrote: > On 08/02/19 14:41, Peter Zijlstra wrote: > > On Fri, Aug 02, 2019 at 11:26:12AM +0100, Qais Yousef wrote: > > > > > Yes a somewhat enforced default makes more sense to me. I assume you no longer > > > want to put the kthreads that just need to be above OTHER in FIFO-1? > > > > I'm not sure, maybe, there's not that many of them, but possibly we add > > another interface for them. > > By the way, did you see this one which is set to priority 16? > > https://elixir.bootlin.com/linux/v5.3-rc2/source/drivers/gpu/drm/msm/msm_drv.c#L523 I did, I ignored it because it wasn't 99 or something silly like that, but I'd definitely mop it up when doing the proposed. > > Also; like said before, the admin had better configure. > > I agree. But I don't think an 'admin' is an easily defined entity for all > systems. On mobile, is it the SoC vendor, Android framework, or the > handset/platform vendor/integrator? Mostly Android I suspect, but if SoC specific drivers have RT threads, it's their responsibility to integrate properly with the rest of Android of course. > > Also also, RR-SMP is actually broken (and nobody has cared enough to > > bother fixing it). > > If you can give me enough pointers to understand the problem I might be able to > bother with it :-) So the push-pull balancer we have (designed for FIFO but also applied to RR) will only move a task if the destination CPU has a lower prio. In the case where one CPU has 3 tasks and the other 1, and they're all the same prio, it does nothing. For FIFO that is fine, for RR, not so much. Because then the one CPU will RR between 3 tasks, giving each task 1/3rd, while the other will only run the one task.