[Kernel-packages] [Bug 1955383] Re: Support Intel IPU6 MIPI camera on Alder Lake platforms

2023-09-04 Thread Stuart Pook
thanks @Shih-Yuan Lee, I did (more or less)

sudo add-apt-repository --remove ppa:oem-solutions-group/intel-ipu6
sudo apt remove libcamhal-ipu6ep0 linux-modules-ipu6-generic-hwe-22.04 
linux-modules-ivsc-generic-hwe-22.04  oem-somerville-tentacool-meta 
libcanberra-gtk0 v4l2-relayd  libcamhal-ipu6ep0 libipu6ep 
libcamhal-ipu6ep-common 
sudo apt autoremove
sudo apt install oem-somerville-tentacool-meta 

and my webcam is working again.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1955383

Title:
  Support Intel IPU6 MIPI camera on Alder Lake platforms

Status in HWE Next:
  Fix Released
Status in OEM Priority Project:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in linux-firmware package in Ubuntu:
  Fix Released
Status in linux-oem-5.14 package in Ubuntu:
  Invalid
Status in linux source package in Focal:
  Invalid
Status in linux-firmware source package in Focal:
  Fix Released
Status in linux-oem-5.14 source package in Focal:
  Fix Released
Status in linux source package in Jammy:
  Fix Released
Status in linux-firmware source package in Jammy:
  Fix Released
Status in linux-oem-5.14 source package in Jammy:
  Invalid

Bug description:
  == kernel driver SRU ==

  [SRU Justification]

  [Impact]

  To support Intel IPU6 MIPI camera on Alder Lake platforms.

  [Fix]

  Initial support for Intel IPU6 MIPI camera on Tiger Lake platforms has
  been addressed by bug 1921345 and 1939539. They are backported from
  https://github.com/intel/ipu6-drivers.

  Further works to enable IPU6 camera on Alder Lake platforms depend on a
  few more fixes from same ipu6-drivers repository, as well as an extra
  https://github.com/intel/ivsc-driver for Intel Vision Sensing
  Controller(IVSC).

  [Test Case]

  This depends on an integral of enablement components inclusive of the
  kernel drivers that are being proposed, firmware, updates for the
  userspace camera hardware abstration layer library and a gstreamer
  element as what we have for Tiger Lake platforms.

  [Where problems could occur]

  It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
  streaming.

  [Other Info]

  Jammy is planned, but yet the support for 5.15 kernel is not yet started
  from Intel side.

  == linux-firmware SRU ==

  [SRU Justification]

  [Impact]

  Intel IPU6 MIPI camera on Alder Lake platform takes a different fw
  blob.

  [Fix]

  While Intel has no intention to upstream IPU6 driver before kernel
  camera is out, it's available in
  https://github.com/intel/ipu6-camera-bins commit e60fae2b5128 from its
  main branch.

  [Test Case]

  This would take both kernel and firmware fixes, as well as updates for
  the userspace middleware, gstreamer element plugin, to enable the device.
  With all of them in position, one should be able to browse camera with
  legacy camera apps like cheese.

  [Where problems could occur]

  It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
  streaming.

  == original bug report ==

  This depends on following componenets:
  * ipu6ep firmware in 
https://github.com/intel/ipu6-camera-bins/commit/e60fae2b5128cf5b8b948b234dab28e58c93877d
  * Intel VSC fw version 1.2.3.439 (not yet available publicly)
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CasperMD5CheckResult: skip
  Dependencies:

  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-focal-amd64-20200502-85+fossa-tentacool+X188
  DistroRelease: Ubuntu 20.04
  InstallationDate: Installed on 2021-12-20 (7 days ago)
  InstallationMedia: Ubuntu 20.04 "Focal" - Build amd64 LIVE Binary 
20200502-05:58
  MachineType: Dell Inc. XPS 9320
  Package: linux-firmware 1.187.23+staging.38 [origin: unknown]
  PackageArchitecture: all
  ProcFB: 0 i915
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.14.0-2013-oem 
root=UUID=f4ad7114-fc86-47d7-b750-86bd1560a5f6 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 5.14.0-2013.13+lp1955383.1-oem 5.14.20
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-5.14.0-2013-oem N/A
   linux-backports-modules-5.14.0-2013-oem  N/A
   linux-firmware   1.187.23+staging.38
  Tags: third-party-packages focal
  Uname: Linux 5.14.0-2013-oem x86_64
  UnreportableReason: This is not an official Ubuntu package. Please remove any 
third party package and try again.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: N/A
  

[Kernel-packages] [Bug 1955383] Re: Support Intel IPU6 MIPI camera on Alder Lake platforms

2023-09-04 Thread Stuart Pook
hi all, the webcam on my Dell XPS 9320 was working until this week. I
just did the standard required system upgrades and it has stopped
working.  zbarcam shows an empty black image. cheese pauses before
showing "There was an error playing video from the webcam". Chromium
https://webcamtests.com/ detects my Intel MIPI Camera but after I click
on "Test my cam" I get the error: "The video track is paused." What
should I check?

:; sudo apt upgrade && sudo apt update && dpkg -l oem-somerville-tentacool-meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  maven libmaven3-core-java libavdevice58 ffmpeg libopenexr25 libpostproc55
  libmagickcore-6.q16-6-extra libavcodec58 libmagickwand-6.q16-6 libavutil56
  libswscale5 libmagickcore-6.q16-6 libswresample3 imagemagick-6-common
  libavformat58 libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://dell.archive.canonical.com jammy InRelease 

Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease   

Hit:4 https://ppa.launchpadcontent.net/oem-solutions-group/intel-ipu6/ubuntu 
jammy InRelease
Get:5 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 109 kB in 1s (216 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name  Version  Architecture Description
+++-=---=
ii  oem-somerville-tentacool-meta 22.04ubuntu6 all  hardware support 
for Dell XPS 13 9320
:; zbarcam 
:; sudo dmesg | grep ipu6
[   10.199619] intel-ipu6 intel-ipu: enabling device ( -> 0002)
[   10.199821] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[   10.199845] intel-ipu6 intel-ipu: physical base address 0x603c00
[   10.199846] intel-ipu6 intel-ipu: mapped as: 0xa28c5f74
[   10.199908] intel-ipu6 intel-ipu: Unable to set secure mode
[   10.199910] intel-ipu6 intel-ipu: IPU in non-secure mode
[   10.199911] intel-ipu6 intel-ipu: IPU secure touch = 0x0
[   10.199913] intel-ipu6 intel-ipu: IPU camera mask = 0xff
[   10.199973] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[   10.199976] intel-ipu6 intel-ipu: IPC reset done
[   10.199978] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[   10.210322] intel-ipu6 intel-ipu: FW version: 20220510
[   10.212444] intel-ipu6 intel-ipu: IPU6-v3 driver version 1.0
[   10.295703] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[   10.296695] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[   19.578111] intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 17-0036 nlanes is 
1 port is 2
[   19.578339] intel-ipu6-isys intel-ipu6-isys0: All sensor registration 
completed.
[  155.172121] intel-ipu6-isys intel-ipu6-isys0: dma alloc of size 536903680 
failed
:; sudo dmesg | grep 9320
[0.00] DMI: Dell Inc. XPS 9320/0P9FNW, BIOS 2.2.1 04/17/2023
:; chromium https://webcamtests.com/
Gtk-Message: 12:28:27.557: Not loading module "atk-bridge": The functionality 
is provided by GTK natively. Please try to not load it.

(chrome:31619): Gtk-WARNING **: 12:28:27.599: GTK+ module 
/snap/chromium/2590/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
 cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not 
supported.
Gtk-Message: 12:28:27.599: Failed to load module "canberra-gtk-module"

(chrome:31619): Gtk-WARNING **: 12:28:27.600: GTK+ module 
/snap/chromium/2590/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
 cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not 
supported.
Gtk-Message: 12:28:27.600: Failed to load module "canberra-gtk-module"
[31619:31619:0904/122827.620588:ERROR:chrome_browser_cloud_management_controller.cc(163)]
 Cloud management controller initialization aborted as CBCM is not enabled.
WARNING: Kernel has no file descriptor comparison support: Operation not 
permitted
[31619:31745:0904/122830.840454:ERROR:udev_watcher.cc(98)] Failed to begin udev 
enumeration.
^C
:; systemctl list-units --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.
:; uname -a
Linux dataseat 6.2.0-31-generic #31~22.04.1-Ubuntu SMP 

[Kernel-packages] [Bug 1955383] Re: Support Intel IPU6 MIPI camera on Alder Lake platforms

2022-10-31 Thread Stuart Pook
hello @andch

If I look at https://packages.ubuntu.com/search?keywords=oem-somerville-
tentacool-meta=names=all=all I see 22.04~ubuntu1.
Where can I find the 22.04ubuntu5 you mention?  thanks

stuart@xps9320:/$ sudo apt update
Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
stuart@xps9320:/$ sudo apt install oem-somerville-tentacool-meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
oem-somerville-tentacool-meta is already the newest version (22.04~ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1955383

Title:
  Support Intel IPU6 MIPI camera on Alder Lake platforms

Status in HWE Next:
  Fix Released
Status in OEM Priority Project:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in linux-firmware package in Ubuntu:
  Fix Released
Status in linux-oem-5.14 package in Ubuntu:
  Invalid
Status in linux source package in Focal:
  Invalid
Status in linux-firmware source package in Focal:
  Fix Released
Status in linux-oem-5.14 source package in Focal:
  Fix Released
Status in linux source package in Jammy:
  Fix Released
Status in linux-firmware source package in Jammy:
  Fix Released
Status in linux-oem-5.14 source package in Jammy:
  Invalid

Bug description:
  == kernel driver SRU ==

  [SRU Justification]

  [Impact]

  To support Intel IPU6 MIPI camera on Alder Lake platforms.

  [Fix]

  Initial support for Intel IPU6 MIPI camera on Tiger Lake platforms has
  been addressed by bug 1921345 and 1939539. They are backported from
  https://github.com/intel/ipu6-drivers.

  Further works to enable IPU6 camera on Alder Lake platforms depend on a
  few more fixes from same ipu6-drivers repository, as well as an extra
  https://github.com/intel/ivsc-driver for Intel Vision Sensing
  Controller(IVSC).

  [Test Case]

  This depends on an integral of enablement components inclusive of the
  kernel drivers that are being proposed, firmware, updates for the
  userspace camera hardware abstration layer library and a gstreamer
  element as what we have for Tiger Lake platforms.

  [Where problems could occur]

  It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
  streaming.

  [Other Info]

  Jammy is planned, but yet the support for 5.15 kernel is not yet started
  from Intel side.

  == linux-firmware SRU ==

  [SRU Justification]

  [Impact]

  Intel IPU6 MIPI camera on Alder Lake platform takes a different fw
  blob.

  [Fix]

  While Intel has no intention to upstream IPU6 driver before kernel
  camera is out, it's available in
  https://github.com/intel/ipu6-camera-bins commit e60fae2b5128 from its
  main branch.

  [Test Case]

  This would take both kernel and firmware fixes, as well as updates for
  the userspace middleware, gstreamer element plugin, to enable the device.
  With all of them in position, one should be able to browse camera with
  legacy camera apps like cheese.

  [Where problems could occur]

  It's confirmed Intel IPU6 MIPI camera doesn't support suspend at
  streaming.

  == original bug report ==

  This depends on following componenets:
  * ipu6ep firmware in 
https://github.com/intel/ipu6-camera-bins/commit/e60fae2b5128cf5b8b948b234dab28e58c93877d
  * Intel VSC fw version 1.2.3.439 (not yet available publicly)
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CasperMD5CheckResult: skip
  Dependencies:

  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-focal-amd64-20200502-85+fossa-tentacool+X188
  DistroRelease: Ubuntu 20.04
  InstallationDate: Installed on 2021-12-20 (7 days ago)
  InstallationMedia: Ubuntu 20.04 "Focal" - Build amd64 LIVE Binary 
20200502-05:58
  MachineType: Dell Inc. XPS 9320
  Package: linux-firmware 1.187.23+staging.38 [origin: unknown]
  PackageArchitecture: all
  ProcFB: 0 i915
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.14.0-2013-oem 
root=UUID=f4ad7114-fc86-47d7-b750-86bd1560a5f6 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 5.14.0-2013.13+lp1955383.1-oem 5.14.20
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio 

[Kernel-packages] [Bug 1955383] Re: Support Intel IPU6 MIPI camera on Alder Lake platforms

2022-10-28 Thread Stuart Pook
hi, I too am having problems getting the webcam working on my "Dell Inc.
XPS 9320/0P9FNW, BIOS 1.4.0 05/13/2022" running jammy. I only have
http://fr.archive.ubuntu.com/ubuntu/ and
http://security.ubuntu.com/ubuntu as sources in /etc/apt. I have oem-
somerville-tentacool-meta 22.04~ubuntu1 and libcanberra-
gtk3-module:amd64 0.30-10ubuntu1 installed.  I have the
5.15.0-52-generic kernel. I have looked at https://wiki.ubuntu.com/Dell
but the instructions seem to be out of date.  Thanks for any help,
Stuart

zbarcam causes dmesg to output "intel-ipu6-isys intel-ipu6-isys0:
dma_alloc_coherent of size 536903680 failed"

stuart@xps9320:/etc/apt$ zbarcam 
Using mplane plugin for capture 
libv4l2: error turning on stream: Link has been severed
ERROR: zbar processor in v4l2_start():
system error: starting video stream (VIDIOC_STREAMON): Link has been 
severed (67)
stuart@xps9320:/etc/apt$ cheese 
../src/intel/isl/isl.c:2220: FINISHME: 
../src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, 
but a workaround is available.
(cheese:7404): cheese-WARNING **: 00:53:26.993: Device '/dev/video0' does not 
support 2:0:0:0 colourimetry: ../sys/v4l2/gstv4l2object.c(4105): 
gst_v4l2_object_set_format_full (): 
/GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstV4l2Src:v4l2src1:
Device wants 2:0:0:0 colorimetry

stuart@xps9320:/etc/apt$ chromium https://webcamtests.com/ 
Gtk-Message: 00:57:53.924: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:57:53.925: Failed to load module "canberra-gtk-module"
WARNING: Kernel has no file descriptor comparison support: Operation not 
permitted
[7612:7701:1029/005757.683021:ERROR:udev_watcher.cc(98)] Failed to begin udev 
enumeration.

stuart@xps9320:/etc/apt$ firefox https://webcamtests.com/ 
Gtk-Message: 01:06:54.292: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:06:54.293: Failed to load module "canberra-gtk-module"

stuart@xps9320:/etc/apt$ sudo dmesg | grep ipu6
[   11.006142] intel-ipu6 intel-ipu: enabling device ( -> 0002)
[   11.006332] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x2)
[   11.006351] intel-ipu6 intel-ipu: physical base address 0x603c00
[   11.006352] intel-ipu6 intel-ipu: mapped as: 0x4d40cc25
[   11.006446] intel-ipu6 intel-ipu: Unable to set secure mode
[   11.006446] intel-ipu6 intel-ipu: IPU in non-secure mode
[   11.006450] intel-ipu6 intel-ipu: Skip ipc reset for non-secure mode
[   11.006451] intel-ipu6 intel-ipu: IPC reset done
[   11.006451] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[   11.008293] intel-ipu6 intel-ipu: FW version: 20211011
[   11.131890] intel-ipu6 intel-ipu: IPU driver version 1.0
[   20.435874] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8
[   20.435988] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0
[   20.575899] intel-ipu6-isys intel-ipu6-isys0: bind ov01a10 17-0036 nlanes is 
1 port is 2
[   20.576105] intel-ipu6-isys intel-ipu6-isys0: All sensor registration 
completed.
[  936.060203] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 
536903680 failed
[ 1347.230485] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 
536903680 failed
[ 1821.440819] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 
536903680 failed
[ 1953.807143] intel-ipu6-isys intel-ipu6-isys0: dma_alloc_coherent of size 
536903680 failed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1955383

Title:
  Support Intel IPU6 MIPI camera on Alder Lake platforms

Status in HWE Next:
  Fix Released
Status in OEM Priority Project:
  Fix Released
Status in linux package in Ubuntu:
  Invalid
Status in linux-firmware package in Ubuntu:
  Fix Released
Status in linux-oem-5.14 package in Ubuntu:
  Invalid
Status in linux source package in Focal:
  Invalid
Status in linux-firmware source package in Focal:
  Fix Released
Status in linux-oem-5.14 source package in Focal:
  Fix Released
Status in linux source package in Jammy:
  Fix Released
Status in linux-firmware source package in Jammy:
  Fix Released
Status in linux-oem-5.14 source package in Jammy:
  Invalid

Bug description:
  == kernel driver SRU ==

  [SRU Justification]

  [Impact]

  To support Intel IPU6 MIPI camera on Alder Lake platforms.

  [Fix]

  Initial support for Intel IPU6 MIPI camera on Tiger Lake platforms has
  been addressed by bug 1921345 and 1939539. They are backported from
  https://github.com/intel/ipu6-drivers.

  Further works to enable IPU6 camera on Alder Lake platforms depend on a
  few more fixes from same ipu6-drivers repository, as well as an extra
  https://github.com/intel/ivsc-driver for Intel Vision Sensing
  Controller(IVSC).

  [Test Case]

  This depends on an integral of enablement components inclusive of the
  kernel drivers that are being proposed, firmware, updates for the
  userspace camera