dm: pm: mask the higher bits of parameter of smi_cmd handler

Windows will set 0x262a0 for smi cmd pio, need to mask the higher bits
due to smi command is 8 bits register. Otherwise, it cause the
ACPI_ENABLE case can't be matched, and windows expecting the SCI_EN of
PM1_CONTROL be set after switch to ACPI mode. Finally, cause windows
trigger panic.

Tracked-On: #2962
Signed-off-by: Yu Wang <yu1.wang@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Yu Wang 2018-12-11 11:25:19 +08:00 committed by wenlingz
parent 15966f94b5
commit b838e9b720

View File

@ -457,7 +457,7 @@ smi_cmd_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
return -1;
pthread_mutex_lock(&pm_lock);
switch (*eax) {
switch (*eax & 0xFF) {
case ACPI_ENABLE:
pm1_control |= VIRTUAL_PM1A_SCI_EN;
/*