Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2123431ybb; Thu, 2 Apr 2020 13:37:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLnbvKLiWgVpWiqMc+DC1v8wqHlqz/vH1zafB9LcQ+1LySF/D/+d9uNeaVKl7TAEgUkecLi X-Received: by 2002:a4a:e08b:: with SMTP id w11mr4292967oos.62.1585859846509; Thu, 02 Apr 2020 13:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585859846; cv=none; d=google.com; s=arc-20160816; b=htlMQ03ybKd5kZfmYpYb/L7B5mOUL5GIft5wnR0VZMINZ7o9dIZ2sdyobSks9gbPvZ LFn6IYpb9Wxodv/XnrSe+wbBvnLZuAmzUlyrIhKS7dLMWvnxkZ8iFhoPHkBQXjwGvDFC l7JY8qjb8m9czwisFAY71RtHrucmtFhut7GKt2vazOGdAT6+oezcMv0tyJbRsmLcO/e/ p4CUJSlkAOo7d7nkg88/TWli+Z/Vabf9ygBa+3kr8NFzSGM/HKVn6elXM3X0TmsIcXUV 9mt+/lOwdR33y+zXyYwWTfKgfryRmk2ps7/V0jz+chB9+2SE6bRonxP6vLT2E6OrpiPi ktsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=T2KZZSErTlqi9bcZVI97UMRwpZy818j1NzSmFXCiRoM=; b=BLnxcBiVxnnAuaUnGlNL7Wk1v9UgrmeTbzYKkx0VnLC2C7RVk8kW1t8SDODsy+H/71 IBKFKASZZqim9nBg6UvvEHMLgZe6j+ki7qvNnGCf+CxnjdsxiZVK0MAeWWnN3aqAbuK2 oOBkvycgPGpsDf3n3oVG1fpXHSA/Amd9TlZOxr60SC0nqpKNUJ95qv7uMV7GCO+iKcMT fUz73V5OzlETAzmjQMlmEcMU8WJ9wdj+sm++M91MgiFVI55RVb0KxFdrnuHIGSXqIJ15 v3ysouo0N4/0kjK+ET0D8zc+zzptEdUNtwPhGDfzQ9xCdvcaxbBobTDsCCbPffvXCdNW Jaqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WpUfI6vh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si2673115oia.219.2020.04.02.13.37.12; Thu, 02 Apr 2020 13:37:26 -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=pass header.i=@chromium.org header.s=google header.b=WpUfI6vh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389069AbgDBUOO (ORCPT + 99 others); Thu, 2 Apr 2020 16:14:14 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:35585 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732404AbgDBUOO (ORCPT ); Thu, 2 Apr 2020 16:14:14 -0400 Received: by mail-vs1-f66.google.com with SMTP id u11so3435980vsg.2 for ; Thu, 02 Apr 2020 13:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T2KZZSErTlqi9bcZVI97UMRwpZy818j1NzSmFXCiRoM=; b=WpUfI6vhm9+byBPTnviB2LfRrhJf3CrgeqRbtRVtvkct+oAdSX/g0UMVQ1LfdKfGJn UBkz+Sb4STInORrpcP+4kigpNzF/EBtz9K3J3VA58tw1bXwFzC/2I571PMoAN00jAFAV E1ocuiIC+BUv4O6SPdHywDkfCiqKOEefQp0CU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T2KZZSErTlqi9bcZVI97UMRwpZy818j1NzSmFXCiRoM=; b=m8cBlK5qmYw/f7ofHqtPaxid8l5CLrAZkvLjYIL61aAqb5VxVFLUd6jM66eAWyGTQ1 kA9mKXmLdfRxBfS/+jv4DeXMEfcKuXEDeqDo+VWF85GQenRgakNDtj5lArxZGoPn4C/K IlPW+/TgoSzvkeH0vadjayoxfLDY2KYiToIwGw8Szn5E/15kozA7AVfXziHSraOZnSIw nbWjplu1s3ECQ4AS1o2oTzE08+SVU1g33ftFzaiFDVNVeWXcLF0o7m6jPfoTAblwl+g/ EGZilKDyAdepMTFivWX8yf4qcRiO3GVKq6ei9rKsS7U2ChmXSD7c2vVcFEFuHhOtWDyQ HRMg== X-Gm-Message-State: AGi0PuZwfg1NgmBR/QrSC7hR7zDFtCeDVWv9NNH2JKQOwsyEwQQdDXMf 5dZ06da5eBESa0TSWETuo09hzksNLsE= X-Received: by 2002:a05:6102:2051:: with SMTP id q17mr4003456vsr.165.1585858452640; Thu, 02 Apr 2020 13:14:12 -0700 (PDT) Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com. [209.85.217.54]) by smtp.gmail.com with ESMTPSA id s17sm1519555vsc.27.2020.04.02.13.14.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Apr 2020 13:14:11 -0700 (PDT) Received: by mail-vs1-f54.google.com with SMTP id y138so3445087vsy.0 for ; Thu, 02 Apr 2020 13:14:11 -0700 (PDT) X-Received: by 2002:a05:6102:3204:: with SMTP id r4mr3631989vsf.109.1585858450535; Thu, 02 Apr 2020 13:14:10 -0700 (PDT) MIME-Version: 1.0 References: <1585660782-23416-1-git-send-email-mkshah@codeaurora.org> <1585660782-23416-8-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1585660782-23416-8-git-send-email-mkshah@codeaurora.org> From: Doug Anderson Date: Thu, 2 Apr 2020 13:13:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v15 7/7] soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request To: Maulik Shah Cc: Stephen Boyd , Evan Green , Bjorn Andersson , LKML , linux-arm-msm , Andy Gross , Matthias Kaehlcke , Rajendra Nayak , Lina Iyer , lsrao@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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