Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 165384

Summary: cpufreq driver hangs when using SMP Powernow
Product: Red Hat Enterprise Linux 4 Reporter: Brian Maly <bmaly>
Component: kernelAssignee: Brian Maly <bmaly>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2005-514 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 13:49:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 156323, 158844    
Attachments:
Description Flags
patch to resolve cpuspeed (cpufreq+powernow-k8) hang none

Description Brian Maly 2005-08-08 18:39:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; rv:1.7.3) Gecko/20041020 Firefox/0.10.1

Description of problem:

The cpufreq driver works for a while but eventually hangs on systems using SMP Powernow. cpufreq.c has many SMP enablement fixes upstream such as per-cpu reference count, etc that are likely required for SMP powernow.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. modprobe powernow-k8 on an SMP Powernow capable system
2. start cpuspeed
3. kill cpuspeed when hung (it wont die... now a zombie)
  

Actual Results:  cpuspeed runs for a while but eventually hangs (strace reveals it hangs when trying to read from a cpufreq related file in /sys). cpuspeed never gets a chance to update CPU frequencies (this hang happens in the first 60 seconds). cpuspeed hangs and cant be killed. any process that read/writes to these files in /sys hang as well.

Expected Results:  cpuspeed should shift between frequencies and keep running. reading and writing to the cpuspeed specific /sys files should not cause a process to hang. cpuspeed should die if killed.

Additional info:

Comment 1 Brian Maly 2005-08-08 18:59:22 UTC
this should be a MUSTFIX for U2 being that we wont have SMP Powernow enablement
without these enhancements

Comment 3 Brian Maly 2005-08-11 18:37:26 UTC
Created attachment 117656 [details]
patch to resolve cpuspeed (cpufreq+powernow-k8) hang

this patch was posted on 8/11/05 to rhkernel

Description:

Incremental patch to powernow-k8 v1.39 driver update BZ 160011

Some vendor testing exposed a few loose ends in the Powernow driver update,
specifically the cpuspeed daemon hanging and the ondemand and powersave
governor drivers failing to load. The problem was that the powernow-k8 module
was getting stuck in a few spots, causing the cpufreq module to hang, and thus
causing the cpuspeed daemon to hang (cpuspeed couldnt be killed once hung
either).

This patch resolves these issues as well as removing 1 unused variable (code
cleanup).

I did confirm that powernow-k8 now works correctly on SMP machines, cpuspeed no
longer hangs, and the ondemand and powersave modules now load as well.

Comment 5 Red Hat Bugzilla 2005-10-05 13:49:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-514.html