** Description changed:
+ [SRU Justification]
+
+ [Impact]
+
+ IPU6 camera no longer works with new kernels oem-6.11 >= -1014,
+ generic-6.11 >= -17.
+
+ v6.13-rc1 commit daabc5c64703 ("media: ipu6: not override the dma_ops of
+ device in driver") was backported to v6.12.2 and v6.11.11, and commit
+ 1d4a000289979 ("media: ipu6: use the IPU6 DMA mapping APIs to do
+ mapping") to v6.12.5 and therefore to Ubuntu-6.11.0-20.20 and Ubuntu-
+ oem-6.11.0-1017.17 through stable backports.
+
+ The first one is the root cause, but it takes both of them as well as
+ upstream pr-324 to complete DMA API transition.
+
+ [Fix]
+
+ The main part is in https://github.com/intel/ipu6-drivers/pull/324.
+ However, since the upstream only fixed this for kernels >= v6.12.5, we
+ will also have to update the preprocessor guards to cover also kernels
+ >= v6.11.11.
+
+ [Test Case]
+
+ 1. Install generic-6.11/oem-6.11 kernels/modules from either -proposed pocket
or from hwe PPA:
+ ```
+ # To use hwe PPA
+ $ sudo add-apt-repository ppa:canonical-hwe-team/intermediate-kernels
+
+ # To install packages. For linux/oracular:
+ $ sudo apt-get install --no-install-recommends --yes \
+ linux-generic \
+ linux-modules-{ipu6,ipu7,usbio,vision}-generic
+ # For linux-oem-6.11/noble:
+ $ sudo apt-get install --no-install-recommends --yes \
+ linux-oem-24.04b \
+ linux-modules-{ipu6,ipu7,usbio,vision}-24.04b
+ ```
+
+ 2. Reboot and check dmesg. There should no longer be dma_alloc_attrs
+ failure warnings, neither that for intel_ipu6_isys.isys probing.
+
+ 3. Use https://webcamtests.com/ to make sure camera works as before.
+
+ [Where problems could occur]
+
+ This switches IPU6 DMA handling the APIs used in in-tree isys module.
+ However, while the dkms is using in-tree isys for kernel >= 6.10, and
+ yet such DMA APIs are only available in Ubuntu kernels >= 6.11, which
+ means the v6.10 kernels are no longer supported.
+
+ [Other Info]
+
+ Nominate for Oracular for generic-6.11 and Plucky for oem-6.11.
+
+ ========== original bug report ==========
+
With bug 2091655 applied upstream stable fixes of v6.11.11 to
generic-6.11 and therefore oem-6.11 kernels, ipu6 starts failing to
proble intel-psys driver, leaving following kernel messages:
- WARNING: CPU: 12 PID: 671 at kernel/dma/mapping.c:544
dma_alloc_attrs+0xc8/0xd0
- ...
- intel_ipu6_isys.isys intel_ipu6.isys.40: probe with driver
intel_ipu6_isys.isys failed with error -12
+ WARNING: CPU: 12 PID: 671 at kernel/dma/mapping.c:544
dma_alloc_attrs+0xc8/0xd0
+ ...
+ intel_ipu6_isys.isys intel_ipu6.isys.40: probe with driver
intel_ipu6_isys.isys failed with error -12
linux-oem-6.11 version -1013 is the last known unaffected kernel, -1015
is the the first. ipu6-drivers version in dkms-versions doesn't change
across the version bumps.
Upstream fix merged in https://github.com/intel/ipu6-drivers/pull/324.
- ---
+ ---
ProblemType: Bug
ApportVersion: 2.28.1-0ubuntu3.3
Architecture: amd64
AudioDevicesInUse:
- USER PID ACCESS COMMAND
- /dev/snd/seq: ubuntu 2266 F.... pipewire
- /dev/snd/controlC0: ubuntu 2266 F.... pipewire
- ubuntu 2270 F.... wireplumber
+ USER PID ACCESS COMMAND
+ /dev/snd/seq: ubuntu 2266 F.... pipewire
+ /dev/snd/controlC0: ubuntu 2266 F.... pipewire
+ ubuntu 2270 F.... wireplumber
CasperMD5CheckResult: pass
DistroRelease: Ubuntu 24.04
InstallationDate: Installed on 2024-05-27 (281 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64
(20240220)
MachineType: LENOVO 21KCSIT080
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/rootfs/noble/boot/vmlinuz-6.11.0-1015-oem
root=UUID=f0b95f72-430a-47fa-9f7a-253cc708e67f ro rootflags=subvol=rootfs/noble
quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.11.0-1015.15-oem 6.11.11
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
- linux-restricted-modules-6.11.0-1015-oem N/A
- linux-backports-modules-6.11.0-1015-oem N/A
- linux-firmware
20240318.git3b128b60-0ubuntu2.10+exp.31
+ linux-restricted-modules-6.11.0-1015-oem N/A
+ linux-backports-modules-6.11.0-1015-oem N/A
+ linux-firmware
20240318.git3b128b60-0ubuntu2.10+exp.31
Tags: noble
Uname: Linux 6.11.0-1015-oem x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: False
dmi.bios.date: 08/06/2024
dmi.bios.release: 1.34
dmi.bios.vendor: LENOVO
dmi.bios.version: N3YET69W (1.34 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21KCSIT080
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.24
dmi.modalias:
dmi:bvnLENOVO:bvrN3YET69W(1.34):bd08/06/2024:br1.34:efr1.24:svnLENOVO:pn21KCSIT080:pvrThinkPadX1CarbonGen12:rvnLENOVO:rn21KCSIT080:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21KC_BU_Think_FM_ThinkPadX1CarbonGen12:
dmi.product.family: ThinkPad X1 Carbon Gen 12
dmi.product.name: 21KCSIT080
dmi.product.sku: LENOVO_MT_21KC_BU_Think_FM_ThinkPad X1 Carbon Gen 12
dmi.product.version: ThinkPad X1 Carbon Gen 12
dmi.sys.vendor: LENOVO
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2100861
Title:
kernel warning in dma_alloc_attrs, probe with driver
intel_ipu6_isys.isys failed with error -12
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipu6-drivers/+bug/2100861/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs