util/intelmetool: Try to activate the ME before scanning PCIe for it
When the ME is hidden (most likely because it was disabled), it cannot be found until activate_me() is called. Change-Id: Ie1f65f61eb131577d7254af582e2709660f4da27 Signed-off-by: Dan Elkouby <streetwalrus@codewalr.us> Reviewed-on: https://review.coreboot.org/18149 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
26949e65af
commit
e8ad3c7b95
|
@ -68,7 +68,7 @@ static void rehide_me() {
|
||||||
printf("Re-hiding MEI device...");
|
printf("Re-hiding MEI device...");
|
||||||
fd2 = *(uint32_t *)(rcba + FD2);
|
fd2 = *(uint32_t *)(rcba + FD2);
|
||||||
*(uint32_t *)(rcba + FD2) = fd2 | 0x2;
|
*(uint32_t *)(rcba + FD2) = fd2 | 0x2;
|
||||||
printf("done, ");
|
printf("done\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,12 +231,12 @@ static void dump_me_info() {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
dev = pci_me_interface_scan(&name);
|
if (activate_me()) {
|
||||||
if (!dev) {
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activate_me()) {
|
dev = pci_me_interface_scan(&name);
|
||||||
|
if (!dev) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue