Skip to content

Commit 2cb9322

Browse files
committed
Ignore invalid nbstates
1 parent 49f75d7 commit 2cb9322

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

amdctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ void printNbStates() {
745745
const uint32_t addresses[][4] = {{0x160, 0x164, 0x168, 0x16c}};
746746
for (int nbpstate = 0; nbpstate < nbpstates; nbpstate++) {
747747
rwPciReg("18.5", addresses[0][nbpstate], 1);
748+
if (!getDec("0:0")) continue;
748749
nbvid = ((getDec("16:10") + (getDec("21:21") << 7)));
749750
nbfid = getDec("7:7");
750751
nbdid = getDec("6:1");

0 commit comments

Comments
 (0)