Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3747816ybt; Tue, 23 Jun 2020 09:44:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvfXQ1sEnfNxMwwvmBPwNO3Eo6nHUhsTtsJa4RqGKUpvQNSnwuW8/ZqvbHSXrbQNj04kDx X-Received: by 2002:a05:6402:1604:: with SMTP id f4mr23521304edv.379.1592930687880; Tue, 23 Jun 2020 09:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592930687; cv=none; d=google.com; s=arc-20160816; b=Ksu6L6ASdNgcvviryc7W+a50YXgc/UpaZX+7sgaAIhPG+i5NcVaAHrKOft+wlmUh0J lKrE8iaSQ4nZeRqCGTPWz4NV7l35RZhEeTVMuGInw3zNpHGozq6hmgMDD7OdFzyaOtNS h4ae207lC2dIO/aVjR8KaDta6/UZCCSTLHsltH3Nr+SclWW6txTsMSNsOcm/ZZxNH/n9 qdc0v40B47QBTeLsL0+TokdfL2vUPsfEEXVquyXjA9PVABDNx83XGdYhVGqK4DornNRO Nn0xdFZES88s1bKY4EmO6ddOMxZZ7nk7jULdr9E244I7h4nIHpu2hWTVrA46f+/eqboR CvTw== 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=gO0oHLZ+2alAV4mLn5O/Yodt5pbjwZHld143mBgxAU4=; b=zHc5KQOWHt4jLfoUU77P8NrlXUu2RtA4WaXwQp5yWDt6KyoLVPfPQPYMvQDZCsU9mc 1OEEdmYvkTkrhE9pCnTZUNXs0k1r9aG23FFkclTeHDwIq1fJuUmZGQj45ysZx1YyAIV1 980+xm4rNQbrj+IwaHoT2zXvQ9UKORNiQ0hDpABHwohUPefBDcd5X/sNqwLMq0Vy7LxN eDySTb/skABubqDpI0dK1CC22pmlsf2+mKL+UClaMxvQPAcyIgxz93bO+ZPFl1+yHx91 72aEKiW8wkDjARuEzQ9NhKoPatrsWUjLg4glVyAgc2pYZKGo1Sx1Vm+3CyZSYQ4Z7fbO f41A== 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 v3si11972467eja.251.2020.06.23.09.44.24; Tue, 23 Jun 2020 09:44:47 -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 S1732725AbgFWQk0 (ORCPT + 99 others); Tue, 23 Jun 2020 12:40:26 -0400 Received: from foss.arm.com ([217.140.110.172]:34166 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732174AbgFWQk0 (ORCPT ); Tue, 23 Jun 2020 12:40:26 -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 8CBB01F1; Tue, 23 Jun 2020 09:40:25 -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 050EE3F73C; Tue, 23 Jun 2020 09:40:23 -0700 (PDT) Date: Tue, 23 Jun 2020 17:40:21 +0100 From: Qais Yousef To: Doug Anderson , Peter Zijlstra Cc: Benson Leung , Enric Balletbo i Serra , hsinyi@chromium.org, Joel Fernandes , Nicolas Boichat , Gwendal Grignou , Quentin Perret , ctheegal@codeaurora.org, Guenter Roeck , LKML Subject: Re: [PATCH] cros_ec_spi: Even though we're RT priority, don't bump cpu freq Message-ID: <20200623164021.lcrnwpli7wdlsn5i@e107158-lin.cambridge.arm.com> References: <20200610151818.1.I666ecd9c6f3c6405bd75831a21001b8109b6438c@changeid> <20200612125250.7bwjfnxhurdf5bwj@e107158-lin.cambridge.arm.com> <20200619153851.vigshoae3ahiy63x@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 06/22/20 11:21, Doug Anderson wrote: [...] > > If you propose something that will help the discussion. I think based on the > > same approach Peter has taken to prevent random RT priorities. In uclamp case > > I think we just want to allow driver to opt RT tasks out of the default > > boosting behavior. > > > > I'm a bit wary that this extra layer of tuning might create a confusion, but > > I can't reason about why is it bad for a driver to say I don't want my RT task > > to be boosted too. > > Right. I was basically just trying to say "turn my boosting off". > > ...so I guess you're saying that doing a v2 of my patch with the > proper #ifdef protection wouldn't be a good way to go and I'd need to > propose some sort of API for this? It's up to Peter really. It concerns me in general to start having in-kernel users of uclamp that might end up setting random values (like we ended having random RT priorities), that really don't mean a lot outside the context of the specific system it was tested on. Given the kernel could run anywhere, it's hard to rationalize what's okay or not. Opting out of default RT boost for a specific task in the kernel, could make sense though it still concerns me for the same reasons. Is this okay for all possible systems this can run on? It feels better for userspace to turn RT boosting off for all tasks if you know your system is powerful, or use the per task API to switch off boosting for the tasks you know they don't need it. But if we want to allow in-kernel users, IMO it needs to be done in a controlled way, in a similar manner Peter changed how RT priority can be set in the kernel. It would be good hear what Peter thinks. Thanks -- Qais Yousef