Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1021649rdd; Wed, 10 Jan 2024 06:31:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6Tu/zL0pO2YK865Ys2vOq1vSM8cq1knAvOYsdyP8Rc6LG+4VCU1FZ/RmomIJ7p9lwIsBE X-Received: by 2002:a50:aacb:0:b0:557:553f:9ad5 with SMTP id r11-20020a50aacb000000b00557553f9ad5mr567088edc.35.1704897102059; Wed, 10 Jan 2024 06:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704897102; cv=none; d=google.com; s=arc-20160816; b=dVRqge1ZKZdYlXd3ZZwQ26o8/0aV/LkXFOmb+jOwDTvsEsnUh+68skZcsSuwRt/wae rArzUezrV6fh5kSlSn4o1cv5yckMGX7FQU4BYyqVYD2VgSSlBbiRKDxsziLoeAZlYDLG bndremmbjLGz2fKVXy1fcAh53yteIY1PA02YvKzPrK/12bTLUG4u9UI9yDkOTqKSsKOn L6f9A9p4F31y9WzGTR/WyoVs8h0E40JU8YCsq3v3WIXW2wMtTY3lAl353M9S2pB/vwW9 M7R7A1MXhjKew9utfmBVBSA5ZmXlTbd8uIgfwv2u2TxPrdfNL+Pf526ZlKco7eBxYvMf trvg== ARC-Message-Signature: i=1; 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=JCgRgohghaIuzxU15lQv+DUCl1G/JFrp85MtXKRoklg=; fh=dE3WeArb7p1Z9lj6bETmSH8eTPR3i3WOdkACkqYKSsw=; b=cTlJiD7sLxrFodMslYvEUCBm2Y+5YQaveu1fkQ9AJScsFiblG94JDgruq4XZwlwyTB gY1KFYX7A6qua8XGCaDz2b+tNMIWDrJl2qox/YwH1/SC7+7+tI1XOG4A7o1+ECScrOgI w5dry64zO2gFip8Gp2qCo6FSn6uybV+N324NTyVy96G0XiGKxcOKiQjQzIrLywJT53LP mIczsDVNXn0r05Eh4X4oiTSNCRRY78Os6L41PVU4QEANo3KZfBnsulABVMnyFsO0MN+E AB9qE1zr3GCKQrq9R8ZZWLjLBlSIIZ5ePq2vP9SkvHRQrRwSNs4MGoCB82VArU6MDVuI gPBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ypZPRcPB; spf=pass (google.com: domain of linux-kernel+bounces-22360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x6-20020a50ba86000000b0055825d60eb5si1155871ede.183.2024.01.10.06.31.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:31:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22360-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=@collabora.com header.s=mail header.b=ypZPRcPB; spf=pass (google.com: domain of linux-kernel+bounces-22360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 CE91D1F22467 for ; Wed, 10 Jan 2024 14:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 564C84B5B7; Wed, 10 Jan 2024 14:31:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ypZPRcPB" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F455ECF; Wed, 10 Jan 2024 14:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704897089; bh=6HC5IEm/hZtyU1ep9WTyrEat/6wqniqFyQTDH7oldac=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ypZPRcPBiCi4FSvhHWtelzW8Iqz7OsmAJXu7A0010JJ6IC4YdDDrk+fNTpFydaGFE t7EA2TpIdOCMnxk3osEoWznAWmWcBV+Xi7sNtEHM8A4HMYJaEx7VXKITOhb2HbbCFm /SwMxRVHlH5Nvh522RlG2QPrORYNanGU4a0JB6tKL6waTNC1LzLagthUKmWLKTvgLR FNiNbH3NLNegRyTmigohyJidyWD8io6G4Wb30VopiBFdSyy5ePtoLkVWQPtMm7TKOM EkdQcebT70VhD9Y3/0G/U6sMgTaNkqe6E5hN/Rov4hGt6WNQIMKPfkWhtrZOkvoCnK X0pZ5H1nHU7FQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 8C1ED378045F; Wed, 10 Jan 2024 14:31:28 +0000 (UTC) Message-ID: <54f3facf-375d-4d23-9003-5ffbda2284dc@collabora.com> Date: Wed, 10 Jan 2024 15:31:27 +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 v2 2/2] cpufreq: mediatek-hw: Wait for CPU supplies before probing Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Viresh Kumar , "Rafael J . Wysocki" , Matthias Brugger Cc: kernel@collabora.com, "Hector.Yuan" , Liam Girdwood , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org References: <20240110142305.755367-1-nfraprado@collabora.com> <20240110142305.755367-3-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240110142305.755367-3-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 10/01/24 15:23, NĂ­colas F. R. A. Prado ha scritto: > Before proceeding with the probe and enabling frequency scaling for the > CPUs, make sure that all supplies feeding the CPUs have probed. > > This fixes an issue observed on MT8195-Tomato where if the > mediatek-cpufreq-hw driver enabled the hardware (by writing to > REG_FREQ_ENABLE) before the SPMI controller driver (spmi-mtk-pmif), > behind which lies the big CPU supply, probed the platform would hang > shortly after with "rcu: INFO: rcu_preempt detected stalls on > CPUs/tasks" being printed in the log. > > Fixes: 4855e26bcf4d ("cpufreq: mediatek-hw: Add support for CPUFREQ HW") > Signed-off-by: NĂ­colas F. R. A. Prado > Reviewed-by: AngeloGioacchino Del Regno