From owner-freebsd-hackers@freebsd.org Wed Sep 5 16:09:52 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1193CFF52C0 for ; Wed, 5 Sep 2018 16:09:52 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B7ED8812E; Wed, 5 Sep 2018 16:09:51 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f50.google.com with SMTP id h20-v6so10150193itf.2; Wed, 05 Sep 2018 09:09:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=Nwhpo+nqiiyr06yyqXPTT+6PXOUC/3GMDwZKeOrH1WY=; b=Y2IuO1ZhzTIDoHCFZgf8c9e0XC6tNXxm//FJIyyVUIqU/KKyKOKO/j0DuKD5NezyVy Pk8ollMWtpb0mkA+4isrR8dhOaaEwlDWSifzzlU8R4vQh3rn6uWE211h404MPpp/2w5T /Sm9z/oF9MEz9vOxcrQWWOgyVEmEpLjovXZ+4yfebl9/dQRdBpQZjLQqtgk6voCsSJgI 5OVSlH2JCE+5SHNaLK0dDW837633sAl1D+tLS7RALFpdTHR1sIB4LsVbZ62CAl82PViw PvzK798P3BPeUniMA4oSU3ypdYgxKGhMRGgdTCaEzcvacRIzUWpWiILhKRqKaf+TEvbo ugJw== X-Gm-Message-State: APzg51AXiwNAj20LSig5/t6AVfnZbcKsT5m1C4eFWi6UpkNRsuwD0Q0P anL0X0SZ6g39P4fqpAhPdxiPem43 X-Google-Smtp-Source: ANB0Vdat2LJcgfTzuOV+AqMa5xqzNmJPVWktJ/GSM1thnS23ijz1aVJOZdUjhj/+qWlyXV0laNf3Iw== X-Received: by 2002:a24:d0d7:: with SMTP id m206-v6mr925194itg.127.1536163301705; Wed, 05 Sep 2018 09:01:41 -0700 (PDT) Received: from mail-io0-f170.google.com (mail-io0-f170.google.com. [209.85.223.170]) by smtp.gmail.com with ESMTPSA id q190-v6sm1189220itc.7.2018.09.05.09.01.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 09:01:41 -0700 (PDT) Received: by mail-io0-f170.google.com with SMTP id n18-v6so6376989ioa.9; Wed, 05 Sep 2018 09:01:41 -0700 (PDT) X-Received: by 2002:a6b:9e55:: with SMTP id h82-v6mr25922614ioe.220.1536163301370; Wed, 05 Sep 2018 09:01:41 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:9542:0:0:0:0:0 with HTTP; Wed, 5 Sep 2018 09:01:40 -0700 (PDT) In-Reply-To: <3516c619-c50a-18c6-9bdd-0e6cad751e30@FreeBSD.org> References: <201809051253.w85CrAX3022473@slippy.cwsent.com> <0770c5f2-a5d9-4cd4-1421-72006465ffba@FreeBSD.org> <3516c619-c50a-18c6-9bdd-0e6cad751e30@FreeBSD.org> From: Conrad Meyer Date: Wed, 5 Sep 2018 09:01:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Celeron J3160 with enabled Turbo mode stays at 480MHz (lowestsetting) forever and can not lower frequency without Tuebo mode To: Lev Serebryakov Cc: "D. Ebdrup" , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2018 16:09:52 -0000 On Wed, Sep 5, 2018 at 7:49 AM, Lev Serebryakov wrote: > On 05.09.2018 16:57, D. Ebdrup wrote: >> A new port called sysutils/turbostat can report actual turboboost >> values for Intel CPUs. >> >> Unfortunately, I didn't have much luck looking for documentation that >> covers how this can be added to FreeBSD base (preferably exposed via a >> sysctl), but I suspect it would involve both machine-dependent and >> machine-independent parts since both AMD, as well as ARM and other >> architectures use some form of equivalent functionality. > > It should become part of cpufreq(8) for sure. It doesn't make sense as part of cpufreq(8) for two reasons: First and foremost, it is GPL2 software. Secondly, it is extremely machine-dependent software. It is x86-specific and has a lot of different code to handle each microarchitecture from Nehalem through Skylake. It would be one thing if this was a small table, but it is 5000 lines of code. Best, Conrad