mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 07:43:57 -04:00
Check latest platform first in xe_hwmon_get_reg. Move PVC HWMON registers to regs/xe_pcode.h. Suggested-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Karthik Poosa <karthik.poosa@intel.com> Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240201180600.434822-1-karthik.poosa@intel.com
22 lines
613 B
C
22 lines
613 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)
|
|
|
|
#endif /* _XE_PCODE_REGS_H_ */
|