Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Mick
On Saturday 30 Apr 2016 08:50:55 Alec Ten Harmsel wrote:
> On Sat, Apr 30, 2016 at 09:29:08AM +0100, Neil Bothwick wrote:
> > On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:
> > > I seem to have mislaid my microcode somewhere, in the latest stable
> > > gentoo kernel:
> > > 
> > > # grep -i MICROCODE .config
> > > #
> > 
> > Grepping .config is unreliable, and always has been.
> 
> I usually use something like:
> 
> grep MICROCODE $(find . -name Kconfig)
> 
> Alec

# grep -i MICROCODE /boot/config-4.4.6-gentoo 
# 
# grep -i MICROCODE .config 
# 
# grep MICROCODE $(find . -name Kconfig)
./arch/x86/Kconfig:config MICROCODE
./arch/x86/Kconfig:config MICROCODE_INTEL
./arch/x86/Kconfig: depends on MICROCODE
./arch/x86/Kconfig: default MICROCODE
./arch/x86/Kconfig:config MICROCODE_AMD
./arch/x86/Kconfig: depends on MICROCODE
./arch/x86/Kconfig:config MICROCODE_OLD_INTERFACE
./arch/x86/Kconfig: depends on MICROCODE
# 

Now you see it ... now you don't!  I am getting really confused.  :-/

Why on this PC the MICROCODE options become available only when I enable 
INITRD, but on other PCs such a problem does not exist?

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Alec Ten Harmsel
On Sat, Apr 30, 2016 at 09:29:08AM +0100, Neil Bothwick wrote:
> On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:
> 
> > I seem to have mislaid my microcode somewhere, in the latest stable
> > gentoo kernel:
> > 
> > # grep -i MICROCODE .config
> > #
> 
> Grepping .config is unreliable, and always has been.

I usually use something like:

grep MICROCODE $(find . -name Kconfig)

Alec



Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Peter Humphrey
On Saturday 30 Apr 2016 10:24:43 Mick wrote:
> On Saturday 30 Apr 2016 09:29:08 Neil Bothwick wrote:
> > On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:
> > > I seem to have mislaid my microcode somewhere, in the latest stable
> > > gentoo kernel:
> > > 
> > > # grep -i MICROCODE .config
> > > #
> > 
> > Grepping .config is unreliable, and always has been. You should use the
> > search option in make menuconfig. If th eoption you want does not show
> > up
> > in .config, you are probably missing one of the options it depends on.
> 
> Thanks Neil, I use both, especially if grepping does not reveal what I am
> looking for.
> 
> > The search results show what they are and whether they are set. I get
> > this
> > 
> > Symbol: MICROCODE [=y]
> > 
> >   Type  : boolean
> >   Prompt: CPU microcode loading support
> >   Location:
> >   (1) -> Processor type and features
> >   
> > Defined at arch/x86/Kconfig:1159
> > Depends on: CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]
> > Selects: FW_LOADER [=y]
> 
> Yes, I got (almost) the same and it shows that MICROCODE is a top level
> module, but I can't see it when I walk through the 'Processor type and
> features' contents.  Fine, my eyesight is not what it used to be, but it
> can't be this bad!  :p
> 
> Symbol: MICROCODE [=n]
> Type  : boolean
> Prompt: CPU microcode loading support
>   Location:
> (1) -> Processor type and features
>   Defined at arch/x86/Kconfig:1125
>   Depends on: (CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]) && BLK_DEV_INITRD
>   Selects: FW_LOADER [=y]

It seems to require BLK_DEV_INITRD if my logic is still up to scratch. What 
happens if you set this; does MICROCODE appear then?

This is odd, because I see this, searching from the /usr/src/ directory:

peak src # grep MICROCODE linux-4.4.6-gentoo/.config
#

peak src # grep MICROCODE linux-4.4.7-gentoo/.config
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y

peak src # grep MICROCODE linux-4.5.0-gentoo-r1/.config
#

peak src # grep MICROCODE linux-4.5.1-gentoo/.config
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y

So the rules seem to change with succeeding versions of the kernel. Not sure 
what to suggest here.

(I've been playing with lots of versions of kernel, boinc, virtualbox and 
others recently, which is why I still have those kernel sources installed. 
I've compiled and booted all of them at various times.)

-- 
Rgds
Peter




Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Mick
On Saturday 30 Apr 2016 10:36:28 Neil Bothwick wrote:
> On Sat, 30 Apr 2016 10:24:43 +0100, Mick wrote:
> > Yes, I got (almost) the same and it shows that MICROCODE is a top level
> > module, but I can't see it when I walk through the 'Processor type and
> > features' contents.  Fine, my eyesight is not what it used to be, but
> > it can't be this bad!  :p
> > 
> > Symbol: MICROCODE [=n]
> > Type  : boolean
> > Prompt: CPU microcode loading support
> > 
> >   Location:
> > (1) -> Processor type and features
> 
>^
> 
> >   Defined at arch/x86/Kconfig:1125
> >   Depends on: (CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]) &&
> > 
> > BLK_DEV_INITRD Selects: FW_LOADER [=y]
> > 
> > I built this 4.4.6 kernel with oldconfig, so it *should* retain
> > previously selected modules, like MICROCODE.  Either way, why would it
> > not show in menuconfig, if a search says it is?
> 
> What happens when you press 1?

It takes me to level 0 of menuconfig, with "Processor type and features --->" 
highlighted.  Ditto when I press 3, which is Intel Microcode module.  :-/

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Neil Bothwick
On Sat, 30 Apr 2016 10:24:43 +0100, Mick wrote:

> Yes, I got (almost) the same and it shows that MICROCODE is a top level 
> module, but I can't see it when I walk through the 'Processor type and 
> features' contents.  Fine, my eyesight is not what it used to be, but
> it can't be this bad!  :p
> 
> Symbol: MICROCODE [=n] 
> Type  : boolean  
> Prompt: CPU microcode loading support  
>   Location:  
> (1) -> Processor type and features  
   ^
>   Defined at arch/x86/Kconfig:1125  
>   Depends on: (CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]) &&
> BLK_DEV_INITRD Selects: FW_LOADER [=y]
> 
> I built this 4.4.6 kernel with oldconfig, so it *should* retain
> previously selected modules, like MICROCODE.  Either way, why would it
> not show in menuconfig, if a search says it is?

What happens when you press 1?


-- 
Neil Bothwick

DOS never says "EXCELLENT command or filename"...


pgpdfy158H5YW.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Mick
On Saturday 30 Apr 2016 09:29:08 Neil Bothwick wrote:
> On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:
> > I seem to have mislaid my microcode somewhere, in the latest stable
> > gentoo kernel:
> > 
> > # grep -i MICROCODE .config
> > #
> 
> Grepping .config is unreliable, and always has been. You should use the
> search option in make menuconfig. If th eoption you want does not show up
> in .config, you are probably missing one of the options it depends on.

Thanks Neil, I use both, especially if grepping does not reveal what I am 
looking for.

> The search results show what they are and whether they are set. I get this
> 
> Symbol: MICROCODE [=y]
>   Type  : boolean
>   Prompt: CPU microcode loading support
>   Location:
>   (1) -> Processor type and features
> Defined at arch/x86/Kconfig:1159
> Depends on: CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]
> Selects: FW_LOADER [=y]

Yes, I got (almost) the same and it shows that MICROCODE is a top level 
module, but I can't see it when I walk through the 'Processor type and 
features' contents.  Fine, my eyesight is not what it used to be, but it can't 
be this bad!  :p

Symbol: MICROCODE [=n] 
Type  : boolean  
Prompt: CPU microcode loading support  
  Location:  
(1) -> Processor type and features  
  Defined at arch/x86/Kconfig:1125  
  Depends on: (CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]) && BLK_DEV_INITRD 
  Selects: FW_LOADER [=y]

I built this 4.4.6 kernel with oldconfig, so it *should* retain previously 
selected modules, like MICROCODE.  Either way, why would it not show in 
menuconfig, if a search says it is?

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Neil Bothwick
On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:

> I seem to have mislaid my microcode somewhere, in the latest stable
> gentoo kernel:
> 
> # grep -i MICROCODE .config
> #

Grepping .config is unreliable, and always has been. You should use the
search option in make menuconfig. If th eoption you want does not show up
in .config, you are probably missing one of the options it depends on.
The search results show what they are and whether they are set. I get this

Symbol: MICROCODE [=y]
  Type  : boolean
  Prompt: CPU microcode loading support
  Location:
  (1) -> Processor type and features
Defined at arch/x86/Kconfig:1159
Depends on: CPU_SUP_AMD [=y] || CPU_SUP_INTEL [=y]
Selects: FW_LOADER [=y]


-- 
Neil Bothwick

WinErr 002: No Error - Yet


pgpvjA3NRonBa.pgp
Description: OpenPGP digital signature


[gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Mick
I seem to have mislaid my microcode somewhere, in the latest stable gentoo 
kernel:

# grep -i MICROCODE .config
#

As a result I get this during boot:

# /etc/init.d/microcode_ctl start
 * Updating microcode ...
microcode_ctl: cannot open /dev/cpu/microcode for writing errno=2 (No such 
file or directory)
 * Failed to update microcode via '/dev/cpu/microcode'  


[ !! ]
 * ERROR: microcode_ctl failed to start


The previous kernel contained this:

# grep -i MICROCODE /boot/config-4.1.15-r1-gentoo 
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y


Is there something else I ought to switch on first?

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.