Displaying 5 results from an estimated 5 matches for "nvamemtiming_conf".
2014 Aug 25
2
[PATCH envytools] Fix range end to the last value of timing table.
---
 nva/set_timings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nva/set_timings.c b/nva/set_timings.c
index 7376486..985a707 100644
--- a/nva/set_timings.c
+++ b/nva/set_timings.c
@@ -506,7 +506,7 @@ shallow_dump(struct nvamemtiming_conf *conf)
 	if (conf->range.start == (unsigned char) -1)
 		conf->range.start = 0;
 	if (conf->range.end == (unsigned char) -1)
-		conf->range.end = conf->vbios.timing_entry_length;
+		conf->range.end = conf->vbios.timing_entry_length-1;
 
 	fprintf(stderr, "Shallow mode: Wil...
2014 Aug 31
0
[PATCH envytools] nvamemtiming: Handle target < initial case when iterating values
...me values are not tested at all.
---
 nva/set_timings.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/nva/set_timings.c b/nva/set_timings.c
index 6cd831c..7a8f845 100644
--- a/nva/set_timings.c
+++ b/nva/set_timings.c
@@ -408,7 +408,7 @@ static void
 iterate_values(struct nvamemtiming_conf *conf, FILE *outf, uint8_t index, enum color color)
 {
 	uint8_t initial, target;
-	int v;
+	int v, incr;
 
 	if (conf->mode != MODE_DEEP)
 		return;
@@ -416,7 +416,8 @@ iterate_values(struct nvamemtiming_conf *conf, FILE *outf, uint8_t index, enum c
 	initial = conf->vbios.data[conf->vbio...
2014 Aug 30
3
[PATCH envytools] nvbios: Fix reading of ram_restrict_group_count.
The entry offset was use instead of the data it points to. Probably a regression.
The files showing script parsing errors has been reduced from 410 to 6 with the database of 505 vbios.
---
 nvbios/mem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nvbios/mem.c b/nvbios/mem.c
index 81f2d1b..e4797e3 100644
--- a/nvbios/mem.c
+++ b/nvbios/mem.c
@@ -232,11 +232,11 @@
2014 Aug 31
6
[PATCH envytools] nvbios: Add missing null byte to string read from file.
---
 nvbios/nvbios.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/nvbios/nvbios.c b/nvbios/nvbios.c
index f7aafe3..28e62ad 100644
--- a/nvbios/nvbios.c
+++ b/nvbios/nvbios.c
@@ -774,11 +774,12 @@ int set_strap_from_string(const char* strap_s)
 int set_strap_from_file(const char *path)
 {
 	FILE *strapfile = NULL;
-	char tmp[21];
+	char tmp[22];
 
 	strapfile =
2014 Aug 28
0
[PATCH envytools] Fix range end to the last value of timing table.
...wrote:
> ---
>   nva/set_timings.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/nva/set_timings.c b/nva/set_timings.c
> index 7376486..985a707 100644
> --- a/nva/set_timings.c
> +++ b/nva/set_timings.c
> @@ -506,7 +506,7 @@ shallow_dump(struct nvamemtiming_conf *conf)
>   	if (conf->range.start == (unsigned char) -1)
>   		conf->range.start = 0;
>   	if (conf->range.end == (unsigned char) -1)
> -		conf->range.end = conf->vbios.timing_entry_length;
> +		conf->range.end = conf->vbios.timing_entry_length-1;
>   
>...