From: Jan Beulich <jbeulich@suse.com>
To: Simon Gaiser <simon@invisiblethingslab.com>
Cc: xen-devel@lists.xenproject.org,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Wei Liu" <wl@xen.org>,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [XEN PATCH] x86/hpet: Disable legacy replacement mode after IRQ test if not needed
Date: Wed, 19 Jul 2023 15:32:06 +0200 [thread overview]
Message-ID: <58ee9410-e758-1503-e3f1-d25989fedc1e@suse.com> (raw)
In-Reply-To: <ac77ecba-6804-1d16-60dc-f184e5d31dcb@invisiblethingslab.com>
On 18.07.2023 23:51, Simon Gaiser wrote:
> Roger Pau Monné:
>> On Tue, Jul 18, 2023 at 02:26:03PM +0200, Simon Gaiser wrote:
>>> As far as I understand the HPET legacy mode is not required on systems
>>> with ARAT after the timer IRQ test.
>>
>> What's the relation with ARAT here?
>>
>> It would seem to me that keeping legacy replacement enabled should
>> only be done when opt_hpet_legacy_replacement > 0, and the currently
>> modified block is already in a opt_hpet_legacy_replacement < 0 gated
>> chunk.
>
> I was concerned that on systems without ARAT cpuidle might rely on HPET
> legacy mode being available. See _disable_pit_irq and lapic_timer_init.
> But now that I stared at this again, I think that condition isn't
> actually needed. If we reach that code we know that we have no working
> PIT, but HPET is working. So _disable_pit_irq which is run after
> check_timer (__start_xen first calls check_timer via smp_prepare_cpus
> and only later disable_pit_irq via do_initcalls) will setup HPET
> broadcast, which should succeed since HPET worked previously.
>
> So I guess we can just drop the condition (please double check, that
> code is quite tangled and I'm not familiar with it).
What you want to respect instead though is opt_hpet_legacy_replacement.
Jan
next prev parent reply other threads:[~2023-07-19 13:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-18 12:26 [XEN PATCH] x86/hpet: Disable legacy replacement mode after IRQ test if not needed Simon Gaiser
2023-07-18 12:53 ` Roger Pau Monné
2023-07-18 21:51 ` Simon Gaiser
2023-07-19 13:32 ` Jan Beulich [this message]
2023-07-24 9:48 ` Simon Gaiser
2023-07-24 10:02 ` 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=58ee9410-e758-1503-e3f1-d25989fedc1e@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=marmarek@invisiblethingslab.com \
--cc=roger.pau@citrix.com \
--cc=simon@invisiblethingslab.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.