Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1665402rbb; Mon, 26 Feb 2024 18:15:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjeh/+AxRWoVA8FeFoxpVXfHU8WAhC/08QrBgrI2Yqz0vzXseqHs7R3M1K1hk6kQgH0U48eLGDDua/subODtYdcsCddw5OhU0hE1ML5g== X-Google-Smtp-Source: AGHT+IEZR0hSC6htDk+Mu6sloTmnX+7MVb2DG4XLnUP0RXtz/sBfHDRuvwdv19bq92QW0cd8W3dS X-Received: by 2002:a05:6a20:2d07:b0:1a1:d97:fd08 with SMTP id g7-20020a056a202d0700b001a10d97fd08mr797427pzl.15.1709000128892; Mon, 26 Feb 2024 18:15:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709000128; cv=pass; d=google.com; s=arc-20160816; b=U4xqbgnNItwqQnDu01tQVWCceXJD+BeXjnVlRlx7w2NUYRP0T23xZRbHrxbrL1B28T ruVrqAmrl/C/esujN2A1/8CdYSsYDV+GuTPQAdoZ3wJ0Ng5iUtirYGt3wxutt3yogeja VnCgTSgTukD3GoFTBPs/2LJb36tvxeOVPz3qHh/obt+h2V7Wrp0pOvqX2l0FyewfV8iQ ekao5Nx/9yQ5xp/mE03WxTbtbzK7Vk8tMI5CfTDzajSRB3/ey3p2GiynrIdNBKw7QyWE tvG55grQK4ds4R4gP+Q7iUlJXtKxEH2UWBhnHoRKxzv0pebVkSgCIsa1lpfOQ8fuk7sm ppUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=pKgrsbDtRhtTwJSZwi3Iuzq+IR/GTbO5ckHV4gkPPIQ=; fh=46z6SV8BkXvC3NbiW52n2RBJvcTtxQKHvy7QqEaWdZM=; b=es56WUOX8NVBwY8snHRO5BX0D/CmZ3bx7g02TBCSyji938feIXEpi26FRdVXZBbw0H dwfIDhld1I+K3thMaH4rgojluGlydVdAZLLW45Cyv3ZM6EtRPafSaeAN1PYitRR/9JMN ah3Odxjvu8j7yg84AdE9FWMnxbEN3NqmwWsxNZOVuxgZmkwM9OsWMv7VQ3Sey30Tm8qc KraZEOXhD4i0r3dpNEp+0UgyGJHWO1ngrdtjX/KdX167WPaVegkLbTbLgRm3Z+8/ctY+ QRR7xoax7G16QPOkGoCIZyb/kvCeKis+CAEJiawmekXeN0Bfw7SZazwkhXWl3uaPc1gU vIeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p3iOFnrb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n4-20020a170902d2c400b001dcb4ae953esi552179plc.34.2024.02.26.18.15.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p3iOFnrb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82577-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 79CF5B2322B for ; Tue, 27 Feb 2024 02:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54F22DF55; Tue, 27 Feb 2024 02:08:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="p3iOFnrb" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 A363A6AB8 for ; Tue, 27 Feb 2024 02:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999684; cv=none; b=lzsvZkI0aQviXeeqyS8w/vtiG0RRW/uJQ44rAGyBZTZ3A3cBHHaAYKBMsYNQQkHTCxX5PoaMHaTP6zOaUmjp2JL2Z+69VNunHKZtNVw5iVSi4E7nXOPJ0sGBS/RWWQvkPq1Ag6sKTB+UHCU4l0rVu7AwFH7oM/mrB+QDRMicPJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999684; c=relaxed/simple; bh=e20cSwHxUYKaM7UrngPan3hSH8QhKOwaTuiejGgEcE4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QlvZ7WtOXlxpCE5NDj30/dDKYRVNZ1OxVWBTPBrHeV6xkc7MLz3qqaE5gH9Myp5b3wh1tSACmMhfWeGrAxnjz/SBR8yH3XeSvsVhZKfj4ISD4fSsbQqFBtgo/0LHqb3kgS5nm3scYqZc1dTRrfEOCfpDdWHGIaiaKuHD1H8CvtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=p3iOFnrb; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-512a65cd2c7so5244602e87.0 for ; Mon, 26 Feb 2024 18:08:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708999681; x=1709604481; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pKgrsbDtRhtTwJSZwi3Iuzq+IR/GTbO5ckHV4gkPPIQ=; b=p3iOFnrbTQr/7RKe5s/anuR/LwIioxh3JG8ddLkcRNGnuphUUYQjc3X1UEVEnL8AsJ 0zUMkNNHTq4iiIWeBkgBRFshqt5D4p5R5i1BqQ8FRQsIVK3ZURlaNljgkmQJ/+ddxH73 ImUMW6sz18ltZJqX6DsNS4pKreDclyOXsxacBfjNo6LPXkURgT6S4jS2vXjBDgWNYSs+ WTb87u/n1R6gRoubcjE2DP7tWm35saG4sZ+s7iC4cbGL20zh0RvI38IE0CuxrV5WHTR0 6s6+XcgEcRjG8raaZ8B3YmO1yAR/5ChFwb0aiQO/X+sAyWUvweSl7CEuT0+drOycake0 eboA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708999681; x=1709604481; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pKgrsbDtRhtTwJSZwi3Iuzq+IR/GTbO5ckHV4gkPPIQ=; b=rjoHL5ObdEdHJaMXZglPHseDXfcj9AfdyjscCmiEUdV4oabZjl+b51K9UF1t7EtnPU /vuVybKPt7SXi2abUvuBrDeaUdjhYi2d7u2qXlxBHgPImJmu37GhKWBHkU3qLPuVSQym p8MfnpFEqRT8AagLiUS6Tec7xftiGPGvsqUhVWNcat0ehR4NLJEYKxUuUa8cwggGFouM 125U5+OxeLsBsAlJsVQX4Aif+RcILrO1zGGLqC8HRp76R5pDX53vHm+zVarKAv5iEHe2 B/wlK+auh3azfCEFKGupq9B8TcXSK0E8OkgO+19NbMbEwik5+B4fO8l/CmwBCx0iLwPV aStw== X-Forwarded-Encrypted: i=1; AJvYcCXTLb1PVV9xeCiLPz3XGguqTJSxGMEfu07vrHFVtGV9gumU3HTIsrsjeJMDIcfGioIqIRybLHw9Uu3fjUX7/olYTbn3422PsWsDPRj/ X-Gm-Message-State: AOJu0YwjWREzvAF/8oOPViZKUNo8GCuc+3S1AY/wDzrWWtNiazJ8MkIH rEmnxF/5vM2+DvVyVCzK/Ok9WFVakhjsC+4KlYA7OQ8N2Frszt/g23pczPUfeQE= X-Received: by 2002:a05:6512:324f:b0:512:b84e:e7a1 with SMTP id c15-20020a056512324f00b00512b84ee7a1mr4873359lfr.5.1708999680724; Mon, 26 Feb 2024 18:08:00 -0800 (PST) Received: from [172.30.204.180] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id r28-20020ac25a5c000000b00512e40ef364sm1035102lfn.108.2024.02.26.18.07.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Feb 2024 18:08:00 -0800 (PST) Message-ID: <615042d9-4a8c-45c2-be17-756e9635a8af@linaro.org> Date: Tue, 27 Feb 2024 03:07:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation Content-Language: en-US To: quic_bjorande@quicinc.com, Bjorn Andersson , Ulf Hansson , Stephen Boyd , Johan Hovold , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org References: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> From: Konrad Dybcio In-Reply-To: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/27/24 02:49, Bjorn Andersson via B4 Relay wrote: > 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 > --- > This issue is the root cause of a display regression on SC8280XP boards, > resulting in the system often resetting during boot. It was exposed by > the refactoring of the DisplayPort driver in v6.8-rc1. > --- Very good find, thanks! Reviewed-by: Konrad Dybcio Konrad