New: radeon_pm_info should be in sysfs instead of debugfs
https://bugs.freedesktop.org/show_bug.cgi?id=73047
Priority: medium
Bug ID: 73047
Assignee: [email protected]
Summary: radeon_pm_info should be in sysfs instead of debugfs
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: XOrg CVS
Component: DRM/Radeon
Product: DRI
Debugfs is only accessible for root, and it's not advised to use it for other than debugging (as its name suggests).
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #1 from Alex Deucher <[email protected]> --- radeon_pm_info is for debugging.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #2 from almos <[email protected]> ---
OK, then how can I get information about the clock speeds of the GPU when not debugging?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #3 from almos <[email protected]> ---
I guess the same thing applies to vgaswitcheroo. I'm not a kernel developer, but I'm quite sure these are not just for debugging.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
Christian König <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX--- Comment #4 from Christian König <[email protected]> --- We had the discussion a couple of times now. The power management infos radeon_pm_info provides are definitely only for debugging.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
almos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |------ Comment #5 from almos <[email protected]> --- (In reply to comment #4)
Quoted 2 lines
We had the discussion a couple of times now. The power management infos
radeon_pm_infoprovides are definitely only for debugging.
Are the minutes of those discussions available somewhere? I'm curious about the arguments.
BTW have you considered moving /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq to debugfs for consistency's sake? How about removing lm-sensors support? These are definitely for debugging only.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #6 from Christian König <[email protected]> --- (In reply to comment #5)
Quoted 2 lines
Are the minutes of those discussions available somewhere? I'm curious about the arguments.
radeon_pm_info is not the real hardware state, but rather the state the kernel driver thinks the hardware is in.
So it's actually not very useful to an end user, except if you want to debug the different states the kernel driver can be into (UVD/performance/battery etc...)
I agree that we need a proper sysfs interface to make certain PM functions and informations available to userspace, but it's definitely not what's inside radeon_pm_info.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #7 from Alexandre Demers <[email protected]> --- I'm about to close this bug since, as Christian said, there should be a way to expose some PM functions to the user, but not through radeon_pm_info.
But before, I'd like to know if there is something coming this way to expose these functionality?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #8 from Marek Olšák <[email protected]> --- I'd like the RADEON_INFO ioctl to be able to return the clocks.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #9 from Christian König <[email protected]> --- (In reply to comment #8)
Quoted 1 line
I'd like the
RADEON_INFOioctl to be able to return the clocks.
That sounds like a pretty good idea to me and we should actually query the hardware for the clocks and return that instead of the software state.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #10 from Marek Olšák <[email protected]> --- I'd like to have RADEON_INFO support for these:
- engine and memory clocks
- temperatures
- status regs (for radeontop without root and Gallium HUD)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
--- Comment #11 from Alex Deucher <[email protected]> --- Just send out a patch set to implement this:
http://lists.freedesktop.org/archives/dri-devel/2014-October/069410.html
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 73047] radeon_pm_info should be in sysfs instead of debugfs
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=73047
Martin Peres <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |MOVED
Status|REOPENED |RESOLVED--- Comment #12 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/420.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel