From owner-svn-src-head@freebsd.org Thu Dec 7 22:23:37 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6699AE92E36; Thu, 7 Dec 2017 22:23:37 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E5BA779529; Thu, 7 Dec 2017 22:23:36 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f52.google.com with SMTP id x204so9852733lfa.11; Thu, 07 Dec 2017 14:23:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kb6sPzfybx4WaT8wWgvTLpwxYZs703K1kyj3y6A2w+c=; b=SwLfW8O2Nvb9kY+4nHdoNkpMmKOzurTsd99B86x/kfaj96LuLSXxMJTvYKsHr53IzX N3+ipUVPT4VKoIgPNlXuJJ7F4Vlak6pGeYk3ZY/Sgk7psE3bSCcrDCPZ1aTNK2HfO+6x fm3k5Mm7SLARBzkq8Aw4cSoec8xyZieQK4uyQT1Zm7Hc26uQuisM8vBoerfdCbiyWasf Vzw5WhpFUrzqpuh32l5W8rRpXzqn1KhxlWZrT2LSrOoY0IaLEyzIcVKtHl0Wl9c1ViEF dQS4G2FmWr/jZKa1MMAgG/vEN83u7QcVYDfISdZDTQ6KNB/nmVmBddW5YmCeGG5qbBgk /CvA== X-Gm-Message-State: AJaThX4QEBKQDm1pDBG4XZo3UDvoNVhYn8GXo/sp3CuoEbgseYNWnTLg DRMkepu0LsAHi4MnIBdTs3GgIFxXNCE= X-Google-Smtp-Source: AGs4zMZOu9LF+eVcXh0V1jXXSWkQECtS4gYN0VTmtOnCunpCQuLXpaAq4jWN2DoRBcJyz3RkxIhfjg== X-Received: by 10.25.81.65 with SMTP id f62mr12618508lfb.148.1512685408327; Thu, 07 Dec 2017 14:23:28 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id f99sm1166487lfi.77.2017.12.07.14.23.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 14:23:27 -0800 (PST) Subject: Re: svn commit: r326383 - head/sys/x86/cpufreq To: Alexey Dokuchaev , Jung-uk Kim Cc: cem@freebsd.org, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers References: <201711300140.vAU1e7dC001292@repo.freebsd.org> <20171207100345.GA59559@FreeBSD.org> From: Andriy Gapon Message-ID: Date: Fri, 8 Dec 2017 00:23:25 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171207100345.GA59559@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 22:23:37 -0000 On 07/12/2017 12:03, Alexey Dokuchaev wrote: > On Thu, Nov 30, 2017 at 03:08:49PM -0500, Jung-uk Kim wrote: >> ... >> Probably. However, I am just trying to fix my FX-8350 and A10-6800 and >> I don't have Zen processors to verify the MSRs are actually working on >> those CPUs. > > Ah, that's so lovely, thanks Jung-uk; I feel that our support for AMD > fam. 15h CPUs is lacking. E.g. only four P-states are reported for my > A8-5550M, while it supports boosted P-states per BKDG, and reading MSRs > directly via `sysutils/amdmsrtweaker' reports eight of them (P0 .. P7), > with three turbo P-states P0 P1 P2. > > Since you have A10-6800 you might try to reproduce what I see here with > A8-5550M. I think that the boosted states are supposed to be hidden from the OS. It may be possible to query them though hardware specific registers, but they can not be set by software directly anyway. My impression is that the proper way to observe the boost states is via APERF / MPERF MSRs. They are useful for other things, e.g. C0 residency, too. P.S. i7z-like utility for AMD would be nice to have. -- Andriy Gapon