Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp620420ybz; Wed, 22 Apr 2020 04:58:22 -0700 (PDT) X-Google-Smtp-Source: APiQypKfiF1LcDVSl2sHUl7Teykoij9WQ5rW3Wc3C6nUHQxFPjeQ3IvxHM3zsFO/j8EgY3cTaC82 X-Received: by 2002:a05:6402:30ad:: with SMTP id df13mr22532630edb.339.1587556702237; Wed, 22 Apr 2020 04:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587556702; cv=none; d=google.com; s=arc-20160816; b=v01d1MxNRdBJ8+tk90mwTPSKKKIlyBEDxD7ornVD/kggM6uH4JOoRkWFWFJZguJW8+ xLnEyj6w2uIYJ1eW0AvWuzkoIE4BuwTR/A/QaCJgIMfs4RSBiASdJ4n+O00mrTi8AwNI ACRd79ygu4Y8AOd18/JfJnPCwiuBfUb/xbGtOKC7krB/vK2GfLm7Yj3p04mk8yAFBcOW FDt1dg2ProE4BSvNCYgK8y8omoOMoX+2DrTbNm9Wf4zTY3J89xDbh/XrB2v86RQ96+W1 yIWrHN6d/GtVpNg0G7I1tTz1V8X6p5UTOnv2712kJDZGy0n6QVsAEh3pMUzY3I9dqXtt KbvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=cBOW12m8OYACVZgMiFO5t5MjdzpOKr8sBrh73Mm29SQ=; b=027O8XTdroKhPq/Sp0vH6rtIFv3iPZLzK2FHj4UIIdMHbHbNtlRrmiMxli1WUwtugK FcrARoVNZ1fmkCb5IUC72RSXGuRvjGtC9Qa8b5lgyk+RWjg1+6M9OSggIWzmkhUwfg3k jD1m3vAA5El9FKVI/cjHYpXcjEXzYqeBASCm1cwIj147IKS7nlHF/MBgQyt+b3STwLpd NMbZHp2bMuAL5v0Ut8DHn+20zK7GlNQyakKXcO5JLwpHDPgX4hm0Ohb8+jOU8MKn/CYV faXwWjglj7op+bcHx8cUfXdMJD1zuFwDy1DKRtuj3FPsvmVI45ThKhcAUo1v8F2daPb/ EJDQ== 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 gs25si3711426ejb.366.2020.04.22.04.57.57; Wed, 22 Apr 2020 04:58:22 -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 S1727790AbgDVL4T (ORCPT + 99 others); Wed, 22 Apr 2020 07:56:19 -0400 Received: from foss.arm.com ([217.140.110.172]:48256 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbgDVL4T (ORCPT ); Wed, 22 Apr 2020 07:56:19 -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 7B3F931B; Wed, 22 Apr 2020 04:56:18 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CE7D33F6CF; Wed, 22 Apr 2020 04:56:16 -0700 (PDT) References: <20200422112719.826676174@infradead.org> <20200422112831.574539982@infradead.org> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Peter Zijlstra Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, rostedt@goodmis.org, qais.yousef@arm.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, daniel.lezcano@linaro.org, sudeep.holla@arm.com Subject: Re: [PATCH 06/23] sched,psci: Convert to sched_set_fifo*() In-reply-to: <20200422112831.574539982@infradead.org> Date: Wed, 22 Apr 2020 12:55:53 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/04/20 12:27, Peter Zijlstra wrote: > Because SCHED_FIFO is a broken scheduler model (see previous patches) > take away the priority field, the kernel can't possibly make an > informed decision. > > Effectively changes prio from 99 to 50. > > XXX this thing is horrific, it basically open-codes a stop-machine and > idle. > I went and tried to clean up the thing. I didn't find a clean way to use stop_machine() + play_idle() (stoppers can't sleep), but I did manage to get something usable with the existing FIFO threads, play_idle_precise() and the cpuidle state usage stats, so the whole homebrewed idle thing can go. I also just tested it with 50 prio and big surprise it didn't change anything (it ends up being sibling of idle injection). So FWIW: Acked-by: Valentin Schneider > Cc: daniel.lezcano@linaro.org > Cc: sudeep.holla@arm.com > Signed-off-by: Peter Zijlstra (Intel) > Reviewed-by: Ingo Molnar