|
@@ -330,6 +330,14 @@ static const struct SMPTestData data_generic_valid[] = {
|
|
|
.config = SMP_CONFIG_GENERIC(T, 8, T, 2, T, 4, T, 2, T, 16),
|
|
|
.expect_prefer_sockets = CPU_TOPOLOGY_GENERIC(8, 2, 4, 2, 16),
|
|
|
.expect_prefer_cores = CPU_TOPOLOGY_GENERIC(8, 2, 4, 2, 16),
|
|
|
+ }, {
|
|
|
+ /*
|
|
|
+ * Unsupported parameters are always allowed to be set to '1'
|
|
|
+ * config: -smp 8,books=1,drawers=1,sockets=2,modules=1,dies=1,cores=2,threads=2,maxcpus=8
|
|
|
+ * expect: cpus=8,sockets=2,cores=2,threads=2,maxcpus=8 */
|
|
|
+ .config = SMP_CONFIG_WITH_FULL_TOPO(8, 1, 1, 2, 1, 1, 2, 2, 8),
|
|
|
+ .expect_prefer_sockets = CPU_TOPOLOGY_GENERIC(8, 2, 2, 2, 8),
|
|
|
+ .expect_prefer_cores = CPU_TOPOLOGY_GENERIC(8, 2, 2, 2, 8),
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -337,21 +345,21 @@ static const struct SMPTestData data_generic_invalid[] = {
|
|
|
{
|
|
|
/* config: -smp 2,dies=2 */
|
|
|
.config = SMP_CONFIG_WITH_DIES(T, 2, F, 0, T, 2, F, 0, F, 0, F, 0),
|
|
|
- .expect_error = "dies not supported by this machine's CPU topology",
|
|
|
+ .expect_error = "dies > 1 not supported by this machine's CPU topology",
|
|
|
}, {
|
|
|
/* config: -smp 2,clusters=2 */
|
|
|
.config = SMP_CONFIG_WITH_CLUSTERS(T, 2, F, 0, T, 2, F, 0, F, 0, F, 0),
|
|
|
- .expect_error = "clusters not supported by this machine's CPU topology",
|
|
|
+ .expect_error = "clusters > 1 not supported by this machine's CPU topology",
|
|
|
}, {
|
|
|
/* config: -smp 2,books=2 */
|
|
|
.config = SMP_CONFIG_WITH_BOOKS_DRAWERS(T, 2, F, 0, T, 2, F,
|
|
|
0, F, 0, F, 0, F, 0),
|
|
|
- .expect_error = "books not supported by this machine's CPU topology",
|
|
|
+ .expect_error = "books > 1 not supported by this machine's CPU topology",
|
|
|
}, {
|
|
|
/* config: -smp 2,drawers=2 */
|
|
|
.config = SMP_CONFIG_WITH_BOOKS_DRAWERS(T, 2, T, 2, F, 0, F,
|
|
|
0, F, 0, F, 0, F, 0),
|
|
|
- .expect_error = "drawers not supported by this machine's CPU topology",
|
|
|
+ .expect_error = "drawers > 1 not supported by this machine's CPU topology",
|
|
|
}, {
|
|
|
/* config: -smp 8,sockets=2,cores=4,threads=2,maxcpus=8 */
|
|
|
.config = SMP_CONFIG_GENERIC(T, 8, T, 2, T, 4, T, 2, T, 8),
|