Arthur Heymans (arthur(a)aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16739
-gerrit
commit 6f72ca56b9afaf53af4bf19555e4ea2b9a42e2d6
Author: Arthur Heymans <arthur(a)aheymans.xyz>
Date: Sun Sep 25 22:36:26 2016 +0200
intel/gma/vbt.c: pad the ID string with spaces.
The VBT id string is 20 characters long.
If the string is shorter than 20 it needs spaces at the end.
Head used to be fully set to 0 (including signature). When an IDstring was
shorter than 20, the remaining part of the header->signature would still be 0.
This patch sets the remaining part to spaces just like the vbios does.
Linux (at least 4.1-4.7) does not seem to care a lot about VBT,
because previously it was not generated on i945 and the wrong string was
used on gm45 and those still worked properly.
Change-Id: Id6439f1d3dbd09319ee99ce9d15dbc3bcead1f53
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
src/drivers/intel/gma/vbt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/drivers/intel/gma/vbt.c b/src/drivers/intel/gma/vbt.c
index e768402..9ec09d3 100644
--- a/src/drivers/intel/gma/vbt.c
+++ b/src/drivers/intel/gma/vbt.c
@@ -34,7 +34,9 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *conf,
memset (head, 0, sizeof (*head));
- memcpy (head->signature, idstr, 20);
+ memset(head->signature, ' ', sizeof(head->signature));
+ memcpy(head->signature, idstr, MIN(strlen(idstr),
+ sizeof(head->signature)));
head->version = 100;
head->header_size = sizeof (*head);
head->bdb_offset = sizeof (*head);
Arthur Heymans (arthur(a)aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16739
-gerrit
commit f5010fa92f701c24dde10b7b27fa424e04b35f1c
Author: Arthur Heymans <arthur(a)aheymans.xyz>
Date: Sun Sep 25 22:36:26 2016 +0200
intel/gma/vbt.c: pad the ID string with spaces.
The VBT id string is 20 characters long.
If the string is shorter than 20 it needs spaces at the end.
Head used to be fully set to 0 (including signature). When an IDstring was
shorter the remaining part of the header->signature would still be 0.
This patch sets the remaining part to spaces just like the vbios does.
Linux (at least 4.1-4.7) does not seem to care a lot about VBT,
because previously it was not generated on i945 and the wrong string was
used on gm45 and those still worked properly.
Change-Id: Id6439f1d3dbd09319ee99ce9d15dbc3bcead1f53
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
src/drivers/intel/gma/vbt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/drivers/intel/gma/vbt.c b/src/drivers/intel/gma/vbt.c
index e768402..9ec09d3 100644
--- a/src/drivers/intel/gma/vbt.c
+++ b/src/drivers/intel/gma/vbt.c
@@ -34,7 +34,9 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *conf,
memset (head, 0, sizeof (*head));
- memcpy (head->signature, idstr, 20);
+ memset(head->signature, ' ', sizeof(head->signature));
+ memcpy(head->signature, idstr, MIN(strlen(idstr),
+ sizeof(head->signature)));
head->version = 100;
head->header_size = sizeof (*head);
head->bdb_offset = sizeof (*head);
the following patch was just integrated into master:
commit b87a734771449ed06cd91621da4c893a1ad722b0
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Sat Sep 24 08:53:34 2016 +0200
mainboard/*/*/dsdt.asl: Use tabs for indents
Change-Id: Idef587d8261784e916e8d50f4336cbcfca39b9b0
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16730
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
See https://review.coreboot.org/16730 for details.
-gerrit
Arthur Heymans (arthur(a)aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16739
-gerrit
commit ca5999f8728bb690aa3533b25c68ff05f35445af
Author: Arthur Heymans <arthur(a)aheymans.xyz>
Date: Sun Sep 25 22:36:26 2016 +0200
intel/gma/vbt.c: pad the ID string with spaces.
The VBT id string is 20 characters long.
If the string is shorter than 20 it needs spaces at the end.
Change-Id: Id6439f1d3dbd09319ee99ce9d15dbc3bcead1f53
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
src/drivers/intel/gma/vbt.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/drivers/intel/gma/vbt.c b/src/drivers/intel/gma/vbt.c
index e768402..f5cc839 100644
--- a/src/drivers/intel/gma/vbt.c
+++ b/src/drivers/intel/gma/vbt.c
@@ -34,7 +34,13 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *conf,
memset (head, 0, sizeof (*head));
- memcpy (head->signature, idstr, 20);
+ /*
+ * make sure the 20 char length signature is filled
+ * with spaces if the idstr is shorter than 20
+ */
+ memset(head->signature, ' ', sizeof(head->signature));
+ memcpy(head->signature, idstr, MIN(strlen(idstr),
+ sizeof(head->signature)));
head->version = 100;
head->header_size = sizeof (*head);
head->bdb_offset = sizeof (*head);
the following patch was just integrated into master:
commit f4df9d11560acf6f7c4c844cfd97a7da82f0d140
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Fri Sep 23 17:57:38 2016 +0200
mainboard/*/*/irq_tables.c: Use tabs for indents
Change-Id: Idc29373cb01f4304d22ae315812bd40f0aaa94c9
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16729
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
See https://review.coreboot.org/16729 for details.
-gerrit
the following patch was just integrated into master:
commit 57a3cd21f1a619891d65a2eb96005954b4672eaa
Author: Elyes HAOUAS <ehaouas(a)noos.fr>
Date: Wed Sep 21 21:14:02 2016 +0200
mainboard/lippert: Use tabs for indents
Change-Id: If16d55e4ba0702176dc61524915d215ea46c14ba
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
Reviewed-on: https://review.coreboot.org/16686
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
See https://review.coreboot.org/16686 for details.
-gerrit