You are not logged in.

#76 2022-11-01 20:57:25

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

crapthal wrote:

@itayf Yes, it seems random. Mine started working after putting "Thorough" in fastboot setting at the same reboot. I have to say I did so much stuff, it's hard to tell what really fixed it.


Thanks for sharing, let's see where this all goes with kernel and drivers updates neutral

Offline

#77 2022-11-01 21:42:32

0snap
Member
Registered: 2022-11-01
Posts: 1

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

stefanpartheym wrote:

Thanks a lot for this! Unfortunately, when I install everything via that script, setup the kernel modules and restart the systemd services, I get the following errors / behavior:

- it does show /dev/video0 device, which was not there before
- browser (webrtc test) or zoom client cannot access that device
- testing via gstreamer pipeline gives similar errors as reported by @bjesus earlier in this thread https://bbs.archlinux.org/viewtopic.php … 8#p2064268
- hibernating crashes the system, graphics freeze, cannot even switch to another tty. I suppose it's a kernel panic but I don't see logs
- after boot I see a null pointer deref in journalctl:

Nov 01 21:46:12 fixel-pc kernel: intel-ipu6 intel-ipu: IPC reset done
Nov 01 21:46:12 fixel-pc kernel: intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
Nov 01 21:46:12 fixel-pc kernel: intel_rapl_common: Found RAPL domain package
Nov 01 21:46:12 fixel-pc dockerd[783]: time="2022-11-01T21:46:12.052670492+01:00" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting objec>
Nov 01 21:46:12 fixel-pc systemd[1]: run-docker-netns-6a62aa4debb5.mount: Deactivated successfully.
Nov 01 21:46:12 fixel-pc kernel: intel-ipu6 intel-ipu: FW version: 20220510
Nov 01 21:46:12 fixel-pc kernel: BUG: kernel NULL pointer dereference, address: 0000000000000304
Nov 01 21:46:12 fixel-pc kernel: #PF: supervisor read access in kernel mode
Nov 01 21:46:12 fixel-pc kernel: #PF: error_code(0x0000) - not-present page
Nov 01 21:46:12 fixel-pc kernel: PGD 0 P4D 0 
Nov 01 21:46:12 fixel-pc kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
Nov 01 21:46:12 fixel-pc kernel: CPU: 13 PID: 690 Comm: systemd-udevd Tainted: G           OE      6.0.6-arch1-1 #1 a46cc4b882cfc11c3bbb09d6a0fab3dcad53b5c2
Nov 01 21:46:12 fixel-pc kernel: Hardware name: LENOVO 21CBCTO1WW/21CBCTO1WW, BIOS N3AET65W (1.30 ) 08/02/2022
Nov 01 21:46:12 fixel-pc kernel: RIP: 0010:ipu_pci_probe.cold+0x3fc/0x930 [intel_ipu6]
Nov 01 21:46:12 fixel-pc kernel: Code: 48 89 fa 48 85 ff 0f 84 dd 00 00 00 48 8b bf 10 03 00 00 48 85 ff 0f 84 2d 01 00 00 e8 23 b4 ff ff 48 8b 43 18 48 85 c0 74 11 <48> 8b >
Nov 01 21:46:12 fixel-pc kernel: RSP: 0018:ffffbce60193fb28 EFLAGS: 00010282
Nov 01 21:46:12 fixel-pc kernel: RAX: fffffffffffffff4 RBX: ffff950e4a084428 RCX: 0000000000000000
Nov 01 21:46:12 fixel-pc kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Nov 01 21:46:12 fixel-pc kernel: RBP: ffff950e00e56000 R08: ffff950e00e56378 R09: 0000000000000024
Nov 01 21:46:12 fixel-pc kernel: R10: 00000000fa83b2da R11: 00000000b123f581 R12: ffff950e00e560d0
Nov 01 21:46:12 fixel-pc kernel: R13: ffffbce603000000 R14: 00000000fffffff4 R15: ffffbce603000000
Nov 01 21:46:12 fixel-pc kernel: FS:  00007fde073a1200(0000) GS:ffff95153f940000(0000) knlGS:0000000000000000
Nov 01 21:46:12 fixel-pc kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 21:46:12 fixel-pc kernel: CR2: 0000000000000304 CR3: 0000000148ae6005 CR4: 0000000000f70ee0
Nov 01 21:46:12 fixel-pc kernel: PKRU: 55555554
Nov 01 21:46:12 fixel-pc kernel: Call Trace:
Nov 01 21:46:12 fixel-pc kernel:  <TASK>
Nov 01 21:46:12 fixel-pc kernel:  local_pci_probe+0x42/0x80
Nov 01 21:46:12 fixel-pc kernel:  pci_device_probe+0xc1/0x220
Nov 01 21:46:12 fixel-pc kernel:  ? sysfs_do_create_link_sd+0x6e/0xe0
Nov 01 21:46:12 fixel-pc kernel:  really_probe+0xdb/0x380
Nov 01 21:46:12 fixel-pc kernel:  ? pm_runtime_barrier+0x54/0x90
Nov 01 21:46:12 fixel-pc kernel:  __driver_probe_device+0x78/0x170
Nov 01 21:46:12 fixel-pc kernel:  driver_probe_device+0x1f/0x90
Nov 01 21:46:12 fixel-pc kernel:  __driver_attach+0xd5/0x1d0
Nov 01 21:46:12 fixel-pc kernel:  ? __device_attach_driver+0x110/0x110
Nov 01 21:46:12 fixel-pc kernel:  bus_for_each_dev+0x88/0xd0
Nov 01 21:46:12 fixel-pc kernel:  bus_add_driver+0x1b2/0x200
Nov 01 21:46:12 fixel-pc kernel:  driver_register+0x8d/0xe0
Nov 01 21:46:12 fixel-pc kernel:  ? 0xffffffffc1049000
Nov 01 21:46:12 fixel-pc kernel:  ipu_init+0x3f/0x1000 [intel_ipu6 d3fb34220588636632c4a553541ea4e5259669b3]
Nov 01 21:46:12 fixel-pc kernel:  ? 0xffffffffc1049000
Nov 01 21:46:12 fixel-pc kernel:  do_one_initcall+0x5a/0x220
Nov 01 21:46:12 fixel-pc kernel:  do_init_module+0x4a/0x1e0
Nov 01 21:46:12 fixel-pc kernel:  __do_sys_init_module+0x17f/0x1b0
Nov 01 21:46:12 fixel-pc kernel:  do_syscall_64+0x5c/0x90
Nov 01 21:46:12 fixel-pc kernel:  ? syscall_exit_to_user_mode+0x1b/0x40
Nov 01 21:46:12 fixel-pc kernel:  ? do_syscall_64+0x6b/0x90
Nov 01 21:46:12 fixel-pc kernel:  ? exc_page_fault+0x74/0x170
Nov 01 21:46:12 fixel-pc kernel:  entry_SYSCALL_64_after_hwframe+0x63/0xcd
Nov 01 21:46:12 fixel-pc kernel: RIP: 0033:0x7fde07d21eae
Nov 01 21:46:12 fixel-pc kernel: Code: 48 8b 0d dd ee 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d >
Nov 01 21:46:12 fixel-pc kernel: RSP: 002b:00007ffc5aa6bb88 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
Nov 01 21:46:12 fixel-pc kernel: RAX: ffffffffffffffda RBX: 00005606e1bec3e0 RCX: 00007fde07d21eae
Nov 01 21:46:12 fixel-pc kernel: RDX: 00007fde081cf343 RSI: 000000000004ae75 RDI: 00007fde0633a010
Nov 01 21:46:12 fixel-pc kernel: RBP: 00007fde081cf343 R08: 000000000006b000 R09: 85ebca77c2b2ae63
Nov 01 21:46:12 fixel-pc kernel: R10: 00000000000576f1 R11: 0000000000000246 R12: 0000000000020000
Nov 01 21:46:12 fixel-pc kernel: R13: 00005606e1bdd740 R14: 00005606e1bec3e0 R15: 00005606e1bf30b0
Nov 01 21:46:12 fixel-pc kernel:  </TASK>
Nov 01 21:46:12 fixel-pc kernel: Modules linked in: processor_thermal_device_pci intel_vsec intel_ipu6(OE+) pcc_cpufreq(-) processor_thermal_device tpm_crb fjes(-) drm_displ>
Nov 01 21:46:12 fixel-pc kernel:  crypto_user fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 hid_logitech_hidpp hid_logitech_dj usbhid dm_crypt c>
Nov 01 21:46:12 fixel-pc kernel: CR2: 0000000000000304
Nov 01 21:46:12 fixel-pc kernel: ---[ end trace 0000000000000000 ]---
Nov 01 21:46:12 fixel-pc kernel: RIP: 0010:ipu_pci_probe.cold+0x3fc/0x930 [intel_ipu6]
Nov 01 21:46:12 fixel-pc kernel: Code: 48 89 fa 48 85 ff 0f 84 dd 00 00 00 48 8b bf 10 03 00 00 48 85 ff 0f 84 2d 01 00 00 e8 23 b4 ff ff 48 8b 43 18 48 85 c0 74 11 <48> 8b >
Nov 01 21:46:12 fixel-pc kernel: RSP: 0018:ffffbce60193fb28 EFLAGS: 00010282
Nov 01 21:46:12 fixel-pc kernel: RAX: fffffffffffffff4 RBX: ffff950e4a084428 RCX: 0000000000000000
Nov 01 21:46:12 fixel-pc kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Nov 01 21:46:12 fixel-pc kernel: RBP: ffff950e00e56000 R08: ffff950e00e56378 R09: 0000000000000024
Nov 01 21:46:12 fixel-pc kernel: R10: 00000000fa83b2da R11: 00000000b123f581 R12: ffff950e00e560d0
Nov 01 21:46:12 fixel-pc kernel: R13: ffffbce603000000 R14: 00000000fffffff4 R15: ffffbce603000000
Nov 01 21:46:12 fixel-pc kernel: FS:  00007fde073a1200(0000) GS:ffff95153f940000(0000) knlGS:0000000000000000
Nov 01 21:46:12 fixel-pc kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 01 21:46:12 fixel-pc kernel: CR2: 0000000000000304 CR3: 0000000148ae6005 CR4: 0000000000f70ee0
Nov 01 21:46:12 fixel-pc kernel: PKRU: 55555554

