Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp543893pxb; Wed, 8 Sep 2021 07:03:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5KrbxnVs00apSQltBOF3zakgQwzQedyXKNJUqS784O+daedaF0fxGtq5cJ+AOoE7BKAcT X-Received: by 2002:a92:c04f:: with SMTP id o15mr17772ilf.310.1631109797798; Wed, 08 Sep 2021 07:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631109797; cv=none; d=google.com; s=arc-20160816; b=JQkpBdhMqp/gvSq2j1QH+oSaFEnWVHd8guJDOLqOtCbJIXFkMFijGjzNBpOUjJmm/R jsB4sBqoXFRoEywY5hfhJCEdqxVZKUkJO2n8+bGHob/sgoqFLRBKMbW5q0er+VcZD5KY cF+Iilo/MEngk2OUy81vafD9r8UgF5ZVrOjOHj+9k3tuYkki/GOWLFnHsnMEJtZdi3Dm zyOZDLLoBqVnxnqY6phP3+8QDB1MNwXgvjl+VRxCqSDTmGG3b3AauVkmx8zfpQ/h1sq2 mvSJeBc/Q9mubi+pHcgJiR52AjQsuadOEbN2P4Pd4Njwf24ja/6wOyS4MFO5OT8MmtuU fmCA== 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; bh=pEsLDpR68NxsgI58XlZ6vfPJ266F/Xx5IhFzF3aWT6g=; b=xQXzTPS3OsVK3zqQcR0rXSQcj46BtPyQ1kRhvuyIeT11khiocy6ovhnFKo30+81fVq Y4xAbsRgC4EqTq1DMdrwgmBsIJsLa6HDyXhVR+NomRlpbLOao6IewUxPCJgUsRYFQ9S9 COC5AdzPs223Xq9cV2jcvToGHriBXB08yw3MOnKO97gH/+V9RXFtgprJL7Ci7bmfmIEi P1Ii9f51mGg5zb/vDPuxiLcnhZZ6xzaMIe9kYrzuc8g7RXwQhryPjwfh9ooRDz295uus feicG46o7H/9SH6QiLLL55O/NBNQAq6I+LCm36UqaPAGuuEq2VSKZpQOQ6fpgklaLf6H k0/Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q35si1748352jac.78.2021.09.08.07.02.49; Wed, 08 Sep 2021 07:03:17 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351434AbhIHNxE (ORCPT + 99 others); Wed, 8 Sep 2021 09:53:04 -0400 Received: from mail-oi1-f171.google.com ([209.85.167.171]:34735 "EHLO mail-oi1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232896AbhIHNxE (ORCPT ); Wed, 8 Sep 2021 09:53:04 -0400 Received: by mail-oi1-f171.google.com with SMTP id p2so3198826oif.1; Wed, 08 Sep 2021 06:51:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pEsLDpR68NxsgI58XlZ6vfPJ266F/Xx5IhFzF3aWT6g=; b=3egKp1hv9bxpbaw2T7cM1feFSm8B3ZuHdccTTThv4C9D0P2O3EYotQL9erkd8oUqqG UD8hvlqm+UZg22UKNzd1S7WhPM3PZ8P8T83EEfY64DwVsEtpMUgox+VDHBlpyNIQNe20 G1SlquaN+gFllci6AErgd2lJWlRycs4YE34Fgycu7ATkaL0pNIGqGwJcV458VoyQumX6 Xzbepfyjk1JRcZhbZ3NUi1g8inGvPFb7/cuuSipvDDGkpIa9MTYoxWC7Efwoab4e8Md4 XBNn58H/I3acx4pbMci4SLlYi45dO0Qz/N3fFiFGgwjRslzjxx/yJOWwKaRzX8FQ188U AWLg== X-Gm-Message-State: AOAM532FsGUjnOdL3s7rae29xvuM/z8t2uWrUo/jGyfCdkXdNlgJteew Fmg3aK1tunKva4jz9omCfw== X-Received: by 2002:a05:6808:196:: with SMTP id w22mr2490182oic.139.1631109116076; Wed, 08 Sep 2021 06:51:56 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id b2sm429860ook.46.2021.09.08.06.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 06:51:55 -0700 (PDT) Received: (nullmailer pid 2028743 invoked by uid 1000); Wed, 08 Sep 2021 13:51:53 -0000 Date: Wed, 8 Sep 2021 08:51:53 -0500 From: Rob Herring To: Sibi Sankar Cc: mka@chromium.org, swboyd@chromium.org, bjorn.andersson@linaro.org, ulf.hansson@linaro.org, rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, mathieu.poirier@linaro.org, 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 v6 02/13] dt-bindings: remoteproc: qcom: pas: Add QMP property Message-ID: References: <1630916637-4278-1-git-send-email-sibis@codeaurora.org> <1630916637-4278-3-git-send-email-sibis@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1630916637-4278-3-git-send-email-sibis@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2021 at 01:53:46PM +0530, Sibi Sankar wrote: > The load state power-domain, used by the co-processors to notify the > Always on Subsystem (AOSS) that a particular co-processor is up/down, > suffers from the side-effect of changing states during suspend/resume. > However the co-processors enter low-power modes independent to that of > the application processor and their states are expected to remain > unaltered across system suspend/resume cycles. To achieve this behavior > let's drop the load state power-domain and replace them with the qmp > property for all SoCs supporting low power mode signalling. > > Due to the current broken load state implementation, we can afford the > binding breakage that ensues and the remoteproc functionality will remain > the same when using newer kernels with older dtbs. > > Signed-off-by: Sibi Sankar > Reviewed-by: Stephen Boyd > --- > > v6: > * Updated commit message to explain binding breakage. [Stephen] > > .../devicetree/bindings/remoteproc/qcom,adsp.yaml | 61 +++++++++++----------- > 1 file changed, 31 insertions(+), 30 deletions(-) > > diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml > index 0c112f3264a9..0d2b5bd4907a 100644 > --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml > @@ -93,6 +93,10 @@ properties: > maxItems: 1 > description: Reference to the reserved-memory for the Hexagon core > > + qcom,qmp: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Reference to the AOSS side-channel message RAM. > + [...] > @@ -511,6 +486,32 @@ allOf: > - const: mss_restart > - const: pdc_reset > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,sc7180-mpss-pas > + - qcom,sc8180x-adsp-pas > + - qcom,sc8180x-cdsp-pas > + - qcom,sc8180x-mpss-pas > + - qcom,sm8150-adsp-pas > + - qcom,sm8150-cdsp-pas > + - qcom,sm8150-mpss-pas > + - qcom,sm8150-slpi-pas > + - qcom,sm8250-adsp-pas > + - qcom,sm8250-cdsp-pas > + - qcom,sm8250-slpi-pas > + - qcom,sm8350-adsp-pas > + - qcom,sm8350-cdsp-pas > + - qcom,sm8350-mpss-pas > + - qcom,sm8350-slpi-pas > + then: > + properties: > + qcom,qmp: > + items: > + - description: Reference to the AOSS side-channel message RAM. This doesn't do anything. The property is already allowed for all compatibles. Perhaps you want to negate the if and put 'qcom,qmp: false' here. Rob