LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2012, 01:28 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932
Where is CONFIG_APM in kernel - 2.6.38.8


From here: http://www.xenomai.org/documentation...ROUBLESHOOTING

Quote:
Q: Which CONFIG_* items are latency killers, and should be avoided ?
...
APM: The APM model assigns power management control to the BIOS, and BIOS code is never written with RT-latency in mind. If configured, APM routines are invoked with SMI priority, which breaks the rule that adeos-ipipe must be in charge of such things. DISABLE_SMI doesnt help here (more later).
The problem is that I am not able to find this APM thing anywhere.

See the screenshots below:

"ACPI (Advanced Configuration and Power Interface) Support" results in the following menu:

Code:
 --- ACPI (Advanced Configuration and Power Interface) Support[*]   Deprecated /proc/acpi files[*]   Deprecated power /proc/acpi directories
 <M>   ACPI 4.0 power meter
 < >   EC read/write access through /sys/kernel/debug/ec (NEW)[*]   Deprecated /proc/acpi/event support
<M>   AC Adapter
<M>   Battery
{M}   Button
{M}   Video
<M>   Fan[*]   Dock
<M>   Processor
< >   IPMI (NEW)
<M>   Processor Aggregator
<M>   Thermal Zone
-*-   NUMA support
()    Custom DSDT
Table file to include[*]   Debug Statements
[ ]   Additionally enable ACPI function tracing
<M>   PCI slot detection driver
{M}   Container and Module Devices (EXPERIMENTAL)
<M>   Memory Hotplug
<M>   Smart Battery System
< >   Hardware Error Device (NEW)
[ ]   ACPI Platform Error Interface (APEI) (NEW)
Please help.

Last edited by Aquarius_Girl; 02-16-2015 at 11:57 PM.
 
Old 06-01-2012, 02:14 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 10,945

Rep: Reputation: Disabled
Hello Anisha,

just scroll down in "/" APM results using the "down" arrow key and at the end you'll find that (hopefully):

Code:
Symbol: APM [=n]                                                                                                            │  
  │ Type  : tristate                                                                                                            │  
  │ Prompt: APM (Advanced Power Management) BIOS support                                                                        │  
  │   Defined at arch/x86/Kconfig:1727                                                                                          │  
  │   Depends on: X86_32 [=y] && PM_SLEEP [=y]                                                                                  │  
  │   Location:                                                                                                                 │  
  │     -> Power management and ACPI options
Cheers,

Last edited by Didier Spaier; 06-01-2012 at 02:23 AM.
 
Old 06-01-2012, 03:26 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932
Sorry, but I couldn't get your point here.
I can't see APM in "Power management and ACPI options".
Did you see the second screenshot?
What's the point that I am missing?

Thanks for your time , BTW.

EDIT
Actually, I am using "make menuconfig". That shows a GUI. This option isn't there in "Power management and ACPI support". I did attach the screenshot. what am I over looking?

Last edited by Aquarius_Girl; 06-01-2012 at 03:32 AM.
 
Old 06-01-2012, 05:58 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 10,945

Rep: Reputation: Disabled
I did notice that you are using "make menuconfig". So do I

Please post the results of following commands:
Code:
grep X86_32 .config
grep PM_SLEEP .config
or append your .config to next post.

My guess is that you don't have "CONFIG_X86_32=y" and "CONFIG_PM_SLEEP=y".

Bear in mind that "make menuconfig" only displays a menu entry if its dependencies are met.

Last edited by Didier Spaier; 06-01-2012 at 06:30 AM.
 
1 members found this post helpful.
Old 06-01-2012, 06:30 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932
Thankful for your patience.

Code:
linux-y3pi:/usr/src/linux-2.6.38.8 # grep X86_32 .config
# CONFIG_X86_32 is not set

linux-y3pi:/usr/src/linux-2.6.38.8 # grep PM_SLEEP .config
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
# CONFIG_PM_SLEEP_ADVANCED_DEBUG is not set
So, now I opened the .config and set CONFIG_X86_32 to y and saved.
Still, APM isn't visible through make menuconfig.

Well, learning comes at a cost.

Last edited by Aquarius_Girl; 02-16-2015 at 11:57 PM.
 
Old 06-01-2012, 07:25 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 10,945

Rep: Reputation: Disabled
I did "make menuconfig" with your .config and APM is visible.

Thus I don't understand why it is not for you

EDIT
Quote:
Originally Posted by Anisha Kaul View Post
So, now I opened the .config and set CONFIG_X86_32 to y and saved.
If you mean that you did use an editor for that I'm not sure it can work. Though I be not sure of that my guess is you should use "make menuconfig" to change a config setting.

Last edited by Didier Spaier; 08-15-2015 at 05:41 PM.
 
Old 06-03-2012, 07:58 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 10,945

Rep: Reputation: Disabled
The reason why we don't get the same results is that APM depends on X86_32 [=y].

But this dependency can be met only if CONFIG_X86_32 is defined, which is done in the "make *config" process only for relevant ARCHs.

Unless explicitly stated by the user the ARCH variable's value is set up according to the results of the "uname -m" command in the main Makefile of the kernel source tree, in our case linux-2.6.38/Makefile:
Code:
# SUBARCH tells the usermode build what the underlying arch is.  That is set
# first, and if a usermode build is happening, the "ARCH=um" on the command
# line overrides the setting of ARCH below.  If a native build is happening,
# then ARCH is assigned, getting whatever value it gets normally, and
# SUBARCH is subsequently ignored.

SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
                                 -e s/arm.*/arm/ -e s/sa110/arm/ \
                                 -e s/s390x/s390/ -e s/parisc64/parisc/ \
                                 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
                                 -e s/sh[234].*/sh/ )

# Cross compiling and selecting different set of gcc/bin-utils
#
---------------------------------------------------------------------------
#
# When performing cross compilation for other architectures ARCH shall be
set
# to the target architecture. (See arch/* for the possibilities).
# ARCH can be set during invocation of make:
# make ARCH=ia64
# Another way is to have ARCH set in the environment.
# The default ARCH is the host where make is executed.
This is confirmed in linux-2.6.38/Documentation/kbuild/makefiles.txt:
Code:
   ARCH

       This variable defines the target architecture, such as "i386",
       "arm", or "sparc". Some kbuild Makefiles test $(ARCH) to
       determine which files to compile.

       By default, the top Makefile sets $(ARCH) to be the same as the
       host system architecture.  For a cross build, a user may
       override the value of $(ARCH) on the command line:

           make ARCH=m68k ...
Here "uname -m" result is "i686" thus CONFIG_APM is defined in the "make menuconfig" process.

But if I type for instance "make ARCH=arm menuconfig" neither CONFIG_X86_32 nor CONFIG_APM are defined thus there is no menu entry for APM in the "menuconfig" screens.
 
1 members found this post helpful.
Old 06-03-2012, 09:35 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932Reputation: 932
The spread system doesn't allow me to click the scales icon.
I am grateful for all your offline and online assistance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 06:30 PM
Config 2.6.36.1 kernel (from kernel.org) using CentOS 5.4 x86_64 kernel .config whitewolf573 Linux - Kernel 2 12-11-2010 08:33 AM
how to upgrade the Debian 3 kernel 2.4.18 to kernel 2.6 or bigmem- kernel chandu.bezawada Debian 6 11-12-2010 09:33 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration