From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 66176] nouveau.perflvl kernel parameter doesn't work Date: Thu, 27 Jun 2013 12:58:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0481934806==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0481934806== Content-Type: multipart/alternative; boundary="1372337895.2Fd02.10412"; charset="us-ascii" --1372337895.2Fd02.10412 Date: Thu, 27 Jun 2013 12:58:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=66176 --- Comment #5 from Emil Velikov --- (In reply to comment #4) ... > to be *forced* to MANUAL, regardless of its previous state (which I suspect > is NONE) and then try and set the fan speed. I would call it "set", rather than "forced" In the second part you'll need a "reference point" - which can be one of * The kernel and/or "...I've also done this "manually" using the pathscale tools" * Mmio dump of the blob reclocking the card Initially I would recommend the former > > > * pclk->pll_calc seems to return 0, causing nv40_calc_pll() to throw ERANGE Confirm if the function nv40_calc_pll() is the one throwing ERANGE. Then dwell into the function, and analyse any differences with your "reff point". There may be a typo/inverted logic, as this code moved around in nouveau quite a few times > > * Some of the functions called within nouveau_mem_timing_calc() may need > > tweaking depending on now well we generate the appropriate memory timings nouveau_mem_timing_calc() * parses the memory timing table stored in vbios - nouveau_perf_timing() * generates the appropriate values based on the card generation - nv**_mem_timing_calc() * and the memory type - nouveau_mem_*ddr*() * On newer cards (iirc nvc0+) it maps the timings with memory frequency range. On previous generations the timings are related to the performance level rather than the memory frequency (range) > > > P.S. > > Only one zero is required to change the perflvl - "0" rather than "0,0" > Well, by looking at the code, the performance level consists of 2 parts - AC > (power) and DC (battery) separated by a comma (","), so I used "0,0" for the > sake of completeness. You got me there, I have no recollection when AC/DC got introduced ^_^ -- You are receiving this mail because: You are the assignee for the bug. --1372337895.2Fd02.10412 Date: Thu, 27 Jun 2013 12:58:15 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 5 on bug 66176 from
(In reply to comment #4)
...
> to be *forced* to MANUAL, regardless of its previous state (which I suspect
> is NONE) and then try and set the fan speed.

I would call it "set", rather than "forced"

In the second part you'll need a "reference point" - which can be one of
* The kernel and/or "...I've also done this "manually" using the pathscale
tools"
* Mmio dump of the blob reclocking the card

Initially I would recommend the former

> 
> > * pclk->pll_calc seems to return 0, causing nv40_calc_pll() to throw ERANGE

Confirm if the function nv40_calc_pll() is the one throwing ERANGE. Then dwell
into the function, and analyse any differences with your "reff point".  There
may be a typo/inverted logic, as this code moved around in nouveau quite a few
times

> > * Some of the functions called within nouveau_mem_timing_calc() may need
> > tweaking depending on now well we generate the appropriate memory timings

nouveau_mem_timing_calc()
* parses the memory timing table stored in vbios - nouveau_perf_timing()
* generates the appropriate values based on the card generation -
nv**_mem_timing_calc()
* and the memory type - nouveau_mem_*ddr*()
* On newer cards (iirc nvc0+) it maps the timings with memory frequency range.
On previous generations the timings are related to the performance level rather
than the memory frequency (range)

> 
> > P.S.
> > Only one zero is required to change the perflvl - "0" rather than "0,0"
> Well, by looking at the code, the performance level consists of 2 parts - AC
> (power) and DC (battery) separated by a comma (","), so I used "0,0" for the
> sake of completeness.

You got me there, I have no recollection when AC/DC got introduced ^_^


You are receiving this mail because:
  • You are the assignee for the bug.
--1372337895.2Fd02.10412-- --===============0481934806== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0481934806==--