Commit be7fc88
UPSTREAM: coresight-etm4x: add isb() before reading the TRCSTATR
As recommended by section 4.3.7 ("Synchronization when using system
instructions to progrom the trace unit") of ARM IHI 0064H.b, the
self-hosted trace analyzer must perform a Context synchronization
event between writing to the TRCPRGCTLR and reading the TRCSTATR.
Additionally, add an ISB between the each read of TRCSTATR on
coresight_timeout() when using system instructions to program the
trace unit.
Bug: 254441685
Fixes: 1ab3bb9df5e3 ("coresight: etm4x: Add necessary synchronization for sysreg access")
Signed-off-by: Yuanfang Zhang <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 4ff6039ffb79a4a8a44b63810a8a2f2b43264856)
Signed-off-by: Lee Jones <[email protected]>
Change-Id: Ieb1b69cea7534455213a9f928a358605d33acdbc1 parent e386309 commit be7fc88
File tree
3 files changed
+62
-10
lines changed- drivers/hwtracing/coresight
- include/linux
3 files changed
+62
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
1451 | | - | |
| 1450 | + | |
| 1451 | + | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
| 1456 | + | |
1456 | 1457 | | |
1457 | 1458 | | |
1458 | 1459 | | |
1459 | 1460 | | |
1460 | | - | |
1461 | | - | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1462 | 1464 | | |
1463 | 1465 | | |
1464 | 1466 | | |
| |||
1474 | 1476 | | |
1475 | 1477 | | |
1476 | 1478 | | |
1477 | | - | |
| 1479 | + | |
| 1480 | + | |
1478 | 1481 | | |
1479 | 1482 | | |
1480 | 1483 | | |
| |||
1486 | 1489 | | |
1487 | 1490 | | |
1488 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1489 | 1499 | | |
1490 | 1500 | | |
1491 | 1501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
370 | 393 | | |
371 | 394 | | |
372 | 395 | | |
| |||
398 | 421 | | |
399 | 422 | | |
400 | 423 | | |
401 | | - | |
| 424 | + | |
402 | 425 | | |
403 | 426 | | |
404 | 427 | | |
| |||
489 | 512 | | |
490 | 513 | | |
491 | 514 | | |
492 | | - | |
| 515 | + | |
493 | 516 | | |
494 | 517 | | |
495 | 518 | | |
| |||
802 | 825 | | |
803 | 826 | | |
804 | 827 | | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
805 | 837 | | |
806 | | - | |
| 838 | + | |
807 | 839 | | |
808 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
809 | 847 | | |
810 | 848 | | |
811 | 849 | | |
| |||
1582 | 1620 | | |
1583 | 1621 | | |
1584 | 1622 | | |
1585 | | - | |
| 1623 | + | |
1586 | 1624 | | |
1587 | 1625 | | |
1588 | 1626 | | |
| |||
1672 | 1710 | | |
1673 | 1711 | | |
1674 | 1712 | | |
1675 | | - | |
| 1713 | + | |
1676 | 1714 | | |
1677 | 1715 | | |
1678 | 1716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
478 | 482 | | |
479 | 483 | | |
480 | 484 | | |
| |||
0 commit comments