All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 76321] Incorrect hwmon temperature when radeon card is turned off
Date: Fri, 16 May 2014 17:42:14 +0000	[thread overview]
Message-ID: <bug-76321-2300-txcpZHQOjT@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-76321-2300@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=76321

--- Comment #2 from Pali Rohár <pali.rohar@gmail.com> ---
Here is output from sensors with your patch (when card is turned off):

radeon-pci-0100
Adapter: PCI adapter
ERROR: Can't get value of subfeature temp1_crit: Can't read
ERROR: Can't get value of subfeature temp1_crit_hyst: Can't read
temp1:            N/A  (crit =  +0.0°C, hyst =  +0.0°C)

Values crit & hyst worked fine (as it is not runtime value, but static).

And also your patch disabling showing/changing dpm/pm profile. I do not know if
there is some problem to use that sysfs files when card is turned off, but if
not I think there is no reason to disable it.

So in my opinion only this part of patch is needed:

@@ -538,8 +570,13 @@ static ssize_t radeon_hwmon_show_temp(struct device *dev,
                       char *buf)
 {
     struct radeon_device *rdev = dev_get_drvdata(dev);
+    struct drm_device *ddev = rdev->ddev;
     int temp;

+    if  ((rdev->flags & RADEON_IS_PX) &&
+         (ddev->switch_power_state != DRM_SWITCH_POWER_ON))
+        return -EINVAL;
+
     if (rdev->asic->pm.get_temperature)
         temp = radeon_get_temperature(rdev);
     else

Or is really needed other hunks too?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2014-05-16 17:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-16  7:09 [Bug 76321] New: Incorrect hwmon temperature when radeon card is turned off bugzilla-daemon
2014-05-16 15:36 ` [Bug 76321] " bugzilla-daemon
2014-05-16 17:42 ` bugzilla-daemon [this message]
2014-05-16 22:32 ` bugzilla-daemon
2014-05-17 18:57 ` bugzilla-daemon
2014-05-19 14:31 ` bugzilla-daemon
2014-05-20 17:06 ` bugzilla-daemon
2014-05-20 18:41 ` bugzilla-daemon
2014-08-09 20:33 ` bugzilla-daemon
2014-08-11 16:48 ` bugzilla-daemon
2014-08-11 17:05 ` bugzilla-daemon
2014-08-11 19:21 ` bugzilla-daemon
2014-08-12 10:20 ` bugzilla-daemon
2014-08-12 13:14 ` bugzilla-daemon
2016-02-20 14:07 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-76321-2300-txcpZHQOjT@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.