Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
util/ifdtool: Identify between ICH and PCH Revision
Consider IBEX_PEAK onwards all chipsets are belong to PCH family.
BUG=b:153888802 TEST=Able to print correct PCH revision on Hatch Platform.
ifdtool -d coreboot.rom
Without this CL : ICH Revision: 300 series Cannon Point/ 400 series Ice Point
With this CL : PCH Revision: 300 series Cannon Point/ 400 series Ice Point
Signed-off-by: Subrata Banik subrata.banik@intel.com Change-Id: Ifd40dddc9179f347c0ea75149ec08089a829fdb4 --- M util/ifdtool/ifdtool.c 1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/44816/1
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 1880900..b15b163 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -511,6 +511,13 @@ } }
+static int is_platform_with_pch(void) +{ + if (chipset >= CHIPSET_5_SERIES_IBEX_PEAK) + return 1; + + return 0; +} static void dump_fcba(const fcba_t *fcba) { printf("\nFound Component Section\n"); @@ -757,7 +764,10 @@ if (!fdb) exit(EXIT_FAILURE);
- printf("ICH Revision: %s\n", ich_chipset_names[chipset]); + if (is_platform_with_pch()) + printf("PCH Revision: %s\n", ich_chipset_names[chipset]); + else + printf("ICH Revision: %s\n", ich_chipset_names[chipset]); printf("FLMAP0: 0x%08x\n", fdb->flmap0); printf(" NR: %d\n", (fdb->flmap0 >> 24) & 7); printf(" FRBA: 0x%x\n", ((fdb->flmap0 >> 16) & 0xff) << 4);
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/1/util/ifdtool/ifdtool.c File util/ifdtool/ifdtool.c:
https://review.coreboot.org/c/coreboot/+/44816/1/util/ifdtool/ifdtool.c@767 PS1, Line 767: if (is_platform_with_pch()) : printf("PCH Revision: %s\n", ich_chipset_names[chipset]); : else : printf("ICH Revision: %s\n", ich_chipset_names[chipset]); nit: something like printf("%s", is_platform_with_pch() ? "PCH" : "ICH"); printf(" Revision: %s\n", ich_chipset_names[chipset]);
Hello build bot (Jenkins), Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44816
to look at the new patch set (#2).
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
util/ifdtool: Identify between ICH and PCH Revision
Consider IBEX_PEAK onwards all chipsets are belong to PCH family.
BUG=b:153888802 TEST=Able to print correct PCH revision on Hatch Platform.
ifdtool -d coreboot.rom
Without this CL : ICH Revision: 300 series Cannon Point/ 400 series Ice Point
With this CL : PCH Revision: 300 series Cannon Point/ 400 series Ice Point
Signed-off-by: Subrata Banik subrata.banik@intel.com Change-Id: Ifd40dddc9179f347c0ea75149ec08089a829fdb4 --- M util/ifdtool/ifdtool.c 1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/44816/2
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/1/util/ifdtool/ifdtool.c File util/ifdtool/ifdtool.c:
https://review.coreboot.org/c/coreboot/+/44816/1/util/ifdtool/ifdtool.c@767 PS1, Line 767: if (is_platform_with_pch()) : printf("PCH Revision: %s\n", ich_chipset_names[chipset]); : else : printf("ICH Revision: %s\n", ich_chipset_names[chipset]);
nit: something like […]
Ack
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/2/util/ifdtool/ifdtool.c File util/ifdtool/ifdtool.c:
https://review.coreboot.org/c/coreboot/+/44816/2/util/ifdtool/ifdtool.c@769 PS2, Line 769: printf("%s", is_platform_with_pch() ? "PCH": "ICH"); spaces required around that ':' (ctx:VxW)
Hello build bot (Jenkins), Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44816
to look at the new patch set (#3).
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
util/ifdtool: Identify between ICH and PCH Revision
Consider IBEX_PEAK onwards all chipsets are belong to PCH family.
BUG=b:153888802 TEST=Able to print correct PCH revision on Hatch Platform.
ifdtool -d coreboot.rom
Without this CL : ICH Revision: 300 series Cannon Point/ 400 series Ice Point
With this CL : PCH Revision: 300 series Cannon Point/ 400 series Ice Point
Signed-off-by: Subrata Banik subrata.banik@intel.com Change-Id: Ifd40dddc9179f347c0ea75149ec08089a829fdb4 --- M util/ifdtool/ifdtool.c 1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/44816/3
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/2/util/ifdtool/ifdtool.c File util/ifdtool/ifdtool.c:
https://review.coreboot.org/c/coreboot/+/44816/2/util/ifdtool/ifdtool.c@769 PS2, Line 769: printf("%s", is_platform_with_pch() ? "PCH": "ICH");
spaces required around that ':' (ctx:VxW)
Done
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 3: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/44816/3//COMMIT_MSG@10 PS3, Line 10: family. nit: fits on previous line
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/44816/3//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/44816/3//COMMIT_MSG@10 PS3, Line 10: family.
nit: fits on previous line
Ack
Hello build bot (Jenkins), Tim Wawrzynczak, Stefan Reinauer,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44816
to look at the new patch set (#4).
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
util/ifdtool: Identify between ICH and PCH Revision
Consider IBEX_PEAK onwards all chipsets are belong to PCH family.
BUG=b:153888802 TEST=Able to print correct PCH revision on Hatch Platform.
ifdtool -d coreboot.rom
Without this CL : ICH Revision: 300 series Cannon Point/ 400 series Ice Point
With this CL : PCH Revision: 300 series Cannon Point/ 400 series Ice Point
Signed-off-by: Subrata Banik subrata.banik@intel.com Change-Id: Ifd40dddc9179f347c0ea75149ec08089a829fdb4 --- M util/ifdtool/ifdtool.c 1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/44816/4
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
Patch Set 4: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/44816 )
Change subject: util/ifdtool: Identify between ICH and PCH Revision ......................................................................
util/ifdtool: Identify between ICH and PCH Revision
Consider IBEX_PEAK onwards all chipsets are belong to PCH family.
BUG=b:153888802 TEST=Able to print correct PCH revision on Hatch Platform.
ifdtool -d coreboot.rom
Without this CL : ICH Revision: 300 series Cannon Point/ 400 series Ice Point
With this CL : PCH Revision: 300 series Cannon Point/ 400 series Ice Point
Signed-off-by: Subrata Banik subrata.banik@intel.com Change-Id: Ifd40dddc9179f347c0ea75149ec08089a829fdb4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44816 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M util/ifdtool/ifdtool.c 1 file changed, 9 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Tim Wawrzynczak: Looks good to me, approved
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c index 2388ebc..fa7817a 100644 --- a/util/ifdtool/ifdtool.c +++ b/util/ifdtool/ifdtool.c @@ -513,6 +513,13 @@ } }
+static int is_platform_with_pch(void) +{ + if (chipset >= CHIPSET_5_SERIES_IBEX_PEAK) + return 1; + + return 0; +} static void dump_fcba(const fcba_t *fcba) { printf("\nFound Component Section\n"); @@ -759,7 +766,8 @@ if (!fdb) exit(EXIT_FAILURE);
- printf("ICH Revision: %s\n", ich_chipset_names[chipset]); + printf("%s", is_platform_with_pch() ? "PCH" : "ICH"); + printf(" Revision: %s\n", ich_chipset_names[chipset]); printf("FLMAP0: 0x%08x\n", fdb->flmap0); printf(" NR: %d\n", (fdb->flmap0 >> 24) & 7); printf(" FRBA: 0x%x\n", ((fdb->flmap0 >> 16) & 0xff) << 4);