Bug 218012
Summary: | LoongArch LBT ftop register not correctly maintained across context switches | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | Jiajie Chen (c) |
Component: | Other | Assignee: | platform_other |
Status: | RESOLVED DOCUMENTED | ||
Severity: | normal | CC: | spcreply |
Priority: | P3 | ||
Hardware: | Other | ||
OS: | Linux | ||
Kernel Version: | 6.6.0-rc5 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Jiajie Chen
2023-10-15 03:38:12 UTC
As pointed out by @spcreply, Linux kernel does not save ftop if tm is not enabled. If asm("x86settm") is added to the code, the ftop is correctly saved and restored across context switching. |