The 5.19 kernel backport is broken

Bug #2016706 reported by Zackr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The latest 5.19 backport which migrated from 22.10 to 22.04 is broken on arm64. The kernel team decided to include the following change:
5e0137612430 ("video/aperture: Disable and unregister sysfb devices via aperture helpers")
it's the change 89314ff239e1933357419fa91b20190150f114a8 in the kinetic kernel repo.

This change was part of a much larger series that was making sure that fb devices were properly releasing the pci resources which is necessary for proper drivers to load. Because the backport misses all those other changes it breaks PCI resource release for efifb and prevents specific drivers (e.g. vmwgfx) from being loaded. It doesn't affect many other arm64 systems because most arm64 system don't have dedicated PCI gpu's, like vmwgfx is, which is presumably why it was missed.

Without the rest of the changes in that series efifb won't release BAR 2, which results in :
vmwgfx 0000:00:0f.0 BAR 2: can't reserve [mem 0x7000000-0x77ffffff 64bit pref]
and a black screen on boot. Because the way drm drivers work is that first they unload the legacy fb drivers, in this case efifb, and then they continue their own initialization. In this case vmwgfx can't initialize because even though efifb has been unloaded it never released the resource at BAR 2, so vmwgfx can't claim it. Currently there's no mechanism in the kernel to reload the original generic fb driver in case the specific gpu driver fails the initialization. This results in black screen on booth with vmware hypervisor on arm64 and Ubuntu's 5.19 kernel.

To fix it either the above mentioned change needs to be backed out or the rest of the patches from that series needs to be backported as well.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: arm64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-01-13 (459 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha arm64 (20220112)
IwConfig:
 lo no wireless extensions.

 ens160 no wireless extensions.
MachineType: VMware, Inc. VMware20,1
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-38-generic root=UUID=cd59243b-41f9-4a96-9a57-315489304b3e ro console=tty0 console=ttyS0,115200n8 drm.debug=0x2 quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.19.0-38.39~22.04.1-generic 5.19.17
RelatedPackageVersions:
 linux-restricted-modules-5.19.0-38-generic N/A
 linux-backports-modules-5.19.0-38-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.12
RfKill:

Tags: jammy
Uname: Linux 5.19.0-38-generic aarch64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 03/31/2023
dmi.bios.vendor: VMware, Inc.
dmi.bios.version: VMW201.00V.21529217.BA64.2303311427
dmi.board.name: VBSA
dmi.board.vendor: VMware, Inc.
dmi.board.version: 1
dmi.chassis.type: 1
dmi.chassis.vendor: VMware, Inc.
dmi.chassis.version: VMware20,1
dmi.modalias: dmi:bvnVMware,Inc.:bvrVMW201.00V.21529217.BA64.2303311427:bd03/31/2023:svnVMware,Inc.:pnVMware20,1:pvr1:rvnVMware,Inc.:rnVBSA:rvr1:cvnVMware,Inc.:ct1:cvrVMware20,1:sku0000000000000001:
dmi.product.family: VMware
dmi.product.name: VMware20,1
dmi.product.sku: 0000000000000001
dmi.product.version: 1
dmi.sys.vendor: VMware, Inc.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2016706

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Zackr (zackr) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected jammy
description: updated
Revision history for this message
Zackr (zackr) wrote : CRDA.txt

apport information

Revision history for this message
Zackr (zackr) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Zackr (zackr) wrote : Lspci.txt

apport information

Revision history for this message
Zackr (zackr) wrote : Lspci-vt.txt

apport information

Revision history for this message
Zackr (zackr) wrote : Lsusb.txt

apport information

Revision history for this message
Zackr (zackr) wrote : Lsusb-t.txt

apport information

Revision history for this message
Zackr (zackr) wrote : Lsusb-v.txt

apport information

Revision history for this message
Zackr (zackr) wrote : PaInfo.txt

apport information

Revision history for this message
Zackr (zackr) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Zackr (zackr) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Zackr (zackr) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Zackr (zackr) wrote : ProcModules.txt

apport information

Revision history for this message
Zackr (zackr) wrote : PulseList.txt

apport information

Revision history for this message
Zackr (zackr) wrote : UdevDb.txt

apport information

Revision history for this message
Zackr (zackr) wrote : WifiSyslog.txt

apport information

Revision history for this message
Zackr (zackr) wrote : acpidump.txt

apport information

Revision history for this message
Zackr (zackr) wrote :
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Matthew Ruffell (mruffell) wrote :

Hi Zack,

Thanks for the report and the link. I'll get a test kernel building with a revert and we can get some community users to try it out.

I'll post it in bug 2007001 instead, the existing bug, and mark this one as a duplicate. I'll post in the VMware forum too.

Thanks,
Matthew

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.