mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 10:02:31 -04:00
Add hwmon support for temp2_input and temp3_input attributes, which will expose package and vram temperature in millidegree Celsius. With this in place we can monitor temperature using lm-sensors tool. v2: Reuse existing channels (Badal, Karthik) Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250131054502.1528555-1-raag.jadav@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
31 lines
1021 B
C
31 lines
1021 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PCODE_REGS_H_
|
|
#define _XE_PCODE_REGS_H_
|
|
|
|
#include "regs/xe_reg_defs.h"
|
|
|
|
/*
|
|
* This file contains addresses of PCODE registers visible through GT MMIO space.
|
|
*/
|
|
|
|
#define PVC_GT0_PACKAGE_ENERGY_STATUS XE_REG(0x281004)
|
|
#define PVC_GT0_PACKAGE_RAPL_LIMIT XE_REG(0x281008)
|
|
#define PVC_GT0_PACKAGE_POWER_SKU_UNIT XE_REG(0x281068)
|
|
#define PVC_GT0_PLATFORM_ENERGY_STATUS XE_REG(0x28106c)
|
|
#define PVC_GT0_PACKAGE_POWER_SKU XE_REG(0x281080)
|
|
|
|
#define BMG_PACKAGE_POWER_SKU XE_REG(0x138098)
|
|
#define BMG_PACKAGE_POWER_SKU_UNIT XE_REG(0x1380dc)
|
|
#define BMG_PACKAGE_ENERGY_STATUS XE_REG(0x138120)
|
|
#define BMG_VRAM_TEMPERATURE XE_REG(0x1382c0)
|
|
#define BMG_PACKAGE_TEMPERATURE XE_REG(0x138434)
|
|
#define BMG_PACKAGE_RAPL_LIMIT XE_REG(0x138440)
|
|
#define BMG_PLATFORM_ENERGY_STATUS XE_REG(0x138458)
|
|
#define BMG_PLATFORM_POWER_LIMIT XE_REG(0x138460)
|
|
|
|
#endif /* _XE_PCODE_REGS_H_ */
|