MsrUtil icon indicating copy to clipboard operation
MsrUtil copied to clipboard

Fix L1 instruction and OP cache mixup in the Zen 4 Instruction Fetch view.

Open jedi95 opened this issue 1 year ago • 1 comments

Disabling the OP cache now shows 0% for Op$ Hitrate instead of L1i Hitrate.

Before: Before (Op$ Enabled) Before (Op$ Disabled)

After: After (Op$ Enabled) After (Op$ Disabled)

jedi95 avatar Sep 13 '24 00:09 jedi95

The "Op$ Ops" field value also seems suspect, but it's not clear what the fix is. The values shown are very different from the "Op Cache Ops" field from the "Loop Buffer" view. Switching this from counterData.ctr5 (L2 iTLB miss (page walk)) to counterData.ctr0 (OC Access) still shows disagreement with the "Loop Buffer" view.

jedi95 avatar Sep 13 '24 00:09 jedi95

Thanks for catching this! While looking over it I also noticed I left the oc ops field in there when I intended to move that to the "Loop Buffer" view. Also renamed "Loop Buffer" to "Ops from Frontend". I originally created that to work out Zen 4's loop buffer size, but it really gives an overview of where the frontend is sourcing its ops.

Fixed with a couple of commits

clamchowder avatar Oct 05 '24 04:10 clamchowder