46bf4695d7
There are some important platform drivers that Valve has not upstreamed, that are basically required for this device to operate well. I picked those patches from the kernel tree they released for 6.5, and rebased them onto 6.8.
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 58758906879db1450ac2dfdedf08fe68f018c5f5 Mon Sep 17 00:00:00 2001
|
|
From: Muhammad Usama Anjum <usama.anjum@collabora.com>
|
|
Date: Tue, 6 Jun 2023 16:12:06 +0500
|
|
Subject: [PATCH 15/21] x86: revert extra time added to check for tsc wraps
|
|
|
|
Reverts extra time duration added to test tsc wraps in
|
|
"x86: implement tsc=directsync for systems without IA32_TSC_ADJUST".
|
|
This duration makes the sanity checking longer in case tsc wraps. Revert
|
|
this to decrease average resume time.
|
|
|
|
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
|
|
(cherry picked from commit 458039cfa58ef8b1c4538a75487b67bf489374c4)
|
|
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
|
|
---
|
|
arch/x86/kernel/tsc_sync.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/arch/x86/kernel/tsc_sync.c b/arch/x86/kernel/tsc_sync.c
|
|
index 2a09a55136f4..429109f02b27 100644
|
|
--- a/arch/x86/kernel/tsc_sync.c
|
|
+++ b/arch/x86/kernel/tsc_sync.c
|
|
@@ -342,8 +342,6 @@ static cycles_t check_tsc_warp(unsigned int timeout)
|
|
*/
|
|
static inline unsigned int loop_timeout(int cpu)
|
|
{
|
|
- if (!boot_cpu_has(X86_FEATURE_TSC_ADJUST))
|
|
- return 30;
|
|
return (cpumask_weight(topology_core_cpumask(cpu)) > 1) ? 2 : 20;
|
|
}
|
|
|
|
--
|
|
2.44.0
|
|
|