Regarding the gstreamer test, I  checked the intel-ipu6-dkms-git/ repo and there are comments in the code regarding the "ov13b10" camera model that gstreamer complains about. So I suppose it should be there in the compiled drivers and the error is rather related to the kernel null pointer than what the message suggests. I don't really know how to proceed from here. I'm on 6.0.6-arch1-1 mainline. Is anyone seeing that, too?

Offline

#78 2022-11-02 20:39:44

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

crapthal wrote:

@itayf Yes, it seems random. Mine started working after putting "Thorough" in fastboot setting at the same reboot. I have to say I did so much stuff, it's hard to tell what really fixed it.

Haha damn... Let's wait with the kernel and drivers updates to see where that all goes neutral

Offline

#79 2022-11-24 23:02:39

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 46
Website

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Any idea on how to get this working on 6.0.9?

I've described the issue and put as much detail as possible into it here.

Offline

#80 2023-01-02 11:16:35

sigboe
Member
Registered: 2023-01-02
Posts: 1

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

To further the conversation, getting it to work (chrome and chromium only, no cheese or firefox) on kernel 6.0.9 is explained here https://github.com/stefanpartheym/archl … 1347066095
It works on 6.0.9 but the explanation in the readme of the repo is not complete

Getting it to work on kernel 6.1 and newer requires a patched driver from Hans De Goede, if you read here, https://github.com/stefanpartheym/archl … 1366008432
You will see the patch to get the repo of PKGBUILD files to use Hans' fork of the ipu6-drivers instead.

If you care, there is an open merge request to the intel repo https://github.com/intel/ipu6-drivers/pull/67 to make it functioning in the 6.1 kernel, but the merge request has been stale since November. I think its sad that Intel both haven't made much progress to make the driver ready to be upstreamed to the kernel, nor accepting help from people from other companies like Hans' from Redhat. I can only expect there are some passionate engineers at Intel that sadly has other tasks the management wants them to work on first. At least that is my impression when talking to Intel engineers in the past.

Last edited by sigboe (2023-01-02 11:17:36)

Offline

#81 2023-01-08 15:17:30

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Thanks @sigboe for this comment! I was able to compile it on 6.1.3 and the camera is working just as in 6.0 (for good and for bad).

I suspect installing the camera drivers makes the microphone not working, as the microphone could record sound after upgrading to 6.1.3, but after installing the camera drivers for that kernel version it stopped recording.

Does it happen to other people here? (That the microphone, after reloading snd_sof_pci_intel_tgl and making sure it's not muted, still does not record anything)

Last edited by itayf (2023-01-09 21:24:50)

Offline

#82 2023-01-10 00:35:51

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 46
Website

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I would also like to shere this workaround (https://github.com/stefanpartheym/archl … 1370005030) to get the camera working in discord, firefox, and more too smile

Offline

#83 2023-01-11 22:13:20

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

alba4k wrote:

I would also like to shere this workaround (https://github.com/stefanpartheym/archl … 1370005030) to get the camera working in discord, firefox, and more too smile

Awesome @alba4k, it worked!

itayf wrote:

I suspect installing the camera drivers makes the microphone not working, as the microphone could record sound after upgrading to 6.1.3, but after installing the camera drivers for that kernel version it stopped recording.

Does it happen to other people here? (That the microphone, after reloading snd_sof_pci_intel_tgl and making sure it's not muted, still does not record anything)

And regarding the microphone, it somehow works now in 6.1.4 after reloading the driver and running "pulseaudio" or "pulseaudio -k" (meaning restart) if it was already run automatically (because a video was played, etc.). This mean that there is some difference between manual running it (that makes the mic work) and its automatic spawning (that doesn't). What I did is just running it manually at boot (after automatically reloading the driver at boot too).

And I'll also mention that as @crapthal mentioned, the mic is very random - for example sometimes after boot it doesn't record at all, something it records on low volume (and restarting pulseaudio fixes that).

Last edited by itayf (2023-01-11 22:46:13)

Offline

#84 2023-01-12 06:39:53

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 46
Website

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

And regarding the microphone, it somehow works now in 6.1.4 after reloading the driver and running "pulseaudio" or "pulseaudio -k" (meaning restart) if it was already run automatically (because a video was played, etc.).

@iayf huh, that is weird, I never had such an issue on my machine (with pipewire, at least).

glad it turned out fine for you too

Offline

#85 2023-01-16 02:36:12

heregoesnoth
Member
Registered: 2022-11-05
Posts: 1

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

sigboe wrote:

To further the conversation, getting it to work (chrome and chromium only, no cheese or firefox) on kernel 6.0.9 is explained here https://github.com/stefanpartheym/archl … 1347066095
It works on 6.0.9 but the explanation in the readme of the repo is not complete

Getting it to work on kernel 6.1 and newer requires a patched driver from Hans De Goede, if you read here, https://github.com/stefanpartheym/archl … 1366008432
You will see the patch to get the repo of PKGBUILD files to use Hans' fork of the ipu6-drivers instead.

If you care, there is an open merge request to the intel repo https://github.com/intel/ipu6-drivers/pull/67 to make it functioning in the 6.1 kernel, but the merge request has been stale since November. I think its sad that Intel both haven't made much progress to make the driver ready to be upstreamed to the kernel, nor accepting help from people from other companies like Hans' from Redhat. I can only expect there are some passionate engineers at Intel that sadly has other tasks the management wants them to work on first. At least that is my impression when talking to Intel engineers in the past.

It was finally merged

Offline

#86 2023-01-16 21:44:13

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 46
Website

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Also, does anybody have any info on getting the IR camera to work? I'm not sure if it's part of the same array or if it even has anything with the MIPI/IPU6 driver, but fact is it is not picked up by v4l2-ctl.

Is there any work being done on this anywhere?

Offline

#87 2023-01-25 22:09:45

vavra.7
Member
Registered: 2021-05-22
Posts: 11

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Hi, I have been watching this thread since its very beginning hoping that one day some solution for fully working webcam will appear here. Since it is already an half of the year I am wondering what is going on?  Can someone please briefly explain why driver for the webcam is not a part of the kernel for such a long time? When it will be? And why there is still not at least a proprietary driver that would make webcam fully working?

Offline

#88 2023-01-25 22:26:51

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Hi @vavra.7,

I cannot answer your questions regarding why things what they are now, but regarding working camera I can share -

I've been following this thread and I was also helped by fellow users here, and my camera (and actually all other 9320's hardware) is currently fully working for me.

Tell us where you got stuck and see if people here could assist you.

Last edited by itayf (2023-01-25 22:27:14)

Offline

#89 2023-01-26 10:47:56

pengux
Member
Registered: 2023-01-26
Posts: 2

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

@vavra.7 you may have missed to install the `dkms` and `linux-headers` packages like I did. See https://wiki.archlinux.org/title/Dynami … le_Support. After that and then running the `install.sh` script, the camera finally works for me. Its performance is not the best though, but at least it's usable.

Offline

#90 2023-01-26 11:03:19

vavra.7
Member
Registered: 2021-05-22
Posts: 11

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Thank you for the answer @itayf

I came to the conclusion that there is not fully functional solution because there is repeatedly stated that camera works only for chrome and chromium, no cheese or firefox and also IR camera doesn't work.

Can you please confirm that camera is accessible also from other browsers, apps like OBS or can be accessed from VirtualBox for instance? In that case would be more than happy to follow steps to get it up and running. On the other hand if the camera is working only in chromium, it is better for me to wait for some other solution.

Offline

#91 2023-01-26 11:54:26

twouters
Member
Registered: 2010-04-01
Posts: 28

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

vavra.7 wrote:

Thank you for the answer @itayf

I came to the conclusion that there is not fully functional solution because there is repeatedly stated that camera works only for chrome and chromium, no cheese or firefox and also IR camera doesn't work.

Can you please confirm that camera is accessible also from other browsers, apps like OBS or can be accessed from VirtualBox for instance? In that case would be more than happy to follow steps to get it up and running. On the other hand if the camera is working only in chromium, it is better for me to wait for some other solution.

Camera works for me in cheese (XPS 9315, though afaik at least the camera is the same) but haven't tested OBS. There's a workaround to make it work in firefox.

Offline

#92 2023-01-26 15:43:09

vavra.7
Member
Registered: 2021-05-22
Posts: 11

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I used installation script from @stefanpartheym. It set up everything for me. I was really surprised how easy it was so all credits to those guys behind the script!

Without applying "--workaround" flag when installing webcam is working for me in chromium and OBS. No luck with Firefox, Cheese and accessing it in VirtualBox. Maybe the workaround could solve the issue.

Thank you.

Offline

#93 Yesterday 18:27:05

pengux
Member
Registered: 2023-01-26
Posts: 2

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

So my camera is workong on my XPS Plus (9320), but it seems like it makes Arch Linux to hang after resuming from hibernation (suspend to disk). It works if I just suspend to RAM though. It also works if I run

./uninstall.sh

from https://github.com/stefanpartheym/archlinux-ipu6-webcam. So I tried to unload the modules before hibernation:

sudo modprobe -r intel_ipu6_isys videobuf2_dma_contig videobuf2_v4l2 videobuf2_common intel_ipu6_psys intel_ipu6 v4l2_fwnode v4l2_async videodev mc
systemctl hibernate

but it still fails to resume. Are there other modules which was installed that I can try to unload?

Offline

#94 Today 00:26:12

twouters
Member
Registered: 2010-04-01
Posts: 28

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

pengux wrote:

So my camera is workong on my XPS Plus (9320), but it seems like it makes Arch Linux to hang after resuming from hibernation (suspend to disk). It works if I just suspend to RAM though. It also works if I run

./uninstall.sh

from https://github.com/stefanpartheym/archlinux-ipu6-webcam. So I tried to unload the modules before hibernation:

sudo modprobe -r intel_ipu6_isys videobuf2_dma_contig videobuf2_v4l2 videobuf2_common intel_ipu6_psys intel_ipu6 v4l2_fwnode v4l2_async videodev mc
systemctl hibernate

but it still fails to resume. Are there other modules which was installed that I can try to unload?

Can you try booting with the following kernel parameter?

ibt=warn

Seems to work for me, see my report upstream: https://github.com/intel/ipu6-drivers/issues/79

Last edited by twouters (Today 00:27:13)

Offline

Board footer

Powered by FluxBB