From 40f6a9fdff735ff5c91fa93ec6de312cc4786959 Mon Sep 17 00:00:00 2001 From: Peter Fang Date: Mon, 24 Dec 2018 23:29:11 -0800 Subject: [PATCH] dm: allow PM1_RTC_EN to be written to PM1A Clear Linux complains about not being able to write the bit to PM1A: ACPI Error: Could not enable RealTimeClock event (20180531/evxfevnt-184) Tracked-On: #2176 Signed-off-by: Peter Fang Reviewed-by: Eddie Dong Reviewed-by: Victor Sun --- devicemodel/arch/x86/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/arch/x86/pm.c b/devicemodel/arch/x86/pm.c index 987be2c16..fcfc1b3dc 100644 --- a/devicemodel/arch/x86/pm.c +++ b/devicemodel/arch/x86/pm.c @@ -200,7 +200,7 @@ pm1_enable_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes, * the global lock, but ACPI-CA whines profusely if it * can't set GBL_EN. */ - pm1_enable = *eax & (PM1_PWRBTN_EN | PM1_GBL_EN); + pm1_enable = *eax & (PM1_RTC_EN | PM1_PWRBTN_EN | PM1_GBL_EN); sci_update(ctx); } pthread_mutex_unlock(&pm_lock);