Skip to content

Backport SST support for DMR - #130

Open
zhang-rui wants to merge 4 commits into
6.6-velinuxfrom
intel-sst-dmr-6.6
Open

zhang-rui wants to merge 4 commits into
6.6-velinuxfrom
intel-sst-dmr-6.6

Conversation

@zhang-rui

Copy link
Copy Markdown
Contributor

Backport SST support for DMR.

Tests:
Tested on DMR/CWF/SRF,
On CWF/SRF, no change observed.
On DMR, sst driver starts to load. And together with #128, they successfully enables lkvs:bm:isst testcases, which rely on both sst and intel-pstate driver to work.

1: platform/x86: ISST: Support SST-TF revision 2
2: platform/x86: ISST: Support SST-PP revision 2
3: platform/x86: ISST: Update minor version
4: platform/x86: ISST: Reset core count to 0

commit 885d1c2a30b73e50d0bbc098ddd717e22ccff266 upstream.

SST-TF revision 2 supports a higher number of cores per bucket, as the
current limit of 256 cores may be insufficient. To accommodate this, a
new offset, "SST_TF_INFO-8," is introduced, allowing for a higher core
count. Utilize this offset instead of the current "SST_TF_INFO-1" offset,
based on SST-TF revision 2 or higher, and if there is a non-zero core
count in any bucket.

Intel-SIG: commit 885d1c2a30b7 platform/x86: ISST: Support SST-TF revision 2
Backport SST support for DMR

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20250506163531.1061185-2-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ Zhang Rui: amend commit log ]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
commit d6644d737bec473a38dbd44a71553cacd636a920 upstream.

SST PP revision 2 added fabric 1 P0, P1 and Pm frequencies. Export them
by using a new IOCTL ISST_IF_GET_PERF_LEVEL_FABRIC_INFO. This IOCTL
requires platforms with SST PP revision 2 or higher.

To accommodate potential future increases in fabric count and avoid ABI
changes, support is extended for up to 8 fabrics.

Intel-SIG: commit d6644d737bec platform/x86: ISST: Support SST-PP revision 2
Backport SST support for DMR

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20250506163531.1061185-3-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ Zhang Rui: amend commit log ]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
commit c9a20142d3420a5113f560e7dea711d2f9693117 upstream.

Update SST minor version after supporting SST-PP and SST-TF version 2.

Intel-SIG: commit c9a20142d342 platform/x86: ISST: Update minor version
Backport SST support for DMR

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20250506163531.1061185-4-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ Zhang Rui: amend commit log ]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
commit e1415b9418eb22b4a7a1ef4b4aec9dd0a49e3fa7 upstream.

Based on feature revision, number of buckets can be less than the
TRL_MAX_BUCKETS. In that case core counts in the remaining buckets
can be set to some invalid values.

Hence reset core count to 0 for all buckets before assigning correct
values.

Intel-SIG: commit e1415b9418eb platform/x86: ISST: Reset core count to 0
Backport SST support for DMR

Fixes: 885d1c2a30b7 ("platform/x86: ISST: Support SST-TF revision 2")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260325192638.3417281-1-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[ Zhang Rui: amend commit log ]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants