~vicamo/+git/ubuntu-kernel:bug-1856387/fix-PIT-skip/oem-bionic

Last commit made on 2020-06-12
Get this branch:
git clone -b bug-1856387/fix-PIT-skip/oem-bionic https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1856387/fix-PIT-skip/oem-bionic
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

531b31c... by You-Sheng Yang

Bug 1856387: x86/timer: Don't skip PIT setup when APIC is disabled or in legacy mode

ad24e60... by tglx

x86/timer: Don't skip PIT setup when APIC is disabled or in legacy mode

Tony reported a boot regression caused by the recent workaround for systems
which have a disabled (clock gate off) PIT.

On his machine the kernel fails to initialize the PIT because
apic_needs_pit() does not take into account whether the local APIC
interrupt delivery mode will actually allow to setup and use the local
APIC timer. This should be easy to reproduce with acpi=off on the
command line which also disables HPET.

Due to the way the PIT/HPET and APIC setup ordering works (APIC setup can
require working PIT/HPET) the information is not available at the point
where apic_needs_pit() makes this decision.

To address this, split out the interrupt mode selection from
apic_intr_mode_init(), invoke the selection before making the decision
whether PIT is required or not, and add the missing checks into
apic_needs_pit().

Fixes: c8c4076723da ("x86/timer: Skip PIT initialization on modern chipsets")
Reported-by: Anthony Buckley <email address hidden>
Tested-by: Anthony Buckley <email address hidden>
Signed-off-by: Thomas Gleixner <email address hidden>
Signed-off-by: Ingo Molnar <email address hidden>
Cc: Daniel Drake <email address hidden>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206125
Link: https://<email address hidden>
(backported from commit 979923871f69a4dc926658f9f9a1a4c1bde57552)
Signed-off-by: You-Sheng Yang <email address hidden>

0a80f9f... by AceLan Kao

UBUNTU: Ubuntu-oem-4.15.0-1082.92

Signed-off-by: AceLan Kao <email address hidden>

6f9d5f2... by AceLan Kao

UBUNTU: [Config] updateconfigs for RTC AM1805

BugLink: https://bugs.launchpad.net/bugs/1876667

Signed-off-by: AceLan Kao <email address hidden>

9d1beeb... by AceLan Kao

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1878833
Properties: no-test-build
Signed-off-by: AceLan Kao <email address hidden>

5654912... by AceLan Kao

UBUNTU: Start new release

Ignore: yes
Signed-off-by: AceLan Kao <email address hidden>

1f33eca... by AceLan Kao

UBUNTU: Ubuntu-oem-4.15.0-1081.91

Signed-off-by: AceLan Kao <email address hidden>

c3971b0... by AceLan Kao

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1874765
Properties: no-test-build
Signed-off-by: AceLan Kao <email address hidden>

56d8e08... by AceLan Kao

UBUNTU: Start new release

Ignore: yes
Signed-off-by: AceLan Kao <email address hidden>

8e439a3... by AceLan Kao

UBUNTU: Ubuntu-oem-4.15.0-1080.90

Signed-off-by: AceLan Kao <email address hidden>