Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp60421pxb; Mon, 8 Nov 2021 09:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4cdXyIle+i2UPfVP5sM+o6bc2pZlyAB4XG/4lgJRk0EDOyhmty0xlkAULzoWMJn9yIZTj X-Received: by 2002:a05:6602:134d:: with SMTP id i13mr620063iov.164.1636393349204; Mon, 08 Nov 2021 09:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636393349; cv=none; d=google.com; s=arc-20160816; b=eyYgNxaFCi8Hy7XYAGRcG9cBrnzMD1q0gBpDraMzUuGm11Ch+vQd7B+k8NOSEN2+5b hMSUEnaabG5L4sgi+CcELE7xhrdc+Tu2ySI3RLrbhQFR2TchTidfZAm1dzF+ikwU71VC CI2f8t9Dh+ojfdlOAjovsMhgaestHftV++TPTa33jtD7NQEZacx5/Lz/DsTHxA81Uj3Y My6nBEk+5+uxsz6cSO11IWwIi2C5bymw0dmT9z8FiTxCM3OAVneBNaXSetloIKHDM/sF xrvWuCtyqS9wTH8QQHx7Cf4SlYjHRx2imTPdoXP3Esv+E01Yq5JMi4+h8lCqocH5cAdh D1Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=cEHFsu9HTY4sAeYjl4rkM2nNN8OwEKwCQMbqsfmoxoQ=; b=sXHaUwUIlFO3o0QqoJUVaKovxNXG8TmG2s18jgFPP/hvq3K20JSCVUKNcVOx/ra6hy ndwrc3SlCXg74iu/+GzPShAPpxrszYpQNKA7LA5o6g7/IjedD5Rx3aahKvrxl8zDm9oq xr6wYab8RJUOJDBGaFMMlu3ptvl9Sz/NmnGR/CO2li73WvFxlu+vVXXab7t/Ayb6XffS HDbiiu8lH6SJ6OjF9SE4kLWhRUBVx/B+DFOusjVZHO1bPaZ+et887fDoAouyvTMWoymD IP01YE4IUD3DskVcfwxBNe3kW/lh/OwxC0trSmAdoXhlkr8nrEWn2yFntNL/QdbJ+hfd 74EQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i28si22854022jac.122.2021.11.08.09.42.06; Mon, 08 Nov 2021 09:42:29 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238960AbhKHPYs convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 Nov 2021 10:24:48 -0500 Received: from foss.arm.com ([217.140.110.172]:51290 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbhKHPYr (ORCPT ); Mon, 8 Nov 2021 10:24:47 -0500 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 B615BD6E; Mon, 8 Nov 2021 07:22:02 -0800 (PST) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.196.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E976D3F718; Mon, 8 Nov 2021 07:22:01 -0800 (PST) From: Valentin Schneider To: Mike Galbraith , linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Ingo Molnar , Frederic Weisbecker Subject: Re: [PATCH] sched: Tweak default dynamic preempt mode selection In-Reply-To: <5543627ee8ac5337a74de4b9671240d617273607.camel@gmx.de> References: <20211105104035.3112162-1-valentin.schneider@arm.com> <8735o6uca5.mognet@arm.com> <5543627ee8ac5337a74de4b9671240d617273607.camel@gmx.de> Date: Mon, 08 Nov 2021 15:21:56 +0000 Message-ID: <87zgqesmej.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/21 13:27, Mike Galbraith wrote: > On Mon, 2021-11-08 at 11:17 +0000, Valentin Schneider wrote: >> On 06/11/21 05:40, Mike Galbraith wrote: >> > >> > Starting with a 5.15 config, to select RT you currently must first >> > select a model you don't want, then reject PREEMPT_DYNAMIC and you'll >> > be offered the full menu of models immediately. With your patch added, >> > that became worse.  After rejecting PREEMPT_DYNAMIC, I had to go >> > through new 5.15+ options before finally being offered the full menu. >> > >> >> Do you mean at the syncconfig step? > > Um, not sure what that is, but it sounds about right. > >> I've only really played with upstream >> arm64 / x86 defconfigs and didn't have to fight with any prompts, though >> yes for x86 the default-y PREEMPT_DYNAMIC makes it a bit annoying to select >> PREEMPT_RT. > > As long as RT depends on EXPERT it'll be a bit annoying regardless. I > just thought it worth mention that what you want now and what RT will > presumably want upon merge completion appear to be mutually exclusive. > Hmm actually I think your approach should work, i.e. have config PREEMPT_DYNAMIC depends on [...] && !PREEMPT_RT rather than config PREEMPT_RT depends on [...] && !PREEMPT_DYNAMIC This essentially gives priority to the preemption model type over the preemption model dynamicness, which I think makes sense. I can fold that in v2. > -Mike