Eliovp / amdmemorytweak

Read and modify memory timings on the fly
GNU General Public License v3.0
308 stars 81 forks source link

Decode memory timings from the given timing string. #5

Closed kusayuzayushko closed 5 years ago

kusayuzayushko commented 5 years ago

Will it be possible for you to make your tool be able to decode values from the given timing string? For example

./amdmemorytweak -s 777000000000000022CC1C00AD615C41C0590E152ECC8608006007000B031420FA8900A00300000010122F3FBA354019

So the ppl can actually use it for learning what's the difference between the default and moded timings. It will speed up the learning process for average users.

Eliovp commented 5 years ago

Hey,

There are already a few tools out there that do that :)

Cheers!

kusayuzayushko commented 5 years ago

Hey,

There are already a few tools out there that do that :)

Cheers!

i'm asking because it seems like OhGodADecode tools give different values

./ohgodadecode 777000000000000022AA1C00315A5436A0550F15B68C1506004082007C041420CA8980A9020004C01712262B612B3715
TRCDW=17 TRCDWA=17 TRCDR=22 TRCDRA=8 TRRD=5 TRC=54 Pad0=0

TNOPW=0 TNOPR=0 TR2W=26 TCCDL=2 TR2R=5 TW2R=15 Pad0=0 TCL=21 Pad1=0

TRP_WRA=54 TRP_RDA=25 TRP=22 TRFC=97 Pad0=0 

PA2RDATA=0 Pad0=0 PA2WDATA=0 Pad1=0 TFAW=0 TCRCRL=2 TCRCWL=2 TFAW32=4

MC_SEQ_MISC1: 0x2014047C
MC_SEQ_MISC3: 0xA98089CA
MC_SEQ_MISC8: 0xC0040002

ACTRD=23 ACTWR=18 RASMACTRD=38 RASMACTWR=43

RAS2RAS=97 RP=43 WRPLUSRP=55 BUS_TURN=21
$ sudo amdmemtool --current
GPU 0:  Ellesmere [Radeon RX 470/480/570/570X/580/580X] pci:0000:05:00.0
CAS
  CL: 21      W2R: 15     R2R: 5      CCLD: 2     R2W: 26
RAS
  RCDW: 17    RCDWA: 17   RCDR: 22    RCDRA: 8    RRD: 5      RC: 54
MISC
  RFC: 97     TRP: 5
MISC2
  FAW: 0
DRAM1
  ACTRD: 17   ACTWR: 2    RASMACTRD: 29   RASMACTWR: 43
DRAM2
  RAS2RAS: 17     RP: 2   WRPLUSRP: 29    BUS_TURN: 43
kusayuzayushko commented 5 years ago

Also, if you compate MISC values from you output to amdmeminfo output, there is a difference too.

sudo ./amdmeminfo -c    
AMDMemInfo by Zuikkis <zuikkis@gmail.com>
Updated by Yann St.Arnaud <ystarnaud@gmail.com> and Nerd Ralph
-----------------------------------
Found Card: 1002:67df rev e7 (AMD Radeon RX 580)
Chip Type: Polaris10
BIOS Version: 113-1E3660EU-O55
PCI: 05:00.0
OpenCL ID: 1
Subvendor:  0x1da2
Subdevice:  0xe366
Sysfs Path: /sys/bus/pci/devices/0000:05:00.0
Memory Configuration: 0x506003f2
SEQ_RAS_TIMING:
TRCDW=17 TRCDWA=17 TRCDR=22 TRCDRA=8 TRRD=5 TRC=54
SEQ_CAS_TIMING:
TNOPW=0 TNOPR=0 TR2W=26 TCCDL=2 TR2R=5 TW2R=15 TCL=21
SEQ_MISC_TIMING:
TRP_WRA=54 TRP_RDA=25 TRP=22 TRFC=97
SEQ_MISC_TIMING2:
PA2RDATA=0 PA2WDATA=0 TFAW=0 TREDC=2 TWEDC=22 T32AW=4
ARB_DRAM_TIMING:
ACTRD=17 ACTWR=2 RASMACTRD=29 RASMACTWR=43
Memory Type: GDDR5
Memory Model: Elpida EDW4032BABG
Eliovp commented 5 years ago

Please check again now

kusayuzayushko commented 5 years ago
GPU 0:  Ellesmere [Radeon RX 470/480/570/570X/580/580X] pci:0000:05:00.0
CAS
  CL: 21      W2R: 15     CCDS: 5     CCLD: 2     R2W: 26     NOPR: 0     NOPW: 0
RAS
  RC: 54      RRD: 5      RCDRA: 8    RCDR: 22    RCDWA: 17   RCDW: 17
MISC
  RFC: 97     TRP: 22     RP_RDA: 25      RP_WRA: 54
MISC2
  WDATATR: 0      T32AW: 4    CRCWL: 22   CRCRL: 2    FAW: 0      PA2WDATA: 0     PA2RDATA: 0
DRAM1
  RASMACTWR: 43   RASMACTRD: 29   ACTWR: 2    ACTRD: 17
DRAM2
  RAS2RAS: 17     RP: 2   WRPLUSRP: 29    BUS_TURN: 43

R2R is missing now in CAS section.

Eliovp commented 5 years ago

Got that all sorted in next release. (any day now 🔢 )