Home | History | Annotate | Download | only in hammer
      1 #
      2 # AMD Athlon(tm)64 and AMD Opteron(tm) processor unit masks
      3 #
      4 # Copyright OProfile authors
      5 # Copyright (c) Advanced Micro Devices, 2006-2008
      6 # Contributed by Ray Bryant <raybry (at] amd.com>, and others.
      7 #
      8 # Source: BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh Processors,
      9 #         Publication# 32559, Revision 3.08, July 2007
     10 #
     11 # This file was last updated on 10 January 2008:
     12 #
     13 #    Unit mask (writtentosystem) was added for the
     14 #    QUADWORD_WRITE_TRANSFERS event.
     15 #
     16 name:zero type:mandatory default:0x0
     17 	0x0 No unit mask
     18 name:moesi type:bitmask default:0x1f
     19 	0x01 (I)nvalid cache state
     20 	0x02 (S)hared cache state
     21 	0x04 (E)xclusive cache state
     22 	0x08 (O)wned cache state
     23 	0x10 (M)odified cache state
     24 	0x1f All cache states
     25 name:moess type:bitmask default:0x1e
     26 	0x01 refill from system
     27 	0x02 (S)hared cache state from L2
     28 	0x04 (E)xclusive cache state from L2
     29 	0x08 (O)wned cache state from L2
     30 	0x10 (M)odified cache state from L2
     31 	0x1e All cache states except Invalid
     32 name:fpu_ops type:bitmask default:0x3f
     33 	0x01 Add pipe ops
     34 	0x02 Multiply pipe
     35 	0x04 Store pipe ops
     36 	0x08 Add pipe load ops
     37 	0x10 Multiply pipe load ops
     38 	0x20 Store pipe load ops
     39 name:segregload type:bitmask default:0x7f
     40 	0x01 ES register
     41 	0x02 CS register
     42 	0x04 SS register
     43 	0x08 DS register
     44 	0x10 FS register
     45 	0x20 GS register
     46 	0x40 HS register
     47 name:ecc type:bitmask default:0x03
     48 	0x01 Scrubber error
     49 	0x02 Piggyback scrubber errors
     50 name:prefetch type:bitmask default:0x07
     51 	0x01 Load
     52 	0x02 Store
     53 	0x04 NTA
     54 name:fpu_instr type:bitmask default:0x0f
     55 	0x01 x87 instructions
     56 	0x02 Combined MMX & 3DNow instructions
     57 	0x04 Combined packed SSE & SSE2 instructions
     58 	0x08 Combined packed scalar SSE & SSE2 instructions
     59 name:fpu_fastpath type:bitmask default:0x07
     60 	0x01 With low op in position 0
     61 	0x02 With low op in position 1
     62 	0x04 With low op in position 2
     63 name:fpu_exceptions type:bitmask default:0x0f
     64 	0x01 x87 reclass microfaults
     65 	0x02 SSE retype microfaults
     66 	0x04 SSE reclass microfaults
     67 	0x08 SSE and x87 microtraps
     68 name:page_access type:bitmask default:0x07
     69 	0x01 Page hit
     70 	0x02 Page miss
     71 	0x04 Page conflict
     72 name:turnaround type:bitmask default:0x07
     73 	0x01 DIMM (chip select) turnaround
     74 	0x02 Read to write turnaround
     75 	0x04 Write to read turnaround
     76 name:saturation type:bitmask default:0x0f
     77 	0x01 Memory controller high priority bypass
     78 	0x02 Memory controller low priority bypass
     79 	0x04 DRAM controller interface bypass
     80 	0x08 DRAM controller queue bypass
     81 name:sizecmds type:bitmask default:0x7f
     82 	0x01 Non-posted write byte
     83 	0x02 Non-posted write dword
     84 	0x04 Posted write byte
     85 	0x08 Posted write dword
     86 	0x10 Read byte (4 bytes)
     87 	0x20 Read dword (1-16 dwords)
     88 	0x40 Read-modify-write
     89 name:probe type:bitmask default:0x0f
     90 	0x01 Probe miss
     91 	0x02 Probe hit clean
     92 	0x04 Probe hit dirty without memory cancel
     93 	0x08 Probe hit dirty with memory cancel
     94 	0x10 Upstream display refresh reads
     95 	0x20 Upstream non-display refresh reads
     96 	0x40 Upstream writes (RevD and later)
     97 name:ht type:bitmask default:0x7
     98 	0x01 Command sent
     99 	0x02 Data sent
    100 	0x04 Buffer release sent
    101 	0x08 NOP sent
    102 name:l2_internal type:bitmask default:0x1f
    103 	0x01 IC fill
    104 	0x02 DC fill
    105 	0x04 TLB fill (page table walk)
    106 	0x08 Tag snoop request
    107 	0x10 Cancelled request
    108 name:l2_req_miss type:bitmask default:0x07
    109 	0x01 IC fill
    110 	0x02 DC fill
    111 	0x04 TLB page table walk
    112 name:l2_fill type:bitmask default:0x03
    113 	0x01 L2 fills (victims from L1 caches, TLB page table walks and data prefetches)
    114 	0x02 L2 writebacks to system
    115 name:gart type:bitmask default:0x07
    116 	0x01 GART aperture hit on access from CPU
    117 	0x02 GART aperture hit on access from I/O
    118 	0x04 GART miss
    119 name:sizedblocks type:bitmask default:0x3c
    120 	0x04 32-byte Sized Writes (RevD and later)
    121 	0x08 64-byte Sized Writes (RevD and later)
    122 	0x10 32-byte Sized Reads (RevD and later)
    123 	0x20 64-byte Sized Reads (RevD and later)
    124 name:cpiorequests type:bitmask default:0xa2
    125 	0xa1 Requests Local I/O to Local I/O
    126 	0xa2 Requests Local I/O to Local Memory
    127 	0xa3 Requests Local I/O to Local (I/O or Mem) 
    128 	0xa4 Requests Local CPU to Local I/O
    129 	0xa5 Requests Local (CPU or I/O) to Local I/O
    130 	0xa8 Requests Local CPU to Local Memory
    131 	0xaa Requests Local (CPU or I/O) to Local Memory
    132 	0xac Requests Local CPU to Local (I/O or Mem)
    133 	0xaf Requests Local (CPU or I/O) to Local (I/O or Mem)
    134 	0x91 Requests Local I/O to Remote I/O
    135 	0x92 Requests Local I/O to Remote Memory
    136 	0x93 Requests Local I/O to Remote (I/O or Mem)
    137 	0x94 Requests Local CPU to Remote I/O
    138 	0x95 Requests Local (CPU or I/O) to Remote I/O
    139 	0x98 Requests Local CPU to Remote Memory
    140 	0x9a Requests Local (CPU or I/O) to Remote Memory
    141 	0x9c Requests Local CPU to Remote (I/O or Mem)
    142 	0x9f Requests Local (CPU or I/O) to Remote (I/O or Mem)
    143 	0xb1 Requests Local I/O to Any I/O
    144 	0xb2 Requests Local I/O to Any Memory
    145 	0xb3 Requests Local I/O to Any (I/O or Mem)
    146 	0xb4 Requests Local CPU to Any I/O
    147 	0xb5 Requests Local (CPU or I/O) to Any I/O
    148 	0xb8 Requests Local CPU to Any Memory
    149 	0xba Requests Local (CPU or I/O) to Any Memory
    150 	0xbc Requests Local CPU to Any (I/O or Mem)
    151 	0xbf Requests Local (CPU or I/O) to Any (I/O or Mem)
    152 	0x61 Requests Remote I/O to Local I/O
    153 	0x64 Requests Remote CPU to Local I/O
    154 	0x65 Requests Remote (CPU or I/O) to Local I/O
    155 name:cacheblock type:bitmask default:0x3d
    156 	0x01 Victim Block (Writeback)
    157 	0x04 Read Block (Dcache load miss refill)
    158 	0x08 Read Block Shared (Icache refill)
    159 	0x10 Read Block Modified (Dcache store miss refill)
    160 	0x20 Change to Dirty (first store to clean block already in cache)
    161 name:dataprefetch type:bitmask default:0x03
    162 	0x01 Cancelled prefetches
    163 	0x02 Prefetch attempts
    164 name:memreqtype type:bitmask default:0x83
    165 	0x01 Requests to non-cacheable (UC) memory
    166 	0x02 Requests to write-combining (WC) memory or WC buffer flushes to WB memory
    167 	0x80 Streaming store (SS) requests
    168 name:systemreadresponse type:bitmask default:0x7
    169 	0x01 Exclusive
    170 	0x02 Modified
    171 	0x04 Shared
    172 name:writtentosystem type:bitmask default:0x1
    173 	0x01 Quadword write transfer
    174 # BKDG 3.28 does not include unit_mask of 0x01 for "accesses by Locked instructions"
    175 name:dcachemisslocked type:bitmask default:0x02
    176 	0x02 Data cache misses by locked instructions
    177 name:locked_ops type:bitmask default:0x04
    178 	0x01 The number of locked instructions executed
    179 	0x02 The number of cycles spent in speculative phase
    180 	0x04 The number of cycles spent in non-speculative phase (including cache miss penalty)
    181 name:thermalecc type:bitmask default:0x80
    182 	0x01 Number of clocks CPU is active when HTC is active (RevF)
    183 	0x02 Number of clocks CPU clock is inactive when HTC is active (RevF)
    184 	0x04 Number of clocks when die temperature is higher than the software high temperature threshold (RevF)
    185 	0x08 Number of clocks when high temperature threshold was exceeded (RevF)
    186 	0x80 Number of correctable and uncorrectable DRAM ECC errors (RevE)
    187