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.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 C6C19C54FCB for ; Wed, 22 Apr 2020 17:57:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9EFA221473 for ; Wed, 22 Apr 2020 17:57:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W2dspDps" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726232AbgDVR5B (ORCPT ); Wed, 22 Apr 2020 13:57:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726082AbgDVR5A (ORCPT ); Wed, 22 Apr 2020 13:57:00 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C9E4C03C1A9 for ; Wed, 22 Apr 2020 10:57:00 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id k1so3559212wrx.4 for ; Wed, 22 Apr 2020 10:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=AsQnYJHGRVcoeE49kypD9U9J99TIWXq/Uillr7CBzng=; b=W2dspDpsGzglS1oe8z4NTbLRnDEEvaY60+TZYEjRMRV3f9Uw5GYMk9QywI8KYJtYiv 0LMEBrX7OhPet62Dfx7s2G57Vi9jB9Q6mdkrK3PfjIKAeklNuzDVrqeusBuQASi/eNqh IRj9E3ZKpxh1Kxu4pY1nng7jav2loPSGlIDy8LFskUYaXgF47bkeayuqXe4fW72nFhmk A5vxloAphNfZ7xnB06n2UUhUY98qZtEfIs3qpB+xA+zxzZTEOrzeDe5Q/A4vAYCjADC4 Z8KuxODhSx5pUhUuo+XS01L5E2BlSSsF4B8tML3hcVrCc7OjrEegkYKmcGHUVoGeup/C pOfQ== 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-transfer-encoding :content-language; bh=AsQnYJHGRVcoeE49kypD9U9J99TIWXq/Uillr7CBzng=; b=b6tkaAb3/1gnqmrtKwnPVlPcm29SksbjgeUvdn6C67Hmy1AQxYacmNCOHnnrnr6lnn WQ5nb8B2O0e2HvyI5CHzUvA0qWPFOGzKaEqVFU2HKKvmTnggbRCadIkr2wuBq9Vw97DP zPvYInVegJjAzxnK9Os/fvFHREt54ll+92BQ04xARt7BqA4dOnQTCAUJTjVTAbZ8gfGL ZSV/OcHe1bZzkwgfmGfnkDFdLw7HvQIotMXEpvsmso1BTks8GsxRNS1Ofnc2V3o3OPLX BPEkfOEMwAyYbs6EqHa4nDanbDhzKC+fc6fFByNuFsp77h8uXxMrEiYvm2Ci+9mVKwSJ wG9Q== X-Gm-Message-State: AGi0PuZYy0Oow8ovRhOIY6wGNY4tvzaO3utX5EfGVEvuUgzXZ3C1ozTD v56fGTkBt1hshY3405fFJ4tU8XCEuHo= X-Google-Smtp-Source: APiQypLGoW+38ehWavEDdis5lOdlPmc4wMdp2H22VecpnnyVYpVbiXAuymPFM6vWwVfEVpWwkqEyow== X-Received: by 2002:a5d:6689:: with SMTP id l9mr198823wru.261.1587578218516; Wed, 22 Apr 2020 10:56:58 -0700 (PDT) Received: from [192.168.0.104] (77-56-155-30.dclient.hispeed.ch. [77.56.155.30]) by smtp.gmail.com with ESMTPSA id p190sm18745wmp.38.2020.04.22.10.56.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Apr 2020 10:56:57 -0700 (PDT) Subject: Re: atomisp kernel driver(s) To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org References: <20200418172549.7cca07a7@coco.lan> <20200418172654.74a1eeea@coco.lan> <1d529105-3b7d-38d0-b7a2-d385b2221ff7@gmail.com> <20200420013109.65babb54@coco.lan> <20200420224750.28c0181d@coco.lan> From: Patrik Gfeller Message-ID: Date: Wed, 22 Apr 2020 19:56:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200420224750.28c0181d@coco.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On 20.04.20 22:47, Mauro Carvalho Chehab wrote: > Em Mon, 20 Apr 2020 20:27:25 +0200 > Patrik Gfeller escreveu: > >> Me again ... sorry to ask such a basic question, but I can't get your >> modified source code. I get the following error: >> >> > git clone https://git.linuxtv.org/mchehab/experimental.git/ >> Cloning into 'experimental'... >> warning: adding alternate object store: >> https://git.linuxtv.org/git/linux.git/ >> warning: adding alternate object store: >> https://git.linuxtv.org/git/media_tree.git/ >> warning: adding alternate object store: >> https://git.linuxtv.org/git/linux.git/ >> error: Unable to find fc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f under >> https://git.linuxtv.org/mchehab/experimental.git >> Cannot obtain needed object fc8670d1f72b746ff3a5fe441f1fca4c4dba0e6f >> while processing commit 6d80bfc14608f4bb5514b79721d30b486f50c987. >> error: fetch failed. >> >> Do I use the wrong command? > Better to use git:// url: > > git clone git://git.linuxtv.org/mchehab/experimental.git/ I was able to download and compile the code. I installed the kernel and tried to boot; unfortunately it hangs with the message "Loading initial ramdisk ..." - after I start the old kernel I check kern.log and syslog - but I do not see entries from the failed boot attempt. I'll read into the topic and try around. This will take some time ... so there will be a dealy, but it's not that I do not care or lacking  interest, I just first have to sort this out. > >> kind regards, >> >> Patrik >> >> On 20.04.20 19:48, Patrik Gfeller wrote: >>> On 20.04.20 01:31, Mauro Carvalho Chehab wrote: >>>> Em Sat, 18 Apr 2020 17:37:22 +0200 >>>> Patrik Gfeller escreveu: >>>> >>>>> On 18.04.20 17:26, Mauro Carvalho Chehab wrote: >>>>>> Em Sat, 18 Apr 2020 17:25:49 +0200 >>>>>> Mauro Carvalho Chehab escreveu: >>>>>>> Em Sat, 18 Apr 2020 16:39:25 +0200 >>>>>>> Patrik Gfeller escreveu: >>>>>>>> Hello Mauro et al, >>>>>>>> >>>>>>>> I've recently switched to Linux, and I'm very impressed. Almost >>>>>>>> everything thing works out of the box. Only the webcam on my >>>>>>>> device does >>>>>>>> not. I did some digging and if I'm right an atomisp driver would be >>>>>>>> required. Is this correct? Below the output of lspci: >>>>>>>> >>>>>>>> 00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium >>>>>>>> Processor >>>>>>>> x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36) >>>>>>>> 00:02.0 >>>>>>>> VGA compatible controller: Intel Corporation Atom/Celeron/Pentium >>>>>>>> Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller >>>>>>>> (rev 36) >>>>>>>> 00:03.0 Multimedia controller: Intel Corporation >>>>>>>> Atom/Celeron/Pentium >>>>>>>> Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit (rev 36) 00:0a.0 >>>>>>>> Non-VGA unclassified device: Intel Corporation Device 22d8 (rev 36) >>>>>>>> 00:0b.0 Signal processing controller: Intel Corporation >>>>>>>> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power >>>>>>>> Management Controller (rev 36) 00:14.0 USB controller: Intel >>>>>>>> Corporation >>>>>>>> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI >>>>>>>> Controller (rev 36) 00:1a.0 Encryption controller: Intel Corporation >>>>>>>> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted >>>>>>>> Execution Engine (rev 36) 00:1c.0 PCI bridge: Intel Corporation >>>>>>>> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI >>>>>>>> Express >>>>>>>> Port #1 (rev 36) 00:1f.0 ISA bridge: Intel Corporation >>>>>>>> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU >>>>>>>> (rev 36) >>>>>>>> 01:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac >>>>>>>> Wireless >>>>>>>> Network Adapter (rev 31) >>>> What hardware do you have? >>> I have aASUS Transformer Book T101HA-GR029T (HW probe @ >>> >>> https://linux-hardware.org/?probe=ccc26d4cd3). >>> >>>> I did a look at the atomisp driver. There are some APIs that changed >>>> upstream, >>>> but making the driver to build again is not hard: >>>> >>>>     https://git.linuxtv.org/mchehab/experimental.git/log/?h=atomisp >>>> >>>> If this would work or just hang, I don't know :-) >>> Cool! >>> >>> Meanwhile I downloaded to kernel source and checked out the latest >>> commit that still has the driver in staging. I'm currently in the >>> process of building the old kernel in order to test if the driver >>> works at all (1st time I'm doing this - thus takes some time, >>> especially on my Atom :-). But I will then switch over to your changed >>> version to give it a try. >>> >>>> This driver is still a big mess, and it requires some defines on its >>>> source >>>> code, in order to use it with some different Atom models. >>>> >>>>>>>> According to the history it looks like the driver was removed >>>>>>>> from the >>>>>>>> kernel in 2018 and replaced with a dummy driver (to make sure >>>>>>>> power save >>>>>>>> works). >>>>>>>> >>>>>>>> Is there a chance that the atomisp driver will return to the kernel? >>>>>>>> There are quite a few older tablets and 2in1 devices that would >>>>>>>> benefit. >>>>>>>> Unfortunately I do not understand the removed code (my coding >>>>>>>> skills are >>>>>>>> very basic) and can thus not help to change what ever is >>>>>>>> necessary to >>>>>>>> make it fit for the kernel :-( (does not sound like a beginner >>>>>>>> project). >>>>>>>> However - I would be glad to help out to help testing an ISP driver. >>>>>>> There are simply too many things there to be fixed, and nobody >>>>>>> without >>>>>>> time for it. Also, the last reports we had is that the driver was not >>>>>>> working. >>>>>>> >>>>>>> Unfortunately, I don't have myself any atomisp hardware, otherwise I >>>>>>> could try fixing it on my spare time. >>>>>> In time: not really sure if it would be a worth project, as newer >>>>>> Intel >>>>>> hardware are coming with a different IP block (IPU3). >>>>> I don't know how widespread the IPU that I have is, I assume that some >>>>> other tablets & 2in1 devices that are a few years old use it as well. >>>> The IPU is used on some Dell 2in1 devices(I guess they use an i5core >>>> with a chipset made for mobile market). Not sure if they're using IPU3 >>>> also on Atom. >>>> >>>>> For me it would be definitely nice to have this driver. However, I can >>>>> ask around in some of the forums  if there is a wider interest. >>>>> Might be >>>>> a niche tough, but the support for the Atom device I use have been >>>>> greatly improved in the recent years. So there is at least some work >>>>> going on for that platform (I do not know, but I think it is called >>>>> cherry trail?). As there are many older reports of problems with audio, >>>>> touchscreen, stability (freezes) ... and none of them are present >>>>> anymore. >>>>> >>>>> As mentioned, if the development is hindered by missing hardware I >>>>> would >>>>> be glad to help. Anyhow - many thanks for your replies, much >>>>> appreciated! >>>>> >>>>>> Thanks, >>>>>> Mauro >>>> >>>> Thanks, >>>> Mauro >>> thanks & kind regards, >>> >>> Patrik >>> > > > Thanks, > Mauro kind regards, Patrik