tools/power/x86/intel-speed-select: Introduce punit to isst_id
authorZhang Rui <rui.zhang@intel.com>
Wed, 17 Aug 2022 06:51:40 +0000 (14:51 +0800)
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 22 Mar 2023 20:36:48 +0000 (13:36 -0700)
commite157c8475e7c2d62d7b28983ea81167f3e6a5a57
tree4eb4eba33c71957d70a14934d8bfa44448dfd93e
parent16c1892080d841e5d4b59295b96ae760b83c0b7f
tools/power/x86/intel-speed-select: Introduce punit to isst_id

Punit id can also be retrieved from ISST_IF_GET_PHY_ID.

punit id is unique within a Package/Die, and together with Package id and
Die id, they can be used to refer to a specific SST power domain.

For current platforms, Punit id is always Zero. So no functional changes
are expected for the current platforms.

While here, prevent issuing IOCTL if the file /dev/isst_interface can't be
opened.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
[srinivas.pandruvada@linux.intel.com: changelog edits]
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
tools/power/x86/intel-speed-select/isst-config.c
tools/power/x86/intel-speed-select/isst.h