Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1669973pxv; Fri, 16 Jul 2021 15:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1owwhQUJekqJMxMI/oPpRIKPAsdVkxE5vxuMqpGrunGPI751939xJtCY++3IM2W0Peok5 X-Received: by 2002:a17:906:af87:: with SMTP id mj7mr13936811ejb.397.1626472980119; Fri, 16 Jul 2021 15:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626472980; cv=none; d=google.com; s=arc-20160816; b=t2Szl20sgxYCwWskWp6jg7GKAwImDxkHsUQEcqioITPwCQTdLkPt065v0jAReG63BW E6S3yDn0pY3vei9xlaJjU5+VGFuqPjqIs92jfKzHnaItfqcqrWJXs+jj0RxfmhQIgNM5 b6WcKbEw/Ty+suGluw4vKPPMrHS9vLu3XYnMAUXTcHRbcrjnw/v3TsAms587magGmoW6 VB6AAAqChaSfubRADexJFpJKCLkGVxDnTphAZJC3RrzZLav+QrXGCnEULHUj6XP0xCga o9D9BYqZzS/7EG7YUTYxT9sQQQKqN3HmlZVSjhuCly7BeUBk5UUrWiWqOARmHky1soHY UMHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Upana4scSf40Sce7qso1PCWb+aKZrn6kdUZ7xJPEhD4=; b=e6jw4P7/CKuKay6ANzzdPU2hZYjwQ/WyPdiBI5XIWvTsPmmlC4j7chg6S0LbsLMM4b ZBuRqI++rE86NmbVUh/v+SE1vESohKZP+lq7fpppwry7U8jxdJBGz+bc5ZPJQv+bCTrk SJV6UqQ7qsASTH35R7gUVjLJbAiXo1XU8V/osCunO+zdnxVfVL18UiaCFVA4V3fKo+Lu 2g8F91BqxUWzSpZQPLksThmHy8KIUBY0bljpO8Q7DLzFZe20+u0L/yxzC8Z2HDdTomy0 384cDWEFLaD8jeYaoUTS0YsoWRTIXMtiVEgYZ8Sc7EuIDfwbAxFPV+WHHN7jN+06B0VF +VXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PTNuS1S+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si13625952eje.471.2021.07.16.15.02.36; Fri, 16 Jul 2021 15:03:00 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PTNuS1S+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236973AbhGPWCI (ORCPT + 99 others); Fri, 16 Jul 2021 18:02:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbhGPWCH (ORCPT ); Fri, 16 Jul 2021 18:02:07 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399D0C061764 for ; Fri, 16 Jul 2021 14:59:12 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id q1-20020a0568300181b02904ce5ae29628so196139ota.2 for ; Fri, 16 Jul 2021 14:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Upana4scSf40Sce7qso1PCWb+aKZrn6kdUZ7xJPEhD4=; b=PTNuS1S+/gRREcL0CPaZnz4d+t6t2QdOQdQG5gE5QrzHxKPofdTykYPDhEe1c38os/ tna9lNAdrGq6otRvH0ydUE15ihlKU6W+O1Poh3Ha6OrOU0hwnywnY8j7YoBQqdHE6okD ViuOI4CPSkqVDWhJxFea2uhPNAAgrvyGq//OPmp55zr1uOGCvurVoBuwiClBCubEqfVM /1t3EwpddGRJLPUhWmR5zJsXj54Q1Zfb5GelXf3lJN1rbNojId3MQr0jENEYos1GZcVD usYvRrF+2u8RxeLTylexG3tt/RoKvYgOFWZ5l+j0WNm8bR0DnM4MiJIuvCTWTlC5BIXf mLcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Upana4scSf40Sce7qso1PCWb+aKZrn6kdUZ7xJPEhD4=; b=DTHoUNlmVLRjAIRdA6Z45/QHeP68g29itJy3fdEiihzkXqIRdZk5H97WNBGldhvK6Z eGkZnmJwX975KGTM4vb3z60Zmuc2k4fR5prTu3oT/uTrf4xCVXz/0KwtRMS29javqZfi BYhhF+p3CqhNEHFVJvk+9fmo4f5W/urK+YZRFM0bLUwZL5YCJhO6WJ/Bck2745/Vo+hZ A9IxY5WHwznek+p0IwFcEGa+mjJSR8AcxXPX2PVu7PBE0ob2tyfxZu8LgjyY223Ze6Xz zFKVXBJs90fnuk9ndNJt4nJBfSgL9tw2Cn+OqVQD8QvQ1fKqIooSu06MmKiJUGd4RBUM ZiaQ== X-Gm-Message-State: AOAM530V84FQG+5qveyClsz0l/wmsd6MbAGWWgoxyK+vukoplFbYEbEQ b7MTe9wOCqQxP56LmzavKvG0WQ== X-Received: by 2002:a9d:6c1:: with SMTP id 59mr2115187otx.318.1626472750119; Fri, 16 Jul 2021 14:59:10 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k13sm2155366otl.50.2021.07.16.14.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 14:59:09 -0700 (PDT) Date: Fri, 16 Jul 2021 16:59:07 -0500 From: Bjorn Andersson To: Stephen Boyd Cc: Rajendra Nayak , ulf.hansson@linaro.org, viresh.kumar@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rojay@codeaurora.org, stephan@gerhold.net Subject: Re: [PATCH v4 2/2] arm64: dts: sc7180: Add required-opps for i2c Message-ID: References: <1626429658-18961-1-git-send-email-rnayak@codeaurora.org> <1626429658-18961-3-git-send-email-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 16 Jul 16:49 CDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-07-16 13:52:12) > > On Fri 16 Jul 15:21 CDT 2021, Stephen Boyd wrote: > > > > > Quoting Bjorn Andersson (2021-07-16 13:18:56) > > > > On Fri 16 Jul 05:00 CDT 2021, Rajendra Nayak wrote: > > > > > > > > > qup-i2c devices on sc7180 are clocked with a fixed clock (19.2 MHz) > > > > > Though qup-i2c does not support DVFS, it still needs to vote for a > > > > > performance state on 'CX' to satisfy the 19.2 Mhz clock frequency > > > > > requirement. > > > > > > > > > > > > > Sounds good, but... > > > > > > > > > Use 'required-opps' to pass this information from > > > > > device tree, and also add the power-domains property to specify > > > > > the CX power-domain. > > > > > > > > > > > > > ..is the required-opps really needed with my rpmhpd patch in place? > > > > > > > > > > Yes? Because rpmhpd_opp_low_svs is not the lowest performance state for > > > CX. > > > > On e.g. sm8250 the first available non-zero corner presented in cmd-db > > is low_svs. > > Indeed. On sc7180 it's not the first non-zero corner. I suppose > retention for CX isn't actually used when the SoC is awake so your > rpmhpd patch is putting in a vote for something that doesn't do anything > at runtime for CX? I imagine that rpmh only sets the aggregate corner to > retention when the whole SoC is suspended/sleeping, otherwise things > wouldn't go very well. Similarly, min_svs may be VDD minimization? If > so, those first two states are basically states that shouldn't be used > at runtime, almost like sleep states. > But if that's the case, I don't think it's appropriate for the "enabled state" of the domain to use any of those corners. As this means that anyone who needs any of the rpmhpd domains active also needs to specify required-opps, which wouldn't be needed for any other power domain provider. And more importantly it means that a device sitting in a GDSC, which would be parented by a rpmhpd domain has no way to specify the GDSC and trickle the minimum-vote up to the rpmhpd domain. (And I know that we don't describe the parentship of the GDSCs today, but this patch tells me that it's around the corner - for more than MMCX) Regards, Bjorn > > > > And if this (which?) clock requires a higher corner than the lowest > > possible in order to tick at this "lowest" frequency, I'm certainly > > interested in some more details. > >