Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1019924imm; Fri, 12 Oct 2018 10:20:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Er+9wvNnp2a0Omun1C5T07f/IkYTLB2UM4vQir4LWpabZPuCZ7qOE5MxyClB2QWTWmb0z X-Received: by 2002:a17:902:292a:: with SMTP id g39-v6mr6749800plb.269.1539364800118; Fri, 12 Oct 2018 10:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539364800; cv=none; d=google.com; s=arc-20160816; b=i2sLF83aBvzGlzHUIOmbtZVGrRPg8u5WYngu0VxtMH/kcx0/BDfh2095QgnoNjVF2v A2pr/Zmkul+xE73Fu2ZvrP+7u56X+99AucblY+cNqprHLLeRIM51FXR6Su3r28OY4Z+E zpOQZrfc9RX7z/CXh+/S1/CZ0R2R9n5DKXCkukcb++S++q4Q8vFIPQZHy8X2D2t/yd5Z 1xL/n9GMEHe83gHO89GRFVY4rxRkGiJRYUplCwuYMBIjMjvVGdWwap3SwMs8NEcv6gGj LE1G0dO1eJ/ARQdyJYdlSPSJZSS1Ixic6uU8Zjhe3K6fNjsZ1thgQXXrTnPsELUAAkN6 /aYA== 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:dmarc-filter:dkim-signature:dkim-signature; bh=edaEc23W8rGKs8EI7g+Hlztitcko5KtbsKzshiA+j5c=; b=UYH4HNp839BwgQQqxpqY1JxoGmAZtdorBcGYaubnUHGXn1W8fnnx8r+a37lS3DwxUe iILQIYzIMmw6J7EG+XxBFsNhNdDIFnfN0mm0W/WFZZgThxFZ93+4Mh3v+nwMVg5zQN6S mYG3MW1HgBEjDr2KArP3eAjjKjyTdriFqio/1jpBMnXtJWESeZFnDZyACvS7vTAxcyer Ij8k0/LI/axMqlVZZZqVtBXu1P6NedP6lURfgKgS7TihRSVYP2uJSuTunT11X6I90fa8 7bPJ1m7aH+C3fhHLeFUYK0NGC0IAeCD4lnjew1HDdVjHpMtZKUU4N64FFcWCYtBT2/Oe Whlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y8qYqLgA; dkim=pass header.i=@codeaurora.org header.s=default header.b=P9xegNjU; 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 x3-v6si1747456pgj.425.2018.10.12.10.19.44; Fri, 12 Oct 2018 10:20:00 -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=pass header.i=@codeaurora.org header.s=default header.b=Y8qYqLgA; dkim=pass header.i=@codeaurora.org header.s=default header.b=P9xegNjU; 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 S1727361AbeJMAwn (ORCPT + 99 others); Fri, 12 Oct 2018 20:52:43 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:53492 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeJMAwn (ORCPT ); Fri, 12 Oct 2018 20:52:43 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 93F7560BF7; Fri, 12 Oct 2018 17:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539364752; bh=edaEc23W8rGKs8EI7g+Hlztitcko5KtbsKzshiA+j5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y8qYqLgAAXD1MMOauH4XGj6SzrpizClQeXvrbGdnbchyci6HJSOH+H3CVF5kcyeA0 5gUxr8IZNS6bXMC1tMwN5QA+FRRR20DXgSj+7eddVFqv4VBE0waYYaz8XrS2hs07KM 0r4SisNv+rqXFzog7V3K5oHSvcSuVh/HoLcwXp2c= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2C2CB60A98; Fri, 12 Oct 2018 17:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539364751; bh=edaEc23W8rGKs8EI7g+Hlztitcko5KtbsKzshiA+j5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P9xegNjUkWPUY942zvkd3cwp0h7kLTf7EQBBd9Q2/4CnCo9ow89JDx1MVBUoDi+Ci hIwAjEYFs99IvCzaLpDaGuYoaASNhSQD2kA2LrHO5VdHaw2scka5jJjNZZsBrt7lNc z9wpcBr3kLhrahRVzuBwfrAWNxAbauS7YDbXzw/0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2C2CB60A98 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Fri, 12 Oct 2018 11:19:10 -0600 From: Lina Iyer To: Sudeep Holla Cc: "Raju P.L.S.S.S.N" , andy.gross@linaro.org, david.brown@linaro.org, rjw@rjwysocki.net, ulf.hansson@linaro.org, khilman@kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org, mka@chromium.org, Lorenzo Pieralisi Subject: Re: [PATCH RFC v1 7/8] drivers: qcom: cpu_pd: Handle cpu hotplug in the domain Message-ID: <20181012171910.GI2371@codeaurora.org> References: <1539206455-29342-8-git-send-email-rplsssn@codeaurora.org> <20181011112013.GC32752@e107155-lin> <20181011160053.GA2371@codeaurora.org> <20181011161927.GC28583@e107155-lin> <20181011165822.GB2371@codeaurora.org> <20181011173733.GA26447@e107155-lin> <20181011210609.GD2371@codeaurora.org> <20181012150429.GH3401@e107155-lin> <20181012160427.GG2371@codeaurora.org> <20181012170040.GA21057@e107155-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181012170040.GA21057@e107155-lin> 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, Oct 12 2018 at 11:01 -0600, Sudeep Holla wrote: >On Fri, Oct 12, 2018 at 10:04:27AM -0600, Lina Iyer wrote: >> On Fri, Oct 12 2018 at 09:04 -0600, Sudeep Holla wrote: > >[...] > >Yes all these are fine but with multiple power-domains/cluster, it's >hard to determine the first CPU. You may be able to identify it within >the power domain but not system wide. So this doesn't scale with large >systems(e.g. 4 - 8 clusters with 16 CPUs). > We would probably not worry too much about power savings in a msec scale, if we have that big a system. The driver is a platform specific driver, primarily intended for a mobile class CPU and usage. In fact, we haven't done this for QC's server class CPUs. >> > I think we are mixing the system sleep states with CPU idle here. >> > If it's system sleeps states, the we need to deal it in some system ops >> > when it's the last CPU in the system and not the cluster/power domain. >> > >> I think the confusion for you is system sleep vs suspend. System sleep >> here (probably more of a QC terminology), refers to powering down the >> entire SoC for very small durations, while not actually suspended. The >> drivers are unaware that this is happening. No hotplug happens and the >> interrupts are not migrated during system sleep. When all the CPUs go >> into cpuidle, the system sleep state is activated and the resource >> requirements are lowered. The resources are brought back to their >> previous active values before we exit cpuidle on any CPU. The drivers >> have no idea that this happened. We have been doing this on QCOM SoCs >> for a decade, so this is not something new for this SoC. Every QCOM SoC >> has been doing this, albeit differently because of their architecture. >> The newer ones do most of these transitions in hardware as opposed to an >> remote CPU. But this is the first time, we are upstreaming this :) >> > >Indeed, I know mobile platforms do such optimisations and I agree it may >save power. As I mentioned above it doesn't scale well with large systems >and also even with single power domains having multiple idle states where >only one state can do this system level idle but not all. As I mentioned >in the other email to Ulf, it's had to generalise this even with DT. >So it's better to have this dealt transparently in the firmware. > Good, then we are on agreement here. But this is how this platform is. It cannot be done in firmware and what we doing here is a Linux platform driver that cleans up nicely without having to piggy back on an external dependency. Thanks, Lina