All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Costa <titan.costa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Martin Peres <martin.peres-GANU6spQydw@public.gmane.org>,
	"nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH envytools] nvamemtiming: Handle target < initial case when iterating values
Date: Sun, 31 Aug 2014 16:01:23 +0200	[thread overview]
Message-ID: <54032AB3.3000508@gmail.com> (raw)
In-Reply-To: <54031F56.4070906-GANU6spQydw@public.gmane.org>

Le 31/08/2014 15:12, Martin Peres a écrit :
> On 31/08/2014 15:00, Christian Costa wrote:
>> Otherwise some values are not tested at all.
> I would rather have a warning than the program doing stuff behind my 
> back. This is a dev tool, dumb == good ;)
>
But why didn't you call it Dumb mode rather that Deep mode. That way, I 
wouldn't have tried to use it and figure out what it does. ;p

So about my problem,

Command:
sudo nvamemtiming pramin 0x6a22 3 0 -d 5

Vbios info:
Table offset at 0x6a22
Entry 3 => 0x6a73: 0d 06 0f 26 00 45 00 1b 00 0b 0d 08 04 0c 01 00 00 00 
03 03 10 0a 09 00 03
Entry 5 => 0x6aa5: 05 04 08 05 00 09 00 03 00 02 02 02 02 0c 02 00 00 00 
03 03 08 0a 0f 00 02

With the current code, I get these iterations:
timing table at: 6a22
Deep mode: Will iterate between 5 and 24
idx 5, initial 45, target 9
idx 7, initial 1b, target 3
idx 9, initial b, target 2
idx 10, initial d, target 2
idx 11, initial 8, target 2
idx 12, initial 4, target 2
idx 13, initial c, target c
idx 18, initial 3, target 3
idx 19, initial 3, target 3
idx 20, initial 10, target 8
idx 21, initial a, target a
idx 22, initial 9, target f => a b c d e f
idx 24, initial 3, target 2

It does not test much for the reason most of the time the target value 
is lower than the initial one.

With my patch:
timing table at: 6a22
Deep mode: Will iterate between 5 and 24
idx 5, initial 45, target 9 => 44 43 42 41 40 3f 3e 3d 3c 3b 3a 39 38 37 
36 35 34 33 32 31 30 2f 2e 2d 2c 2b 2a 29 28 27 26 25 24 23 22 21 20 1f 
1e 1d 1c 1b 1a 19 18 17 16 15 14 13 12 11 10 f e d c b a 9
idx 7, initial 1b, target 3 => 1a 19 18 17 16 15 14 13 12 11 10 f e d c 
b a 9 8 7 6 5 4 3
idx 9, initial b, target 2 => a 9 8 7 6 5 4 3 2
idx 10, initial d, target 2 => c b a 9 8 7 6 5 4 3 2
idx 11, initial 8, target 2 => 7 6 5 4 3 2
idx 12, initial 4, target 2 => 3 2
idx 13, initial c, target c
idx 18, initial 3, target 3
idx 19, initial 3, target 3
idx 20, initial 10, target 8 => f e d c b a 9 8
idx 21, initial a, target a
idx 22, initial 9, target f => a b c d e f
idx 24, initial 3, target 2 =>2

Maybe shallow mode would be enough to test timing but what the purpose 
of deep mode in that case ?

Christian

  parent reply	other threads:[~2014-08-31 14:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 13:00 [PATCH envytools] nvbios: Add missing null byte to string read from file Christian Costa
     [not found] ` <1409490042-8725-1-git-send-email-titan.costa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 13:00   ` [PATCH envytools] nva: Add nvaforcetemp to git ignore and sort it for better update Christian Costa
     [not found]     ` <1409490042-8725-2-git-send-email-titan.costa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 13:13       ` Martin Peres
2014-08-31 13:00   ` [PATCH envytools] nvamemtiming: Update usage Christian Costa
2014-08-31 13:00   ` [PATCH envytools] nvamemtiming: Handle target < initial case when iterating values Christian Costa
     [not found]     ` <1409490042-8725-4-git-send-email-titan.costa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 13:12       ` Martin Peres
     [not found]         ` <54031F56.4070906-GANU6spQydw@public.gmane.org>
2014-08-31 14:01           ` Christian Costa [this message]
     [not found]             ` <54032AB3.3000508-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 14:11               ` Martin Peres
     [not found]                 ` <54032D11.1000601-GANU6spQydw@public.gmane.org>
2014-08-31 14:19                   ` Christian Costa
     [not found]                     ` <54032F00.6000500-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 14:23                       ` Martin Peres
     [not found]                         ` <54032FE2.7020602-GANU6spQydw@public.gmane.org>
2014-08-31 15:18                           ` Christian Costa
     [not found]                             ` <54033CAC.7020001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 15:20                               ` Christian Costa
     [not found]                                 ` <54033D47.40902-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-31 15:38                                   ` Martin Peres
2014-08-31 13:16   ` [PATCH envytools] nvbios: Add missing null byte to string read from file Martin Peres

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=54032AB3.3000508@gmail.com \
    --to=titan.costa-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=martin.peres-GANU6spQydw@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 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.