Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2962269ybb; Sun, 5 Apr 2020 22:09:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLJaoh2BOK8oIx0bCZzxVtLr0rRmjHDs20JlU1IGhfzzByll+211Av93MUw51YPpbTyKhEj X-Received: by 2002:a05:6830:1382:: with SMTP id d2mr15413133otq.214.1586149791987; Sun, 05 Apr 2020 22:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586149791; cv=none; d=google.com; s=arc-20160816; b=B69sqFELHoj46n813pPaTq+oNiaP4iSvh4ApxAdvlOalqsJYcAOPQtlm8LqyE4hDuJ LKyaj/LTtkA6AQ+zW6rKEeZyy/5KIA1OTnfZj59+SdfBb1rwZ6OL3gQ7JLhsuWW7mXIT AaGSK3raliy6KGtG4Zb9VBq7aPgtAOUfYsOmV2Mqbmstqk8hYrghu22BCWAjamHCPgv/ 2rT0vWgk5nNOWywzXfuI8am0zNW9CPzmqNIEzAZy5hnI8kcFyw3Ecn0b+krP3iDOEXfF dhPktfxJUWnk5HJ3Ty5EgnOQ86ixafAaYW3gARveinduKcKKSWvoeQgl42LQFxIkF3y8 TZLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=e9dLjINQKPN1LVIoIlwlnA22th7UlgTMqbgS6SOqu/E=; b=XtfoRgZXuhqQTAt9K0Ge0IcvjLCsoF30FFn+VlAQWzAKsJ3SLKjAwOvNGuxhnzFcBi Syh+B5CTUqlcG1+4NBpYAXJ/Re1dTFiKoUvNzhkQeJ6sHSmbX0xJwjUXtFH8+1Vj0mSr PQDAs/1QXGANnKrgcOjDhKKTsZ4XChgsAQcVmrI9ClUvxGrd5byL6txa6cEgdX6GOEoB HaYoCC99swg5Pg3TObmccMDGR5s65jXK6QhkbxUt7boWHho5w6f2jN3IG3y5bXLNCrU0 FVM1h9dwRD+XiD3hKTYz2IrPrZLwQtpfPuSN45V2SuoiztCEF9iMJQVlzPcXc7C0mQh+ kO0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=cI1x1u94; 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 w15si7623720otl.260.2020.04.05.22.09.39; Sun, 05 Apr 2020 22:09:51 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=cI1x1u94; 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 S1726525AbgDFFIr (ORCPT + 99 others); Mon, 6 Apr 2020 01:08:47 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:33211 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbgDFFIq (ORCPT ); Mon, 6 Apr 2020 01:08:46 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586149726; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=e9dLjINQKPN1LVIoIlwlnA22th7UlgTMqbgS6SOqu/E=; b=cI1x1u94PhoZGRToYKYHPO6BNjD4t24DSQ1F9UDSkf5Nm/9ASvNi/f5gdWmUWiCP9FZ6PIbQ jNTXOI7T8pcWex2B8pI/vqN3DZFwds0w5uKiCd2nTfJNi3FBIVn40OQSeImTkPgJrHOcR+LS 2ckMR8PwYLQEn7BYat0mwBpqcO4= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e8ab95d.7f51098a1420-smtp-out-n04; Mon, 06 Apr 2020 05:08:45 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EBF7DC43636; Mon, 6 Apr 2020 05:08:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.43.137] (unknown [106.213.172.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id D2CE7C433D2; Mon, 6 Apr 2020 05:08:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D2CE7C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org Subject: Re: [PATCH v15 6/7] soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS To: Doug Anderson Cc: Stephen Boyd , Evan Green , Bjorn Andersson , LKML , linux-arm-msm , Andy Gross , Matthias Kaehlcke , Rajendra Nayak , Lina Iyer , lsrao@codeaurora.org, "Raju P.L.S.S.S.N" References: <1585660782-23416-1-git-send-email-mkshah@codeaurora.org> <1585660782-23416-7-git-send-email-mkshah@codeaurora.org> From: Maulik Shah Message-ID: <855bb87e-6c5c-8fee-e237-f48f9d95e2ac@codeaurora.org> Date: Mon, 6 Apr 2020 10:38:36 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 4/3/2020 1:44 AM, Doug Anderson wrote: > Hi, > > On Tue, Mar 31, 2020 at 6:21 AM Maulik Shah wrote: >> @@ -243,6 +279,14 @@ static irqreturn_t tcs_tx_done(int irq, void *p) >> } >> >> trace_rpmh_tx_done(drv, i, req, err); >> + >> + /* >> + * If wake tcs was re-purposed for sending active >> + * votes, clear AMC trigger & enable modes and >> + * disable interrupt for this TCS >> + */ >> + if (!drv->tcs[ACTIVE_TCS].num_tcs) >> + __tcs_set_trigger(drv, i, false); > Still seems weird that we have to do the untrigger in the IRQ routine > here and also weird that we _don't_ do it in the IRQ routine for > non-borrowed TCSes. I guess it's not the end of the world, though. > > Reviewed-by: Douglas Anderson Thanks Doug for the review. IRQ is only needed to be enabled for TCSes used as ACTIVE_TCS. When we have dedicated ACTIVE_TCS, we leave IRQ always enabled from probe (one time configuration), since the TCS won't be used for anything other than to send ACTIVE transaction. When we don't have dedicated ACTIVE_TCS, we enable it when borrowed TCS is used for ACTIVE transaction and then once its done using it, we disable it again to leave it in its original configuration. Thanks, Maulik -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation