Repository navigation
Commit 26b6e01
perf/x86/intel: Implement support for TSX Force Abort
commit 400816f upstream
Skylake (and later) will receive a microcode update to address a TSX
errata. This microcode will, on execution of a TSX instruction
(speculative or not) use (clobber) PMC3. This update will also provide
a new MSR to change this behaviour along with a CPUID bit to enumerate
the presence of this new MSR.
When the MSR gets set; the microcode will no longer use PMC3 but will
Force Abort every TSX transaction (upon executing COMMIT).
When TSX Force Abort (TFA) is allowed (default); the MSR gets set when
PMC3 gets scheduled and cleared when, after scheduling, PMC3 is
unused.
When TFA is not allowed; clear PMC3 from all constraints such that it
will not get used.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent fdd8209 commit 26b6e01
2 files changed
Lines changed: 77 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
1998 | 2031 | | |
1999 | 2032 | | |
2000 | 2033 | | |
| |||
3238 | 3271 | | |
3239 | 3272 | | |
3240 | 3273 | | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
3241 | 3294 | | |
3242 | 3295 | | |
3243 | 3296 | | |
| |||
3332 | 3385 | | |
3333 | 3386 | | |
3334 | 3387 | | |
3335 | | - | |
| 3388 | + | |
3336 | 3389 | | |
3337 | 3390 | | |
3338 | 3391 | | |
3339 | 3392 | | |
3340 | 3393 | | |
| 3394 | + | |
3341 | 3395 | | |
| 3396 | + | |
3342 | 3397 | | |
3343 | 3398 | | |
3344 | 3399 | | |
| |||
3445 | 3500 | | |
3446 | 3501 | | |
3447 | 3502 | | |
3448 | | - | |
3449 | | - | |
3450 | 3503 | | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
3451 | 3507 | | |
3452 | 3508 | | |
3453 | 3509 | | |
| |||
3933 | 3989 | | |
3934 | 3990 | | |
3935 | 3991 | | |
| 3992 | + | |
| 3993 | + | |
3936 | 3994 | | |
3937 | 3995 | | |
| 3996 | + | |
3938 | 3997 | | |
3939 | 3998 | | |
3940 | 3999 | | |
| |||
4390 | 4449 | | |
4391 | 4450 | | |
4392 | 4451 | | |
| 4452 | + | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4393 | 4461 | | |
4394 | 4462 | | |
4395 | 4463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
| |||
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
| 687 | + | |
682 | 688 | | |
683 | 689 | | |
684 | 690 | | |
| |||
0 commit comments