Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp54747ybg; Mon, 27 Jul 2020 23:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg+MBU9XNUNBAnac68YA2WUP/S1agPFW4NozBMhg87GXV0aUSniovSqRryKv+NDQXxOjct X-Received: by 2002:a17:906:7855:: with SMTP id p21mr24128153ejm.492.1595916907354; Mon, 27 Jul 2020 23:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595916907; cv=none; d=google.com; s=arc-20160816; b=CV8HgSZGCs42PCt+ptQcGzOxA3fE5UKAR+FKlGyjCmIM60RhHyICD3U/XKt7rnbh2V LCIlLWuluTgWgIT1pFososacAv/PFszI4Y+sMscfbKZh56zuRCufjLwMIBWx9jvSVnWc hh57Hg0xox3cS6LSGc5QsVVKKtTEeewmHrgWY8HRzA/kOlBa1EKQL4lbkVObgoeh0P/0 oeCKVImuNY2Ql4U4w3oSYAVpZIwHkqsYNh4TSn+BVboSaD1JsXTcW5iBsYu0j1D1PhCw QECl4uiXAppqMKt7PXj9Ew6FDqb2dMF++3Ps7z3dumzMTWBHh3lxoR9vhUhIHJwJBzU7 YatQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FTEn6vC4TzDFRYgBbBTvo3anpjXgbfxoEfVzcA7SkSk=; b=tiKEyCyCMHyt2OjxUdVdLB1w3JdRtSil0TXVg7dU8mM1CS3jvN2XY/pIrlWy9jHEv3 dwBPN78E83+RUfNF5HL+SV2pL8fw/zDxYIvCkdsNjFdcZaX3kxVci+44lf1qLdbno9dm mXb+GN9Ul9qjCJMB+fpEW3YHO9p3ao95mgQ7wTfuDFXHDnQEVkUdfmUcITYWPe7UqDPT rGM9mcFgULYlpFYg1XZ39vcwJSjAIg4Aya3MQZcBo3ygl1von2XzvXWNBhWDiiN8IlmU H+/JOPCi8ZRBn1xroWuXP1S3ykqkx4AoMNTG7sxZB/vd73SFvVWIODmO5bTfKTAEpOCP /cng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MUg3NliK; 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 ca5si6989068edb.511.2020.07.27.23.14.45; Mon, 27 Jul 2020 23:15:07 -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=MUg3NliK; 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 S1727042AbgG1GMb (ORCPT + 99 others); Tue, 28 Jul 2020 02:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbgG1GMa (ORCPT ); Tue, 28 Jul 2020 02:12:30 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECC4C0619D2 for ; Mon, 27 Jul 2020 23:12:30 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id lw1so2256052pjb.1 for ; Mon, 27 Jul 2020 23:12:30 -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=FTEn6vC4TzDFRYgBbBTvo3anpjXgbfxoEfVzcA7SkSk=; b=MUg3NliKoM4l5YHCqj5bM6/ricxHDSN+fUGuIqDe/VZsMi11o6T2ZWNrRmiGKK5bXn dLZvVFi/IzR3WXetg3BP7uU3fBwXJssdNdgivnfmBA7cBYg+K5O4ADsLf8uOtjMgwCmW BHVtqNd36wdDmGMHvhmLxiLOiWxKlF+4EXujG3fIufA2TNNIHe5Nz+L91MFOKPFXIVKl SQJdZRQBhdKoCi1prMQzl3mdc4RBqCnSLm8j77reyUikupG/akrM9Siwn4HHjKS03a5W 7YnQPphP5IXd+BRNyHBQC9v7DGBNN9AcgsvqcnvlqDDqrmOCT3LpU7oErJhyYlMdKGUO gTgg== 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=FTEn6vC4TzDFRYgBbBTvo3anpjXgbfxoEfVzcA7SkSk=; b=JB19ACFx6HF+b6O8EB1gF+SLIhTmxDyI2YyOP6w1ZQkF7lNk4E8zPGFQIsQdF6jJdM FtcYdU/EUpc5OcgUs6KyfxTRcNz5sOizoIK0fjtlsvmzUtRmkyfsrlPrwUEx5P7m5nmK UObL3+z1maSastsi7Z9j3oXrVu6Xbix2TcY/90CPExHxYXfz9Ujmr/8Z7sbo45fkLcT9 1raX6sVYwscTySOmZk/9Gnpt4oFaMBZB3wQYNvBDLDKY8RaTeIVMsY53MJ7/3ilrVcvS 12Ru4EqTgOuv8GUxRaK16Dyexc+oue+K6NugXbOMTbB8Dqvr7wwnP7Rh7m39+SKosqVe 3zRA== X-Gm-Message-State: AOAM532xTlTpFSVi8b7DeGoThooJl/4sLBnBpdwjaPjsyaBababLatej I180Xj/CsFdZqeBz5sQcxC6THA== X-Received: by 2002:a17:902:7484:: with SMTP id h4mr7663521pll.139.1595916750072; Mon, 27 Jul 2020 23:12:30 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b22sm1545548pju.26.2020.07.27.23.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 23:12:29 -0700 (PDT) Date: Mon, 27 Jul 2020 23:08:57 -0700 From: Bjorn Andersson To: Sibi Sankar Cc: rishabhb@codeaurora.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, sidgup@codeaurora.org, stable@vger.kernel.org Subject: Re: [RESEND v1] soc: qcom: pdr: Reorder the PD state indication ack Message-ID: <20200728060857.GB202429@builder.lan> References: <20200701195954.9007-1-sibis@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701195954.9007-1-sibis@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 01 Jul 12:59 PDT 2020, Sibi Sankar wrote: > The Protection Domains (PD) have a mechanism to keep its resources > enabled until the PD down indication is acked. Reorder the PD state > indication ack so that clients get to release the relevant resources > before the PD goes down. > > Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") > Reported-by: Rishabh Bhatnagar > Signed-off-by: Sibi Sankar Reviewed-by: Bjorn Andersson > --- > > I couldn't find the previous patch on patchworks. Resending the patch > since it would need to land on stable trees as well > > drivers/soc/qcom/pdr_interface.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/qcom/pdr_interface.c b/drivers/soc/qcom/pdr_interface.c > index a90d707da6894..088dc99f77f3f 100644 > --- a/drivers/soc/qcom/pdr_interface.c > +++ b/drivers/soc/qcom/pdr_interface.c > @@ -279,13 +279,15 @@ static void pdr_indack_work(struct work_struct *work) > > list_for_each_entry_safe(ind, tmp, &pdr->indack_list, node) { > pds = ind->pds; > - pdr_send_indack_msg(pdr, pds, ind->transaction_id); > > mutex_lock(&pdr->status_lock); > pds->state = ind->curr_state; > pdr->status(pds->state, pds->service_path, pdr->priv); > mutex_unlock(&pdr->status_lock); > > + /* Ack the indication after clients release the PD resources */ > + pdr_send_indack_msg(pdr, pds, ind->transaction_id); > + > mutex_lock(&pdr->list_lock); > list_del(&ind->node); > mutex_unlock(&pdr->list_lock); > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >