From nobody Fri Nov 12 13:56:35 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 15C7018542E2 for ; Fri, 12 Nov 2021 13:56:39 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HrKrP6fHLz3QWS for ; Fri, 12 Nov 2021 13:56:37 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B0AD15C01C7 for ; Fri, 12 Nov 2021 08:56:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 12 Nov 2021 08:56:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:mime-version:content-type; s= fm1; bh=2aORR8Wj2MXZRgqo0vzHOSNApYC3lBKTVM/2Koez1DI=; b=pEsL7q6e W8VV+3zDY0vTuzvdXXkoKP2HnfBufsjqSHdxclMR0z7yvyEKwazPh8cbnIOtVlhP FGvFHRUByDvwt5NWwPWzvYETa1aHhDluodNbNMtTNzH2Ct9cfEb4UEoSR1lwYJki K6uCtwPPnDlLzZdQLsqH5N2wZyLiAYxyo+6Nhp/VG03ybHsmLi5robWjW/JS2KR+ oRP3WzJvXr2ZGJO/eJtjOj1Oan1RAVwJZrQnnd4Z7aHHfG2nytu+wBEvj6Kp6e7o n6IWgxDdXZuDPI9J/x4TMG7DH1fzAJR80J1m0dXoGQE6IdAUCvAujX/ngGbmb0Ke rT12PC2/uSrgcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=2aORR8Wj2MXZRgqo0vzHOSNApYC3l BKTVM/2Koez1DI=; b=h9OljMEEgWhKkWBPnyptXMus93xLlCT8SMeWMpXMCFN3Y hiOnnde00ANE6WyEd0gS1ONq8+S02mp4QszbDxedU4FM7hvFVeNZTYOsYeKHsf5p MWY0TbpJUFOrxYoZm32BIHHSMYZPZKCpb/jC8wmKwKOaSNOuN5SNFs2MrkPcDANy os52FSLpnaO0/yXHpfDkKhKopq7iAGD28sGgknNHWNmr3SN+1x5QCbCNcGA+1J+2 k3h8rTZ1EQlxYEY7iu7ZPCZXDSjDlVGe2g/b3zIdyGrJ+M7mH0cDJvlt+e2qVbII WTJmG5l0hExoEsHbYRQ99LMg5oAxf8LuQYa41UTUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrvdefgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehgtderredttd dvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshesiiihgihs thdrnhgvtheqnecuggftrfgrthhtvghrnhephefgtdfgudeltdduhffgvdejgfelleejtd egudeludffgfdttdfggfejffeifeevnecuffhomhgrihhnpegtohhrvghtvghmphdruggv lhhtrgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe htvggthhdqlhhishhtshesiiihgihsthdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 12 Nov 2021 08:56:37 -0500 (EST) Date: Fri, 12 Nov 2021 13:56:35 +0000 From: tech-lists To: freebsd-hackers@freebsd.org Subject: why does clocked speed show up on arm64 but not on amd64? Message-ID: Mail-Followup-To: freebsd-hackers@freebsd.org List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QJmlYWQanP4FlhYA" Content-Disposition: inline X-Rspamd-Queue-Id: 4HrKrP6fHLz3QWS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm1 header.b=pEsL7q6e; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=h9OljMEE; dmarc=none; spf=none (mx1.freebsd.org: domain of tech-lists@zyxst.net has no SPF policy when checking 66.111.4.25) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm1,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[zyxst.net]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; NEURAL_SPAM_SHORT(1.00)[1.000]; R_SPF_NA(0.00)[no SPF record] X-ThisMailContainsUnwantedMimeParts: N --QJmlYWQanP4FlhYA Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, WHy does the clocked speed *not* show up on intel hardware in sysctl dev.cpu ? It shows up in arm64 (ARM Cortex-A72) intel: % dmesg | grep 42 FreeBSD clang version 12.0.1 (git@github.com:llvm/llvm-project.git llvmorg-12.0.1-0-gfed41342a82f) CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4251.32-MHz K8-class CPU) ^^^^^^^^^^^ shows in dmesg as above, but not in the dev.cpu sysctl % sysctl dev.cpu.0 | less dev.cpu.0.cx_method: C1/hlt dev.cpu.0.cx_usage_counters: 1096037 dev.cpu.0.cx_usage: 100.00% last 4436us dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_supported: C1/1/0 dev.cpu.0.freq_levels: 3400/84000 3200/77169 3100/73848 2900/67388 2700/61182 2500/55201 2400/52298 2200/46677 2000/41272 1800/36091 1700/34277 1500/29407 1300/24752 1100/20312 1000/18167 800/14031 dev.cpu.0.freq: 3400 dev.cpu.0.temperature: 43.0C dev.cpu.0.coretemp.throttle_log: 0 dev.cpu.0.coretemp.tjmax: 100.0C dev.cpu.0.coretemp.resolution: 1 dev.cpu.0.coretemp.delta: 57 dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=3Dnone _UID=3D0 _CID=3Dnone dev.cpu.0.%location: handle=3D\_PR_.CPU0 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU But on the raspberry pi 4, the overclock shows in the sysctl *only* % sysctl dev.cpu.0 dev.cpu.0.temperature: 49.1C dev.cpu.0.freq_levels: 2100/-1 600/-1 dev.cpu.0.freq: 2100 dev.cpu.0.%parent: cpulist0 dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a72 dev.cpu.0.%location:=20 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: Open Firmware CPU why the difference? The only place I'm expecting the overclock to not be present would be on the rpi4, in its dmesg because u-boot hands off to the OS, and maybe the cpu speed is missed in the handover. However, I *am* able to see it here, on intel: hw.clockrate: 4251 machdep.tsc_freq: 4251320612 but i'm puzzled why on intel it's not in dev.cpu.0.freq The rpi4 doesn't have these two oids thanks, --=20 J. --QJmlYWQanP4FlhYA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmGOcooACgkQs8o7QhFz NAUt5g/7BnOmebnEcar41HzpZ/cDAFDPpyS9ui5yqZ64Muxt9kOQXCCifzirVzEM +d63GEtWzUktTGgMGxC3zLUx+9DJRZlIH0+9wH1NO7KxdmgO98Sm8aqMQ6IJojAj iPWgUS/HqtGmHvQ73mHf3d1B7fC/1+jp7F9kGMvmOLXqBC83t5v4VS/qW6iHTNDn htuamDSscU6zZ5TzRK7VdEf7VxuKg3XNaTLM5m7fgFQf63VKefBttTpr0HqnS7Yo thAkPpr9GL6lCqnbqy6CKuAPyXSBxAveZx+1LTQeKOnJg9O8RUCzr8bOsekPm+B6 +cf5gCjBqxNDne3Z+DyhrUtUyUF1OcGQI/4GPlkHK9/ajIe4UTsTC0sGl8orQWnB 1pPkBYrU6vPa1isb8LcR3Qu+FpXv4A+nZmYKl72qz4+BRb7b+kzqcUepRfWVE8JX t+r2UlL0ZayZX0Opsky3BOZe8QnY4MvZccl32AbyzrhOFFaAQ2uY2IACXCWvZh0v q6aRkZHUhPR/HpdjLzWWCk6dylR4HW/szEJJcqv5srPXE1kFQWpYZK6zeypIAZpM a5hAPrsDVeUCQ8lzaiueSDcp93EowpTiQ8RlhfIpnaTo1Q8LW8NsnP5vZs+bY3no U7ClhRtyy+NEbbckoFRcMCmhCkRRlP9gYxONq8Kg84ZIJnaEl6g= =tBOr -----END PGP SIGNATURE----- --QJmlYWQanP4FlhYA--