patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.35k stars 160 forks source link

rcu_preempt issues with kernel 5.19 #272

Open satmandu opened 2 years ago

satmandu commented 2 years ago

I'm seeing these on a MacBookPro11,3/Mid-2014 15" MacBookPro:

[  130.607793] pcieport 0000:00:1c.0: pciehp: Slot(0): Card present
[  130.608235] facetimehd 0000:04:00.0: Found FaceTime HD camera with device id: 1570
[  130.608349] facetimehd 0000:04:00.0: Setting 64bit DMA mask
[  130.620219] facetimehd 0000:04:00.0: S2 PCIe link init succeeded
[  130.620248] facetimehd 0000:04:00.0: Refclk: 25MHz (0xa)
[  130.630178] facetimehd 0000:04:00.0: PLL reset finished
[  130.630179] facetimehd 0000:04:00.0: Waiting for S2 PLL to lock at 450 MHz
[  130.630192] facetimehd 0000:04:00.0: S2 PLL is locked after 10 us
[  130.640124] facetimehd 0000:04:00.0: S2 PLL is in bypass mode
[  130.660010] facetimehd 0000:04:00.0: DDR40 PHY PLL locked on safe settings
[  130.660058] facetimehd 0000:04:00.0: STRAP valid
[  130.660058] facetimehd 0000:04:00.0: Configuring DDR PLLs for 450 MHz
[  130.660083] facetimehd 0000:04:00.0: DDR40 PLL is locked after 0 us
[  130.660096] facetimehd 0000:04:00.0: First DDR40 VDL calibration completed after 0 us
[  130.660115] facetimehd 0000:04:00.0: Second DDR40 VDL calibration completed after 0 us
[  130.660116] facetimehd 0000:04:00.0: Using step size 155
[  130.660131] facetimehd 0000:04:00.0: VDL set to: coarse=0x10008, fine=0x1011b
[  130.660144] facetimehd 0000:04:00.0: Virtual VTT enabled
[  130.669539] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 7-... } 16 jiffies s: 805 root: 0x80/.
[  130.669546] rcu: blocking rcu_node structures (internal RCU debug):
[  130.669547] Task dump for CPU 7:
[  130.669548] task:kworker/u16:7   state:R  running task     stack:    0 pid: 1215 ppid:     2 flags:0x00004008
[  130.669552] Workqueue: events_unbound async_run_entry_fn
[  130.669557] Call Trace:
[  130.669559]  <TASK>
[  130.669562]  device_resume+0xad/0x200
[  130.669567]  async_resume+0x1e/0x40
[  130.669570]  async_run_entry_fn+0x2d/0x110
[  130.669572]  process_one_work+0x219/0x3f0
[  130.669575]  worker_thread+0x50/0x3e0
[  130.669577]  ? rescuer_thread+0x390/0x390
[  130.669579]  kthread+0xeb/0x110
[  130.669582]  ? kthread_complete_and_exit+0x20/0x20
[  130.669585]  ret_from_fork+0x1f/0x30
[  130.669590]  </TASK>
[  130.680525] facetimehd 0000:04:00.0: S2 DRAM memory address: 0x22159559
[  130.680546] facetimehd 0000:04:00.0: Rewrite DDR mode registers succeeded
[  130.680848] facetimehd 0000:04:00.0: Full memory verification succeeded! (0)
[  130.795387] facetimehd 0000:04:00.0: Loaded firmware, size: 1392kb
[  130.835242] facetimehd 0000:04:00.0: ISP woke up after 0ms
[  130.835249] facetimehd 0000:04:00.0: Number of IPC channels: 7, queue size: 44865
[  130.835253] facetimehd 0000:04:00.0: Firmware requested heap size: 3072kb
[  130.845189] facetimehd 0000:04:00.0: ISP second int after 0ms
[  130.845192] facetimehd 0000:04:00.0: Channel description table at 00800000
[  130.855366] facetimehd 0000:04:00.0: magic value: 00000000 after 0 ms
[  130.855367] facetimehd 0000:04:00.0: Enabling interrupts
[  130.855508] FWMSG: 
[  130.855542] FWMSG: - APOLLO-ISP-APPLE ------------------------------------------------------------
[  130.855553] FWMSG: 
[  130.855568] FWMSG:   Restart count : 0