From nobody Tue Dec 2 00:26:29 2025 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 CFF8F3195E0 for ; Tue, 25 Nov 2025 12:06:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764072382; cv=none; b=frQWZluVpAme6zBwrz8yev6w1WM6ZUcuWJ1e5tFGpSyNTrZCbjdvVBEySNWTB038Dq5hWkGg5haPR3TvXK571zir0Idhu9Cl3RlqpxkJUqu0SvrZtveO2m7D4jkayoMc5l+7MjV8yb2+kMIoN9ld4VQZVnwqDxKoLeCWNJuxLV4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764072382; c=relaxed/simple; bh=oSxMov1SESrAgpKKZcLn4WtxFn0hZta8BIUSnqu+iNo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dstdwal63XO1voV9T3esX6+H7BV+TRCv/RBolCxu/vAPjT3E+pL/iy+ZZjCXWWFgjw8t/79cpDu5I1CZjjPeNcWRsOArl348YPVY6ydPgs+JROnOqJvwl2SENhv/deOMHKHn61+AKxow2t8J92/GgFE1fGcpmca/7O5eg04zduE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=k1czExDw; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k1czExDw" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5957ac0efc2so5692219e87.1 for ; Tue, 25 Nov 2025 04:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764072379; x=1764677179; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MQgVO7SUdIDltP6h5MVysIssYHMNX5v/mXvkkoKdSwQ=; b=k1czExDwJZmYSaGUoDNF3wafP+LkiTmWpEq3eJgODWVtvNp97tx3MXr8Dw5vf6OFSl bHyItokgSY/CTT4BbDg/x6WQJD2cZRKZWdCWHtpNLdIkQVYNFCoSbiw08KVPOkXOwthW xMBtUwy9U0m27G8BDMqRKnz/Dp4HLQR9iiGMDOeW5mRkUNoqoZlRH+ss8SFEPMtUlX01 nkfe7MivbEsRLI8qUDPeMP+zCB8ORUVtmo9aHOZYoj+U1Z1LJER2HSOonSCzChJvR17u wI2RD7lIOB9XB5QJciVWKRyxxM2stn6KGi68VTBIvJ6qYUt8tqgSjUreKp1qYxpOM1hP yfIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764072379; x=1764677179; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MQgVO7SUdIDltP6h5MVysIssYHMNX5v/mXvkkoKdSwQ=; b=wB+xALCNvWj7VTqqoFWnt3NqKFCpipoHCAbiye3E40GoaL4iG6UZjLP+a5whXNUei6 xrd1A/wV5i61iZ8yMBjx1Krnf8PLnK0sSKK5WiELi1/DFaVXV2+adYg7T/Ibj6XEj2aZ VretpYkdtJsE/xZuCpRwFC5fApdlMxKNT38H73op8rh/ZMVqqysrYhcIj47cHYg3eUIy YLwFpnYs6OadjBZYzGVZZRA+3d8xFXmr0+VdPTuPPpPv2lt63U+YtW/124Pb/gDI+c5a HvA+kWv50wY7zfe7XWOunZkjR91RjXQ0nqshjCNhJR0s+JNpacbo7ERKWhmfvQwHf+yQ wtxQ== X-Gm-Message-State: AOJu0Yw80jWew60u8ROV3VwGNKpCj8HgF1UKZ8AsabSgEACVAuv75g2H CLZP83SWNn30M0TKSADyVVx3kQdVljsM+q/5Gh1//4vJYFmtAdBNnjt6 X-Gm-Gg: ASbGncvrxJYUyjOLDS/1jTREc5ZDtWHqYL1UuY+NbC+1z9dR2sTIhLDau5oIjaMTaRs iUaftMC/750ugu1wCtvpRTLa7/SXKdlERuJOotGjuTg8veW0pcXY9ez+9dO8LoPB2oxkgIcZMgk jXP9sRSy8YSul1rd1zVn6C0T13BnxH5ijD2yo+T3JgHKizhmOjqbG+7Ljk7n8s4ROLKDhdgQBI9 ar2iTd4nd/RYXhYVABXXTcElsZXRde2DXjj+x1iGP4Eswx3Mo6GNLDo5cxxm3AGCnUz1ZtFIaSp FkHKTxeFL4njG7uapjU2JP1kTbiy0cIuUCyvB728bmMrkpkbuoWiWq4BTABfAyYx5Gh5odxeBSv /+y2GCgM/Q8HWlig7mtdrfPypzrVjKEjtEYmYbXD9xdhsRSwfq/e5IcXcVNeoJgBVNdUxxuwh6W s= X-Google-Smtp-Source: AGHT+IGtM1PyFoR4RY0zhjHY2chTLDIVD6KPz0Yfdd6DO6DZabktBNfX2NguAOJht6zWvGQbtOixQg== X-Received: by 2002:a05:6512:234a:b0:594:48e6:26b8 with SMTP id 2adb3069b0e04-596a3edd5e8mr4793046e87.39.1764072378784; Tue, 25 Nov 2025 04:06:18 -0800 (PST) Received: from xeon ([188.163.112.74]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5969dbbecb9sm5150993e87.58.2025.11.25.04.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 04:06:18 -0800 (PST) From: Svyatoslav Ryhel To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Thierry Reding , Thierry Reding , Jonathan Hunter , Prashant Gaikwad , Mikko Perttunen , Michael Turquette , Stephen Boyd , Dmitry Osipenko , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Svyatoslav Ryhel Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v4 01/12] devfreq: tegra30-devfreq: add support for Tegra114 Date: Tue, 25 Nov 2025 14:05:48 +0200 Message-ID: <20251125120559.158860-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251125120559.158860-1-clamor95@gmail.com> References: <20251125120559.158860-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Lets add Tegra114 support to activity monitor device as a preparation to upcoming EMC controller support. Signed-off-by: Svyatoslav Ryhel --- drivers/devfreq/tegra30-devfreq.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-de= vfreq.c index 8ea5b482bfb3..fa83480a923f 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -963,16 +963,22 @@ static int tegra_devfreq_probe(struct platform_device= *pdev) return 0; } =20 +/* + * The activity counter is incremented every 256 memory transactions. Howe= ver, + * the number of clock cycles required for each transaction varies across + * different SoC generations. For instance, a single transaction takes 2 E= MC + * clocks on Tegra30, 1 EMC clock on Tegra114, and 4 EMC clocks on Tegra12= 4. + */ static const struct tegra_devfreq_soc_data tegra124_soc =3D { .configs =3D tegra124_device_configs, - - /* - * Activity counter is incremented every 256 memory transactions, - * and each transaction takes 4 EMC clocks. - */ .count_weight =3D 4 * 256, }; =20 +static const struct tegra_devfreq_soc_data tegra114_soc =3D { + .configs =3D tegra124_device_configs, + .count_weight =3D 256, +}; + static const struct tegra_devfreq_soc_data tegra30_soc =3D { .configs =3D tegra30_device_configs, .count_weight =3D 2 * 256, @@ -980,6 +986,7 @@ static const struct tegra_devfreq_soc_data tegra30_soc = =3D { =20 static const struct of_device_id tegra_devfreq_of_match[] =3D { { .compatible =3D "nvidia,tegra30-actmon", .data =3D &tegra30_soc, }, + { .compatible =3D "nvidia,tegra114-actmon", .data =3D &tegra114_soc, }, { .compatible =3D "nvidia,tegra124-actmon", .data =3D &tegra124_soc, }, { }, }; --=20 2.51.0