<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4213&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / pcc_cpufreq instead of acpi_cpufreq]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4213</link>
		<description><![CDATA[The most recent posts in pcc_cpufreq instead of acpi_cpufreq.]]></description>
		<lastBuildDate>Sat, 03 Apr 2021 14:39:43 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28756#p28756</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... can&#039;t load pcc_cpufreq unless acpi_cpufreq is also loaded ...</p></div></blockquote></div><p>I&#039;ve been trying to find something about the use of <span class="bbc">pcc_cpufreq</span> and how to load it but nothing so far.<br />I found this:</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo modprobe -c | grep -i pcc_cpufreq
alias acpi*:ACPI0007:* pcc_cpufreq
alias acpi*:LNXCPU:* pcc_cpufreq
groucho@devuan:~$ </code></pre></div><p>I don&#039;t get the whole alias idea but <span class="bbc">lsmod</span> says this ...</p><div class="codebox"><pre><code>groucho@devuan:~$ lsmod | grep -i _cpufreq
pcc_cpufreq            16384  0
acpi_cpufreq           24576  1
groucho@devuan:~$ </code></pre></div><p>Is it that loading <span class="bbc">pcc_cpufreq</span> will always load <span class="bbc">acpi_cpufreq</span> and not <span class="bbc">pcc_cpufreq</span>?</p><p>The driver is a kernel module:</p><div class="codebox"><pre><code>groucho@devuan:~$ grep -i _cpufreq /boot/config-4.19.0-16-amd64
CONFIG_X86_PCC_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_ACPI_CPUFREQ_CPB=y
groucho@devuan:~$ </code></pre></div><p>I&#039;ve read that the <span class="bbc">pcc-cpufreq</span> driver doesn&#039;t scale with &gt; 4 CPUs and the <span class="bbc">ondemand</span> governor. </p><p>But my Sun Ultra 24 box uses the Intel Core2 Q9550 processor which has just 4 CPUs and I am quite willing to dispense with the scaling if I can use the <span class="bbc">pcc-cpufreq</span> driver to troubleshoot the shudown problem in my system.</p><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 03 Apr 2021 14:39:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28756#p28756</guid>
		</item>
		<item>
			<title><![CDATA[Re: pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28484#p28484</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I can&#039;t load pcc_cpufreq unless acpi_cpufreq is also loaded ...</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>How did you determine that Slackware system uses pcc instead of acpi?</p></div></blockquote></div><p>No.<br />I didn&#039;t figure that one out.</p><p>A chap that posted on bugzilla.kernel.org told me.</p><p>He has two identical workstations.<br />One runs a proprietary OS called Unraid which is based on Slackware, the other plain Linux.</p><p>One of the workstations had the shutdown issue while the other (identical) runs Unraid and does not get the bad shutdowns.<br />The first WS BIOS has since been patched but the second one has not.</p><p>See <a href="https://bugzilla.kernel.org/show_bug.cgi?id=210689#c4" rel="nofollow">https://bugzilla.kernel.org/show_bug.cgi?id=210689#c4</a>.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... don&#039;t think they can be used independently but this is just a guess.<br />... can&#039;t really understand ...</p></div></blockquote></div><p>Imagine <em>me</em> trying to get anything out of it.&#160; 8^7</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>And btw ...</p></div></blockquote></div><p>Yes, I know.<br />But I forget, being accustomed to using <span class="bbc">cat</span> and then <span class="bbc">grep</span> from ages ago.</p><p>Eventually, I guess.</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 24 Mar 2021 20:20:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28484#p28484</guid>
		</item>
		<item>
			<title><![CDATA[Re: pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28480#p28480</link>
			<description><![CDATA[<p>I can&#039;t load pcc_cpufreq unless acpi_cpufreq is also loaded so I don&#039;t think they can be used independently but this is just a guess. I can&#039;t really understand the <a href="https://www.kernel.org/doc/Documentation/cpu-freq/pcc-cpufreq.txt" rel="nofollow">official documentation</a>.</p><p>How did you determine that Slackware system uses pcc instead of acpi?</p><p>And btw:</p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><div class="codebox"><pre><code>groucho@devuan:~$ cat /proc/modules | grep _cpufreq</code></pre></div></div></blockquote></div><p><a href="http://porkmail.org/era/unix/award.html#cat" rel="nofollow">Useless use of cat</a>:</p><div class="codebox"><pre><code>grep _cpufreq /proc/modules</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 24 Mar 2021 19:52:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28480#p28480</guid>
		</item>
		<item>
			<title><![CDATA[Re: pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28479#p28479</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... try blocking the acpi_cpufreq module from the GRUB menu ...</p></div></blockquote></div><p>This what is going on before <em>blocking</em> it:</p><div class="codebox"><pre><code>groucho@devuan:~$ cpupower frequency-info # supplied by the linux-cpupower package
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us
  hardware limits: 2.00 GHz - 2.83 GHz
  available frequency steps:  2.83 GHz, 2.34 GHz, 2.00 GHz
  available cpufreq governors: ondemand performance schedutil
  current policy: frequency should be within 2.00 GHz and 2.83 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.03 GHz (asserted by call to kernel)
  boost state support:
    Supported: no
    Active: no
groucho@devuan:~$</code></pre></div><p>This is the result:</p><div class="codebox"><pre><code>groucho@devuan:~$ cpupower frequency-info # supplied by the linux-cpupower package
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
  boost state support:
    Supported: no
    Active: no
groucho@devuan:~$</code></pre></div><p>But is would seem that if <span class="bbc">acpi_cpufreq</span> is not loaded, <span class="bbc">pcc_cpufreq</span> is not loade either:</p><div class="codebox"><pre><code>groucho@devuan:~$ lsmod | grep -i cpu
groucho@devuan:~$ lsmod | grep -i freq
groucho@devuan:~$ lsmod | grep cpu
groucho@devuan:~$ lsmod | grep _cpufreq
groucho@devuan:~$</code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ cat /proc/modules | grep _cpufreq
groucho@devuan:~$ </code></pre></div><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 24 Mar 2021 19:16:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28479#p28479</guid>
		</item>
		<item>
			<title><![CDATA[Re: pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28470#p28470</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Is it possible to make the system use <span class="bbc">pcc_cpufreq</span> instead of <span class="bbc">acpi_cpufreq</span>?</p></div></blockquote></div><p>You could try blocking the acpi_cpufreq module from the GRUB menu by pressing &quot;e&quot; with the Devuan entry highlighted then add this to the end of the line that starts with &quot;linux&quot;:</p><div class="codebox"><pre><code>module_blacklist=acpi_cpufreq</code></pre></div><p>Then press &lt;ctrl&gt;+x (at the same time) to boot the modified entry and use this to check if pcc_cpufreq is being used:</p><div class="codebox"><pre><code>cpupower frequency-info # supplied by the linux-cpupower package</code></pre></div><p>If that works then either add the kernel parameter to GRUB_CMDLINE_LINUX in /etc/default/grub and run <span class="bbc">update-grub</span> or use <a href="https://wiki.archlinux.org/index.php/Kernel_module#Using_files_in_/etc/modprobe.d/_2" rel="nofollow">https://wiki.archlinux.org/index.php/Ke … probe.d/_2</a> to block it permanently.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 24 Mar 2021 16:15:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28470#p28470</guid>
		</item>
		<item>
			<title><![CDATA[pcc_cpufreq instead of acpi_cpufreq]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28463#p28463</link>
			<description><![CDATA[<p>Hello:</p><p>Running up to date Devuan Beowulf 3.1.0:</p><div class="codebox"><pre><code>groucho@devuan:~$ uname -a
Linux devuan 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
groucho@devuan:~$ </code></pre></div><p>My Sun Ultra 24 box has for the longes time had a persistent bad shutdown issue to which I have not been able to find a soluton, even by injecting a modified DSDT file at boot time.<br />It has been present across many Linux kernels and distributions.</p><p>See <a href="https://bugzilla.kernel.org/show_bug.cgi?id=201965" rel="nofollow">https://bugzilla.kernel.org/show_bug.cgi?id=201965</a></p><p>I have recently learned that this issue <em>could</em> be related to the cpu scaling driver.</p><p>It seems that a proprietary Slackware based OS which uses <span class="bbc">pcc_cpufreq</span> instead of <span class="bbc">acpi_cpufreq</span> does not show the problem when run on a workstation which, running another Linux distribution using <span class="bbc">acpi_cpufreq</span>, does.</p><p>Although the WS is not a Sun U24 such as mine, the problem is exactly the same one, presenting the same symptoms.</p><p>See:<br /><a href="https://bugzilla.kernel.org/show_bug.cgi?id=199349#c4" rel="nofollow">https://bugzilla.kernel.org/show_bug.cgi?id=199349#c4</a><br /><a href="https://lkml.org/lkml/2018/11/13/857" rel="nofollow">https://lkml.org/lkml/2018/11/13/857</a>.</p><p>Both modules are present in my installation, the one in use being <span class="bbc">acpi_cpufreq</span>:</p><div class="codebox"><pre><code>groucho@devuan:~$ lsmod | grep cpu
pcc_cpufreq            16384  0
acpi_cpufreq           24576  1
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ cat /proc/modules | grep _cpufreq
pcc_cpufreq 16384 0 - Live 0x0000000000000000
acpi_cpufreq 24576 1 - Live 0x0000000000000000
groucho@devuan:~$ </code></pre></div><p>Is it possible to make the system use <span class="bbc">pcc_cpufreq</span> instead of <span class="bbc">acpi_cpufreq</span>?<br />Testing without a module that seems to have issues could get me a solution.&#160; </p><p>My CPU is a Core2 Q9550 - Yorkfield.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Wed, 24 Mar 2021 14:07:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28463#p28463</guid>
		</item>
	</channel>
</rss>
