~timg-tpi/ubuntu/+source/linux/+git/focal:focal-hv-pci-BAR-boot-time-lp1972662

Last commit made on 2022-05-09
Get this branch:
git clone -b focal-hv-pci-BAR-boot-time-lp1972662 https://git.launchpad.net/~timg-tpi/ubuntu/+source/linux/+git/focal
Only Tim Gardner can upload to this branch. If you are Tim Gardner please log in for upload directions.

Branch merges

Branch information

Name:
focal-hv-pci-BAR-boot-time-lp1972662
Repository:
lp:~timg-tpi/ubuntu/+source/linux/+git/focal

Recent commits

4a775f2... by Tim Gardner

5.4.0-1079.82~lp1972662.1

Signed-off-by: Tim Gardner <email address hidden>

453660f... by Tim Gardner

UBUNTU: Ubuntu-azure-5.4.0-1079.82

Signed-off-by: Tim Gardner <email address hidden>

611f17e... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

e7c03df... by Dexuan Cui

PCI: hv: Do not set PCI_COMMAND_MEMORY to reduce VM boot time

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

Currently when the pci-hyperv driver finishes probing and initializing the
PCI device, it sets the PCI_COMMAND_MEMORY bit; later when the PCI device
is registered to the core PCI subsystem, the core PCI driver's BAR detection
and initialization code toggles the bit multiple times, and each toggling of
the bit causes the hypervisor to unmap/map the virtual BARs from/to the
physical BARs, which can be slow if the BAR sizes are huge, e.g., a Linux VM
with 14 GPU devices has to spend more than 3 minutes on BAR detection and
initialization, causing a long boot time.

Reduce the boot time by not setting the PCI_COMMAND_MEMORY bit when we
register the PCI device (there is no need to have it set in the first place).
The bit stays off till the PCI device driver calls pci_enable_device().
With this change, the boot time of such a 14-GPU VM is reduced by almost
3 minutes.

Link: https://<email address hidden>/
Tested-by: Boqun Feng (Microsoft) <email address hidden>
Signed-off-by: Dexuan Cui <email address hidden>
Reviewed-by: Michael Kelley <email address hidden>
Acked-by: Lorenzo Pieralisi <email address hidden>
Cc: Jake Oshins <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Wei Liu <email address hidden>
(cherry picked from commit 23e118a48acf7be223e57d98e98da8ac5a4071ac linux-next)
Signed-off-by: Tim Gardner <email address hidden>

1850626... by Tim Gardner

UBUNTU: Ubuntu-azure-5.4.0-1078.81

Signed-off-by: Tim Gardner <email address hidden>

e66b663... by Tim Gardner

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1969026
Properties: no-test-build
Signed-off-by: Tim Gardner <email address hidden>

2e8d439... by Tim Gardner

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Tim Gardner <email address hidden>

e2f0e8c... by Tim Gardner

UBUNTU: [Config] azure: format annotations

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

No functional change.

Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Philip Cox <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

bb7ad06... by Tim Gardner

UBUNTU: [Config] azure: do_enforce_all=true

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

Set do_enforce_all=true.
Add all of the annotation policies that are different them master.

Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Philip Cox <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

1711ca8... by Tim Gardner

UBUNTU: [Config] azure: Harmonize arm64 config settings with amd64

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

Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Philip Cox <email address hidden>
Acked-by: Marcelo Cerri <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>