Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4400535ybb; Tue, 14 Apr 2020 06:37:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJD38veuFbYiAeE12P4/67VyqiJEJ+PzhsuDmCqgzZrr24ulwRWMJORYY4hT4jpASUTwfvO X-Received: by 2002:a17:906:fc3:: with SMTP id c3mr180596ejk.28.1586871448791; Tue, 14 Apr 2020 06:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586871448; cv=none; d=google.com; s=arc-20160816; b=qdlceRqBrPUl2pbR6FzqzXLKUq7ShzJO4uDLUwYXZXgqXChJUZ0cFx0DGy2D1pdI76 gruWnSrJegQTievax72DmEg8OCXpVFyD5DWWHt0dtdYlUvNK95urwAeFTebly/ROw4U4 hNBQh9I5luUerEJVEwFFW9XFSJngvn/HzkI9hCPQJw5LgK03HgGjBRUlgF6I6AqFwIZH 5uQwOoID2TVm0EuSS2qQn+uV6969hc/S/Ab0OKq1hDpPzRT1bIHbQdfFxSiBkaymfbI1 bbqbnWO3szXd3mNC94mOqTNwlKzhVe4CTOUfss6dxbWPuJ66A7fK9kTgQBxwnvjnJ0Oy aGgw== 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=eC2MEHdLAsuZgsM6/ln+QWOcxR9o897nfctxg2dELsk=; b=nKw5OSHtxCbxOryAkmi4HkJgfnnDO1jj9ppiTo8/Uj5irSljJGS4e+F5V93qoyBzZM riYSbhC78jdQtZWxHTDO+bC0rgB1XcVVucSA/p2M1IYw1Dpm4me+qmgyeNz/f8bM/fRe HqBRFxQ3rgnO0VrgiDiA+B+5dlXXZlJEAqgtCLLSw5vlkrUX0C1kN7kg+9fGTDb+QYbr g0METo7s8M6KjzziuHpWQl3/rd1ltGCCP7kEUC/BZvcritLo1lLTF7z2peQK1Vn4qhVc 4b7GYH75pUHh64j+eXyqJyX27y4Z5YT2arH2zHf7Fz0g0RKKIP6i2CTbPRg9khPCXByq VYJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FOe16klE; 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 w12si8274307eji.100.2020.04.14.06.37.05; Tue, 14 Apr 2020 06:37:28 -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=FOe16klE; 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 S2388913AbgDMVRZ (ORCPT + 99 others); Mon, 13 Apr 2020 17:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388862AbgDMVRI (ORCPT ); Mon, 13 Apr 2020 17:17:08 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72AEC0A3BE2 for ; Mon, 13 Apr 2020 14:17:07 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id h11so3851800plr.11 for ; Mon, 13 Apr 2020 14:17:07 -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=eC2MEHdLAsuZgsM6/ln+QWOcxR9o897nfctxg2dELsk=; b=FOe16klEN59gHf8DsemBbvY3xk8S/CsK6R046piFKeROmNPkOeYqJdgM7fstOlZhb9 iDyn/hdH7byLxSVS85oAQkXRAjRV/u2jQdeCnKK4EYoxrHaYvVoG8RUKfXAu8oLYlDZu fBVxJnUvBEZMIZK6n+4Vt2X72Td1wX1VH+SP0= 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=eC2MEHdLAsuZgsM6/ln+QWOcxR9o897nfctxg2dELsk=; b=YVCNW7BfuMxbOPcpZSB98yKDEXvMvdto6OuOJ8vGVPKmPpe6VwgWJ3yx0P+v1M6UFA k8uzEUYFeoSIM10Tsm8zk0wcL01tnCq/9HwDI5zES3J/TnmeCikrMhu2iY5/D93MZQ5T /Mr92sVLppze2u9LGILDjNJkBsG4zS87p4hC/ZxBKTptN/S4/WSBs7VnG2iTt80M/TCA ZwTuzAcPLhDTOuL3wDR6M0S0Jy1u37a++YM7eWoH3d6/B5NIo6mSl2nNtSeWkyMaF09V 4kbl8pjSCIjTFG8f5P2sF5ywDv5llZARpzOE9+POq6RRnkFHYSDd11+e2du2p+xax2s3 /O3g== X-Gm-Message-State: AGi0PuahFT3JUrFqn/Q5rbPuob5rziyoKxzwS9Xj9XDZ/SAb5jMEnsEU 23vavmHT6DFiYy3Wz6FkpUvIinZXnCY= X-Received: by 2002:a17:90a:d78b:: with SMTP id z11mr23780945pju.34.1586812627228; Mon, 13 Apr 2020 14:17:07 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id q200sm8752985pgq.68.2020.04.13.14.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 14:17:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1586703004-13674-3-git-send-email-mkshah@codeaurora.org> References: <1586703004-13674-1-git-send-email-mkshah@codeaurora.org> <1586703004-13674-3-git-send-email-mkshah@codeaurora.org> Subject: Re: [PATCH v17 2/6] soc: qcom: rpmh: Update dirty flag only when data changes 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:17:05 -0700 Message-ID: <158681262575.84447.6103170873953765147@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:00) > Currently rpmh ctrlr dirty flag is set for all cases regardless of data > is really changed or not. Add changes to update dirty flag when data is > changed to newer values. Update dirty flag everytime when data in batch > cache is updated since rpmh_flush() may get invoked from any CPU instead > of only last CPU going to low power mode. >=20 > Also move dirty flag updates to happen from within cache_lock and remove > unnecessary INIT_LIST_HEAD() call and a default case from switch. >=20 > Fixes: 600513dfeef3 ("drivers: qcom: rpmh: cache sleep/wake state request= s") > Signed-off-by: Maulik Shah > Reviewed-by: Srinivas Rao L > Reviewed-by: Evan Green > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd