All of lore.kernel.org
 help / color / mirror / Atom feed
* Builtin early microcode breaks s2ram v4.6-rcX
@ 2016-05-15 12:16 Jim Bos
  2016-05-15 14:48 ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Bos @ 2016-05-15 12:16 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Borislav Petkov, Thomas Gleixner

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]


As I noticed microcode was no longer being loaded on v4.6-rcX I switched
to builtin microcode as described in

  Documentation/x86/early-microcode.txt

So I have now this:
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="intel-ucode/06-2a-07 radeon/REDWOOD_me.bin
radeon/REDWOOD_pfp.bin radeon/REDWOOD_rlc.bin radeon/REDWOOD_smc.bin
radeon/CYPRESS_uvd.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set

That works, i.e. when booting as very first line I get message microcode
is loaded, see attached dmesg

However, after suspend to ram, trying to resume results in total lockup
of the machine:  no ping,  no sysrq-keys, only hard reset works.

Trying to bisect this didn't really work, earlier kernel (v4.5) doesn't
even boot with this config.

I'm seeing this on 2 rather different machines, on intel quadcore on 2-3
year old mobo and a dual core pentium on fairly new mobo.
Note that both machines do boot using EFI.

_
Jim



[-- Attachment #2: dmesg.gz --]
[-- Type: application/gzip, Size: 15407 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Builtin early microcode breaks s2ram v4.6-rcX
  2016-05-15 12:16 Builtin early microcode breaks s2ram v4.6-rcX Jim Bos
@ 2016-05-15 14:48 ` Borislav Petkov
  2016-05-15 15:45   ` Jim Bos
  0 siblings, 1 reply; 4+ messages in thread
From: Borislav Petkov @ 2016-05-15 14:48 UTC (permalink / raw)
  To: Jim Bos; +Cc: Linux Kernel Mailing List, Thomas Gleixner

On Sun, May 15, 2016 at 02:16:28PM +0200, Jim Bos wrote:
> However, after suspend to ram, trying to resume results in total
> lockup of the machine: no ping, no sysrq-keys, only hard reset works.

Does it work when you add "dis_ucode_ldr" to the kernel command line?

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Builtin early microcode breaks s2ram v4.6-rcX
  2016-05-15 14:48 ` Borislav Petkov
@ 2016-05-15 15:45   ` Jim Bos
  2016-05-15 15:51     ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Bos @ 2016-05-15 15:45 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: Linux Kernel Mailing List, Thomas Gleixner

On 05/15/2016 04:48 PM, Borislav Petkov wrote:
> On Sun, May 15, 2016 at 02:16:28PM +0200, Jim Bos wrote:
>> However, after suspend to ram, trying to resume results in total
>> lockup of the machine: no ping, no sysrq-keys, only hard reset works.
> 
> Does it work when you add "dis_ucode_ldr" to the kernel command line?
> 

Yes,  it boots  / suspends  / resumes  just fine.
(but no microcode updates in dmesg)

Jim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Builtin early microcode breaks s2ram v4.6-rcX
  2016-05-15 15:45   ` Jim Bos
@ 2016-05-15 15:51     ` Borislav Petkov
  0 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2016-05-15 15:51 UTC (permalink / raw)
  To: Jim Bos; +Cc: Linux Kernel Mailing List, Thomas Gleixner

On Sun, May 15, 2016 at 05:45:49PM +0200, Jim Bos wrote:
> Yes,  it boots  / suspends  / resumes  just fine.
> (but no microcode updates in dmesg)

Ok, I'll take a look.

Btw, is there a particular reason why you're not doing microcode updates
through the initrd? Or you're running without one?

Also, can you send me your .config. Privately is fine too.

Thanks.

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-15 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-15 12:16 Builtin early microcode breaks s2ram v4.6-rcX Jim Bos
2016-05-15 14:48 ` Borislav Petkov
2016-05-15 15:45   ` Jim Bos
2016-05-15 15:51     ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.