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

Last commit made on 2020-06-12
Get this branch:
git clone -b bug-1856387/fix-PIT-skip/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/bionic
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

2a90039... by You-Sheng Yang

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

4edecde... 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>

0402610... by Kleber Sacilotto de Souza

UBUNTU: Ubuntu-4.15.0-107.108

Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

1266f8f... by Thadeu Lima de Souza Cascardo

UBUNTU/SAUCE: x86/speculation/srbds: do not try to turn mitigation off when not supported

When SRBDS is mitigated by TSX OFF, update_srbds_msr will still read and
write to MSR_IA32_MCU_OPT_CTRL even when that is not supported by the
microcode.

Checking for X86_FEATURE_SRBDS_CTRL as a CPU feature available makes more
sense than checking for SRBDS_MITIGATION_UCODE_NEEDED as the the found
"mitigation".

CVE-2020-0543
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>
Acked-by: John Johansen <email address hidden>
Acked-by: Steve Beattie <email address hidden>
Signed-off-by: Kleber Sacilotto de Souza <email address hidden>

9be4bb9... by Andy Whitcroft

UBUNTU: [Packaging] disable nvidia dkms builds for mainline

BugLink: http://bugs.launchpad.net/bugs/1764792
Signed-off-by: Andy Whitcroft <email address hidden>

eb58994... by Kamal Mostafa

UBUNTU: upstream stable to v4.14.182, v4.19.125

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

Ignore: yes
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

fa648ca... by Klaus Doth <email address hidden>

misc: rtsx: Add short delay after exit from ASPM

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

commit 7a839dbab1be59f5ed3b3b046de29e166784c9b4 upstream.

DMA transfers to and from the SD card stall for 10 seconds and run into
timeout on RTS5260 card readers after ASPM was enabled.

Adding a short msleep after disabling ASPM fixes the issue on several
Dell Precision 7530/7540 systems I tested.

This function is only called when waking up after the chip went into
power-save after not transferring data for a few seconds. The added
msleep does therefore not change anything in data transfer speed or
induce any excessive waiting while data transfers are running, or the
chip is sleeping. Only the transition from sleep to active is affected.

Signed-off-by: Klaus Doth <email address hidden>
Cc: stable <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

8b4e779... by Doug Berger <email address hidden>

net: bcmgenet: abort suspend on error

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

[ Upstream commit c5a54bbcececa36852807c36157a86d808b62310 ]

If an error occurs during suspension of the driver the driver should
restore the hardware configuration and return an error to force the
system to resume.

Fixes: 0db55093b566 ("net: bcmgenet: return correct value 'ret' from bcmgenet_power_down")
Signed-off-by: Doug Berger <email address hidden>
Reviewed-by: Florian Fainelli <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Sasha Levin <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

2673140... by Doug Berger <email address hidden>

net: bcmgenet: code movement

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

[ Upstream commit a94cbf03eb514d4d64d8c4f4caa0616b7ce5040a ]

This commit switches the order of bcmgenet_suspend and bcmgenet_resume
in the file to prevent the need for a forward declaration in the next
commit and to make the review of that commit easier.

Signed-off-by: Doug Berger <email address hidden>
Reviewed-by: Florian Fainelli <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
Signed-off-by: Sasha Levin <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>

9adf9ff... by Mika Westerberg <email address hidden>

thunderbolt: Drop duplicated get_switch_at_route()

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

[ Upstream commit 8f965efd215a09c20b0b5e5bb4e20009a954472e ]

tb_switch_find_by_route() does the same already so use it instead and
remove duplicated get_switch_at_route().

Signed-off-by: Mika Westerberg <email address hidden>
Reviewed-by: Lukas Wunner <email address hidden>
Signed-off-by: Sasha Levin <email address hidden>
Signed-off-by: Kamal Mostafa <email address hidden>
Signed-off-by: Khalid Elmously <email address hidden>