summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-01-08 13:33:10 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-01-25 10:37:13 +0000
commitb218c20c0015da77377bbc1efc0fc2efbe204360 (patch)
treeb434177f4f31a95d0e33db768d870620ac4e11bb /src
parentc1d524b8c60981d43153a8e0112d8224ba43a889 (diff)
sb,soc/intel: Remove no-op APMC for C-state and P-state
Change-Id: I3c1aa7f68eb03f04ddb9c1a5e960e3e2050a029c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49250 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/baytrail/smihandler.c14
-rw-r--r--src/soc/intel/braswell/smihandler.c14
-rw-r--r--src/soc/intel/broadwell/pch/smihandler.c4
-rw-r--r--src/soc/intel/common/block/smm/smihandler.c14
-rw-r--r--src/soc/intel/denverton_ns/smihandler.c12
-rw-r--r--src/southbridge/intel/common/smihandler.c12
-rw-r--r--src/southbridge/intel/i82801dx/smihandler.c12
-rw-r--r--src/southbridge/intel/i82801gx/fadt.c2
-rw-r--r--src/southbridge/intel/i82801ix/fadt.c2
-rw-r--r--src/southbridge/intel/i82801jx/fadt.c2
-rw-r--r--src/southbridge/intel/lynxpoint/smihandler.c12
11 files changed, 0 insertions, 100 deletions
diff --git a/src/soc/intel/baytrail/smihandler.c b/src/soc/intel/baytrail/smihandler.c
index 1a33444ca4..41eeedae0b 100644
--- a/src/soc/intel/baytrail/smihandler.c
+++ b/src/soc/intel/baytrail/smihandler.c
@@ -283,20 +283,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
disable_pm1_control(SCI_EN);
break;
diff --git a/src/soc/intel/braswell/smihandler.c b/src/soc/intel/braswell/smihandler.c
index 7343d47933..138dc339df 100644
--- a/src/soc/intel/braswell/smihandler.c
+++ b/src/soc/intel/braswell/smihandler.c
@@ -262,20 +262,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
disable_pm1_control(SCI_EN);
break;
diff --git a/src/soc/intel/broadwell/pch/smihandler.c b/src/soc/intel/broadwell/pch/smihandler.c
index 02c795e411..c6632da4fa 100644
--- a/src/soc/intel/broadwell/pch/smihandler.c
+++ b/src/soc/intel/broadwell/pch/smihandler.c
@@ -314,10 +314,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- break;
- case APM_CNT_PST_CONTROL:
- break;
case APM_CNT_ACPI_DISABLE:
disable_pm1_control(SCI_EN);
break;
diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c
index 4aed3f8848..4625d34e4c 100644
--- a/src/soc/intel/common/block/smm/smihandler.c
+++ b/src/soc/intel/common/block/smm/smihandler.c
@@ -333,20 +333,6 @@ void smihandler_southbridge_apmc(
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /*
- * Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
pmc_disable_pm1_control(SCI_EN);
break;
diff --git a/src/soc/intel/denverton_ns/smihandler.c b/src/soc/intel/denverton_ns/smihandler.c
index f00d9216ec..68e85192c0 100644
--- a/src/soc/intel/denverton_ns/smihandler.c
+++ b/src/soc/intel/denverton_ns/smihandler.c
@@ -222,18 +222,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
disable_pm1_control(SCI_EN);
break;
diff --git a/src/southbridge/intel/common/smihandler.c b/src/southbridge/intel/common/smihandler.c
index 07cd662b3f..18f171dd1f 100644
--- a/src/southbridge/intel/common/smihandler.c
+++ b/src/southbridge/intel/common/smihandler.c
@@ -277,18 +277,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) & ~SCI_EN);
break;
diff --git a/src/southbridge/intel/i82801dx/smihandler.c b/src/southbridge/intel/i82801dx/smihandler.c
index d18f8b230e..575d1ba055 100644
--- a/src/southbridge/intel/i82801dx/smihandler.c
+++ b/src/southbridge/intel/i82801dx/smihandler.c
@@ -299,18 +299,6 @@ static void southbridge_smi_apmc(void)
reg8 = apm_get_apmc();
switch (reg8) {
- case APM_CNT_CST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
pmctrl = inl(pmbase + PM1_CNT);
pmctrl &= ~SCI_EN;
diff --git a/src/southbridge/intel/i82801gx/fadt.c b/src/southbridge/intel/i82801gx/fadt.c
index 3be40b93a4..153ddea7e8 100644
--- a/src/southbridge/intel/i82801gx/fadt.c
+++ b/src/southbridge/intel/i82801gx/fadt.c
@@ -20,8 +20,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
fadt->smi_cmd = APM_CNT;
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
- fadt->pstate_cnt = APM_CNT_PST_CONTROL;
- fadt->cst_cnt = APM_CNT_CST_CONTROL;
}
fadt->pm1a_evt_blk = pmbase;
diff --git a/src/southbridge/intel/i82801ix/fadt.c b/src/southbridge/intel/i82801ix/fadt.c
index b7da216908..8a48f1b2a2 100644
--- a/src/southbridge/intel/i82801ix/fadt.c
+++ b/src/southbridge/intel/i82801ix/fadt.c
@@ -16,8 +16,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
fadt->smi_cmd = APM_CNT;
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
- fadt->pstate_cnt = APM_CNT_PST_CONTROL;
- fadt->cst_cnt = APM_CNT_CST_CONTROL;
}
fadt->pm1a_evt_blk = pmbase;
diff --git a/src/southbridge/intel/i82801jx/fadt.c b/src/southbridge/intel/i82801jx/fadt.c
index fd556615ca..377b4d28e5 100644
--- a/src/southbridge/intel/i82801jx/fadt.c
+++ b/src/southbridge/intel/i82801jx/fadt.c
@@ -16,8 +16,6 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
fadt->smi_cmd = APM_CNT;
fadt->acpi_enable = APM_CNT_ACPI_ENABLE;
fadt->acpi_disable = APM_CNT_ACPI_DISABLE;
- fadt->pstate_cnt = APM_CNT_PST_CONTROL;
- fadt->cst_cnt = APM_CNT_CST_CONTROL;
}
fadt->pm1a_evt_blk = pmbase;
diff --git a/src/southbridge/intel/lynxpoint/smihandler.c b/src/southbridge/intel/lynxpoint/smihandler.c
index 8af5356e38..e3b0f3c25c 100644
--- a/src/southbridge/intel/lynxpoint/smihandler.c
+++ b/src/southbridge/intel/lynxpoint/smihandler.c
@@ -277,18 +277,6 @@ static void southbridge_smi_apmc(void)
chipset_finalized = 1;
break;
- case APM_CNT_CST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
- case APM_CNT_PST_CONTROL:
- /* Calling this function seems to cause
- * some kind of race condition in Linux
- * and causes a kernel oops
- */
- break;
case APM_CNT_ACPI_DISABLE:
disable_pm1_control(SCI_EN);
break;