From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42660C433DF for ; Fri, 15 May 2020 09:10:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FC94206F4 for ; Fri, 15 May 2020 09:10:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U7rZx+wY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbgEOJKe (ORCPT ); Fri, 15 May 2020 05:10:34 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:32054 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726922AbgEOJKe (ORCPT ); Fri, 15 May 2020 05:10:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589533831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QWnqeKrXOIi9QcyI3+kMeU2wS2kN8/pSkxrWK1pjDec=; b=U7rZx+wY9xMutlH4Bul2z4JjKExb2z36iu+JAkjtUGnXlMrq6mC92Jhnd4lxErBaSNTIbm x2LDIje8mQzdzf5k4az2T99YBFkHxRuKk6n1XXfWQsfHAP4Tw4HTBBgyyUKPh5Nh49Glpl JXDAMPLb8Dw6aDfb+y+/9dGakmjC7cY= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-YXWGe0MCMJafYy2nHXhQ4g-1; Fri, 15 May 2020 05:10:24 -0400 X-MC-Unique: YXWGe0MCMJafYy2nHXhQ4g-1 Received: by mail-wr1-f72.google.com with SMTP id r7so863192wrc.13 for ; Fri, 15 May 2020 02:10:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QWnqeKrXOIi9QcyI3+kMeU2wS2kN8/pSkxrWK1pjDec=; b=YtcAyIlbc3VPvs1BwgkjEh0eJx6H4KlLS9yjmeSc+hcspTuAq7ic2Ei5qTWpdMDZ+Z u3d2cUcYgjN8hqCD5/bzBSG5K6YTGlHdWig+TXoVbIdmnAM18EMcGuNzUvIGmLtdRruM PynccX4drc4NTV74UDpJVNCSMriBK5GyRkzITwIvT3aXV7KijbSgtoRm75u43dOMNIaL JlH0Lvuzlblm2i0tDhueqiAG4o8vwtIw1NLTrzqt3deSQ1pzcf2YGSvSeiz+LC6p0YwG uEttarSUxQBIpxbWjNMDtERVF07GOqCrssUEfEow9XRTaYjCSw/0TAvzHYyCBV0wcD0X xVRw== X-Gm-Message-State: AOAM532VQiiMeoN7ia7Zf/8tEeJAPqG0PdoOsJrsmI3LJgFdtl3I+9dT iCNbEyKjEdT9sUwIeNHphFGQsh/FhntbqzfttBL+bg4NA6Nbwp4B49JnOPoSC1jL/Wlt9OxWpRl Pe603ADgorWySPAXtkXfqmsA= X-Received: by 2002:a5d:6087:: with SMTP id w7mr3442109wrt.158.1589533822615; Fri, 15 May 2020 02:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6x43CiLj4ClWxg28sWS0z5MkuMdiBmXJasETH3bdFNI8Ut8XMM7ydDNmCvWZCEZRRN4TEew== X-Received: by 2002:a5d:6087:: with SMTP id w7mr3442061wrt.158.1589533822223; Fri, 15 May 2020 02:10:22 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-d2ea-f29d-118b-24dc.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:d2ea:f29d:118b:24dc]) by smtp.gmail.com with ESMTPSA id z11sm2615695wro.48.2020.05.15.02.10.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2020 02:10:21 -0700 (PDT) Subject: Re: [GIT PULL] Ressurect the atomisp staging driver To: Mauro Carvalho Chehab , Patrik Gfeller Cc: Francescodario Cuzzocrea , Andy Shevchenko , "linux-media@vger.kernel.org" References: <20200501215741.3be05695@coco.lan> <3f551a8f87808ee7828dc03d41c7a23faac89f3c.camel@mail.polimi.it> <20200503173213.78ae6aaa@coco.lan> <20200503180751.0b1e29c4@ASUS> <20200504101628.0f632bf2@ASUS> <20200504104934.7873cee3@coco.lan> <20200504124539.77eac397@ASUS> <20200504140833.11dd5622@coco.lan> <20200504154420.5dcf505f@ASUS> <20200515103232.47b2a35e@coco.lan> From: Hans de Goede Message-ID: Date: Fri, 15 May 2020 11:10:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200515103232.47b2a35e@coco.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi all, On 5/15/20 10:32 AM, Mauro Carvalho Chehab wrote: > Em Mon, 4 May 2020 15:44:20 +0200 > Patrik Gfeller escreveu: > >>>> Maybe this is related to my partial build (only the module to test if >>>> it builds). I'll now do a full build of the kernel. >>> >>> Yeah, either that or there are some config options with different values. >>> >>> I was able to do a full build here without the above errors, although >>> I had to turn of some CONFIG options that were otherwise failing. >> >> Strange - I do not get it :-/ ... can you send me the .config file and >> Makefile you use; probably I missed something. > > I posted an alternate version, with the driver from the Yocto Aero tree > ported to Kernel 5.7-rc2. The Kernel sources used are at this directory: > > https://download.01.org/aero/deb/pool/main/l/linux-4.4.76-aero-1.3/ > > Such port is at the atomisp_yocto_v1: > > https://git.linuxtv.org/mchehab/experimental.git/log/?h=atomisp_yocto_v1 > > The goal of this port is not for upstreaming it. Instead, it is meant > to be used just for testing, using a version that should work - at least > with the Intel Aero board with the Aero drone's camera (tests needed, as > I don't have myself such hardware). This version is ISP2401 only. > > The firmware for it is at: > https://download.01.org/aero/deb/pool/main/f/firmware-atomisp/firmware-atomisp_0.1.orig.tar.xz > > If the ISP revision is equal or bigger than rev 02, this file should be > renamed to: > > shisp_2401b0_v21.bin > > Before getting excited, this version didn't work so far on my hardware: > > atomisp: Loaded firmware version 'irci_stable_candrpv_0415_20150521_0458'. > atomisp-isp2 0000:00:03.0: css load fw failed. > atomisp-isp2 0000:00:03.0: Failed to init css. > > (I didn't try to check why it is failing yet - maybe it is just > some version port related issue) > > If someone has access to the Intel Aero board, I'd appreciate if you > could test it and send the results. If it fails too, it would be > nice to have the dmesg output of this version and the dmesg from > a version which works. Mauro, first of all thank you for working on this. I wonder if you have tried to build and run the linux-4.4.76-aero-1.3 kernel on your T101HA ? It would be interesting to see if that one does (not) have the "css load fw failed" errors and who knows you might even be able to get that to actually show some sort of picture from one of the 2 sensors on the T101HA ? Regards, Hans > [ 17.339160] atomisp-isp2 0000:00:03.0: Detected Cherrytrail version 54 (ISP2401) on T101HA > [ 17.343551] atomisp-isp2 0000:00:03.0: enabling device (0000 -> 0002) > [ 17.349857] atomisp-isp2 0000:00:03.0: ISP HPLL frequency base = 1600 MHz > [ 17.503537] atomisp: Loaded firmware version 'irci_stable_candrpv_0415_20150521_0458'. > [ 17.557614] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=0 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input20 > [ 17.565192] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=1 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input21 > [ 17.570399] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=2 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input22 > [ 17.918031] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels > [ 17.952066] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels > [ 17.985961] input: Intel HID events as /devices/pci0000:00/INT33D5:00/input/input23 > [ 18.027489] intel_sst_acpi 808622A8:00: LPE base: 0x91400000 size:0x200000 > [ 18.031435] intel_sst_acpi 808622A8:00: IRAM base: 0x914c0000 > [ 18.040266] intel_sst_acpi 808622A8:00: DRAM base: 0x91500000 > [ 18.046614] intel_sst_acpi 808622A8:00: SHIM base: 0x91540000 > [ 18.052951] intel_sst_acpi 808622A8:00: Mailbox base: 0x91544000 > [ 18.060278] intel_sst_acpi 808622A8:00: DDR base: 0x20000000 > [ 18.064686] rt5645 i2c-10EC3270:00: supply avdd not found, using dummy regulator > [ 18.071011] rt5645 i2c-10EC3270:00: supply cpvdd not found, using dummy regulator > [ 18.071123] intel_sst_acpi 808622A8:00: Got drv data max stream 25 > [ 18.108451] atomisp_ov2680: module is from the staging directory, the quality is unknown, you have been warned. > [ 18.136465] ov2680 i2c-OVTI2680:00: ov2680_probe: ACPI detected it on bus ID=CAM1, HID=OVTI2680 > [ 18.143419] ov2680 i2c-OVTI2680:00: gmin: power management provided via Dollar Cove TI PMIC (i2c addr 0x5e) > [ 18.148928] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CamClk' > [ 18.155196] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_ClkSrc' > [ 18.160751] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CsiPort' > [ 18.166904] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CsiLanes' > [ 18.173829] ov2680 i2c-OVTI2680:00: Found DMI entry for 'gmin_V1P8GPIO' > [ 18.180318] ov2680 i2c-OVTI2680:00: Found DMI entry for 'gmin_V2P8GPIO' > [ 18.268406] ov2680 i2c-OVTI2680:00: camera pdata: port: 1 lanes: 1 order: 00000002 > [ 18.277517] ov2680 i2c-OVTI2680:00: sensor_revision id = 0x2680, rev= 0 > [ 18.297737] ov2680 i2c-OVTI2680:00: register atomisp i2c module type 1 > [ 18.556333] atomisp-isp2 0000:00:03.0: Probing Subdev OVTI2680:00 > [ 18.562458] atomisp-isp2 0000:00:03.0: Subdev OVTI2680:00 successfully register > [ 18.566047] atomisp-isp2 0000:00:03.0: detected 1 camera sensors > [ 18.571349] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port0 was not initialized! > [ 18.576474] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port1 was not initialized! > [ 18.580409] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port2 was not initialized! > [ 18.585391] atomisp-isp2 0000:00:03.0: Entity type for entity file_input_subdev was not initialized! > [ 18.590868] atomisp-isp2 0000:00:03.0: Entity type for entity tpg_subdev was not initialized! > [ 18.597985] atomisp-isp2 0000:00:03.0: Entity type for entity ATOMISP_SUBDEV_0 was not initialized! > [ 18.605481] atomisp-isp2 0000:00:03.0: Entity type for entity ATOMISP_SUBDEV_1 was not initialized! > [ 18.613965] atomisp: Loaded firmware version 'irci_stable_candrpv_0415_20150521_0458'. > [ 18.621420] atomisp-isp2 0000:00:03.0: css load fw failed. > [ 18.624687] atomisp-isp2 0000:00:03.0: Failed to init css. > [ 17.339160] atomisp-isp2 0000:00:03.0: Detected Cherrytrail version 54 (ISP2401) on T101HA > [ 17.343551] atomisp-isp2 0000:00:03.0: enabling device (0000 -> 0002) > [ 17.349857] atomisp-isp2 0000:00:03.0: ISP HPLL frequency base = 1600 MHz > [ 17.503537] atomisp: Loaded firmware version 'irci_stable_candrpv_0415_20150521_0458'. > [ 17.557614] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=0 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input20 > [ 17.565192] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=1 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input21 > [ 17.570399] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=2 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input22 > [ 17.918031] dw_dmac INTL9C60:00: DesignWare DMA Controller, 8 channels > [ 17.952066] dw_dmac INTL9C60:01: DesignWare DMA Controller, 8 channels > [ 17.985961] input: Intel HID events as /devices/pci0000:00/INT33D5:00/input/input23 > [ 18.027489] intel_sst_acpi 808622A8:00: LPE base: 0x91400000 size:0x200000 > [ 18.031435] intel_sst_acpi 808622A8:00: IRAM base: 0x914c0000 > [ 18.040266] intel_sst_acpi 808622A8:00: DRAM base: 0x91500000 > [ 18.046614] intel_sst_acpi 808622A8:00: SHIM base: 0x91540000 > [ 18.052951] intel_sst_acpi 808622A8:00: Mailbox base: 0x91544000 > [ 18.060278] intel_sst_acpi 808622A8:00: DDR base: 0x20000000 > [ 18.064686] rt5645 i2c-10EC3270:00: supply avdd not found, using dummy regulator > [ 18.071011] rt5645 i2c-10EC3270:00: supply cpvdd not found, using dummy regulator > [ 18.071123] intel_sst_acpi 808622A8:00: Got drv data max stream 25 > [ 18.108451] atomisp_ov2680: module is from the staging directory, the quality is unknown, you have been warned. > [ 18.136465] ov2680 i2c-OVTI2680:00: ov2680_probe: ACPI detected it on bus ID=CAM1, HID=OVTI2680 > [ 18.143419] ov2680 i2c-OVTI2680:00: gmin: power management provided via Dollar Cove TI PMIC (i2c addr 0x5e) > [ 18.148928] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CamClk' > [ 18.155196] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_ClkSrc' > [ 18.160751] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CsiPort' > [ 18.166904] ov2680 i2c-OVTI2680:00: Found DMI entry for 'OVTI2680:00_CsiLanes' > [ 18.173829] ov2680 i2c-OVTI2680:00: Found DMI entry for 'gmin_V1P8GPIO' > [ 18.180318] ov2680 i2c-OVTI2680:00: Found DMI entry for 'gmin_V2P8GPIO' > [ 18.268406] ov2680 i2c-OVTI2680:00: camera pdata: port: 1 lanes: 1 order: 00000002 > [ 18.277517] ov2680 i2c-OVTI2680:00: sensor_revision id = 0x2680, rev= 0 > [ 18.297737] ov2680 i2c-OVTI2680:00: register atomisp i2c module type 1 > [ 18.556333] atomisp-isp2 0000:00:03.0: Probing Subdev OVTI2680:00 > [ 18.562458] atomisp-isp2 0000:00:03.0: Subdev OVTI2680:00 successfully register > [ 18.566047] atomisp-isp2 0000:00:03.0: detected 1 camera sensors > [ 18.571349] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port0 was not initialized! > [ 18.576474] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port1 was not initialized! > [ 18.580409] atomisp-isp2 0000:00:03.0: Entity type for entity ATOM ISP CSI2-port2 was not initialized! > [ 18.585391] atomisp-isp2 0000:00:03.0: Entity type for entity file_input_subdev was not initialized! > [ 18.590868] atomisp-isp2 0000:00:03.0: Entity type for entity tpg_subdev was not initialized! > [ 18.597985] atomisp-isp2 0000:00:03.0: Entity type for entity ATOMISP_SUBDEV_0 was not initialized! > [ 18.605481] atomisp-isp2 0000:00:03.0: Entity type for entity ATOMISP_SUBDEV_1 was not initialized! > [ 18.613965] atomisp: Loaded firmware version 'irci_stable_candrpv_0415_20150521_0458'. > [ 18.621420] atomisp-isp2 0000:00:03.0: css load fw failed. > [ 18.624687] atomisp-isp2 0000:00:03.0: Failed to init css. >