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=-17.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 69370C433DB for ; Wed, 10 Feb 2021 20:15:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B1AC64EE5 for ; Wed, 10 Feb 2021 20:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbhBJUPH (ORCPT ); Wed, 10 Feb 2021 15:15:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbhBJUPC (ORCPT ); Wed, 10 Feb 2021 15:15:02 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83B1C06174A for ; Wed, 10 Feb 2021 12:14:21 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id u4so4556844ljh.6 for ; Wed, 10 Feb 2021 12:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GQdRqR/kJXRC2NOCKDiNUxAr2URFu/7kIkSURwm887c=; b=ebAplM68uk2DaRN48rgxuZ6/sjD9iIQ0PbgBr8StwIUdvNm4eUS7UJCRMEQZG47G+F 3twX5CY/MpDOSiJuJ/ujNsRd5pZbhgQruLRab0SI92+X3982Yb550awNV2IqZX512IGm Vyj0p0fWRapHhOVSCZPiSKHkRsb6SJV55D0y6X5RgtA+EOqbLUdHc/n4eW8xRdixjFcP lrmcYtpkQu9D3LpM58W6yoxG5PuGytvI+pmfM0xQPIEo5VA66MyauteGdSgQYidXJJ4E Y15Kd3ol4b0XsDlNarPEocXeOs2MOIjRbBY0E89wz1uCQ2MO9TJpKb3cE4MXamBnT136 Gx8g== 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=GQdRqR/kJXRC2NOCKDiNUxAr2URFu/7kIkSURwm887c=; b=WF5TIMQMClRuOJrkP0rTJj9rVj6r4v4T4zmTcfVV00uHMPyOw44FvUQEjNG+ybyIHj RUCTNilHA4ugh5Pr4gUzScWDsYjPtP6yvbG89R9rtXK5rsWGvs2PaAi13FOl7AFFFvH5 jXJwXmEyXX+RIxUa01dHiRMSIMdiYa4AFfk0QDgJtM76QONC2Y7p/kDQknxlPYXy6a5a HicHHRQB+3s9XxeoZ9cOiyrrFhyElJJVItWdRJqknVVp2zVussv6tMu4SdCCqNWLICdB +yTxMpBGJQ6hrpf6bPHgebc67xDn7kojQFRQMXdrI7L+ggxVKZVT5Wt7p0LKfJMeiLFt oI5A== X-Gm-Message-State: AOAM5316gRtwIb6Tqxc/OJrJ4ExsGSFDAhObsjc26ndLcxwn7oVeZJKH G226N1HBgK2FHA1KiOf9XY/Lqg== X-Google-Smtp-Source: ABdhPJwYCpd33SPFNGRkgEtcmIpVwqC7agC3qhM8NFsdk2q99adk0+MgdYCLvt4WUY2lkI/WpAU2IA== X-Received: by 2002:a2e:9a8c:: with SMTP id p12mr3072594lji.196.1612988060226; Wed, 10 Feb 2021 12:14:20 -0800 (PST) Received: from [192.168.118.216] ([85.249.43.69]) by smtp.gmail.com with ESMTPSA id v23sm447097lfo.43.2021.02.10.12.14.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 12:14:19 -0800 (PST) Subject: Re: [PATCH v4 00/22] Add support for the SDM845 Camera Subsystem To: Robert Foss , todor.too@gmail.com, agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@somainline.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , Rob Herring , Sakari Ailus , Nicolas Boichat Cc: Tomasz Figa , Azam Sadiq Pasha Kapatrala Syed , Sarvesh Sridutt , Laurent Pinchart , Jonathan Marek References: <20210205104414.299732-1-robert.foss@linaro.org> From: Andrey Konovalov Message-ID: <5fea18b2-307b-2b45-4bc7-d327022642b0@linaro.org> Date: Wed, 10 Feb 2021 23:14:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210205104414.299732-1-robert.foss@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robert, On 05.02.2021 13:43, Robert Foss wrote: > This series implements support for the camera subsystem found in > the SDM845 SOCs and the Titan 170 ISP. The support is partial > in that it implements CSIPHY, CSID, and partial VFE support. > > The Titan generation of the ISP diverges a fair amount from the > design of the previous architecture generation, CAMSS. As a result > some pretty invasive refactoring is done in this series. It also > means that at this time we're unable to implement support for all > of the IP blocks contained. This is due to a combination of legal > considerations with respect to the IP and its owner Qualcomm and > time & man hour constrains on the Linaro side. > > The CSIPHY (CSI Physical Layer) & CSID (CSI Decoder) support is > complete, but the VFE (Video Front End, which is referred to as IFE > (Image Front End) in the Titan generation of ISPs) only has support > for the RDI (Raw Dump Interface) which allows the raw output of > the CSID to be written to memory. > > The 2nd interface implemented in the VFE silicon is the PIX > interface, and camss does not support it for this generation of ISPs. > The reason for this is that the PIX interface is used for sending > image data to the BPS (Bayer Processing Section) & IPE (Image > Processing Engine), but both of these units are beyond the scope > of enabling basic ISP functionality for the SDM845. The problem is that for SDM845 the topology printed by media-ctl still has the PIX devices. That is even though the PIX interface is not supported for SDM845 in this driver, the msm_vfeN_pix subdevices and the corresponding msm_vfeN_video3 devices are still created. Your patchset is currently missing changes to the hardcoded: #define MSM_VFE_LINE_NUM 4 struct vfe_device { ... struct vfe_line line[MSM_VFE_LINE_NUM]; ... }; in drivers/media/platform/qcom/camss/camss-vfe.h. Thanks, Andrey > Since the Titan architecture generation diverges quite a bit from > the CAMSS generation, a lot of pretty major refactoring is carried > out in this series. Both the CSID & VFE core paths are made more > general and hardware version specific parts are broken out. > The CSIPHY didn't require quite as radical changes and therefore > keeps its current form. > > Tested on: > - Qcom RB3 / db845c + camera mezzanine, which is SDM845 based > - db410c + D3 Camera mezzanine, which is APQ8016 based > > Branch: > - https://git.linaro.org/people/robert.foss/linux.git/log/?h=camss_sdm845_v1 > - https://git.linaro.org/people/robert.foss/linux.git/log/?h=camss_sdm845_v2 > - https://git.linaro.org/people/robert.foss/linux.git/log/?h=camss_sdm845_v3 > > > Due to the dt-bindings supporting sdm660-camss, this series depends > the sdm660 clock driver being upstreamed. I've linked this series below. > > SDM630/660 Multimedia and GPU clock controllers > https://lkml.org/lkml/2020/9/26/166 > > > Robert Foss (22): > media: camss: Fix vfe_isr_comp_done() documentation > media: camss: Fix vfe_isr comment typo > media: camss: Replace trace_printk() with dev_dbg() > media: camss: Add CAMSS_845 camss version > media: camss: Make ISPIF subdevice optional > media: camss: Refactor VFE HW version support > media: camss: Add support for VFE hardware version Titan 170 > media: camss: Add missing format identifiers > media: camss: Refactor CSID HW version support > media: camss: Add support for CSID hardware version Titan 170 > media: camss: Add support for CSIPHY hardware version Titan 170 > media: camss: Remove per VFE power domain toggling > media: camss: Enable SDM845 > dt-bindings: media: camss: Add qcom,msm8916-camss binding > dt-bindings: media: camss: Add qcom,msm8996-camss binding > dt-bindings: media: camss: Add qcom,sdm660-camss binding > dt-bindings: media: camss: Add qcom,sdm845-camss binding > MAINTAINERS: Change CAMSS documentation to use dtschema bindings > media: dt-bindings: media: Remove qcom,camss documentation > arm64: dts: sdm845: Add CAMSS ISP node > arm64: dts: sdm845-db845c: Configure regulators for camss node > arm64: dts: sdm845-db845c: Enable ov8856 sensor and connect to ISP > > .../devicetree/bindings/media/qcom,camss.txt | 236 ---- > .../bindings/media/qcom,msm8916-camss.yaml | 256 ++++ > .../bindings/media/qcom,msm8996-camss.yaml | 387 ++++++ > .../bindings/media/qcom,sdm660-camss.yaml | 398 ++++++ > .../bindings/media/qcom,sdm845-camss.yaml | 370 ++++++ > MAINTAINERS | 2 +- > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 23 +- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 135 ++ > drivers/media/platform/qcom/camss/Makefile | 6 + > .../platform/qcom/camss/camss-csid-170.c | 602 +++++++++ > .../platform/qcom/camss/camss-csid-4-1.c | 338 +++++ > .../platform/qcom/camss/camss-csid-4-7.c | 406 ++++++ > .../media/platform/qcom/camss/camss-csid.c | 620 +-------- > .../media/platform/qcom/camss/camss-csid.h | 178 ++- > .../qcom/camss/camss-csiphy-3ph-1-0.c | 182 ++- > .../media/platform/qcom/camss/camss-csiphy.c | 66 +- > .../media/platform/qcom/camss/camss-ispif.c | 117 +- > .../media/platform/qcom/camss/camss-ispif.h | 3 +- > .../media/platform/qcom/camss/camss-vfe-170.c | 804 ++++++++++++ > .../media/platform/qcom/camss/camss-vfe-4-1.c | 123 +- > .../media/platform/qcom/camss/camss-vfe-4-7.c | 244 ++-- > .../media/platform/qcom/camss/camss-vfe-4-8.c | 1164 +++++++++++++++++ > .../platform/qcom/camss/camss-vfe-gen1.c | 763 +++++++++++ > .../platform/qcom/camss/camss-vfe-gen1.h | 110 ++ > drivers/media/platform/qcom/camss/camss-vfe.c | 840 +----------- > drivers/media/platform/qcom/camss/camss-vfe.h | 118 +- > .../media/platform/qcom/camss/camss-video.c | 100 ++ > drivers/media/platform/qcom/camss/camss.c | 419 ++++-- > drivers/media/platform/qcom/camss/camss.h | 17 +- > 29 files changed, 6965 insertions(+), 2062 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/media/qcom,camss.txt > create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml > create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml > create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm660-camss.yaml > create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml > create mode 100644 drivers/media/platform/qcom/camss/camss-csid-170.c > create mode 100644 drivers/media/platform/qcom/camss/camss-csid-4-1.c > create mode 100644 drivers/media/platform/qcom/camss/camss-csid-4-7.c > create mode 100644 drivers/media/platform/qcom/camss/camss-vfe-170.c > create mode 100644 drivers/media/platform/qcom/camss/camss-vfe-4-8.c > create mode 100644 drivers/media/platform/qcom/camss/camss-vfe-gen1.c > create mode 100644 drivers/media/platform/qcom/camss/camss-vfe-gen1.h >