Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3666978imm; Mon, 10 Sep 2018 23:26:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaJgwkQOJ2zqtJm4wmfJxfu5egV1mteh6evCshjaZrAroPAvMH5o7FVtqV4DmvUlMhVxlXE X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr25687652plp.130.1536647214350; Mon, 10 Sep 2018 23:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536647214; cv=none; d=google.com; s=arc-20160816; b=KH5KcP9buK5/vsGwAIz0Ih8yziAOFaAFzAkvh8rfdltYDOI1rI91wLJZsBByWbr8QQ yncZw8vkckykz7xE8hCUItUD09xiPJ+KidluCO1o9P6khJ9Y5B9+BGHjL1a13noygviy HDIyUBVk10DxEuDKjdprQteOgeKvlAjGYaTbEJrTjou2D6fd/dmeJrxvjH+hN8ryHWN8 n5tvmEzFSDPhHkANm7WKt2TJkFRYhEC0OhpnD0Z8GKg/elX3Ahq+Yqb5Ng5hDx5FLN/T Otx+8OmN9epyOyeY4BoIGp/Bo/H+YwrSGtRAGeY9TwfSYVL+G53qqgt3u+7BUExU2uNn O1bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uUeldoG39n3L0p2lNBgj/nAE4RPN+YSpUQTlVWaKCLM=; b=SI7sYZASqqmBC1cITFWxreov1GulwdJ3JB8PkDtjLg0ORqclvNmhd/w0Fk5PgfFcAi GEO7s3eTZBsvk0+Kmq3j/3mRlqep700MlLp+fiTXMBlpKlpNKsL/p0diP+61vFQZpxuC 75sBzt3KP4S1+Ioz44rvINC3G25HNCp57B/dHmCE/GXSKRfgPLVUZcLc5JmQl5Xz6LaQ VreKOQm5HxzoGQaYhzAw5f4j3jjDHmK8IoVbUJI7bB3PTeQEDHI7lkfPWAJtbiEhjXKC nrOfyHIv2mgyb6D4YYpv/8PHWr7Oqja4eSIXvPfxbKLsR30wS24zSzCH2sljJvt+yp1f cl5A== ARC-Authentication-Results: i=1; mx.google.com; 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 t23-v6si18595720pgk.26.2018.09.10.23.26.38; Mon, 10 Sep 2018 23:26:54 -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; 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 S1727161AbeIKLWn (ORCPT + 99 others); Tue, 11 Sep 2018 07:22:43 -0400 Received: from foss.arm.com ([217.140.101.70]:38382 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbeIKLWn (ORCPT ); Tue, 11 Sep 2018 07:22:43 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9A4E27A9; Mon, 10 Sep 2018 23:24:58 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.Emea.Arm.com [10.4.12.239]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2C2803F71F; Mon, 10 Sep 2018 23:24:52 -0700 (PDT) Subject: Re: [PATCH] sched/fair: vruntime should normalize when switching from fair To: Vincent Guittot , Juri Lelli Cc: migueldedios@google.com, "Cc: Steve Muckle" , Peter Zijlstra , Ingo Molnar , linux-kernel , "Cc: Android Kernel" , Todd Kjos , Paul Turner , Quentin Perret , Patrick Bellasi , Chris Redpath , Morten Rasmussen , John Dias References: <20180817182728.76129-1-smuckle@google.com> <20180824065419.GB24860@localhost.localdomain> <5fa77995-428e-077e-e236-7cc4a2e82577@arm.com> <20180907071602.GA29405@localhost.localdomain> From: Dietmar Eggemann Message-ID: Date: Mon, 10 Sep 2018 23:24:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/2018 12:58 AM, Vincent Guittot wrote: > On Fri, 7 Sep 2018 at 09:16, Juri Lelli wrote: >> >> On 06/09/18 16:25, Dietmar Eggemann wrote: >>> Hi Juri, >>> >>> On 08/23/2018 11:54 PM, Juri Lelli wrote: >>>> On 23/08/18 18:52, Dietmar Eggemann wrote: >>>>> Hi, >>>>> >>>>> On 08/21/2018 01:54 AM, Miguel de Dios wrote: >>>>>> On 08/17/2018 11:27 AM, Steve Muckle wrote: >>>>>>> From: John Dias [...] >>> Adding semaphores is possible but rt-app has no easy way to initialize >>> individual objects, e.g. sem_init(..., value). The only way I see is via the >>> global section, like "pi_enabled". But then, this is true for all objects of >>> this kind (in this case mutexes)? >> >> Right, global section should work fine. Why do you think this is a >> problem/limitation? > > keep in mind that rt-app still have "ressources" section. This one is > optional and almost never used as resources can be created on the fly > but it's still there and can be used to initialize resources if needed > like semaphore I wasn't aware of that but this will do the job AFAICS. I just have to re-introduce the direct calls to init_foo_resource() (in this case init_sem_resource()) in init_resource_data() and call that instead of init_resource_data() for semaphores listed in the global resources section. Example for a semaphore b_sem with initial value eq. 1: "resources" : { "b_sem" : { "type" : "sem_wait", "value" : 1 } } [...]