mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: anish singh <anish198519851985@gmail.com>
Cc: Ming Lei <tom.leiming@gmail.com>, Dave Jones <davej@redhat.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	x86@kernel.org, fenghua.yu@intel.com
Subject: Re: microcode loading got really slow.
Date: Thu, 23 May 2013 12:28:45 +0200	[thread overview]
Message-ID: <s5hsj1evvky.wl%tiwai@suse.de> (raw)
In-Reply-To: <CAK7N6vqSfPqu6fig8dOEf-Tu0hRsgxLQA7MGupawn-XZHB6MiQ@mail.gmail.com>

At Thu, 23 May 2013 15:48:52 +0530,
anish singh wrote:
> 
> On Thu, May 23, 2013 at 3:46 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > At Thu, 23 May 2013 10:06:56 +0200,
> > Takashi Iwai wrote:
> >>
> >> At Thu, 23 May 2013 15:45:32 +0800,
> >> Ming Lei wrote:
> >> >
> >> > On Thu, May 23, 2013 at 11:39 AM, Dave Jones <davej@redhat.com> wrote:
> >> > >  > On 05/21/2013 04:03 PM, Dave Jones wrote:
> >> > >  >
> >> > >  > [   72.318133] microcode: CPU1 sig=0x306c3, pf=0x2, revision=0x6
> >> > >  > [  132.446449] microcode: CPU2 sig=0x306c3, pf=0x2, revision=0x6
> >> > >  > [  192.573101] microcode: CPU3 sig=0x306c3, pf=0x2, revision=0x6
> >> > >  > [  252.702055] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
> >> > >  >
> >> > >  > For some reason the events for udev seem to be getting delayed 60s
> >> > >  > for each core.
> >> > >
> >> > > Screwed up my .config, and had CONFIG_FW_LOADER_USER_HELPER inadvertantly set
> >> > > Odd though that it causes that 60 second delay, given that it's supposedly a
> >> > > 'fallback' when the direct loading fails.
> >> >
> >> > udevd has the ugly problem previously at some situations(for example,
> >> > request_firmware called in probe(), and that is why direct loading is
> >> > introduced),
> >> > but not sure why the direct loading is failed first.
> >>
> >> The microcode update is optional, so it's no error even if the
> >> microcode firmwares are not found.
> >>
> >> But yes, this seems happening during the module probing.  The lines
> >> "microcde: CPU..." show before "microcode: Microcode Update
> >> Driver...", which means the f/w loading has been done before finishing
> >> the module load.
> >>
> >> I thought (or hoped) this mess (60s stalls) was fixed in the recent
> >> udev, but apparently not...?
> >
> > Thinking on this again, if the user-space continues to be broken in
> > that point, we should provide request_firmware() variant without udev,
> > e.g. request_firmware_direct(), and use it in known places like this?
> Is it not already there?I was thinking that some time back this support
> was added.

My point is the function that *only* uses the direct loading without
fallback to user mode helper.


Takashi

  reply	other threads:[~2013-05-23 10:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21 23:03 Dave Jones
2013-05-22 19:03 ` H. Peter Anvin
2013-05-22 20:00   ` Dave Jones
2013-05-22 20:09     ` H. Peter Anvin
2013-05-23  0:19       ` Dave Jones
2013-05-23  3:39       ` Dave Jones
2013-05-23  6:56         ` Takashi Iwai
2013-05-23  7:45         ` Ming Lei
2013-05-23  8:06           ` Takashi Iwai
2013-05-23 10:16             ` Takashi Iwai
2013-05-23 10:18               ` anish singh
2013-05-23 10:28                 ` Takashi Iwai [this message]
2013-05-23 10:27               ` Ming Lei
2013-05-23 10:36                 ` Takashi Iwai
2013-05-23 10:45                   ` Ming Lei
2013-05-23 12:05                     ` Takashi Iwai
2013-05-23 13:04                       ` Ming Lei
2013-05-23 13:21                         ` Takashi Iwai
2013-05-23 14:28                           ` Ming Lei
2013-05-23 14:36                             ` Takashi Iwai
2013-05-23 14:48                               ` Dave Jones
2013-05-23 15:06                                 ` Takashi Iwai
2013-05-23 15:27                                   ` Ming Lei
2013-05-23 15:55                                     ` Dave Jones
2013-05-23 15:21                               ` Ming Lei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hsj1evvky.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=anish198519851985@gmail.com \
    --cc=davej@redhat.com \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom.leiming@gmail.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®