[PATCH] drm/amdgpu: Add sysfs file for VBIOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/08/17 09:05 AM, Tom St Denis wrote:
> On 25/08/17 08:59 AM, Russell, Kent wrote:
>> There is GPU Power usage reported through amdgpu_pm_info, which also 
>> has some other information as well. I'd like that in sysfs, but I am 
>> unsure if we are  allowed to due to the other information reported there.
> 
> I thought the sensors were added to the DRM ioctl but apparently not.

No it was, under AMDGPU_INFO you request info->query == 
AMDGPU_INFO_SENSOR and then specify which sensor you want in 
info->sensor_info.type (see amdgpu_kms.c).

So you can already read this from a normal user process who has an open 
DRM file handle.

Tom


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux