Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp285218rdb; Mon, 22 Jan 2024 22:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyE8iXCiJLlExOOwePYKjj1mPe702Qqmm2LqEiC9+fSAnHDk19dV6M2rk0QYlFCMVAp/N5 X-Received: by 2002:a17:906:d146:b0:a2e:b015:edea with SMTP id br6-20020a170906d14600b00a2eb015edeamr4833580ejb.53.1705990206093; Mon, 22 Jan 2024 22:10:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705990206; cv=pass; d=google.com; s=arc-20160816; b=q1v6FudW2dB0REgV7qQsx7r/4y1yTmmVdGCm0MSh90wMpp4a45dqQLeFG68NO6Aduj DzfB3saBkt7USlJi7DXrBvIXFjfDwGF/2nLzP/FoRIVN0vI8cm22XOEKenCH1oBCLPnU F8Nxhh2oaljNAyYX5T1Hwbfx1jttbSmpQLFZdyZI8F9+r38UH6NeKZNPAUKrxQaAiUlO /vyqRvIN0UU7RY50lefglJzlmC1im6PG9xYLKtsBilosUYIXYXo9JgsHPc/54fuiNZ4N YDfy0Z/bV1Cj1yxICASCrY+ywZVqrxx4pOytKN4oxCANyBfp2Jodhmb1iRHP6E9HbI/i ePow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gH5uJ9kMxbNgHS2YfX23GkOHBxHF1R2S8Ddt4Z+/Q6A=; fh=2nvM3QINr58GQFiMnj2DK27DOXxqIhMrWOtVBPLl8nE=; b=LLZm0Lp8z4mL6z+zTQgghoIkiUqLa61+NIvC8VSyf8k49s5xYUL7IuLefI5+IISTxD Qriv2IShwmNEqDSJ8De7L2fuvn9wZHW550N3QbNuzQT80PYhtqpM1Dc6NwT6w4sbR3jd +8QAbBzjdcPfC8WUdSc1hWsoOFZ4XFdN6ZdBGfaHibSMlEe/Yjc5IsmG+vqYSXpkb5If ZbgWMN6FKqJO6Sugo4nj/3Dxdc4+jowdMX+BSXiU7ByKuQ5DEEV4lHQhKtWjhmkUvn/s 4QGV9K71gOGzWbtpoyZR3Zfgw9xFQFbDWvt4/y4jUoKukeTY86ayhct38P4rwQtmxH+u 0qdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cNRO6RFu; 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-34753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34753-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 oy4-20020a170907104400b00a2c174b283bsi11318135ejb.406.2024.01.22.22.10.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 22:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34753-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=cNRO6RFu; 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-34753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34753-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 D5C081F24106 for ; Tue, 23 Jan 2024 06:10:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D036B4F20D; Tue, 23 Jan 2024 06:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cNRO6RFu" Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.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 9113F4EB55 for ; Tue, 23 Jan 2024 06:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705990197; cv=none; b=OMxA2OiHOT/iNXtShW5oUK8KvXQbbFdfVHs0yWM6QfUaT4eyiIDBpK+X4POnvXJWtdEny/jnsAOf7TrxYXnflJcFTRmY/FrE40FJJV1EKwB9sDNfS+uKmmfPYexflR9yY1l7ADL+O8i8msMxlgQ0uh85tmETBz+b4bK6xrMp9zY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705990197; c=relaxed/simple; bh=fICYgU/e513dmMdbagqrvMAVnM53SUgfbQwsBjy+Yos=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l9Q/CLA0vA/znZIPMElZxoEWv7MykCoC8bzDL5/mZE2Z8cqiI81gcV6Lu6sM96NiN9rzCQCvHLXOkGGc0v8jrMl/AIv/K6wUfaDCstXqAlr5WDs7BzOW/jIJ/cNoIosMtJz89U50SsDxQ1yVyigO3+KpsEgRDUoF8Hy3uQ6aka4= 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=cNRO6RFu; arc=none smtp.client-ip=209.85.210.53 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-ot1-f53.google.com with SMTP id 46e09a7af769-6dde1f23060so2510625a34.2 for ; Mon, 22 Jan 2024 22:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705990194; x=1706594994; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=gH5uJ9kMxbNgHS2YfX23GkOHBxHF1R2S8Ddt4Z+/Q6A=; b=cNRO6RFujdUoG9tD0smiK15hLZ5J3zS5hkUPx9zzpf2ZLUiRvk8qTCUFzU7dWDuAhT 3a3ovEpoYJ9/AlNO6b3XBxm37W3zlMQqFV9HKMhMsx9Gx4S+SPgTeL9J+ADGdm0e++fV YzQRt/q7J3eb5GPwkYaK+dYlf5QiAr3WxSIL4ddFa80sBHuuqYuXpzkjHLcIUfuCMsb3 EZ5/TqaQ4li3PZ51ZrMs5Vu8gjw7YQBd+kQrL60NYmDFG1z6idhYHtKz5zJnMEk0W1Ye /nxGUKaLWvvo9ZckZMx1WZ9vX2TudRik1KfnLMcSGUiZq+QUczLKQ+qjyj4EyZXkuA7E Kstw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705990194; x=1706594994; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gH5uJ9kMxbNgHS2YfX23GkOHBxHF1R2S8Ddt4Z+/Q6A=; b=mZHu90Fnr5QmotCpQ6z4H+d68/Y/3KBtunTLFLMlj2tOol+6enEd0ND7w2gcJLj1Kd 7DR2/XlW+rB4uMAvi60JrBXXDci3qAIOf4E6dVBhxrunB7HI1KYWiupaUGDuXq5JchU8 SKtIZ1fmvF/h0qFN5Tm8CSeYD8Bpkg4aSVopYKO0Lo4rqTGC1GhrVx9LdH8oMroKV6sj 9H6Vz6OHv/djQTOiQcEWC8/zqDwvxyZXQhUObHOUn52upYKmXILa7FKcO8YLcpRxz+Gs sfRman/68uV5n0YuQeM39avt2A/uzJxkUVScY6BdR+144iV+FZWdKgrPQeWFHEWJXkIT goUg== X-Gm-Message-State: AOJu0Yyxji9jj2Pbqpm0Ww/KUPG7u6If4oCexIwQwhbBalxoVoCOV6xQ ZZulvUeYzBGKnHYslLUyqSgNzt5a1UUUwTbBt53ojfCktdMK0Mp++g/IVsJNjtI= X-Received: by 2002:a05:6358:281a:b0:174:f664:e477 with SMTP id k26-20020a056358281a00b00174f664e477mr5037598rwb.60.1705990194606; Mon, 22 Jan 2024 22:09:54 -0800 (PST) Received: from localhost ([122.172.81.83]) by smtp.gmail.com with ESMTPSA id s4-20020a62e704000000b006dbd59c126fsm4198271pfh.11.2024.01.22.22.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 22:09:53 -0800 (PST) Date: Tue, 23 Jan 2024 11:39:51 +0530 From: Viresh Kumar To: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado Cc: "Rafael J . Wysocki" , AngeloGioacchino Del Regno , Matthias Brugger , 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 Subject: Re: [PATCH v2 2/2] cpufreq: mediatek-hw: Wait for CPU supplies before probing Message-ID: <20240123060951.2m6h6t537bu27ois@vireshk-i7> References: <20240110142305.755367-1-nfraprado@collabora.com> <20240110142305.755367-3-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240110142305.755367-3-nfraprado@collabora.com> On 10-01-24, 11:23, N?colas F. R. A. Prado wrote: > 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 Applied 2/2. Thanks. -- viresh