Blame patches.suse/ACPI-processor-idle-Only-flush-cache-on-entering-C3.patch
|
Lee, Chun-Yi |
c00c87 |
From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
|
|
Lee, Chun-Yi |
c00c87 |
Date: Mon, 6 Dec 2021 15:29:51 +0300
|
|
Lee, Chun-Yi |
c00c87 |
Subject: ACPI: processor: idle: Only flush cache on entering C3
|
|
Lee, Chun-Yi |
c00c87 |
Patch-mainline: v5.17-rc1
|
|
Lee, Chun-Yi |
c00c87 |
Git-commit: 87ebbb8c612b1214f227ebb8f25442c6d163e802
|
|
Lee, Chun-Yi |
c00c87 |
References: jsc#PED-1408
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
According to ACPI 6.4, Section 8.2, CPU cache flushing required on
|
|
Lee, Chun-Yi |
c00c87 |
entering the C3 power state.
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
Avoid flushing the cache on entering other C-states.
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
|
|
Lee, Chun-Yi |
c00c87 |
[ rjw: Changelog edits ]
|
|
Lee, Chun-Yi |
c00c87 |
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
|
Lee, Chun-Yi |
c00c87 |
Acked-by: Lee, Chun-Yi <jlee@suse.com>
|
|
Lee, Chun-Yi |
c00c87 |
---
|
|
Lee, Chun-Yi |
c00c87 |
drivers/acpi/processor_idle.c | 3 ++-
|
|
Lee, Chun-Yi |
c00c87 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
--- a/drivers/acpi/processor_idle.c
|
|
Lee, Chun-Yi |
c00c87 |
+++ b/drivers/acpi/processor_idle.c
|
|
Lee, Chun-Yi |
c00c87 |
@@ -565,7 +565,8 @@ static int acpi_idle_play_dead(struct cp
|
|
Lee, Chun-Yi |
c00c87 |
{
|
|
Lee, Chun-Yi |
c00c87 |
struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu);
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
- ACPI_FLUSH_CPU_CACHE();
|
|
Lee, Chun-Yi |
c00c87 |
+ if (cx->type == ACPI_STATE_C3)
|
|
Lee, Chun-Yi |
c00c87 |
+ ACPI_FLUSH_CPU_CACHE();
|
|
Lee, Chun-Yi |
c00c87 |
|
|
Lee, Chun-Yi |
c00c87 |
while (1) {
|
|
Lee, Chun-Yi |
c00c87 |
|