Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1664342rbb; Mon, 26 Feb 2024 18:12:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs6x9RIS6c9MIJXxx2hEjjBrv9yTR4RN6VsGYBDYTveUNIlH/2OvmFmqyLreB5LY7cnSntNiMjbELHFmTS3+RenLLENpj5JdHNihs2uw== X-Google-Smtp-Source: AGHT+IGdc1e6uU/uE4zjgQ3M/teVkjD9GNWvLey0IrwASmORWpn+32z4NzvtZD/p3ylFqKwoA+pv X-Received: by 2002:a17:907:984c:b0:a3e:4404:dc7 with SMTP id jj12-20020a170907984c00b00a3e44040dc7mr6317343ejc.23.1708999942768; Mon, 26 Feb 2024 18:12:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708999942; cv=pass; d=google.com; s=arc-20160816; b=j93t1Ifqv9c9my55Vjx89ioHc6FYA2VJn5E+esIVGP85C5iv12pXdg7aKGiJJwlDwT xBOo2TNQ/ODLh9JV/3PKFiTkN2n53oaa1cfpakWboH/TMf9IAIcE83W8/+NA3LcLN9d6 H8C0hV0sLDFinl+N9z++0k34ELIhAr0Nox/KCUP5bzIwW/WaKC7X/HMArZIrYeM7Lol2 boLgod1xAMLboMngNYXZYNagdbCUHAYn5fs88fWtS8pI1veJ+aRQXccKsubLGaDVc+7W yfuzzawa5OC0YniNJGOlnArsCjUYo3B613Kwx2HahDg8fEhGF5liGL03lhQzBPvPWtc/ nGMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=tkk2Ni6/yhyMeaZGa7IIqv+Yfz58c68ZVLrD2RbHJZ4=; fh=6+4MLuH3iWFDUXzXaa2J7scSd8flRmlWdLI8iFczCK8=; b=KHq/gBkEchpwnAvJB0yFU201FpuKe2H8maGfabxTXKfwhNMXNuZ0mWyg5jOcya6SK2 7cepATE3GUBOPevZcroUK+HEjda+yPNbvkIE9hiSjXlQHhrz5AiW8pDxww4tEXZYRQro ZMzifvMxqgDeJ2p7fg8co4emDaKr0SFT3450FOkbWU2ItDwCplzUARwBDHL2+t+hvrYd teA0VJ7aLK/FGcRj9Y6AFl6ntuISsz+LXJ/aIPdCRqKY91s/hQP3vLEg/CqQBarsT9NR mYSl8z3GvRK44L9XbD3rP6VwzInI2KolCkYbJ548dXPGPmspJPt5jbNz4lNwFAeAOO8r o4HQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lAwWueSj; 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-82578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l13-20020a170906a40d00b00a42f7594cf5si284676ejz.120.2024.02.26.18.12.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:12:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lAwWueSj; 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-82578-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82578-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 856051F236AE for ; Tue, 27 Feb 2024 02:12:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAF6BFBEA; Tue, 27 Feb 2024 02:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lAwWueSj" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (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 634BBEAF6 for ; Tue, 27 Feb 2024 02:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999933; cv=none; b=FqSJmf2lyfWb94kBwIhvH3/TgAjaDTxxq8XqGDuLNtSTHWSBbssKP1oGCRUBv+hNmJtM13hHRCaPBD3S1v6nDDeWtinKYcPuFP5xtUOqD/jWw14Jmqc/gOxkJhEarW1tR/crUTMXKnaIu0Fk7UGua1t+n3xXLLzApoETR1j0cwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999933; c=relaxed/simple; bh=Z56/LI8VZmdz98CuUjLKRxqM+/e9GrRj/1Z7Ht5aUfw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=k1tOAXWQ/ZMssrvw+u4XqHzz8m0b/bBMrvRy3EHnsv+XFFTNeikAcWffEmuMcX0MAGCta1Euntt///mHHK3LUSmzswtjXVUV5EXRumAyGRbv/v2OJlYZBIv5IzsREoypFltL+/NuSLHfBwkcW7bt90eCFxGuHART0scMYXlHNQk= 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=lAwWueSj; arc=none smtp.client-ip=209.85.219.174 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-yb1-f174.google.com with SMTP id 3f1490d57ef6-dc745927098so3553102276.3 for ; Mon, 26 Feb 2024 18:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708999930; x=1709604730; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tkk2Ni6/yhyMeaZGa7IIqv+Yfz58c68ZVLrD2RbHJZ4=; b=lAwWueSjV4zfBBmTtNJxigVRZQ+zhyUyZvljhuzxtHCNg/vfHzo2m6gKWLG0THEA8W Kh8Sl5OVoPOcHbiae2DMkkmWL/G7efTrOJkH0yg2YO8bCItELs4e4WG6CPcqmBODBUGp 7wX3V0t+jkyYsCcpO6qxCShm4Dz+SjzArJ46rsWDCuEiPpYbjpnbwgryfNMiju9DNuFx J6Vvucq1r7nlOvR4jATY+3gzXQXPNG8c709UBhkyFHlo1o7HWX+/TLwBx61z9Mjhoxjw pa7muU7hrNQEpckhdeYvy3XNB5t63nusm4WVctz2egTxZDEcHb/5UPIKF2MjGejB0qnk F3YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708999930; x=1709604730; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tkk2Ni6/yhyMeaZGa7IIqv+Yfz58c68ZVLrD2RbHJZ4=; b=C3u/1LFeuo2w5MEFxM7/CVzW8pOqeEpF9O4GJAYQy5uecrQ9+OAlExc6kDeHxOAXoG YVir8gtslyLzqwLuxjsyXcotwZzX40n2w+Qg3JRm3pR4B08fFd5HgrLQSL5YG1vuSqYf LHoFS0YcP4XzuGbn30NOogvQ6xlY4Fp8DJeS37NHbQcFq4urBCfzhJpKwgD5uo5Azg+G NxYLmxBbndFuZoB5HZaDHUYthrbmV7c2o+EKjQjX+n7IvKpAEoJyhjCfPo+A6Myh62/p pd/dbuCsz3CdkvlcGURk/+zHxdu8lNMFaEoJoCnjifEingYTJk0Fk7dV1HH9O4zi0IZr zXow== X-Forwarded-Encrypted: i=1; AJvYcCVZNn2aEkbEr0l45ZRBGxpKEwL+q7R9vSzHYDPshrjiPc+frT1+CS4g/ITqPRHo0uC2fpmzvdZB2VK/TCpQRi4EXkYBtIoBDkCT4rs3 X-Gm-Message-State: AOJu0YwUySduh8a6N7/vWBj+6tLzTlYimo5ALi/epyGVItjoANlZO1KO jxoKBCt6WRgT8gJAYwxzm58rNWBw2Az3slrcNsPLGkKSFFpttJ9zIhRzQW7Oqxnny4jbKjIyR5L lzjbqQzdNKj/l6YbY5YZpFdJJZzZFLE/0Dkm6YQ== X-Received: by 2002:a25:9a05:0:b0:dcd:5635:5c11 with SMTP id x5-20020a259a05000000b00dcd56355c11mr940809ybn.45.1708999930374; Mon, 26 Feb 2024 18:12:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> In-Reply-To: <20240226-rpmhpd-enable-corner-fix-v1-1-68c004cec48c@quicinc.com> From: Dmitry Baryshkov Date: Tue, 27 Feb 2024 04:11:59 +0200 Message-ID: Subject: Re: [PATCH] pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation To: quic_bjorande@quicinc.com Cc: Bjorn Andersson , Konrad Dybcio , Ulf Hansson , Stephen Boyd , Johan Hovold , 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" On Tue, 27 Feb 2024 at 03:45, 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. > --- > drivers/pmdomain/qcom/rpmhpd.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Dmitry Baryshkov Tested-by: Dmitry Baryshkov Probably once this lands we can drop explicit required-opps properties. -- With best wishes Dmitry