Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46666 )
Change subject: ectool: Add newline to warning message
......................................................................
ectool: Add newline to warning message
Cosmetic fix:
$ sudo ./ectool -p
Cannot get EC ports from /proc/ioports, fallback to default.EC RAM:
Change-Id: Icc2b5bbbbfe7685e4fe512af029ce00b33a26daa
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
M util/ectool/ectool.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/46666/1
diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c
index 0b238c4..cb6f280 100644
--- a/util/ectool/ectool.c
+++ b/util/ectool/ectool.c
@@ -127,7 +127,7 @@
if (get_ports && get_ec_ports() != 0)
fprintf(stderr, "Cannot get EC ports from /proc/ioports, "
- "fallback to default.");
+ "fallback to default.\n");
if (iopl(3)) {
printf("You need to be root.\n");
--
To view, visit https://review.coreboot.org/c/coreboot/+/46666
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Icc2b5bbbbfe7685e4fe512af029ce00b33a26daa
Gerrit-Change-Number: 46666
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-MessageType: newchange
Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46673 )
Change subject: inteltool: Only use real graphics devices
......................................................................
inteltool: Only use real graphics devices
Right now IGD is hard coded to 0:2.0 and if that
device is there, it is blindly used, even if it is
not a graphics device. Look at the PCI class to make
sure we're not using the wrong device.
Change-Id: Ia7f52071bd202e2960faba0f46e4fa5e14ad65f8
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
M util/inteltool/inteltool.c
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/46673/1
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index aadd0fb..3fb7707 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -773,13 +773,13 @@
}
gfx = pci_get_dev(pacc, 0, 0, 0x02, 0);
-
if (gfx) {
pci_fill_info(gfx, PCI_FILL_IDENT | PCI_FILL_BASES |
PCI_FILL_CLASS);
-
- if (gfx->vendor_id != PCI_VENDOR_ID_INTEL)
- gfx = 0;
+ if ((gfx->device_class & 0xff00) != 0x0300)
+ gfx = NULL;
+ else if (gfx->vendor_id != PCI_VENDOR_ID_INTEL)
+ gfx = NULL;
}
if (sb->device_id == PCI_DEVICE_ID_INTEL_BAYTRAIL_LPC) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/46673
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7f52071bd202e2960faba0f46e4fa5e14ad65f8
Gerrit-Change-Number: 46673
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-MessageType: newchange
Name of user not set #1003143 has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46684 )
Change subject: tests: Add test region and symbol macros to <tests/test.h>
......................................................................
tests: Add test region and symbol macros to <tests/test.h>
Some modules require and operate on memory regions and symbols.
This macros systematize how they are defined in testing code.
Signed-off-by: Jakub Czapiga <jacz(a)semihalf.com>
Change-Id: I314028c201732416bb3d5446a4c8585e055073e3
---
M tests/include/tests/test.h
1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/46684/1
diff --git a/tests/include/tests/test.h b/tests/include/tests/test.h
index 4dc9988..6d6d6d9 100644
--- a/tests/include/tests/test.h
+++ b/tests/include/tests/test.h
@@ -14,4 +14,17 @@
#include <setjmp.h>
#include <cmocka.h>
+/*
+ * Set symbol value and make it global.
+ */
+#define TEST_SYMBOL(symbol, address) asm ( ".set " #symbol ", " #address "\n\t.globl " #symbol )
+
+/*
+ * Define memory region for testing purpose.
+ *
+ * Create buffer with specified name and size.
+ * Create end symbol for it.
+ */
+#define TEST_REGION(region, size) uint8_t _##region[size]; TEST_SYMBOL(_e##region, _##region + size)
+
#endif /* _TESTS_TEST_H */
--
To view, visit https://review.coreboot.org/c/coreboot/+/46684
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I314028c201732416bb3d5446a4c8585e055073e3
Gerrit-Change-Number: 46684
Gerrit-PatchSet: 1
Gerrit-Owner: Name of user not set #1003143
Gerrit-MessageType: newchange