Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2964712ybb; Sun, 5 Apr 2020 22:14:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4htl2VIBYCJMemfgIPiSwb2uNBIyVV1qQ6LPdZPzrcUQFCt7oZ6A6NKd40NjijkWhBoCN X-Received: by 2002:a9d:1921:: with SMTP id j33mr16542114ota.309.1586150079536; Sun, 05 Apr 2020 22:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586150079; cv=none; d=google.com; s=arc-20160816; b=rUpxJUUDxrgboTnMqgClqJg/Z69DR0SzohAomIpxk35eJjYSaT1334uTfrw96iCvlM w93fO4qZA3ud9MEc5ZAWDcUMW1SYkoM92+jh+Hu4ONj9BLz0MbvGnD2nrzCH6/Yf8Ga6 sHz3WsjskDDJWR3bMnJpekbvL2DZUHtOh/vPGExq0Sfb9HJszWHVciaOEqikYDBeljMS mbsmRZkurCP4mpK45rOY3wT+D+tAqAQJsnAmg5VlW5+oS8HTlmlcQPgFYCF/Ft5hghSs y7YIDdlJSewxbH6+j0dYAnF2+IU1WEo4uPpd3/7/MfNxjKd6FLiY3kqC/6sJBUev6YLp nJgw== 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=tANryGArsikEbRKGuh59UuK8NiPOtSWy4smmXqPMdlM=; b=ThQ6daTIbjPcCDO1mgFWJvb5pG+aB73fp0/XTrKniHwPWvehbLWs38+jpnxTEKtoD5 rQgDJcVKaWEWnYcoMCbwvTT1QTyVs631tMm8wf/8EWLzxQ2BVdgDGoVNeN7YHr8Dyapj MzF8j0qjY76SOh6o+elMQdi/kuK4g9vc0mgCoWTU2VXZP/0bX5fRqDlMYykLRFWw1+vS +MP2QmGEE2WR5Yo6plAozg+GhqK7hpjmQmNqqIkNeUq/28hh3LG332+1GFq0L85zmliD b3bbLGKSPzepNahAZrkAfXbqOKNc6h2Tf9v88hKT7LwnFjvmKMyvC8Bu3dF2EHbgED41 I2nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nr+vWYNr; 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 z6si6780259oia.219.2020.04.05.22.14.27; Sun, 05 Apr 2020 22:14:39 -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=nr+vWYNr; 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 S1726589AbgDFFNG (ORCPT + 99 others); Mon, 6 Apr 2020 01:13:06 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:23058 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbgDFFNG (ORCPT ); Mon, 6 Apr 2020 01:13:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586149985; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=tANryGArsikEbRKGuh59UuK8NiPOtSWy4smmXqPMdlM=; b=nr+vWYNrVnZrtw6o5y31dw36XypTQqgo+/NZVXHnmmYz6wWWr37k/8iIp+4x+q9Z6zwuDXYT rVgAOdX7z1zAZ6Dw4PSof787+MqemyqBi/xX1yjAeY36DG66fI3huClWpoj2BLNVGUwMgIPn kM9c2r9TUgPPH79y5IiqDIc4CU0= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e8aba5a.7fdc353a9ed8-smtp-out-n05; Mon, 06 Apr 2020 05:12:58 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7911BC43637; Mon, 6 Apr 2020 05:12:58 +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 00075C433D2; Mon, 6 Apr 2020 05:12:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 00075C433D2 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 7/7] soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request 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 References: <1585660782-23416-1-git-send-email-mkshah@codeaurora.org> <1585660782-23416-8-git-send-email-mkshah@codeaurora.org> From: Maulik Shah Message-ID: Date: Mon, 6 Apr 2020 10:42:50 +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:43 AM, Doug Anderson wrote: > Hi, > > On Tue, Mar 31, 2020 at 6:21 AM Maulik Shah wrote: >> When there are more than one WAKE TCS available and there is no dedicated >> ACTIVE TCS available, invalidating all WAKE TCSes and waiting for current >> transfer to complete in first WAKE TCS blocks using another free WAKE TCS >> to complete current request. >> >> Remove rpmh_rsc_invalidate() to happen from tcs_write() when WAKE TCSes >> is re-purposed to be used for Active mode. Clear only currently used >> WAKE TCS's register configuration. >> >> Mark the caches as dirty so next time when rpmh_flush() is invoked it >> can invalidate and program cached sleep and wake sets again. > Comment above is no longer right now that you've removed the place > that marks caches as dirty. > > >> Fixes: 2de4b8d33eab (drivers: qcom: rpmh-rsc: allow active requests from wake TCS) >> Signed-off-by: Maulik Shah >> --- >> drivers/soc/qcom/rpmh-rsc.c | 23 +++++++++++------------ >> 1 file changed, 11 insertions(+), 12 deletions(-) > Other than the comment nit: > > Reviewed-by: Douglas Anderson Thanks Doug for the review. I will remove last paragraph from commit message. Thanks, Maulik -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation