Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1718787rbb; Mon, 26 Feb 2024 21:14:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5TPH+OE12LVQacw93guTv8shSnUROF/VvCP8WEMvrVBwueH1/97Fu/L/C3tCamkgHx5Clc4c64H5oddCVP2DzjiBGwlS3P0fOBze/jA== X-Google-Smtp-Source: AGHT+IGABnh2ovzqWDql7thCxpcSJDGUHL80rx9j3wsEYcHWth685czRlheIn0Ssoy0hi2QdfcOV X-Received: by 2002:a05:620a:4798:b0:787:a8d1:ebc0 with SMTP id dt24-20020a05620a479800b00787a8d1ebc0mr1107554qkb.72.1709010870969; Mon, 26 Feb 2024 21:14:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709010870; cv=pass; d=google.com; s=arc-20160816; b=uOdmoW+YrGgdvIibE9vt7wfLVcW3ouBs/24HsZrIrI0r188kGgn3H+OdqpIWUeZ0wR xytN2gMUUnDn4JquF+kCXacZWhxGpiS2HojNIpxk0kGwKWL23dwkRly4TfA8ZiTzWWTi mwbY0JBBIBCs+V0eNQ1cGewPk2jtnH8d+fzX9GD+rzDd4auzMosrOar9bZcX7bI1Pbhq P9xnS+1wEsJOlZyXW2hDMYAHZoxFVk8vCbo6hiwDNSd89FlMVsCtY/YNWj4Tt6SVX8yv 9gTkP/vAiMxy0EFOiVdghP2hIZUNNdgT2tezjzbK8SH9IGwnBeGmJo+5d7jkd8MKhaqi k/jQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:dkim-signature; bh=M+BQPLCLZpqrKhiNrmiNzr4nlNlMBixVqIVv6pIcROQ=; fh=67ql+FEP9YECBHb/KvuOFiKi9xgcsoDLJWNHA15+CnA=; b=Wfcaa3EJf3GKKwwfPBUAq4ATTsN1ZFFRQDsRSZfHMfFrLv2cf0MtlATkYIJK+TcfdZ a8CPZ0oGalwPIRXAOT0CBnA/GuVQCTySe6OIxl/gY4zfQo7WcQZnUw4BCLAW5kMv9vYY rcztbbe+ECqQ1c8IPRriDraNPe74ATazN4RmKL9btRGnBcMqhjiDHlUO51YEjiFoTjcO PVKl3fl/zkIQcAhb8Kg5YycCO5Hyu3iXscWdBDGQnW4cjbuWOSr5s3lwv/bnaV/bu0dO ABz6bIaUgcXp20lEbAJvIJLbTOmhGcPzlMGoqzK74ZV22jn6P0VcdeikpZQLRxE9kqku KU4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HaIdc1OD; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-82715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d11-20020a05620a166b00b0078727415d61si6530323qko.755.2024.02.26.21.14.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 21:14:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HaIdc1OD; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-82715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7FA741C21D77 for ; Tue, 27 Feb 2024 05:14:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06CEC52F83; Tue, 27 Feb 2024 05:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HaIdc1OD" Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7343C52F7A for ; Tue, 27 Feb 2024 05:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709010860; cv=none; b=IJMs19h4FfWoYksb3qy1b6rpvYh7DC0PqGovw3PC9ElDspENLO9vfOJWQ1HGxYHQy/CktAGwSZTvT0Tlxl7th+nFWWIW6tvlgrVWtYxFk4AXgHRbHwuda1OniWgi+FW49iMvxcsO2aMx/isof0g89ULN5Q7ApmRh+yhH1Ls/A4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709010860; c=relaxed/simple; bh=Wgvaos4tMDHQHCPQqba3sjMn7hXYBzfhsdVtj292alY=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=V73yQxbK3k1xvT3uxWNBJlBMCkvWS2y6KlaShwbPnW+HGDGrCkLMEFXhq50lajAEpNfOhmb3w8yzgk0bIq1IcHKNbDzaGBZsrN8GQ0J2jXxvzsVWV6EqmeXVGS0U0FljRkSOdKquvQVJaZ3OPPvgXFeWKIPKDkOdWsDvFZ+NNmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=HaIdc1OD; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-512bde3d197so3551025e87.0 for ; Mon, 26 Feb 2024 21:14:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709010857; x=1709615657; darn=vger.kernel.org; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=M+BQPLCLZpqrKhiNrmiNzr4nlNlMBixVqIVv6pIcROQ=; b=HaIdc1ODNMxlOsrywwjh3RFkhQkvE3ZYafJeIPdrulpSwzeyUh9AsW00piKpLZwlAn URKPTxrOjN6tp3uNO/23dvbMa8rCNcPWCGKsLEUpR4u+hEhbOUACjMVMgfSSI2VdkKrp BeOJ58jSLmi9W5fgMeWm98PxiiN0y2MQmDwmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709010857; x=1709615657; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=M+BQPLCLZpqrKhiNrmiNzr4nlNlMBixVqIVv6pIcROQ=; b=c0Q/jI7WVPFaRSyRgiPvFivZo/uqO1ANKDx+07RtHcEDoIULxNZW1a+MsRUZhp9o/q 6WMSgey1GRaJnPeNPhlPDqwFQFOVy0CGSl3xew6M2etBiEvzC2UyPXIZ/wlk5WJNyZxy cdJmKZRFt4jeEuR3ZPRqVD8iMSnCGql7rAa4Bi2u3fvylUEShCTS6QOO3xhWtPOwwbjY q5MBUcHOrZsYscGExkLTmeOwrWJC3GBG0HXhJDKjPU0m39LK/PeK4yX+i7FUU9cD0wnI BvznWA7qkKpUY36AUl5w09JKWSZsfLDxziZ8v50vpXvOSgdoQ/nYhJaMb1l/bLNswqtg HIuw== X-Forwarded-Encrypted: i=1; AJvYcCWgcxKvRIt/7kUK6Z58JDWmNhaDiPeWTkeZ75iVFJh4hM8V4jK8ZEErogcTRoeSn340jLVSQCIWOlA/vNH2qimf1Il+mjT8a10YKxqL X-Gm-Message-State: AOJu0YxvcXY5xR7iMT6Kyr+Ur9zQliAVyDeyId/LOx2R+9ileMM1IL0e c0KqmSi6zVpwMxHI3qTLYAcujEZM4pg7Xzs2mLGkJ8Ixj66Jlysq+fiIdtnST/e/GjSajr2EZOE HrHM+Kg9J4YoQK4U6l3m6AV0VxgOhrsvf3YEj X-Received: by 2002:a05:6512:991:b0:512:ee1f:b5af with SMTP id w17-20020a056512099100b00512ee1fb5afmr4441994lft.41.1709010856400; Mon, 26 Feb 2024 21:14:16 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 26 Feb 2024 21:14:15 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> References: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Mon, 26 Feb 2024 21:14:15 -0800 Message-ID: Subject: Re: [PATCH] pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation To: Bjorn Andersson , Bjorn Andersson via B4 Relay , Dmitry Baryshkov , Johan Hovold , Konrad Dybcio , Ulf Hansson , quic_bjorande@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Quoting Bjorn Andersson via B4 Relay (2024-02-26 17:49:57) > From: Bjorn Andersson > > Commit 'e3e56c050ab6 ("soc: qcom: rpmhpd: Make power_on actually enable > the domain")' aimed to make sure that a power-domain that is being > enabled without any particular performance-state requested will at least > turn the rail on, to avoid filling DeviceTree with otherwise unnecessary > required-opps properties. > > But in the event that aggregation happens on a disabled power-domain, with > an enabled peer without performance-state, both the local and peer > corner are 0. The peer's enabled_corner is not considered, with the > result that the underlying (shared) resource is disabled. > > One case where this can be observed is when the display stack keeps mmcx > enabled (but without a particular performance-state vote) in order to > access registers and sync_state happens in the rpmhpd driver. As mmcx_ao > is flushed the state of the peer (mmcx) is not considered and mmcx_ao > ends up turning off "mmcx.lvl" underneath mmcx. This has been observed > several times, but has been painted over in DeviceTree by adding an > explicit vote for the lowest non-disabled performance-state. > > Fixes: e3e56c050ab6 ("soc: qcom: rpmhpd: Make power_on actually enable the domain") > Reported-by: Johan Hovold > Closes: https://lore.kernel.org/linux-arm-msm/ZdMwZa98L23mu3u6@hovoldconsulting.com/ > Cc: > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd