Bug 413941 - powernow-k8 requires SMP to build
powernow-k8 requires SMP to build
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
5.1
i386 Linux
low Severity low
: ---
: ---
Assigned To: Prarit Bhargava
Martin Jenner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-06 08:48 EST by Steve Snyder
Modified: 2008-05-21 11:03 EDT (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2008-0314
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-05-21 11:03:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
RHEL5 fix for this issue (1.67 KB, patch)
2007-12-07 09:32 EST, Prarit Bhargava
no flags Details | Diff

  None (edit)
Description Steve Snyder 2007-12-06 08:48:36 EST
Description of problem:

Build of kernel module powernow-k8.o unconditionally relies on conditional
structure member(s).

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

kernel-2.6.18-53.1.4.el5

How reproducible:

Always

Steps to Reproduce:
1. rpm -ivh kernel-2.6.18-53.1.4.el5.src.rpm
2. rpmbuild -bp --target i686 SPEC/kernel.spec
3. Using kernel's menuconfig, disable SMP support, save new config
4. Attempt to rebuild kernel
  
Actual results:

arch/i386/kernel/cpu/cpufreq/powernow-k8.c: In function âpowernowk8_initâ:
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:1435: error: âstruct cpuinfo_x86â has
no member named âbooted_coresâ
make[3]: *** [arch/i386/kernel/cpu/cpufreq/powernow-k8.o] Error 1
make[2]: *** [arch/i386/kernel/cpu/cpufreq] Error 2
make[1]: *** [arch/i386/kernel/cpu] Error 2

Expected results:

Successful compile.

Additional info:

That structure member "booted_cores" is #ifdef'd to CONFIG_SMP in file
~/include/asm-x86_64/processor.h
Comment 1 Steve Snyder 2007-12-06 08:51:50 EST
I am well aware that Red Hat does not support user-modified kernels.  That said,
I think you might want to know that you've painted yourselves into a corner
should you ever decide to do a non-SMP kernel again.
Comment 2 Prarit Bhargava 2007-12-06 10:07:20 EST
(In reply to comment #1)
> I am well aware that Red Hat does not support user-modified kernels.  That said,
> I think you might want to know that you've painted yourselves into a corner
> should you ever decide to do a non-SMP kernel again.

Hey Steve, 

You're 100% right in that we do not support user-modified kernels.  It is *very*
unlikely that we'll ever go back to shipping a UP kernel (see Fedora).  OTOH,
you do point out a valid bug in our code that, IMO, is easy to fix.  I'll point
it out to the appropriate people.

Thanks :)

P.
Comment 3 Prarit Bhargava 2007-12-07 09:32:01 EST
Created attachment 281231 [details]
RHEL5 fix for this issue
Comment 5 Prarit Bhargava 2007-12-07 09:37:26 EST
Steve, the attached patch should get you moving again and get you a clean
compile of the PowerNow driver.

Thanks again,

P.
Comment 6 Steve Snyder 2007-12-07 10:25:30 EST
(In reply to comment #5)
> Steve, the attached patch should get you moving again and get you a clean
> compile of the PowerNow driver.

Thanks for the quick turn-around, Prarit.
Comment 7 RHEL Product and Program Management 2007-12-07 16:45:26 EST
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 9 Don Zickus 2008-01-11 15:03:51 EST
in 2.6.18-66.el5dz_test
You can download this test kernel from http://people.redhat.com/dzickus/el5
Comment 12 errata-xmlrpc 2008-05-21 11:03:15 EDT
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/RHBA-2008-0314.html

Note You need to log in before you can comment on or make changes to this bug.