From: Grzegorz Uriasz <gorbak25@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: "Wei Liu" <wl@xen.org>,
jakub@bartmin.ski, "Andrew Cooper" <andrew.cooper3@citrix.com>,
marmarek@invisiblethingslab.com,
"Grzegorz Uriasz" <gorbak25@gmail.com>,
"Jan Beulich" <jbeulich@suse.com>,
j.nowak26@student.uw.edu.pl, contact@puzio.waw.pl,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [PATCH v3 0/1] Fix broken suspend on some machines
Date: Fri, 19 Jun 2020 22:00:15 +0000 [thread overview]
Message-ID: <cover.1592603468.git.gorbak25@gmail.com> (raw)
Hi,
The included patch is a small subset of a bigger patch set spanning few
projects aiming to isolate the GPU in Qubes OS to a dedicated security domain.
I'm doing this together with 3 colleagues as part of our Bachelors thesis.
While working on the project we came across 2 machines - newer gaming
laptops on which the suspend functionality on unmodified xen is completely broken.
The affected machines were able to suspend but not always resume. Even
if the resume succeeded then the kernel time was trashed in the dmesg log
and the machine never managed to suspend another time. After changing
the xen clock to hpet, suspend started working again both on stock
xen and Qubes OS - this indicates a bug in the ACPI PM Timer. After
disassembling the FADT ACPI table on the ASUS FX504GM I understood that the
reported bit width is 32 bits but the flags indicate a 24 bit PM timer.
The included patch fixes the suspend feature on ASUS FX504GM and hopefully
other laptops - Probably next week I will test this patch on my
friend's laptop where this issue also occurs(suspend is broken, trashed kernel
time after resume).
Changes in v2:
- Check pm timer access width
- Proper timer width is set when xpm block is not present
- Cleanup timer initialization
Changes in v3:
- Check pm timer bit offset
- Warn about acpi firmware bugs
- Drop int cast in init_pmtimer
- Merge if's in init_pmtimer
Grzegorz Uriasz (1):
x86/acpi: Use FADT flags to determine the PMTMR width
xen/arch/x86/acpi/boot.c | 19 +++++++++++++++----
xen/arch/x86/time.c | 12 ++++--------
xen/include/acpi/acmacros.h | 8 ++++++++
3 files changed, 27 insertions(+), 12 deletions(-)
--
2.27.0
next reply other threads:[~2020-06-19 22:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 22:00 Grzegorz Uriasz [this message]
2020-06-19 22:00 ` [PATCH v3 1/1] x86/acpi: Use FADT flags to determine the PMTMR width Grzegorz Uriasz
2020-06-22 8:49 ` Jan Beulich
2020-06-24 15:31 ` Ping: " Jan Beulich
2020-06-25 6:55 ` Paul Durrant
2020-06-22 8:54 ` Roger Pau Monné
2020-06-22 8:58 ` Roger Pau Monné
2020-06-22 10:13 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1592603468.git.gorbak25@gmail.com \
--to=gorbak25@gmail.com \
--cc=andrew.cooper3@citrix.com \
--cc=contact@puzio.waw.pl \
--cc=j.nowak26@student.uw.edu.pl \
--cc=jakub@bartmin.ski \
--cc=jbeulich@suse.com \
--cc=marmarek@invisiblethingslab.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.