From owner-freebsd-hardware@freebsd.org Mon Oct 9 22:00:12 2017 Return-Path: Delivered-To: freebsd-hardware@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 684D4E3D346; Mon, 9 Oct 2017 22:00:12 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (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 24757819EB; Mon, 9 Oct 2017 22:00:12 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-vk0-x235.google.com with SMTP id q80so1491585vka.7; Mon, 09 Oct 2017 15:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=IAuxZTrA0qDAUpr1dmoTt4nLPnweB+JcAe6cqfN5C50=; b=hocv10mrtBgAHMGV2/2I0gg5JsPoMcy2vnMr31cQ3j0ZZ0NJHBGb9O0AZCYZ4mevJr kjahJma3PUSAsJUcD/+/x85xsiQdXBmk3wHec6t3NgZ2GvpV2CCQx2RS5geyfCfpZpou TChnzLJdOADP02MS/90JUmYZg2Wy+UINT4Z5dunI9fs6HkdDvU5Q/9FCNekDNSNqzOJZ mAHnDtBqu7ftq3lXQy4YHdoFOls4P/FDo5b8o09I6C0Pyhq947nzPtz3wJmrajjQaizj rdY3XdEEyQ6Mpd2hvFcvCj2GeM3ABqAFjc28EDPdwWtYv1xT2V0xqje8zncJ1jUXuVuu 1vxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=IAuxZTrA0qDAUpr1dmoTt4nLPnweB+JcAe6cqfN5C50=; b=dQuv2ua4s0MwwWZ2VcfXWFsvJ7Av7Uyi/JAtamUeHQQZnhO3ZeOhcw0bT2m0gh+deP DbMhuSyBeMdmtF3KrRuyQz37UpgKzTCwC+30H67LTT7NLqJMWJYA4Zj9ElwemP6rArLy d7LxFg2uD1maPt9XXfX8gz9DChi2fsoEtMV82bdSLm7YCLSi2bkfq0njrnZA5fDfK8F/ pVekQ9F+QKj4BscG4JmFzHSfULR7o2G7zNwlk5tjhcVqJO53uOuW4Qr9R5FqKeUa9K1/ nwQ3cy2dQ1cM/VtsjQcuwS6h/I9d2WsFjjYPoeFjdR+fLzVergD35MU2pFl2AHRMXHPt cEQA== X-Gm-Message-State: AMCzsaXHaS/Xkj671DtrSSoqBfG7Xt+q0yRekhQKMnCH9VytDbR4n9S0 w05Ps9QWCHjN+IL2KsXjvUlf2MmrR1idV1OYXIrrCQ== X-Google-Smtp-Source: AOwi7QD9kItVVQtRs1ptJK/wwl9p1HoJHByK4fRl4h4lkAQIDbNWlWUmCalz5OG7qPXuGYkQhZR3PjaMLTjgQQibZ5w= X-Received: by 10.31.166.66 with SMTP id p63mr5217131vke.42.1507586410764; Mon, 09 Oct 2017 15:00:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.50.129 with HTTP; Mon, 9 Oct 2017 14:59:30 -0700 (PDT) From: grarpamp Date: Mon, 9 Oct 2017 17:59:30 -0400 Message-ID: Subject: Power9 Inexpensive Development Testbed To: freebsd-hardware@freebsd.org Cc: freebsd-questions@freebsd.org, info@freebsdfoundation.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 22:00:12 -0000 With Power8 aging and Power9 shipping... Consider picking up a couple of these to support the development of getting FreeBSD going on the bare iron without hypervisor. FreeBSD being a member already, good support for this effort should be available from the OpenPOWER Foundation / IBM. They seem to want to make Power9 and beyond happen in a big way. Linux also has support for Power9. A barebones selfbuilt machine for the dev cluster would cost about $3200-$3500, and/or donation could be solicited from OpenPOWER Foundation. https://raptorcs.com/TALOSII/ https://raptorcs.com/content/base/faq.html https://github.com/open-power https://github.com/openbmc https://wikipedia.org/wiki/POWER9 https://www.nextplatform.com/?s=power9 https://openpowerfoundation.org/ Just an FYI for those unfamiliar, including potential users. This thread could be updated to list other Power9 hardware sources as they become known by the FreeBSD community. From owner-freebsd-hardware@freebsd.org Fri Oct 13 12:43:51 2017 Return-Path: Delivered-To: freebsd-hardware@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 3107BE47312; Fri, 13 Oct 2017 12:43:51 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 039A035F7; Fri, 13 Oct 2017 12:43:50 +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 BEB1720CA5; Fri, 13 Oct 2017 08:37:23 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 13 Oct 2017 08:37:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h=cc :content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=6M25tJwUzaUgYOk4s Vz+WEg3fVGeWb29X53rsczLN3o=; b=SZDlGLkWwte1J+m+p98CMjsOKjF7jUgF8 C/pX6I9gBEW4fiMfIeEMqsinYyyHp5szslvjFVbtlfK4TsxmHUVP/41ekyVryUSw GWyhEaRRMWrc3NqtGfhUvIJqTB3hyVXAh2M117DdQovYXYtBuywG6KOGSHU5YaAY 00K+tdr8TSThAnaZiyI3hJwzC84vm4M9aVxKWCjwYKdc1Kol9ro0xzDvy/GN9VKC wo3n51X/hQGum9S72wvnLdvQvUPqz5nUsEoZPkqXhInyZ0uSt94WVTABCKD/Bvrd L41ayar60SBmW33K5QxWu5wZ8b9+1PcK4gefE918TUpj3/fgesw4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=6M25tJwUzaUgYOk4sVz+WEg3fVGeWb29X53rsczLN3o=; b=JSx2aViU gLTXL+0lJLqwl8LTr2YGzS/nEsEjcpcyNXdHSVMYR9JIU0Csdn1llwnBVuAJ8Ql5 +VT5ofjdPEJADdxB9k6Wu/f+CqCKVJ3/SgImCfgsUA86scO0TJpXDG8RYvdTKK67 boK+a0j4/x+nqj5j0v08i1A6lK08lCNvCZL91iMSY9GSJPqn6cogmOmDYFls25gO sRohVZta+VN2jzh/FtkLgg7jBpd30J9bZ2m/wvEoZgjP9Sa9s/jbxJnnDI0M873l bboOBTcfeB1fS1QS0EZLybQ4AnrefKR6OxCjN66/cIyHttQU5PIGUL7fuhSxExS1 LRzSEUsvKoykDw== X-ME-Sender: Received: from acer.zyxst.net (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 22F6E7F966; Fri, 13 Oct 2017 08:37:23 -0400 (EDT) Date: Fri, 13 Oct 2017 13:37:21 +0100 From: tech-lists To: freebsd-hardware@freebsd.org Cc: freebsd-mobile@freebsd.org Subject: problems getting AMD C-70 APU working with powerd/cpufreq Message-ID: <20171013123721.GA27736@acer.zyxst.net> Mail-Followup-To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 12:43:51 -0000 Hi, I have a netbook with amd c-70 cpu and am trying to get powerd to work with it. Will this chip not work with cpufreq/powerd? system: FreeBSD 11.1-STABLE #0 r324342 # sysctl debug.cpufreq.verbose=1 debug.cpufreq.verbose: 0 -> 1 # kldload cpufreq # # powerd -vv powerd: no cpufreq(4) support -- aborting: No such file or directory # sysctl -a | grep cpu kern.smp.cpus: 2 kern.smp.maxcpus: 256 kern.ccpu: 0 0, 1 0 1 kern.sched.cpusetsize: 32 kern.pin_pcpu_swi: 0 kern.racct.pcpu_threshold: 1 cpu HAMMER kern.vt.splash_cpu_duration: 10 kern.vt.splash_cpu_style: 2 kern.vt.splash_ncpu: 0 kern.vt.splash_cpu: 0 vfs.ncpurgeminvnodes: 256 net.inet.tcp.per_cpu_timers: 0 debug.cpufreq.verbose: 1 debug.cpufreq.lowest: 0 debug.acpi.cpu_unordered: 0 hw.ncpu: 2 hw.acpi.cpu.cx_lowest: C2 dev.acpi_perf.1.%parent: cpu1 dev.acpi_perf.0.%parent: cpu0 dev.cpu.1.cx_method: C1/hlt C2/io dev.cpu.1.cx_usage_counters: 237351 1893186 dev.cpu.1.cx_usage: 11.14% 88.85% last 156us dev.cpu.1.cx_lowest: C2 dev.cpu.1.cx_supported: C1/1/0 C2/2/100 dev.cpu.1.temperature: 65.6C dev.cpu.1.%parent: acpi0 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%location: handle=\_PR_.C001 dev.cpu.1.%driver: cpu dev.cpu.1.%desc: ACPI CPU dev.cpu.0.cx_method: C1/hlt C2/io dev.cpu.0.cx_usage_counters: 368369 2358900 dev.cpu.0.cx_usage: 13.50% 86.49% last 13us dev.cpu.0.cx_lowest: C2 dev.cpu.0.cx_supported: C1/1/0 C2/2/100 dev.cpu.0.temperature: 65.6C dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%location: handle=\_PR_.C000 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.%parent: security.jail.param.cpuset.id: 0 cpuid output: https://www.zyxst.net/txt/amd-c70-netbook/20171011-cpuid-c70.txt dmidecode output: https://www.zyxst.net/txt/amd-c70-netbook/20171011-dmidecode-c70.txt detailed dmesg: https://www.zyxst.net/txt/amd-c70-netbook/20171011-2.detailed-dmesg.txt many thanks, -- J. From owner-freebsd-hardware@freebsd.org Sat Oct 14 01:50:55 2017 Return-Path: Delivered-To: freebsd-hardware@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 874F0E34827; Sat, 14 Oct 2017 01:50:55 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ua0-x242.google.com (mail-ua0-x242.google.com [IPv6:2607:f8b0:400c:c08::242]) (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 477F781B71; Sat, 14 Oct 2017 01:50:55 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-ua0-x242.google.com with SMTP id s41so6448755uab.10; Fri, 13 Oct 2017 18:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3rlXma3ZwBMFSoOR5TTiOnZPidAOhB9tJ+FPyeAyXFQ=; b=fr0C/hNRNWEQW1RU6h7LD0R6uT3llP8Wy9Tpu0Oh9PdursOxT4uo1xeKtXNm/co1xx 7A0Mvu0NQBAFTNqIOW35nQNVsVj9G88fPddlT/gnXIECvBsjo2adKDGuR3oXaYVkHbjz 6sSAOLY/mCTcso8iM+4ONWgqtmUxWJSxy1HzKZjDC/DD6d7ergEYWtSfldPx8hrdULR+ DP0C4AyaXKl4KnBwMV9/wHijsg0U1vz9iluEi67kT2Pu64EJTonIp9lC06eAeARJ2ld1 H/eOdUA6syNdV0p7Y/J/l1xxXL4OO3JlxKfJBlZMtsGkBo73oSRB5PmD+x6sgt/D5wsx 7eZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3rlXma3ZwBMFSoOR5TTiOnZPidAOhB9tJ+FPyeAyXFQ=; b=edGtfLpK4991C2KLABOe+WwwUBAFaY+B2ZXtfuFlE0ubD9hF8h5K6Jy6t/sfEX2fph AJL4+uKnZOLeqpI6fNwweBgOKwfJCJma99EMPpvzqilXs1pSexysqU19qSSqU5KxD786 XIYhNZZjhSL/T/Hfmbt0wHqZ4hJYsz1Fa/TpoeDWGoi15JQwkgRZiNfSaXjwRcmJ2wK/ pZpYelVDrhqkrC7PGWfs4CVUDTGtx829DBQA62cmvdWK0nXCm5C2ao+Mw3bRtsvXHayR rVBbfYDshgYOF6T6yHRfw/F8x2Mry2fs/H1CwYuRd2OE2gb0jtkOM00Cl3aGP1YvmnkF k0Ag== X-Gm-Message-State: AMCzsaXUoc1D8YNL2my5Vv3h98e9jdLTNCFUW+VxxmNdWGE1d4nXI9Ox LJk0x4xuHk26VLe3OtsrcVGCYW6Lotnh7Wm+LEZgQA== X-Google-Smtp-Source: AOwi7QBi2etPYGXUWLktm2EaxQ5mJD4Hkqcg24ZeeF0xdLJtWzL3Jf2RgbW+lNRSOLYU9J3DGTJe4S6Vzf4SC4oxN4E= X-Received: by 10.176.75.195 with SMTP id b3mr2628042uag.51.1507945853438; Fri, 13 Oct 2017 18:50:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.50.129 with HTTP; Fri, 13 Oct 2017 18:50:13 -0700 (PDT) In-Reply-To: References: From: grarpamp Date: Fri, 13 Oct 2017 21:50:13 -0400 Message-ID: Subject: Re: Power9 Inexpensive Development Testbed To: freebsd-hardware@freebsd.org Cc: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org, freebsd-arch@freebsd.org, freebsd-performance@freebsd.org, info@freebsdfoundation.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2017 01:50:55 -0000 On Mon, Oct 9, 2017 at 5:59 PM, grarpamp wrote: > With Power8 aging and Power9 shipping... Consider picking up a > couple of these to support the development of getting FreeBSD going > on the bare iron without hypervisor. FreeBSD being a member already, > good support for this effort should be available from the OpenPOWER > Foundation / IBM. They seem to want to make Power9 and beyond happen > in a big way. Linux also has support for Power9. > > A barebones selfbuilt machine for the dev cluster would cost about > $3200-$3500, and/or donation could be solicited from OpenPOWER > Foundation. > > https://raptorcs.com/TALOSII/ > https://raptorcs.com/content/base/faq.html > https://github.com/open-power > https://github.com/openbmc > https://wikipedia.org/wiki/POWER9 > https://openpowerfoundation.org/ > > Just an FYI for those unfamiliar, including potential users. > > This thread could be updated to list other Power9 > hardware sources as they become known by > the FreeBSD community. Adding some more "official" links about this CPU and platform for anyone interested. Some of them may refer to Power8, which can be viewed as carrying over plus better to Power9. The Open Power Foundation / IBM full release, marketing, and public availability of Power9 seems to be set for 2018q1. So expect more vendors and so forth at that time. *** Note that this platform apparently does not have any closed source firmware / microcode or BIOS blobs. That means no Intel AMT / ME, no AMD PSP, etc. Programming documentation should be available. And seems to perform competetively on a number of fronts / tasking. *** https://www.crowdsupply.com/raptor-computing-systems/talos-secure-workstation https://www.raptorengineering.com/TALOS/op_qemu_gl.php https://www.raptorengineering.com/content/base/canary.htm https://secure.raptorcs.com/blog/08212017001.php https://social.raptorengineering.io/main/public https://www.reddit.com/user/madscientist159 https://twitter.com/RaptorEng https://twitter.com/RaptorCompSys https://www.reddit.com/user/stwcx https://wikipedia.org/wiki/OpenPOWER_Foundation https://www.ibm.com/power/operating-systems/linux https://www.ibm.com/Search/?q=power9 https://twitter.com/ibmpowerlinux http://tyan.com/campaign/OpenPOWER/ http://www.fsf.org/resources/hw/endorsement/respects-your-freedom https://www.fsf.org/blogs/licensing/only-a-short-time-left-to-pre-order-the-talos-ii-pre-orders-end-september-15th You can search some third party sites for performance, news, and reviews. Search on "openpower" or "power9". https://twitter.com/search?q=power9 https://www.nextplatform.com/?s=power9 https://www.servethehome.com/?s=openpower https://www.anandtech.com/SearchResults?q=openpower http://www.storagereview.com/search/node/openpower https://hn.algolia.com/?query=power9&sort=byDate&prefix&page=0&dateRange=all&type=story Some articles that have appeared... https://www.nextplatform.com/2016/04/06/inside-future-google-rackspace-power9-system/ https://www.nextplatform.com/2017/09/19/power9-rollout-begins-summit-sierra/ https://blog.rackspace.com/the-latest-zaius-barreleye-g2-open-compute-openpower-server https://www.enterprisetech.com/2014/07/15/open-sourced-bios-helps-power8-compete-x86/ http://www.theplatform.net/2015/03/23/inside-the-rackspace-openpower-megaserver/ https://news.ycombinator.com/item?id=12351319 https://news.ycombinator.com/item?id=14956257 https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.8-More-POWER9 https://www.phoronix.com/scan.php?page=news_item&px=Power-Changes-Linux-4.12 https://www.phoronix.com/scan.php?page=news_item&px=Raptor-Talos-2-Teaser https://www.phoronix.com/scan.php?page=news_item&px=Talos-2-POWER9-Pre-Order https://www.phoronix.com/scan.php?page=news_item&px=Talos-2-FSF-RYF-Possible FreeBSD status... https://wiki.freebsd.org/POWER8 https://www.freebsdnews.com/2015/03/04/freebsd-power8-its-alive-2/ https://svnweb.freebsd.org/base?view=revision&revision=279189 https://www.freebsd.org/news/status/report-2015-01-2015-03.html#FreeBSD-on-POWER8 https://reviews.freebsd.org/search/query/oIdoWWKTe71p/ Sorry don't know which list is best, perhaps hardware@? Anyway, happy hacking :) From owner-freebsd-hardware@freebsd.org Sat Oct 14 03:49:45 2017 Return-Path: Delivered-To: freebsd-hardware@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 6679AE3A35C; Sat, 14 Oct 2017 03:49:45 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [192.108.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.soaustin.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 448E616B6; Sat, 14 Oct 2017 03:49:44 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from lonesome.com (bones.soaustin.net [192.108.105.22]) by mail.soaustin.net (Postfix) with ESMTPSA id 4791ABFC; Fri, 13 Oct 2017 22:49:38 -0500 (CDT) Date: Fri, 13 Oct 2017 22:49:37 -0500 From: Mark Linimon To: grarpamp Cc: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org, freebsd-performance@freebsd.org, info@freebsdfoundation.org, freebsd-questions@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Power9 Inexpensive Development Testbed Message-ID: <20171014034936.GA18066@lonesome.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2017 03:49:45 -0000 A few of us FreeBSD/powerpc64 fans are watching the developments closely. mcl From owner-freebsd-hardware@freebsd.org Sat Oct 14 11:36:14 2017 Return-Path: Delivered-To: freebsd-hardware@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 C5905E45871; Sat, 14 Oct 2017 11:36:14 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 371BA6DBE2; Sat, 14 Oct 2017 11:36:13 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id v9EBa26m035868; Sat, 14 Oct 2017 22:36:02 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 14 Oct 2017 22:36:02 +1100 (EST) From: Ian Smith To: tech-lists cc: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: problems getting AMD C-70 APU working with powerd/cpufreq In-Reply-To: <20171013123721.GA27736@acer.zyxst.net> Message-ID: <20171014215317.K34192@sola.nimnet.asn.au> References: <20171013123721.GA27736@acer.zyxst.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2017 11:36:14 -0000 On Fri, 13 Oct 2017 13:37:21 +0100, tech-lists wrote: > Hi, > > I have a netbook with amd c-70 cpu and am trying to get powerd > to work with it. Will this chip not work with cpufreq/powerd? Perhaps not. > system: FreeBSD 11.1-STABLE #0 r324342 > > # sysctl debug.cpufreq.verbose=1 > debug.cpufreq.verbose: 0 -> 1 This shows that cpufreq was alreasy loaded. It's in the GENERIC kernel. Have a good browse through cpufreq(4). > # kldload cpufreq > # Hmm, no message. When I do that (albeit verbose boot enabled) on 9.3: kldload: can't load cpufreq: module already loaded or in kernel > # powerd -vv > powerd: no cpufreq(4) support -- aborting: No such file or directory > > # sysctl -a | grep cpu > > kern.smp.cpus: 2 > kern.smp.maxcpus: 256 > kern.ccpu: 0 > 0, 1 > 0 > 1 > kern.sched.cpusetsize: 32 > kern.pin_pcpu_swi: 0 > kern.racct.pcpu_threshold: 1 > cpu HAMMER > kern.vt.splash_cpu_duration: 10 > kern.vt.splash_cpu_style: 2 > kern.vt.splash_ncpu: 0 > kern.vt.splash_cpu: 0 > vfs.ncpurgeminvnodes: 256 > net.inet.tcp.per_cpu_timers: 0 > debug.cpufreq.verbose: 1 > debug.cpufreq.lowest: 0 > debug.acpi.cpu_unordered: 0 > hw.ncpu: 2 > hw.acpi.cpu.cx_lowest: C2 > dev.acpi_perf.1.%parent: cpu1 > dev.acpi_perf.0.%parent: cpu0 These are interesting. In cpufreq(4) you'll see acpi_perf is one of the absolute frequency control drivers, presumably used (see also in dmesg) because the expected driver for AMD processors, powernow, did not attach - though your verbose dmesg shows nothing about any failure/s to attach. > dev.cpu.1.cx_method: C1/hlt C2/io > dev.cpu.1.cx_usage_counters: 237351 1893186 > dev.cpu.1.cx_usage: 11.14% 88.85% last 156us > dev.cpu.1.cx_lowest: C2 At least you're getting plentiful use of C2 state, though I'm not aware how much power saving that might buy you on that AMD CPU. > dev.cpu.1.cx_supported: C1/1/0 C2/2/100 > dev.cpu.1.temperature: 65.6C > dev.cpu.1.%parent: acpi0 > dev.cpu.1.%pnpinfo: _HID=none _UID=0 > dev.cpu.1.%location: handle=\_PR_.C001 > dev.cpu.1.%driver: cpu > dev.cpu.1.%desc: ACPI CPU > dev.cpu.0.cx_method: C1/hlt C2/io > dev.cpu.0.cx_usage_counters: 368369 2358900 > dev.cpu.0.cx_usage: 13.50% 86.49% last 13us > dev.cpu.0.cx_lowest: C2 Ditto. > dev.cpu.0.cx_supported: C1/1/0 C2/2/100 > dev.cpu.0.temperature: 65.6C > dev.cpu.0.%parent: acpi0 > dev.cpu.0.%pnpinfo: _HID=none _UID=0 > dev.cpu.0.%location: handle=\_PR_.C000 > dev.cpu.0.%driver: cpu > dev.cpu.0.%desc: ACPI CPU So, there's no dev.cpu.0.freq nor dev.cpu.0.freq_levels - therefore powerd has nothing to work with. Its (misleading?) message doesn't mean cpufreq not loaded, but that the sysctls powerd relies upon don't exist. > cpuid output: > https://www.zyxst.net/txt/amd-c70-netbook/20171011-cpuid-c70.txt > dmidecode output: > https://www.zyxst.net/txt/amd-c70-netbook/20171011-dmidecode-c70.txt > detailed dmesg: > https://www.zyxst.net/txt/amd-c70-netbook/20171011-2.detailed-dmesg.txt Nothing in any of those suggests that this cpu has any other frequency available than 1000MHz, which seems quite bizarre to me. Of course it's possible FreeBSD hasn't been taught to recognise this particular cpu. You haven't disabled anything in $BIOS related to power or freq control? The cpuid output has a heading "Advanced Power Management Feature Flags" near the bottom, but none are shown. Hope someone else has something more useful to offer, and thanks for mailing me those files when my browser was deemed too old for your site. cheers, Ian From owner-freebsd-hardware@freebsd.org Sat Oct 14 21:26:06 2017 Return-Path: Delivered-To: freebsd-hardware@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 EF350E2CFAD; Sat, 14 Oct 2017 21:26:06 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3F2980DB3; Sat, 14 Oct 2017 21:26:06 +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 5DC83205E8; Sat, 14 Oct 2017 17:26:05 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 14 Oct 2017 17:26:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=5k3X3KFtP6Oso7QvuFNVqEMsLblvmt8IZDZnQOVONM8=; b=nl5SWWoo 9yqnAeG5PTC1TzkljmkQM73TzOtZA4WevBIE6ZyzmaJ5nLv7yFP9VVcTIXbl1ZVV yxi+AJ4hqaxDK8uHfH/+aYk3QtUgUAeslZw41cSPKJgfuU/ebX35SzB3om9c6ol6 fUzWm4BV4MweAHQWBt0/vsoZ/PVNpTC5CAF7DKxMMxijZewAtj2D2RF3QvQfe/8p M5foBG1pAkEORXDZJSbhzeXYyJcwf1a3DMKzLsCGJwT8uto0wcrlEIA3BMOrD5fT xvEkmdoTKYwFUaKnfKYXO2MYX4ek/i1u/FfWbZj5vHroCSXesu4keTtvy3Ga1fgD p4PbiaUyulVHqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=5k3X3KFtP6Oso7QvuFNVqEMsLblvm t8IZDZnQOVONM8=; b=miBt8iNpmVbA6nGDYaymkkm0W0cEKHmd12/WqG4M2Lpgp xmAWSfFgjiqZ5Yct6/hRYRoXOqL9ebVa2H2n0kTXSVjFVlMdH2+0DEUwxwcT3Att K8Hgy0suplsnXoAd9fI2p5NH5OFAG31Q10lIQVMzZZQ9VqApFe2hj4ruulMKy9Sn PxBCtJhov6xSfPTq5yXM3aPICVVvQw2OaNG9nMB1hQVrhzWc3kA0LuxZWnY6eca8 +W9WQwR+ua2H45B6cQOJ4E39xu0rq2gJDORVLQig1tTaOWb1qG+ovWcGLi+CAGE8 sfYDkxkS1pxINB+zkwZE9HIQ3JwrockZUFOU5ZD6w== X-ME-Sender: Received: from acer.zyxst.net (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id AABC4249CD; Sat, 14 Oct 2017 17:26:04 -0400 (EDT) Date: Sat, 14 Oct 2017 22:26:02 +0100 From: tech-lists To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: problems getting AMD C-70 APU working with powerd/cpufreq Message-ID: <20171014212602.GB92751@acer.zyxst.net> Mail-Followup-To: freebsd-hardware@freebsd.org, freebsd-mobile@freebsd.org References: <20171013123721.GA27736@acer.zyxst.net> <20171014215317.K34192@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20171014215317.K34192@sola.nimnet.asn.au> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Oct 2017 21:26:07 -0000 Hi, thanks for taking the time to look at this, On Sat, Oct 14, 2017 at 10:36:02PM +1100, Ian Smith wrote: >On Fri, 13 Oct 2017 13:37:21 +0100, tech-lists wrote: > > Hi, > > > > I have a netbook with amd c-70 cpu and am trying to get powerd > > to work with it. Will this chip not work with cpufreq/powerd? > >Perhaps not. oh well!! > > > system: FreeBSD 11.1-STABLE #0 r324342 > > > > # sysctl debug.cpufreq.verbose=1 > > debug.cpufreq.verbose: 0 -> 1 > >This shows that cpufreq was alreasy loaded. It's in the GENERIC kernel. >Have a good browse through cpufreq(4). I can't comment about earlier versions of FreeBSD, but this sysctl is present on 11.1-stable without cpufreq loaded. I'm using a modified kernel - modified to the extent that superfluous stuff has been removed, because this machine is hardware-challenged. Without cpufreq loaded, the following sysctls are present: # sysctl -a | grep cpufreq debug.cpufreq.verbose: 0 debug.cpufreq.lowest: 0 # uname -i ACER # cat /sys/amd64/conf/ACER |grep cpufreq # # cat /boot/loader.conf amdtemp_load="YES" # I've known this machine has had issues with cpufreq for a while, but this is the first time I've sat down to try work out why. This is one of the reasons why cpufreq isn't in my kernel. which is why I was able to > > # kldload cpufreq > > # no message (I set debug.cpufreq.verbose to 1 in order to hopefully see more output) > > dev.acpi_perf.1.%parent: cpu1 > > dev.acpi_perf.0.%parent: cpu0 > >These are interesting. In cpufreq(4) you'll see acpi_perf is one of the >absolute frequency control drivers, presumably used (see also in dmesg) >because the expected driver for AMD processors, powernow, did not attach >- though your verbose dmesg shows nothing about any failure/s to attach. > > > dev.cpu.1.cx_method: C1/hlt C2/io > > dev.cpu.1.cx_usage_counters: 237351 1893186 > > dev.cpu.1.cx_usage: 11.14% 88.85% last 156us > > dev.cpu.1.cx_lowest: C2 > >At least you're getting plentiful use of C2 state, though I'm not aware >how much power saving that might buy you on that AMD CPU. Not a lot! ;) One of the reasons I'm interested in powerd/cpufreq is that I beleive it can make turbo kick in. Apparently this chip has a turbo mode @1.333GHz. might be wrong about that though. >So, there's no dev.cpu.0.freq nor dev.cpu.0.freq_levels - therefore >powerd has nothing to work with. Its (misleading?) message doesn't mean >cpufreq not loaded, but that the sysctls powerd relies upon don't exist. [...] >Nothing in any of those suggests that this cpu has any other frequency >available than 1000MHz, which seems quite bizarre to me. Of course it's >possible FreeBSD hasn't been taught to recognise this particular cpu. > >You haven't disabled anything in $BIOS related to power or freq control? The bios has only a very limited number of options for this machine - possibly by design as the machine is a netbook. Options for overclocking are not present at all. >The cpuid output has a heading "Advanced Power Management Feature Flags" >near the bottom, but none are shown. yeah, odd that >Hope someone else has something more useful to offer, and thanks for >mailing me those files when my browser was deemed too old for your site. thanks again for your help -- J.