From nobody Fri Nov 12 14:19:53 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 5C68D1839AA4 for ; Fri, 12 Nov 2021 14:20:06 +0000 (UTC) (envelope-from dmilith@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HrLMT55zVz3q3S for ; Fri, 12 Nov 2021 14:20:05 +0000 (UTC) (envelope-from dmilith@gmail.com) Received: by mail-qv1-xf30.google.com with SMTP id a24so6340049qvb.5 for ; Fri, 12 Nov 2021 06:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=VZW7UWeKqVEcVDcCzcOU0+y5NzerzMuE241DbLyQbMU=; b=EypVGLMO+4lfFuYv/ibEbYOIhN+o3TTY+agdqcdk460EdGv3t2TGdh7Tazqroy4Z1K y0il0IonkqrxwbVJGpIHz3NxiqbdGpzhXpvOQJryXo5+oXJdne7g8cXUOujps7JishTo qUoZl+L0jKVnajfjYJUthgi/UfHOTPBC6/yLJmjtGyV0y7eryV+KtqIYP7T3sjefDS8J ovJ6nYrKOuJdujWu4R0JGzuGlRZAiWCUvFlVn0O4ye/fvIjRpQhy3DXypuNylO9nBTAD QfMaQnx7h0EhLul1dWIvHTg4B+IluBjtRajXvqtsw7cH1X8st0d1e+asWWuliCMDTZZH 4t8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=VZW7UWeKqVEcVDcCzcOU0+y5NzerzMuE241DbLyQbMU=; b=FF1Tu7mym2r9VycQY0GpQ62+6SyUDIh3VD2kngOku9cQu3KiuxrBPGbUxETBsvLf1H JpjRwr86wpama5TCHJqsiqAVSeD9/ri4zcrYbaLEYIprNEMXjuCofUCsUhrTY/m62lr/ 7XQ7F0Fi+61J7BW+/BdHovEJLcZV6DOwP3EjfDg39MfiIwuUu1frKa3iNZEnNp9/DSAg +3foXa+6DoBBfvDsEs4unsriWoeD66g3848GdJE3pn1L4lFwa9VYzU9AFF8C/erShQ/a ElZwgroFz/wWHB/ngCZxj/jWO7BZbqecGaPh6vWqCHqMFDtMK1qY7ltux65GDR+/VCJo YY+A== X-Gm-Message-State: AOAM5337LEyt90pYFC96OMPPJzY3EOHT2JWurEE7Hc7vKKdqy5FJ1B6x zsMhWwlpt7kH32IhufZbkM+zTvhOxq3XCeC21D7ZEAG7 X-Google-Smtp-Source: ABdhPJzkcaR8fP6SOKiv+ADIk8cos5Qymx0ZlHWOThNVhrgnA5kPBvXgCIFfu2pv03kc099lcxJyy/KGS3/ksIGMeEQ= X-Received: by 2002:a0c:e58d:: with SMTP id t13mr14801034qvm.7.1636726805060; Fri, 12 Nov 2021 06:20:05 -0800 (PST) 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 References: In-Reply-To: From: "dmilith ." Date: Fri, 12 Nov 2021 15:19:53 +0100 Message-ID: Subject: Re: why does clocked speed show up on arm64 but not on amd64? To: freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000cf5f9605d0982796" X-Rspamd-Queue-Id: 4HrLMT55zVz3q3S X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=EypVGLMO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dmilith@gmail.com designates 2607:f8b0:4864:20::f30 as permitted sender) smtp.mailfrom=dmilith@gmail.com X-Spamd-Result: default: False [-0.17 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.17)[-0.171]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; 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)[-0.997]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.0.0:email]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: Y --000000000000cf5f9605d0982796 Content-Type: text/plain; charset="UTF-8" Are you sure you did `kldload cpufreq` for your Intel machine? On Fri, 12 Nov 2021 at 14:58, tech-lists wrote: > 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=none _UID=0 _CID=none > dev.cpu.0.%location: handle=\_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=cpu@0 compat=arm,cortex-a72 > dev.cpu.0.%location: > 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, > -- > J. > -- Daniel Dettlaff Versatile Knowledge Systems verknowsys.com --000000000000cf5f9605d0982796--