Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4445186ybb; Tue, 14 Apr 2020 07:28:47 -0700 (PDT) X-Google-Smtp-Source: APiQypLJab9QTuWFu7Kkgqq6b8Tpoo3B6zOBKwnlDXQS8lU9f4vfUrGe2Xc6erU6Xt6oPUVWXVqe X-Received: by 2002:aa7:d14e:: with SMTP id r14mr17419138edo.200.1586874526981; Tue, 14 Apr 2020 07:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586874526; cv=none; d=google.com; s=arc-20160816; b=PNlmbBvvcCIikLRBa5IIlRONkBejIuooOc5iPQk1Gs4oNlOjOVputPSKZ/QdPqNbOy tqFv1diSq+rEsrOH3AJTQNL6Judn+m0EOmmcPAKtGSejWi+vAkXelNaIRnzASZqKuVWR U/9chnk4XBdP4eMOO/ST8e7FQJDZUbsQhciNcz5vspdG940mMRRxvES4jQFnkxlY228/ 1FHi2dFmVCsIMGJ4aMqQ3/CHaIdBzy7XqZr41CLobC3Q8iHE+3oV451rhHGyo2boOPwO wt3T2sLZnIJ5/7NO8vsYVGl94bSGevx8VADqSFfGziEK9xL3QnRZvZ0RKMxFkOmrGu8s E1YA== 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=9aD5U+mD+PXEL20o7thcc3jEGnfFkwTVA8o04+l79Sc=; b=WEu34gAYQZEODN1p4BnDD0FtU/k04I775zHDlvGzXukuh5YL+cHwtzNFYt9T7GxWW3 3DX5PY4Z5Q3qKCpqTTBi8JdgFGePfG4+8MYkuOOb/qRfhdeJo0qwH/yUOkUSi9bcwhaf TXf3VuOUdwYxmSE80oAodppeiBQXLk2uuYfC3icA8yt9PnTYM7tNL9xUaXiKIfJQinbp v1AxJMT9SiVBBFPTd2yWtZToXoXeNcDNsvq6DfbaAFT84uePunzzDnKAhiwTrrk64+7s /7NmHOWakPOvyQwf2gQNepKvYzL8SW2D51Q92PVY/abiDkume04abvh1DBl4fK5gMi2I vdeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xGvR3ngq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si8409440ejv.507.2020.04.14.07.28.22; Tue, 14 Apr 2020 07:28:46 -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=@linaro.org header.s=google header.b=xGvR3ngq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405541AbgDNFeE (ORCPT + 99 others); Tue, 14 Apr 2020 01:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405521AbgDNFeB (ORCPT ); Tue, 14 Apr 2020 01:34:01 -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 73A64C0A3BE2 for ; Mon, 13 Apr 2020 22:33:59 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id c5so5518716pgi.7 for ; Mon, 13 Apr 2020 22:33:59 -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=9aD5U+mD+PXEL20o7thcc3jEGnfFkwTVA8o04+l79Sc=; b=xGvR3ngqE8+uxW9/nrvVLEYOZ9BHXLN80IKtoKsIFv7UJlxg5y603Lt+HuChSe8Lfx p4BJ+621FR5CaGILNSpX5ijx0B96o9Uvy3Lo/w6dTRJrl3SjF617WgNmHqM4EcWD5kpw vC8ebbT500kTR64xYf+jMdV83jdT+E0CVenHaxaieCKjqTMJrGsGuZcS3sYKt+P+Y9EI EI4iyuQAzxapl5qmeUCkTaDxA9nGVpyLsslNmyFYdYJ4Xe2aMIQVFqoiYBOCDPzj+fH0 NWDjVXrkFhUHd3HJU1i/BLvwJYWjuvxB4PVJvoD0ZgYA11iE0MUBHiez528t4Qlnd7n5 FfRw== 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=9aD5U+mD+PXEL20o7thcc3jEGnfFkwTVA8o04+l79Sc=; b=nTeFxG/B/ISLzsPcWGgM27/toepPaaCxxCXULyYM6aJmkAgygFrssVXJh9VLMNKIqc zTLf0YFIyXJTlzjCSvX4r0UzxrLSZxwvp1FoaESrmAMCOi00cfeaIVYNTjRhHL6kM/58 R2cyTDIfMUDQGHcP+8Q037uUzua5Ryxc+8Jm4iKzhWhKG61o/kMxgXj/DPLOMDeTyRxw 5GJINHpkVWlt3q1RSj8U/lV/Rbq1SfCOoH5Hl8Mn5HEDdYG9dfzQvMmfF6OTgNdex0RC z0PRhVf0SDqzOs76V4M9wlxW19UUgGBTM2GQsqgltBVqgWqZ4uRawWg/KSmLDvy7SnXy azMA== X-Gm-Message-State: AGi0PubWyUQJnIrHwy8EEXsazrA232Lbg0aE/aMm1J3ENA2VOshExYhh s1PgLs47QNfc05v8iNVHJAlfsQ== X-Received: by 2002:a63:4b65:: with SMTP id k37mr3872809pgl.118.1586842438646; Mon, 13 Apr 2020 22:33:58 -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 l123sm9260194pgl.13.2020.04.13.22.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 22:33:58 -0700 (PDT) Date: Mon, 13 Apr 2020 22:34:12 -0700 From: Bjorn Andersson To: Maulik Shah Cc: swboyd@chromium.org, evgreen@chromium.org, dianders@chromium.org, 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 Subject: Re: [PATCH v17 0/6] Invoke rpmh_flush for non OSI targets Message-ID: <20200414053412.GJ20625@builder.lan> References: <1586703004-13674-1-git-send-email-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1586703004-13674-1-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 12 Apr 07:49 PDT 2020, Maulik Shah wrote: I sorted them includes and applied the series. Thanks, Bjorn > Changes in v17: > - Address Stephen's comments on change 3 and change 4. > - Add Stephen's Reviewed-by on change 5. > > Changes in v16: > - Use base address in probe only, drop change to save it in drv->base > - Address Doug's comments on change 5,6 and 7. > - Add Doug's Reviewed-by. > > Changes in v15: > - Address Doug's comments on change 3 of v14 and add Reviewed-by > - Split change 4 of v14 to save drv->base in a new change > - Address Doug's comments on change 4, 5, 6 of v14 > - Add missing NOTIFY_OK for rpmh_flush() success case > - First 5 changes in this series can be merged without change 6 and 7 > > Changes in v14: > - Address Doug's comments on change 3 from v13 > - Drop new APIs for start and end transaction from change 4 in v13 > - Update change 4 to use cpu pm notifications instead > - Add [5] as change 5 to enable use of WAKE TCS when ACTIVE TCS count is 0 > - Add change 6 to Allow multiple WAKE TCS to be used as ACTIVE TCSes > - First 4 changes can be merged even without change 5 and 6. > > Changes in v13: > - Address Stephen's comment to maintain COMPILE_TEST > - Address Doug's comments and add new APIs for start and end transaction > > Changes in v12: > - Kconfig change to remove COMPILE_TEST was dropped in v11, reinclude it. > > Changes in v11: > - Address Doug's comments on change 2 and 3 > - Include change to invalidate TCSes before flush from [4] > > Changes in v10: > - Address Evan's comments to update commit message on change 2 > - Add Evan's Reviewed by on change 2 > - Remove comment from rpmh_flush() related to last CPU invoking it > - Rebase all changes on top of next-20200302 > > Changes in v9: > - Keep rpmh_flush() to invoke from within cache_lock > - Remove comments related to only last cpu invoking rpmh_flush() > > Changes in v8: > - Address Stephen's comments on changes 2 and 3 > - Add Reviewed by from Stephen on change 1 > > Changes in v7: > - Address Srinivas's comments to update commit text > - Add Reviewed by from Srinivas > > Changes in v6: > - Drop 1 & 2 changes from v5 as they already landed in maintainer tree > - Drop 3 & 4 changes from v5 as no user at present for power domain in rsc > - Rename subject to appropriate since power domain changes are dropped > - Rebase other changes on top of next-20200221 > > Changes in v5: > - Add Rob's Acked by on dt-bindings change > - Drop firmware psci change > - Update cpuidle stats in dtsi to follow PC mode > - Include change to update dirty flag when data is updated from [4] > - Add change to invoke rpmh_flush when caches are dirty > > Changes in v4: > - Add change to allow hierarchical topology in PC mode > - Drop hierarchical domain idle states converter from v3 > - Address Merge sc7180 dtsi change to add low power modes > > Changes in v3: > - Address Rob's comment on dt property value > - Address Stephen's comments on rpmh-rsc driver change > - Include sc7180 cpuidle low power mode changes from [1] > - Include hierarchical domain idle states converter change from [2] > > Changes in v2: > - Add Stephen's Reviewed-By to the first three patches > - Addressed Stephen's comments on fourth patch > - Include changes to connect rpmh domain to cpuidle and genpds > > Resource State Coordinator (RSC) is responsible for powering off/lowering > the requirements from CPU subsystem for the associated hardware like buses, > clocks, and regulators when all CPUs and cluster is powered down. > > RSC power domain uses last-man activities provided by genpd framework based > on Ulf Hansoon's patch series[3], when the cluster of CPUs enter deepest > idle states. As a part of domain poweroff, RSC can lower resource state > requirements by flushing the cached sleep and wake state votes for various > resources. > > [1] https://patchwork.kernel.org/patch/11218965 > [2] https://patchwork.kernel.org/patch/10941671 > [3] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=222355 > [4] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=236503 > [5] https://patchwork.kernel.org/patch/10818129 > > Maulik Shah (5): > arm64: dts: qcom: sc7180: Add cpuidle low power states > soc: qcom: rpmh: Update dirty flag only when data changes > soc: qcom: rpmh: Invalidate SLEEP and WAKE TCSes before flushing new > data > soc: qcom: rpmh: Invoke rpmh_flush() for dirty caches > soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request > > Raju P.L.S.S.S.N (1): > soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 78 +++++++++++++ > drivers/soc/qcom/rpmh-internal.h | 25 ++-- > drivers/soc/qcom/rpmh-rsc.c | 220 +++++++++++++++++++++++++++-------- > drivers/soc/qcom/rpmh.c | 79 ++++++------- > 4 files changed, 305 insertions(+), 97 deletions(-) > > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation