From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 109955] amdgpu [RX Vega 64] system freeze while gaming Date: Wed, 23 Oct 2019 08:51:29 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1908157518==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B04C6E9F2 for ; Wed, 23 Oct 2019 08:51:29 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1908157518== Content-Type: multipart/alternative; boundary="15718206896.da3e5.29017" Content-Transfer-Encoding: 7bit --15718206896.da3e5.29017 Date: Wed, 23 Oct 2019 08:51:29 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D109955 --- Comment #119 from haro41@gmx.de --- bellow is a simple script, i use to record dpm data in the background: ###################################################### #!/bin/bash # adapt this sample inverval (seconds) SLEEP_INTERVAL=3D0.05 # adapt the paths to your need FILE_SCLK=3D/sys/class/drm/card0/device/hwmon/hwmon0/freq1_input FILE_MCLK=3D/sys/class/drm/card0/device/hwmon/hwmon0/freq2_input FILE_PWM=3D/sys/class/drm/card0/device/hwmon/hwmon0/pwm1 FILE_TEMP=3D/sys/class/drm/card0/device/hwmon/hwmon0/temp1_input FILE_FAN=3D/sys/class/drm/card0/device/hwmon/hwmon0/fan1_input FILE_GFXVDD=3D/sys/class/drm/card0/device/hwmon/hwmon0/in0_input FILE_POW=3D/sys/class/drm/card0/device/hwmon/hwmon0/power1_average FILE_BUS=3D/sys/class/drm/card0/device/gpu_busy_percent # checking for privileges if [ $UID -ne 0 ] then echo "Writing to sysfs requires privileges, relaunch as root" exit 1 fi function read_output { SCLK=3D$(cat $FILE_SCLK) MCLK=3D$(cat $FILE_MCLK) TEMP=3D$(cat $FILE_TEMP) FAN=3D$(cat $FILE_FAN) GFXVDD=3D$(cat $FILE_GFXVDD) POW=3D$(cat $FILE_POW) BUS=3D$(cat $FILE_BUS) # echo "sclk: $SCLK mclk: $MCLK gfx_vdd: $GFXVDD" echo "sclk: $SCLK mclk: $MCLK temp: $TEMP fan: $FAN gfx_vdd: $GFXVDD pow: $POW bus: $BUS" } function run_daemon { while :; do read_output sleep $SLEEP_INTERVAL done } # finally start the loop run_daemon ###################################################### --=20 You are receiving this mail because: You are the assignee for the bug.= --15718206896.da3e5.29017 Date: Wed, 23 Oct 2019 08:51:29 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comm= ent # 119 on bug 10995= 5 from haro41@gmx.de
bellow is a simple script, i use to record dpm data in the bac=
kground:

######################################################
#!/bin/bash

# adapt this sample inverval (seconds)
SLEEP_INTERVAL=3D0.05

# adapt the paths to your need
FILE_SCLK=3D/sys/class/drm/card0/device/hwmon/hwmon0/freq1_input
FILE_MCLK=3D/sys/class/drm/card0/device/hwmon/hwmon0/freq2_input
FILE_PWM=3D/sys/class/drm/card0/device/hwmon/hwmon0/pwm1
FILE_TEMP=3D/sys/class/drm/card0/device/hwmon/hwmon0/temp1_input
FILE_FAN=3D/sys/class/drm/card0/device/hwmon/hwmon0/fan1_input
FILE_GFXVDD=3D/sys/class/drm/card0/device/hwmon/hwmon0/in0_input
FILE_POW=3D/sys/class/drm/card0/device/hwmon/hwmon0/power1_average
FILE_BUS=3D/sys/class/drm/card0/device/gpu_busy_percent

# checking for privileges
if [ $UID -ne 0 ]
then
  echo "Writing to sysfs requires privileges, relaunch as root"
  exit 1
fi

function read_output {

  SCLK=3D$(cat $FILE_SCLK)
  MCLK=3D$(cat $FILE_MCLK)
  TEMP=3D$(cat $FILE_TEMP)
  FAN=3D$(cat $FILE_FAN)
  GFXVDD=3D$(cat $FILE_GFXVDD)
  POW=3D$(cat $FILE_POW)
  BUS=3D$(cat $FILE_BUS)

#  echo "sclk: $SCLK mclk: $MCLK gfx_vdd: $GFXVDD"
  echo "sclk: $SCLK mclk: $MCLK temp: $TEMP fan: $FAN gfx_vdd: $GFXVDD=
 pow:
$POW bus: $BUS"
}

function run_daemon {
  while :; do
    read_output
    sleep $SLEEP_INTERVAL
  done
}

# finally start the loop
run_daemon

######################################################


You are receiving this mail because:
  • You are the assignee for the bug.
= --15718206896.da3e5.29017-- --===============1908157518== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1908157518==--