~vicamo/+git/ubuntu-kernel:bug-1866734/fix-selftest-retry-v2/oem-osp1-bionic

Last commit made on 2020-03-16
Get this branch:
git clone -b bug-1866734/fix-selftest-retry-v2/oem-osp1-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-1866734/fix-selftest-retry-v2/oem-osp1-bionic
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

ae8c644... by You-Sheng Yang

Bug 1866734: Input: i8042 - fix the selftest retry logic

7b822b9... by You-Sheng Yang

Input: i8042 - fix the selftest retry logic

It returns -NODEV at the first selftest timeout, so the retry logic
doesn't work. Move the return outside of the while loop to make it real
retry 5 times before returns -ENODEV.

BTW, the origin loop will retry 6 times, also fix this.

Signed-off-by: You-Sheng Yang <email address hidden>
(backported from
https://<email address hidden>/)

312ad8d... by You-Sheng Yang

Revert "UBUNTU: SAUCE: Input: i8042 - Fix the selftest retry logic"

This reverts commit 0aa61f18ea08137125fc7453b48526371184699e.

a633f06... by Timo Aaltonen

UBUNTU: Ubuntu-oem-osp1-5.0.0-1043.48

Signed-off-by: Timo Aaltonen <email address hidden>

4f0774f... by Timo Aaltonen

UBUNTU: [Config] Bump the GCC version

Signed-off-by: Timo Aaltonen <email address hidden>

fae3ed5... by Timo Aaltonen

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1867111
Properties: no-test-build
Signed-off-by: Timo Aaltonen <email address hidden>

0aa61f1... by AceLan Kao

UBUNTU: SAUCE: Input: i8042 - Fix the selftest retry logic

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

It returns -NODEV at the first selftest timeout, so the retry logic
doesn't work. Move the return outside of the while loop to make it real
retry 5 times before returns -ENODEV.

BTW, the origin loop will retry 6 times, also fix this.

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

3c77b86... by You-Sheng Yang

UBUNTU SAUCE: r8151: check disconnect status after long sleep

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

Dell USB Type C docking WD19/WD19DC attaches additional peripherals as:

  /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
      |__ Port 1: Dev 11, If 0, Class=Hub, Driver=hub/4p, 5000M
          |__ Port 3: Dev 12, If 0, Class=Hub, Driver=hub/4p, 5000M
          |__ Port 4: Dev 13, If 0, Class=Vendor Specific Class,
              Driver=r8152, 5000M

where usb 2-1-3 is a hub connecting all USB Type-A/C ports on the dock.

When hotplugging such dock with additional usb devices already attached on
it, the probing process may reset usb 2.1 port, therefore r8152 ethernet
device is also reset. However, during r8152 device init there are several
for-loops that, when it's unable to retrieve hardware registers due to
being discconected from USB, may take up to 14 seconds each in practice,
and that has to be completed before USB may re-enumerate devices on the
bus. As a result, devices attached to the dock will only be available
after nearly 1 minute after the dock was plugged in:

  [ 216.388290] [250] r8152 2-1.4:1.0: usb_probe_interface
  [ 216.388292] [250] r8152 2-1.4:1.0: usb_probe_interface - got id
  [ 258.830410] r8152 2-1.4:1.0 (unnamed net_device) (uninitialized): PHY not ready
  [ 258.830460] r8152 2-1.4:1.0 (unnamed net_device) (uninitialized): Invalid header when reading pass-thru MAC addr
  [ 258.830464] r8152 2-1.4:1.0 (unnamed net_device) (uninitialized): Get ether addr fail

This can be reproduced on all kernel versions up to latest v5.6-rc2, but
after v5.5-rc7 the reproduce rate is dramatically lower to 1/30 or so
while it was around 1/2.

The time consuming for-loops are at:
https://elixir.bootlin.com/linux/v5.5/source/drivers/net/usb/r8152.c#L3206
https://elixir.bootlin.com/linux/v5.5/source/drivers/net/usb/r8152.c#L5400
https://elixir.bootlin.com/linux/v5.5/source/drivers/net/usb/r8152.c#L5537

Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

01b2670... by Timo Aaltonen

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Timo Aaltonen <email address hidden>

d218d43... by AceLan Kao

UBUNTU: Ubuntu-oem-osp1-5.0.0-1042.47

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