mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
drm/xe: Expose fan control and voltage regulator version
Add sysfs attributes for late binding features which expose bound version to the user. v2: Rework attribute and macro naming (Badal) v3: Drop fancy formatting (Rodrigo) v4: Form version string using local variables (Rodrigo) Signed-off-by: Raag Jadav <raag.jadav@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://lore.kernel.org/r/20250709164224.2676086-1-raag.jadav@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
@@ -50,6 +50,21 @@
|
||||
#define READ_PL_FROM_FW 0x1
|
||||
#define READ_PL_FROM_PCODE 0x0
|
||||
|
||||
#define PCODE_LATE_BINDING 0x5C
|
||||
#define GET_CAPABILITY_STATUS 0x0
|
||||
#define V1_FAN_SUPPORTED REG_BIT(0)
|
||||
#define VR_PARAMS_SUPPORTED REG_BIT(3)
|
||||
#define V1_FAN_PROVISIONED REG_BIT(16)
|
||||
#define VR_PARAMS_PROVISIONED REG_BIT(19)
|
||||
#define GET_VERSION_LOW 0x1
|
||||
#define GET_VERSION_HIGH 0x2
|
||||
#define MAJOR_VERSION_MASK REG_GENMASK(31, 16)
|
||||
#define MINOR_VERSION_MASK REG_GENMASK(15, 0)
|
||||
#define HOTFIX_VERSION_MASK REG_GENMASK(31, 16)
|
||||
#define BUILD_VERSION_MASK REG_GENMASK(15, 0)
|
||||
#define FAN_TABLE 1
|
||||
#define VR_CONFIG 2
|
||||
|
||||
#define PCODE_FREQUENCY_CONFIG 0x6e
|
||||
/* Frequency Config Sub Commands (param1) */
|
||||
#define PCODE_MBOX_FC_SC_READ_FUSED_P0 0x0
|
||||
|
||||
Reference in New Issue
Block a user