Message ID | 20240110142305.755367-1-nfraprado@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-22351-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp825107dyi; Wed, 10 Jan 2024 06:25:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCHEjW3WCGePEOZoRX/eoooobIUJ0f2BXj8Wa/L9YSRed6gaO41p9LeeJmwimyG8YTYj8G X-Received: by 2002:a17:907:7d89:b0:a28:7265:5915 with SMTP id oz9-20020a1709077d8900b00a2872655915mr187456ejc.20.1704896736978; Wed, 10 Jan 2024 06:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704896736; cv=none; d=google.com; s=arc-20160816; b=X3RZgy8K4Pm4UWMmYtVa+n0X0oPBQ7bigC/qf6xDiCP2ACbGVrcuklIwnUGiY5eMbK 5UH1DJf6dBvh5o612lz3dR8jip045ZOvWzJozWA2ECRfdQRASnNRCXD5R1t1BpsaZfh2 gHzPLi3G+gCPUiReSVjlhqxGPkCoXiQfjvJRX7o6uLz5ZYXUVFHgnPMaSk3ebiDrLH85 wwjCGI9FjYqATyhNID6sByBIZ+syeJhd6nW/6aDuxgt2RHuk6qqeAW8vLrzyMAhrN8+S QGc464J/uwx592dDqFaCLlUo+fcXxemg7YsafCJlhiDQN2Z5/dKGcW23KcfjvqS/OpEH kq3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=bENDPfHqd20Jam1npGGs351jrK6EIWZ3CcF1UU31Ixk=; fh=FHik+s1R04crvXef8z2fah/dgWbQTtZ5U2xtwWn3YV0=; b=j6kRyMaXnlpYkOfyb7IwW/+GJtSanBvMLoKsXU/Pr1uyP+8k4ZvPUI4/faVsTGMmFd PAKmVMqljpDI9Mp2eAJeIMQVm3XOkE8YCrvwe/5LljS4wY/MAKhMa8XFPXJZd4fceYlc 5R7hQwdUAXdfytniblaTX+/ZMflbyeN5arWVe/9NR6GSc6C5vq1IsbTHTpHsFs1N+WoH MKipL++7jNlse+vyON82pNK8lttwFCrwMn1YZbZQQ1CAASnvFJAjbbFcIIuDlrGv0ay8 6OC0mpTSmDBgO18/s9C2GJQaCYnWzmf7nDlfLkCdFF+DZQEM9pWqRHwwcwUu1eFSPuVC y2+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="D5B/bia0"; spf=pass (google.com: domain of linux-kernel+bounces-22351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m22-20020a170906235600b00a2887c40860si1786759eja.64.2024.01.10.06.25.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 06:25:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22351-ouuuleilei=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="D5B/bia0"; spf=pass (google.com: domain of linux-kernel+bounces-22351-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22351-ouuuleilei=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 996551F29EB6 for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 14:25:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BDA24B5B9; Wed, 10 Jan 2024 14:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="D5B/bia0" 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 73F3E4A99C; Wed, 10 Jan 2024 14:25:16 +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=1704896714; bh=vwOsYK81Kz7ekPSjYz//FcETzOWODCjxJchEEfAb39s=; h=From:To:Cc:Subject:Date:From; b=D5B/bia0HVVwkZiV0SO4gzRNmHqonfK01qPchiAJpbfX5nI7JJQ2tgcRNDUrM/Pu1 wI2R0GxMa3nTsiPNsLq5dej97eMn+I9kcFXWTLHm76Rdmftx5E3BGVm74V5aha/+50 AvmIL7SjElDBUEitXy4RYk3t4Bn0W1y5T5I2gdUFnQZkvCYNtoDA9fAnQnHwGRmO8m lRl3FSYNYRzHpVcofQRSgoYrYpJmP/pvlAToPIDaEeUZG80EgFeHX+lqVGoN4TlsiE ZceLgY4fZxZCdA166gNLRIKjECmYdTiEh9H3R3kHnAIiaWPebjTu8xYV7zkeNESp6d kenMdZhU4HUug== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D94AE378045F; Wed, 10 Jan 2024 14:25:08 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> To: Viresh Kumar <viresh.kumar@linaro.org>, "Rafael J . Wysocki" <rafael@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Matthias Brugger <matthias.bgg@gmail.com> Cc: kernel@collabora.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com>, Conor Dooley <conor+dt@kernel.org>, "Hector.Yuan" <hector.yuan@mediatek.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH v2 0/2] Fixes for hang on MT8195-Tomato during mediatek-cpufreq-hw init Date: Wed, 10 Jan 2024 11:23:00 -0300 Message-ID: <20240110142305.755367-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787713801002104504 X-GMAIL-MSGID: 1787713801002104504 |
Series |
Fixes for hang on MT8195-Tomato during mediatek-cpufreq-hw init
|
|
Message
NĂcolas F. R. A. Prado
Jan. 10, 2024, 2:23 p.m. UTC
These two patches fix 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. Changes in v2: - Moved supply phandles to CPU nodes in DT - Added fixes tags - Added patch to verify CPU supplies are available before proceeding in the mediatek-cpufreq-hw driver NĂcolas F. R. A. Prado (2): arm64: dts: mediatek: cherry: Describe CPU supplies cpufreq: mediatek-hw: Wait for CPU supplies before probing .../boot/dts/mediatek/mt8195-cherry.dtsi | 32 +++++++++++++++++++ drivers/cpufreq/mediatek-cpufreq-hw.c | 19 ++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-)