I've made a tool for overclocking BCLK in Linux, but I am unsure which AMD cpus are supported or not. I've only tested it on Ryzen 5 5600 and Ryzen 5 5600H so far. I would really appreciate more ryzen architectures being tested.

Link to the tool:
https://github.com/rafradek/zen-bclk-oc

How to test it:

  • clone the repository
  • install requirements (dkms and build tools)
  • install sysbench
  • sudo make dkms-installin repository (and check if it compiles)
  • reboot
  • run echo 100000 | sudo tee /sys/devices/platform/zen-bclk-oc/bclk_khz to ensure default bclk
  • run sudo chrt 99 sysbench cpu run --time=1 twice
  • run echo 99000 | sudo tee /sys/devices/platform/zen-bclk-oc/bclk_khz to reduce bclk by 1MHz
  • run sudo chrt 99 sysbench cpu run --time=1 twice
  • check if the events per second from the benchmark after reducing bclk is smaller by 1% than before reducing it