Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4400943ybb; Tue, 14 Apr 2020 06:37:59 -0700 (PDT) X-Google-Smtp-Source: APiQypLT1jyQHaPZJAGU53gv17uohWiQyMDObTiAI5MrkhT1qghaCPHeKK/QcLgGiJksMIeZuWdj X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr166992ejb.110.1586871478988; Tue, 14 Apr 2020 06:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586871478; cv=none; d=google.com; s=arc-20160816; b=ZNjk9mOvJlQrHNODydBiEJzfISNLvxW395QNyOVRjMJAxM5Py0kPXodM8Dd8LRohdO o0Viy7R85Kwivrl5wgCA0rcM6FpY83vfZX56AKwMO3qY/XABUGdeXWWtHbFGmosnt7p9 e8/EMk0q7Gk3kih+fDdMpwEKTs9TPcjfg/DW/cNELjtFisDUTnXUKFVSJnIroYauHCRM BjcEHaTBbjl3VkmIUwS0numONVrZiz22gcm2GxJtYTnFaDQmLZUg7F40V68dWPN99qTf fYsb7W5mKZ1lkjbFoKSBPquendLHtdWbXK1sYYeITg0S+hZD9dQmQcVCtGTpbYR+OdSS LHCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=vbJOoG679zi/qFWY2YZaUKTVd6EhUDRK1VZI5sNPfg8=; b=GY9Z0x8uw+fMaWK/ZGi79Mbt8syGgfScmxTFZP+R4V2BbzgUbCNYshF99dzo6qtDcO psx/nTqghZB/2Gs/0/i51p4EWAIAfFYMCiSRnakeJqkAquGQymPjUSAzBMQ6n9PLV1LU rNTd+JT/NySwFjt6JORRdExgLxpXZfjU2bv8KWvbaBcDTKNTVqmKzXOTmwTazmJrBL/c aNlxbrd2YAW1Zt1Xm/7RV/XqF+SuJQ+OQWswsKhReJFQJYnuUAP/KkAocsrZwftwZ0CN hB0XDaA9JTKkRdaz5Whl2JNvEmHTF0T6Xmi+E69NXKFMui0r1V0wvdjCl3jcEbIeQJg3 /HAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZCNPNtFa; spf=pass (google.com: best guess record for 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si8500295edi.482.2020.04.14.06.37.34; Tue, 14 Apr 2020 06:37:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@chromium.org header.s=google header.b=ZCNPNtFa; spf=pass (google.com: best guess record for 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388973AbgDMVTU (ORCPT + 99 others); Mon, 13 Apr 2020 17:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388968AbgDMVTR (ORCPT ); Mon, 13 Apr 2020 17:19:17 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C253C0A3BE2 for ; Mon, 13 Apr 2020 14:19:16 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id n13so5023830pgp.11 for ; Mon, 13 Apr 2020 14:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=vbJOoG679zi/qFWY2YZaUKTVd6EhUDRK1VZI5sNPfg8=; b=ZCNPNtFaiv+4QlDiIG+LvypR67Tiyae7TKZcSzAl6XY+4FFw1fSP9hg1ZY6pyFGEyb 9/o32SU/W5KVlrLSiUUbSe/pGhq7kdbFgy6NvvUILFQL7IBnh7dWkagDzU8PNsiv5uVF ruTQIH4t51akbADSxUnjx4CDCBXsS1jQFKqHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=vbJOoG679zi/qFWY2YZaUKTVd6EhUDRK1VZI5sNPfg8=; b=V6UbbD1x6fiX4rcxWMnvU+wq7wkySc/vzkVc9Q8hoHvF+wvP94Kd55oBB5g9g3k+a9 ydc+NSGkVXCQ6wF5XXkOA78JdBRHhaG4JiCVGlbideRCa0YQRCsf54gEoWQzNGCLv2oT uyZUHrUGCyDfOqbOe8Jqjf//L2HO+MltuVHa+x6E35pQvI2uXCJekDiZClXOTZwwGiEx EDODCrr4gjL8gcs0WMw0aKFg0PZZjluTtLO1eJDFNqkrLYQpAKrEwMyA/evCm1jVvYOb MYD5dyVX6YpffVCJVxlmCa7I3ou8AhfiOKJLHe0YBeXWkZmpuI4DoNTjdqIG8c+A0HVn vwVA== X-Gm-Message-State: AGi0PuZyOhUZVlFRd3aRTiIP5dgL51y2GWaJtUXABz0mTiMejaTvvNtY tPAGgndvQJQYCRE0H7lP2zKFUuGHiv0= X-Received: by 2002:aa7:93cd:: with SMTP id y13mr19217358pff.213.1586812755806; Mon, 13 Apr 2020 14:19:15 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id e4sm6735645pfn.199.2020.04.13.14.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 14:19:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1586703004-13674-7-git-send-email-mkshah@codeaurora.org> References: <1586703004-13674-1-git-send-email-mkshah@codeaurora.org> <1586703004-13674-7-git-send-email-mkshah@codeaurora.org> Subject: Re: [PATCH v17 6/6] soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, mka@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah To: Maulik Shah , bjorn.andersson@linaro.org, dianders@chromium.org, evgreen@chromium.org Date: Mon, 13 Apr 2020 14:19:14 -0700 Message-ID: <158681275440.84447.11477105660134588481@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Maulik Shah (2020-04-12 07:50:04) > 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. >=20 > 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. >=20 > Fixes: 2de4b8d33eab (drivers: qcom: rpmh-rsc: allow active requests from = wake TCS) > Signed-off-by: Maulik Shah > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd