Commit 545a2db
NVIDIA: SAUCE: arm_mpam: Fix mbm_total_bytes and MBM counter assignment
BugLink: https://bugs.launchpad.net/bugs/2157922
This patch fixes a few issues:
1. To enable MBW total bytes, continue MBWU counter selection after
CSU setup. This follows upstream 7.1.
2. Use mbm_cntr_assignable for assignment enablement
so occupancy and MBWU sharing a class do not break mbm_L3_assignments.
This follows commit 4766d7e https://gitlab.arm.com/linux-arm/linux-bh.git mpam_abmc_v4
3. Always bind picked MBWU to mbm_total_bytes.
This follows commit b2bbf3b https://gitlab.arm.com/linux-arm/linux-bh.git mpam_abmc_v4
4. Rebind mbm_total_bytes at monitor init to the resource that owns the
MBWU class via resctrl_mon_event_set_resource(), so memory-level MSC
platforms expose mbm_total_bytes under mon_MB_* and mbm_MB_assignments.
This fix is necessary when only MBW total bytes (i.e. no MBW local
bytes) is supported.
Signed-off-by: Fenghua Yu <fenghuay@nvidia.com>
Acked-by: Matthew R. Ochs <mochs@nvidia.com>
Acked-by: Carol L Soto <csoto@nvidia.com>
Signed-off-by: Brad Figg <bfigg@nvidia.com>1 parent ffc85b4 commit 545a2db
3 files changed
Lines changed: 30 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 182 | | |
198 | 183 | | |
199 | 184 | | |
| |||
1337 | 1322 | | |
1338 | 1323 | | |
1339 | 1324 | | |
1340 | | - | |
| 1325 | + | |
1341 | 1326 | | |
1342 | 1327 | | |
1343 | 1328 | | |
| |||
1350 | 1335 | | |
1351 | 1336 | | |
1352 | 1337 | | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
| 1338 | + | |
1372 | 1339 | | |
1373 | 1340 | | |
1374 | 1341 | | |
| |||
1417 | 1384 | | |
1418 | 1385 | | |
1419 | 1386 | | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
1430 | 1394 | | |
1431 | 1395 | | |
1432 | 1396 | | |
| |||
1641 | 1605 | | |
1642 | 1606 | | |
1643 | 1607 | | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
| 1608 | + | |
1650 | 1609 | | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1655 | 1615 | | |
1656 | 1616 | | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1657 | 1620 | | |
1658 | 1621 | | |
1659 | 1622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1021 | 1030 | | |
1022 | 1031 | | |
1023 | 1032 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
473 | 476 | | |
474 | 477 | | |
475 | 478 | | |
| |||
0 commit comments