Badal Nilawar 4446fcf220 drm/xe/hwmon: Expose power1_max_interval
Expose power1_max_interval, that is the tau corresponding to PL1, as a
custom hwmon attribute. Some bit manipulation is needed because of the
format of PKG_PWR_LIM_1_TIME in
PACKAGE_RAPL_LIMIT register (1.x * power(2,y))

v2: Get rpm wake ref while accessing power1_max_interval
v3: %s/hwmon/xe_hwmon/
v4:
 - As power1_max_interval is rw attr take lock in read function as well
 - Refine comment about val to fix point conversion (Andi)
 - Update kernel version and date in doc
v5: Fix review comments (Anshuman)

Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030115618.1382200-4-badal.nilawar@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2023-12-21 11:43:32 -05:00
..
2023-08-18 11:28:40 -06:00
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2023-08-18 11:28:40 -06:00
2019-07-15 20:44:49 -07:00
2019-06-15 08:12:45 +02:00
2019-06-15 08:12:45 +02:00
2021-12-23 20:23:42 +01:00
2021-05-05 11:27:24 -07:00
2023-07-27 07:53:12 +02:00