Skip to content

Commit

Permalink
Ignore invalid nbstates
Browse files Browse the repository at this point in the history
  • Loading branch information
AYuusuke committed Mar 5, 2024
1 parent 49f75d7 commit 2cb9322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ void printNbStates() {
const uint32_t addresses[][4] = {{0x160, 0x164, 0x168, 0x16c}};
for (int nbpstate = 0; nbpstate < nbpstates; nbpstate++) {
rwPciReg("18.5", addresses[0][nbpstate], 1);
if (!getDec("0:0")) continue;
nbvid = ((getDec("16:10") + (getDec("21:21") << 7)));
nbfid = getDec("7:7");
nbdid = getDec("6:1");
Expand Down

0 comments on commit 2cb9322

Please sign in to comment.