From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:33009 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754539AbcDYTRQ (ORCPT ); Mon, 25 Apr 2016 15:17:16 -0400 Received: by mail-wm0-f68.google.com with SMTP id r12so24328904wme.0 for ; Mon, 25 Apr 2016 12:17:15 -0700 (PDT) Subject: Re: [RFC PATCH 00/24] Make Nokia N900 cameras working To: Pavel Machek References: <20160420081427.GZ32125@valkosipuli.retiisi.org.uk> <1461532104-24032-1-git-send-email-ivo.g.dimitrov.75@gmail.com> <20160425165848.GA10443@amd> <571E5134.10607@gmail.com> <20160425184016.GC10443@amd> Cc: sakari.ailus@iki.fi, sre@kernel.org, pali.rohar@gmail.com, linux-media@vger.kernel.org From: Ivaylo Dimitrov Message-ID: <571E6D38.9050009@gmail.com> Date: Mon, 25 Apr 2016 22:17:12 +0300 MIME-Version: 1.0 In-Reply-To: <20160425184016.GC10443@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hi, On 25.04.2016 21:40, Pavel Machek wrote: > Hi! > >>> I can't do -vo xv ... fails for me, probably due to X >>> configuration. Does it work with -vo x11 for you? >>> >> yes, -vo x11 works under maemo. > > Ok, good. > >> In linux-n900 branch we have a patch that reserves memory for omapfb - see https://github.com/freemangordon/linux-n900/commit/60f85dcb6a663efe687f58208861545d65210b55 >> >> also, because of a change in 4.6, https://github.com/freemangordon/linux-n900/commit/60f85dcb6a663efe687f58208861545d65210b55#diff-072444ea67d2aca6b402458f50d20edeR125 >> needs a change to DMA_MEMORY_IO and the if bellow needs the relevant change >> as well. > >> This is needed for -vo xv (and any omapfb video playback) to reliably work >> under maemo. > > I don't have that kind of acceleration working. > >>> For me it shows window with green interior. And complains about v4l2: >>> select timeouts. (I enabled these in .config): >>> >>> +CONFIG_VIDEO_BUS_SWITCH=y >>> +CONFIG_VIDEO_SMIAREGS=y >>> +CONFIG_VIDEO_ET8EK8=y >>> +CONFIG_VIDEOBUF2_CORE=y >>> +CONFIG_VIDEOBUF2_MEMOPS=y >>> +CONFIG_VIDEOBUF2_DMA_CONTIG=y >>> +CONFIG_VIDEO_OMAP3=y >>> +CONFIG_VIDEO_SMIAPP_PLL=y >>> +CONFIG_VIDEO_SMIAPP=y >>> >>> Any ideas? >>> Pavel >>> >> >> Try to build those as modules. Also, do you have all the needed patches >> besides those in the patchset? >> >> See https://github.com/freemangordon/linux-n900/commits/v4.6-rc4-n900-camera >> >> Also, is there anything related in dmesg log? > > Modules are tricky. I hate modules. I did patch with > All my testing so far was performed using modules, though it shouldn't make difference. > https://lkml.org/lkml/2016/4/16/14 > https://lkml.org/lkml/2016/4/16/33 > More stuff is needed, all those twl4030 regulator patches (already in linux-next) + DTS initial-mode patch (https://lkml.org/lkml/2016/4/17/78). > + the series. And yes, there seems to be explanation in the dmesg: > > [ 6134.261993] DISPC: channel 0 xres 800 yres 480 > [ 6134.262023] DISPC: pck 24000000 > [ 6134.262023] DISPC: hsw 4 hfp 28 hbp 24 vsw 3 vfp 3 vbp 4 > [ 6134.262023] DISPC: vsync_level 0 hsync_level 0 data_pclk_edge 1 > de_level 1 sync_pclk_edge 1 > [ 6134.262023] DISPC: hsync 28037Hz, vsync 57Hz > [ 6134.262054] DISPC: lck = 72000000 (1) > [ 6134.262054] DISPC: pck = 24000000 (3) > [ 6190.075103] omap3isp 480bc000.isp: Unable to stop OMAP3 ISP resizer > [ 6192.075347] omap3isp 480bc000.isp: CCDC stop timeout! > [ 6192.075408] omap3isp 480bc000.isp: Unable to stop OMAP3 ISP CCDC > [ 6292.293670] DISPC: dispc_runtime_put > [ 6292.293701] DISPC: dispc_save_context > [ 6292.293762] DISPC: context saved > [ 6292.294342] DSS: dss_save_context > [ 6292.294372] DSS: context saved > [ 6297.056976] DISPC: dispc_runtime_get > [ 6297.057067] DSS: dss_restore_context > [ 6297.057067] DSS: context restored > [ 6297.057159] DSS: set fck to 72000000 > [ 6297.057159] DISPC: lck = 72000000 (1) > [ 6297.057159] DISPC: pck = 24000000 (3) > That usually happens when strobe is incorrect or there is no signal from the camera. > Let me check the github... I really hope I didn't miss something when I sent the series. May I have your boot log? Ivo