Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp121181pxj; Thu, 27 May 2021 23:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKAQ+VDiCH0c9kEndOOqpxR95860nRkDBKQQ8gYNaCIOV/m9v/8FHKrLxq9qPIbpkdgnAH X-Received: by 2002:a17:907:3f8a:: with SMTP id hr10mr7379823ejc.137.1622182587103; Thu, 27 May 2021 23:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622182587; cv=none; d=google.com; s=arc-20160816; b=jwljcOXm0D1jFDrPVC0WchKpr3KeEj1FBOFoGzhgKn+H+kl7sPIe5ySFYVYRwfGe0V 35R5cSTpyWEFF+LQXGI5ydIy23RP/utpo3c+rguLCr2rN5geEi6BdzQcPFXT1DKXcJGg Vi9ocH1CI9ZKZzbKHz0gTjh8zrht87MTT2hW5jRaj5cTXv6JzZpQS4aGlRvorBP9edOP uhFN5SiqsdLM9+249rf7rEisgFPlLtEPDsY9h97J98pU8GHTD0YJ4QswK8rtL6el/K2k zdW44FdKhaCRWV3qCKqAvhWu6f9aXKCWo9UJId3+kKw0BeLTlSpvm5MzbzvnTLVNQb+N wdRQ== 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=Q4fWiV9oZI2iV6JTdMuKYWY5j+rLJ6Ng0jD/Fbj1XbA=; b=MObIPgsmkhBMuHzf8tsNiN4sHuvQRHhrGj5mEiZMUsHExpRs30/mXJD87/AGPWlfMF OvfghwzOJiW9QJTYK/Q8ZTY8yQ0Qq7ezazIeHPvEUdQSBO9H5U0YZD5lpUPfSXV/yOgK rxIIfrsZuoqfFxJsbykInwX7wbwQNRwBgeFQlJAYK0mgC1TfVfr6cWW627I3Y6O8crGf +2w3GLOoFBrGeqMzyl0ulxXDtac2JtKWfEHLmOx5QEhTZQhHm5CDB3VDsNEbmwNb/gLZ CYTq740oUhkd6XL2M4fPREK2h3t+2iZTsfoS4BaBkm04tIN/QrEVivdwv1Bvx2QppY0x LKmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KWrpLYb3; 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 d5si4119721ejz.328.2021.05.27.23.15.46; Thu, 27 May 2021 23:16:27 -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=KWrpLYb3; 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 S229867AbhE1EHI (ORCPT + 99 others); Fri, 28 May 2021 00:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhE1EHG (ORCPT ); Fri, 28 May 2021 00:07:06 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6578EC061574 for ; Thu, 27 May 2021 21:05:31 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id y76so3005843oia.6 for ; Thu, 27 May 2021 21:05:31 -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=Q4fWiV9oZI2iV6JTdMuKYWY5j+rLJ6Ng0jD/Fbj1XbA=; b=KWrpLYb3IhokqTrBlbd1cWIzosCqk5Ce4UtE3OL1DHqLUAPHhHEPeqSkb2dDC6ZVF7 1zySCCMd6VRm4ux7oVAP3Sr/nisN1P7F/Rr0qPti1NDLfTk1XB5OvBN16x6LRlJZVibX 6PfDNkjao3aJkMdgho+gsSkyeVUAOIBFCWnjycOaHqni6QfClOz+ZoYaSbREuGxSEpei 2HkR9a0LS0ihI5wpjioIkda/RlhnFa56ebLdeZZyc18SJtwhNthMzTXBewKp7a5Qoh3+ ZBuaW/YKNhP/CSZwbawoaIhdBzyO6kUlruwmb5bBuU9sxeGmMnMzcEvGHSOBQetoFn+7 2HQQ== 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=Q4fWiV9oZI2iV6JTdMuKYWY5j+rLJ6Ng0jD/Fbj1XbA=; b=j5VHbcWA3PMQCObRQJXQ5mOriEJGg4ukYdwaN/asL7Z5BZpDpqphZqltWyofUuD+RT f1ihGeFg/aYYctQCdoRIuoXtzkAwLduai8YP48O5ZQg2Cx8W7gO9SLPStnli4zNx6p8y rTbcVXQ7DqyCozvqrGgQuEz+mXBBbWK6/aLZPfUmKYuHIV0V8vt/4kt0tsn91uGU8zQT HcnFo0Up4myqBPL79iWxLIkgyC5L3MUrWkb1FhUTHWXoueFgWkJjwFAm+nshS1Q7s2Cz WZZ9bjReNvWl+ChVE80yvFjfmJQNhwNOw4ePqu/cw0C8RTom7M2Z4XHJuGpv1HK3yIU+ UnNw== X-Gm-Message-State: AOAM531IP+tcl+uVgAaNwVgv44oTeyEyM35T6yFoSsMVXysj9n34F0Hu J/9Xdguo+pqnfIR4dKzYnWiElQ== X-Received: by 2002:aca:2b16:: with SMTP id i22mr7858901oik.121.1622174730227; Thu, 27 May 2021 21:05:30 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id c74sm915591oib.8.2021.05.27.21.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 21:05:29 -0700 (PDT) Date: Thu, 27 May 2021 23:05:28 -0500 From: Bjorn Andersson To: Sibi Sankar Cc: Stephen Boyd , mathieu.poirier@linaro.org, robh+dt@kernel.org, ulf.hansson@linaro.org, rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, rishabhb@codeaurora.org, sidgup@codeaurora.org Subject: Re: [PATCH 02/12] soc: qcom: aoss: Drop power domain support Message-ID: References: <1618574638-5117-1-git-send-email-sibis@codeaurora.org> <1618574638-5117-3-git-send-email-sibis@codeaurora.org> <161871128938.46595.8658084266884500136@swboyd.mtv.corp.google.com> <7adff8e58784bb85ea844ad338bfb19c@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7adff8e58784bb85ea844ad338bfb19c@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 27 Apr 01:25 CDT 2021, Sibi Sankar wrote: > On 2021-04-18 07:31, Stephen Boyd wrote: > > Quoting Sibi Sankar (2021-04-16 05:03:48) > > > The load state resources are expected to follow the life cycle of the > > > remote processor it tracks. However, modeling load state resources as > > > power-domains result in them getting turned off during system suspend > > > and thereby falling out of sync with the remote processors that are > > > still > > > on. Fix this by replacing load state resource control through the > > > generic > > > qmp message send interface instead. > > > > > > Signed-off-by: Sibi Sankar > > > --- > > > > Is it possible to keep this code around for a cycle so that there isn't > > the chance that someone is using the deprecated DT bindings with a new > > kernel? I worry that ripping the code out will cause them angst. > > deprecated bindings with a newer kernel > shouldn't cause any problems since it is > the driver changes that make AOSS PD > mandatory or not. So the newer kernel will > just use qmp_send and leave the PD unused. > Maybe I'm missing something in your argument here, but I see two issues: * The changes here requires that the new qcom,qmp property is defined, or the qcom_qmp_get() will be unable to find the qmp instance. * Between patch 2 and 5 there's no load_state handling. Perhaps we can carry the power-domain handling as a fallback i qcom_qmp_get() fails, for a few releases? Other than the ordering and backwards compatibility issue I think this looks good. So can you please respin this based on the later revision of the qmp patch? (And fix Rob's request on the commit message) https://lore.kernel.org/linux-arm-msm/1620320818-2206-2-git-send-email-deesin@codeaurora.org/ Regards, Bjorn > > Certainly we have to keep the code in place until DT is updated, so this > > patch should come last? > > sure I don't mind, as long as it simplifies > the merge process. > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project.