Skip to content

Sync/lass 20260916 - #604

Merged
hongyuni merged 2 commits into
intel:mainfrom
hongyuni:sync/lass-20260916
Sep 16, 2026
Merged

hongyuni merged 2 commits into
intel:mainfrom
hongyuni:sync/lass-20260916

Conversation

@hongyuni

Copy link
Copy Markdown
Contributor

No description provided.

Determine LASS enablement from the kernel-exposed lass flag in
/proc/cpuinfo instead of parsing /proc/cmdline, since there is no
lass kernel command line parameter and LASS is enabled from CPUID.

Also fix lass_enable being unconditionally set to true so the
detection result is honored.

[Test Components] lass
[Test Types] func

Co-developed-by: Copilot <copilot@github.com>
Signed-off-by: Farrah Chen <farrah.chen@intel.com>
(cherry picked from commit 6ab86a2834e016c0df319b4ce79ed8715694f59d)
check_vsyscall_status() read /proc/cmdline into a 256-byte buffer,
but a real distro kernel command line often exceeds that. The fgets()
loop then keeps only the last chunk, so an early vsyscall= token (e.g.
vsyscall=none) was dropped and the mode was misdetected, causing the
'm' case to fail unexpectedly.

Enlarge the buffer to hold the whole command line (x86
COMMAND_LINE_SIZE is 2048).

[Test Components] lass
[Test Types] func

Co-developed-by: Copilot <copilot@github.com>
Signed-off-by: Farrah Chen <farrah.chen@intel.com>
(cherry picked from commit 1fd00ef702cb0dfc8e2c1105126248274a19fff5)
@hongyuni
hongyuni merged commit ea5b417 into intel:main Sep 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants