The BBCC chip test provides a method for determining the BBCC revision on the IP21 board through software.
To run this program, type the following information into a file script and then run the file.
#include <sys/types.h>
#include <sys/syssgi.h>
#include <sys/mips_addrspace.h>
#include <sys/EVEREST/IP21.h>
#include <sys/EVEREST/evconfig.h>
evcfginfo_t evcfg;
evbrdinfo_t *board;
int slot, bad = 0;
main()
{
if (syssgi(SGI_GET_EVCONF, &evcfg) == -1)
exit(perror("syssgi"));
for (slot = 0; slot < EV_MAX_SLOTS; slot++) {
board = &evcfg.ecfg_board[slot];
if (board->eb_type == EVTYPE_IP21 && board->eb_enabled)
if (board->eb_un.ebun_cpu.eb_ccrev == 4) {
bad = 1;
printf("BBCC in slot %d is not safe for MP graphics.\n", slot);
}
}
if (bad == 0)
printf("All BBCC chips are up to graphics ready rev.\n");
} |
If the test passes, you see this message:
"All BBCC chips are up to graphics ready rev." |
If the test fails, you see this message:
BBCC in slot %d is not safe for MP graphics. |
In this example, slot %d is the slot number of the server-only IP21 board.