[Letux-kernel] 4.16 isp / camera module madness

H. Nikolaus Schaller hns at goldelico.com
Tue Apr 17 08:17:13 CEST 2018


Hi,
this has already been discussed on LKML:

	https://lkml.org/lkml/2018/3/8/866

and patch (which did not yet arrive in linux-next):

	https://patchwork.kernel.org/patch/10282481/

Applies fine and seems to fix the problem.

BR,
Nikolaus



> Am 12.04.2018 um 14:57 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Quick result: GTA04A4 (w/o camera) shows the same issue when booting from the same SD card:
> 
> [   19.895141] ov9655 1-0030: OV9655 not detected, can't read manufacturer id
> [   20.000091] clk_unregister: unregistering prepared clock: cam_xclka
> [   20.028442] omapdrm omapdrm.0: DMM not available, disable DMM support
> [   20.038238] ------------[ cut here ]------------
> [   20.049865] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [   20.057098] WARNING: CPU: 0 PID: 1236 at lib/refcount.c:187 refcount_sub_and_test+0x44/0x98
> [   20.066864] cfg80211: Loading compiled-in X.509 certificates for regulatory database
> [   20.075256] [drm] No driver support for vblank timestamp query.
> [   20.081573] refcount_t: underflow; use-after-free.
> [   20.087432] omapdrm omapdrm.0: Tiled buffers require DMM
> [   20.100341] Modules linked in: omapdrm(+) cfg80211(+) drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea drm drm_panel_orientation_quirks panel_tpo_td028ttec1 snd_soc_simple_card snd_soc_simple_card_utils snd_soc_omap_twl4030 snd_soc_gtm601 encoder_opa362 pwm_omap_dmtimer connector_analog_tv generic_adc_battery pwm_bl extcon_gpio omap3_isp(+) videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 bq27xxx_battery_hdq bq27xxx_battery videobuf2_common ov9655 v4l2_fwnode v4l2_common omap_hdq omap2430 snd_soc_omap_mcbsp snd_soc_omap snd_pcm_dmaengine videodev bmp280_i2c itg3200 bmp280 tsc2007 hmc5843_i2c at24 bma180 leds_tca6507 lis3lv02d_i2c hmc5843_core phy_twl4030_usb media industrialio_triggered_buffer lis3lv02d kfifo_buf input_polldev gpio_twl4030 musb_hdrc
> [   20.174499]  twl4030_pwrbutton twl4030_madc twl4030_charger industrialio snd_soc_twl4030 w2sg0004 twl4030_vibra gps_core w2cbw003_bluetooth ehci_omap omapdss omapdss_base cec
> [   20.196960] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
> [   20.198272] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
> [   20.198272] cfg80211: failed to load regulatory.db
> [   20.238281] libertas_sdio: Libertas SDIO driver
> [   20.238311] libertas_sdio: Copyright Pierre Ossman
> [   20.253631] Console: switching to colour frame buffer device 60x40
> [   20.370086] libertas_sdio: failed to load helper firmware
> [   20.370269] CPU: 0 PID: 1236 Comm: modprobe Not tainted 4.16.0-letux+ #2190
> [   20.370269] Hardware name: Generic OMAP36xx (Flattened Device Tree)
> [   20.370300] [<c010f584>] (unwind_backtrace) from [<c010b938>] (show_stack+0x10/0x14)
> [   20.370330] [<c010b938>] (show_stack) from [<c06ed8f0>] (dump_stack+0x7c/0x9c)
> [   20.370330] [<c06ed8f0>] (dump_stack) from [<c012da24>] (__warn+0xd8/0x108)
> [   20.370361] [<c012da24>] (__warn) from [<c012da88>] (warn_slowpath_fmt+0x34/0x44)
> [   20.370361] [<c012da88>] (warn_slowpath_fmt) from [<c0408bcc>] (refcount_sub_and_test+0x44/0x98)
> [   20.370391] [<c0408bcc>] (refcount_sub_and_test) from [<c01154ec>] (arm_iommu_release_mapping+0x18/0x2c)
> [   20.370422] [<c01154ec>] (arm_iommu_release_mapping) from [<c049ad18>] (driver_probe_device+0x1d0/0x318)
> [   20.370422] [<c049ad18>] (driver_probe_device) from [<c049aee0>] (__driver_attach+0x80/0xa4)
> [   20.370452] [<c049aee0>] (__driver_attach) from [<c04993cc>] (bus_for_each_dev+0x58/0x7c)
> [   20.370452] [<c04993cc>] (bus_for_each_dev) from [<c049a264>] (bus_add_driver+0xcc/0x1e0)
> [   20.370483] [<c049a264>] (bus_add_driver) from [<c049ba84>] (driver_register+0x9c/0xe0)
> [   20.370483] [<c049ba84>] (driver_register) from [<c0102818>] (do_one_initcall+0xa8/0x14c)
> [   20.370513] [<c0102818>] (do_one_initcall) from [<c01a2fb0>] (do_init_module+0x58/0x1d0)
> [   20.370513] [<c01a2fb0>] (do_init_module) from [<c01a1de0>] (load_module+0xe04/0xfb0)
> [   20.370513] [<c01a1de0>] (load_module) from [<c01a20cc>] (SyS_init_module+0x140/0x150)
> [   20.370544] [<c01a20cc>] (SyS_init_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
> [   20.370544] Exception stack(0xdcc8ffa8 to 0xdcc8fff0)
> [   20.370574] ffa0:                   00000000 00477270 b6dab000 0001d19c b6f4bd50 00000002
> [   20.370574] ffc0: 00000000 00477270 00479858 00000080 00000000 b6f4bd50 0001d19c 00000000
> [   20.370574] ffe0: 00060000 bedec914 b6f45b07 b6ec88c4
> [   20.370574] ---[ end trace cf722fd18bdf03e2 ]---
> [   20.585723] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
> [   20.619293] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
> [   21.060516] voice ctl route: 0
> 
> GTA04A4 with camera:
> 
> [    8.792083] omap-iommu 480bd400.mmu: 480bd400.mmu: version 1.1
> [    8.824157] omap-twl4030 sound: twl4030-hifi <-> 49022000.mcbsp mapping ok
> [    8.969787] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCP2 was not initialized!
> [    9.168060] ov9655 1-0030: ov9655_probe
> [    9.172149] ov9655 1-0030: 1-0030 supply dvdd not found, using dummy regulator
> [    9.190704] ov9655 1-0030: 1-0030 supply dovdd not found, using dummy regulator
> [    9.213775] asoc-simple-card sound_telephony: gtm601 <-> 49026000.mcbsp mapping ok
> [    9.284851] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CSI2a was not initialized!
> [    9.413696] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCDC was not initialized!
> [    9.481231] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP preview was not initialized!
> [    9.532226] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP resizer was not initialized!
> [    9.580627] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AEWB was not initialized!
> [    9.621948] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AF was not initialized!
> [    9.659057] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP histogram was not initialized!
> [    9.710906] ov9655 1-0030: __ov9655_set_power on=1
> [    9.864654] ov9655 1-0030: OV9655 read register 1c : 7f
> [    9.890167] ov9655 1-0030: OV9655 read register 1d : a2
> [    9.930145] ov9655 1-0030: OV9655 read register 0a : 96
> [    9.981170] ov9655 1-0030: OV9655 read register 0b : 57
> [   10.035400] ov9655 1-0030: __ov9655_set_power on=0
> [   10.080322] ov9655 1-0030: OV9655 REV5 detected at address 0x30
> [   10.097045] omapdrm omapdrm.0: DMM not available, disable DMM support
> [   10.200317] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [   10.239349] hso: drivers/net/usb/hso.c: Option Wireless
> [   10.250335] [drm] No driver support for vblank timestamp query.
> [   10.277008] omapdrm omapdrm.0: Tiled buffers require DMM
> [   10.310546] usbcore: registered new interface driver hso
> [   10.408508] Console: switching to colour frame buffer device 60x40
> [   10.430816] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
> [   10.458435] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
> [   10.787780] ov9655 1-0030: ov9655_open
> 
> So it is very likely a problem with
> 
> clk_unregister: unregistering prepared clock: cam_xclka
> 
> BR,
> Nikolaus
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180417/a1dd0ddb/attachment-0001.asc>


More information about the Letux-kernel mailing list