For me "easily" mean I caused a kernel panic and/or a pci-error on every attempt to modify your code...

Anyway running an unmodified version of your tool I get this output:
./amdmemtweak -i 0 --current
#
NOTHING :-)
I think the problem is I'm using an OSS Driver from debian and not the amd one....
(
https://wiki.debian.org/it/AtiHowTo)
My card (WX-5100) is peculiar and I could not achive a decent install on debian 9 of the amd driver..
Anyway, still reading your code, a brilliant work! (even if I can understand just a 10% of it)
Bye
I added support for your GPU

You can check last commits how it's done, it's fairly easy.
So next time, when you encounter this "issue" you know what to do

I also pushed a new release with a bunch of new HBM2 timings and a bunch of fixes

Enjoy!
nice @Eliovp! Definitely recognized now. Time to play around, thanks for your work on this tool!

YOU ARE A MASTER!
root@clarosrv:~/build/amdmemorytweak# ./amdmemtweak --current
GPU 0: Device 67c7 pci:0000:42:00.0
CAS
CL: 22 W2R: 16 CCDS: 5 CCLD: 3 R2W: 30 NOPR: 0 NOPW: 0
RAS
RC: 74 RRD: 8 RCDRA: 25 RCDR: 25 RCDWA: 16 RCDW: 16
MISC
RFC: 164 TRP: 23 RP_RDA: 26 RP_WRA: 54
MISC2
WDATATR: 0 T32AW: 9 CRCWL: 25 CRCRL: 3 FAW: 14 PA2WDATA: 0 PA2RDATA: 0
DRAM1
RASMACTWR: 35 RASMACTRD: 30 ACTWR: 10 ACTRD: 15
DRAM2
RAS2RAS: 15 RP: 10 WRPLUSRP: 30 BUS_TURN: 35
You really deserve your donation man!
TXID 0x4563bf67d18a7bd552b3d78ada5ca59f57b76726f26f3263f8f48818ef30a1d8
Thank You!
