Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1361876

Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c

From "Rafael J. Wysocki" <rjw@rjwysocki.net>
Newsgroups linux.kernel
Subject Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c
Date 2016-03-21 15:10 +0100
Message-ID <rf8GU-6NS-37@gated-at.bofh.it> (permalink)
References <rdFQC-7QE-21@gated-at.bofh.it> <re6QO-3H6-5@gated-at.bofh.it> <rf4jU-3xO-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Monday, March 21, 2016 10:28:09 AM Stephane Gasparini wrote:
> 
> —
> Steph
> 
> 
> 
> 
> > On Mar 18, 2016, at 6:52 PM, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> wrote:
> > 
> > On Fri, 2016-03-18 at 17:13 +0100, Stephane Gasparini wrote:
> >> Rafael,
> >> 
> >> Why in step 3) both atom_set_pstate() and atom_set_pstate() were not
> >> both
> >> changed to use wrmsrl ?
> > Initial Atom support was experimental as there were no users, till
> > Chrome started using. So it was just a miss.
> > 
> > We should never have to use wrmsrl_on_cpu. But looks like
> > cpufreq_driver.init() can't guarantee that.
> > 
> >> BTW, what is the interest of setting the pstate to LFM during
> >> initialization ?
> >> The BIOS is setting the pstate to either LFM, HFM or BFM, and why
> >> bothering
> >> changing it.
> > This is a different issue. BIOS has different configuration option to
> > enable fast boot modes which are not necessarily optimized for Linux.
> > Some aggressive setting will force system to reboot on boot. So I will
> > leave the way it is.
> 
> Here is my understanding.
> 
> 1) until the driver starts, the CPUS will anyway starts at the P-State set by the BIOS.
> 2) even if you force it to Lowest P-State in init Intel P-State init, if there is load associated
>    to the execution, 10ms after (or may be quicker with the new scheduler based option) the
>    P-State will again set to P0.
> 
> so because 1) and 2) you’ll have basically the following behavior assuming we have high load
> during boot, as this what can cause a reboot due to high frequencies I assume
> 
> a) BIOS set LFM
> 10 ms after init of intel P-State, CPUs will go to Turbo according to load.
> 
> b) BIOS set HFM
> CPU will boot to HFM until we reach intel_state init.
> During 10ms, CPU will be at LFM.
> Due to load they will go up to BFM.
> 
> c) BIOS set to BFM.
> CPU will boot to BFM until we reach intel_state init.
> During 10ms, CPU will be at LFM.
> Due to load they will go up to BFM.
> 
> So I may have miss something but I do not see what is the real benefit of doing this init to LFM 
> that will last for 10ms.
> 
> I still think this initialization is useless and complexity the code.
> 
> Can you point me to case where having this initialization did solve an issue so that I understand 
> the interest of doing this initialization ?

What you're saying above makes sense, but that change wouldn't belong to the
patch in question anyway.

Please consider submitting another patch to make that change if you think it's
worth the effort.

Thanks,
Rafael

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Josh Boyer <jwboyer@fedoraproject.org> - 2016-03-17 17:50 +0100
  Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-03-18 01:20 +0100
    Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Josh Boyer <jwboyer@fedoraproject.org> - 2016-03-18 13:40 +0100
      Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-03-18 15:40 +0100
        Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Stephane Gasparini <stephane.gasparini@linux.intel.com> - 2016-03-18 17:20 +0100
          Re: intel_pstate oopses and lockdep report with Linux  v4.5-1822-g63e30271b04c Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> - 2016-03-18 19:00 +0100
            Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Stephane Gasparini <stephane.gasparini@linux.intel.com> - 2016-03-18 19:40 +0100
              Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rafael@kernel.org> - 2016-03-18 22:50 +0100
                Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Stephane Gasparini <stephane.gasparini@linux.intel.com> - 2016-03-21 10:40 +0100
                Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-03-21 15:10 +0100
            Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Stephane Gasparini <stephane.gasparini@linux.intel.com> - 2016-03-21 10:30 +0100
              Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-03-21 15:10 +0100
                Re: intel_pstate oopses and lockdep report with Linux  v4.5-1822-g63e30271b04c Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> - 2016-03-21 20:40 +0100
                Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rafael@kernel.org> - 2016-03-21 23:10 +0100
        Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c Josh Boyer <jwboyer@fedoraproject.org> - 2016-03-18 18:40 +0100
          Re: intel_pstate oopses and lockdep report with Linux v4.5-1822-g63e30271b04c "Rafael J. Wysocki" <rafael@kernel.org> - 2016-03-18 23:30 +0100

csiph-web