mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 12:59:18 +03:00
Remove code to disable bus master arbitration.
This change removes the code to disable/enable bus master arbitration during suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register causes resume problems on many machines.
This commit is contained in:
parent
2e674261e8
commit
fe1a5ac7d8
@ -171,19 +171,14 @@ AcpiHwLegacySleep (
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
if (SleepState != ACPI_STATE_S5)
|
||||
{
|
||||
/*
|
||||
* Disable BM arbitration. This feature is contained within an
|
||||
* optional register (PM2 Control), so ignore a BAD_ADDRESS
|
||||
* exception.
|
||||
*/
|
||||
Status = AcpiWriteBitRegister (ACPI_BITREG_ARB_DISABLE, 1);
|
||||
if (ACPI_FAILURE (Status) && (Status != AE_BAD_ADDRESS))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Code removed: no longer set the ARB_DIS bit in the PM2_CNT
|
||||
* register when suspending. Use of ARB_DIS causes resume
|
||||
* problems on many machines.
|
||||
*
|
||||
* if (SleepState != ACPI_STATE_S5)
|
||||
* Status = AcpiWriteBitRegister (ACPI_BITREG_ARB_DISABLE, 1);
|
||||
*/
|
||||
|
||||
/*
|
||||
* 1) Disable/Clear all GPEs
|
||||
@ -453,15 +448,12 @@ AcpiHwLegacyWake (
|
||||
ACPI_CLEAR_STATUS);
|
||||
|
||||
/*
|
||||
* Enable BM arbitration. This feature is contained within an
|
||||
* optional register (PM2 Control), so ignore a BAD_ADDRESS
|
||||
* exception.
|
||||
* Code removed: no longer clear the ARB_DIS bit in the PM2_CNT
|
||||
* register when resuming. Use of ARB_DIS causes resume problems
|
||||
* on many machines.
|
||||
*
|
||||
* Status = AcpiWriteBitRegister (ACPI_BITREG_ARB_DISABLE, 0);
|
||||
*/
|
||||
Status = AcpiWriteBitRegister (ACPI_BITREG_ARB_DISABLE, 0);
|
||||
if (ACPI_FAILURE (Status) && (Status != AE_BAD_ADDRESS))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
AcpiHwExecuteSleepMethod (METHOD_PATHNAME__SST, ACPI_SST_WORKING);
|
||||
return_ACPI_STATUS (Status);
|
||||
|
Loading…
Reference in New Issue
Block a user