devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Konovalov <andrey.konovalov@linaro.org>
To: Robert Foss <robert.foss@linaro.org>,
	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 <kholk11@gmail.com>,
	Rob Herring <robh@kernel.org>, Sakari Ailus <sakari.ailus@iki.fi>,
	Nicolas Boichat <drinkcat@chromium.org>
Cc: Tomasz Figa <tfiga@chromium.org>,
	Azam Sadiq Pasha Kapatrala Syed <akapatra@quicinc.com>,
	Sarvesh Sridutt <Sarvesh.Sridutt@smartwirelesscompute.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Jonathan Marek <jonathan@marek.ca>
Subject: Re: [PATCH v4 00/22] Add support for the SDM845 Camera Subsystem
Date: Wed, 10 Feb 2021 23:14:17 +0300	[thread overview]
Message-ID: <5fea18b2-307b-2b45-4bc7-d327022642b0@linaro.org> (raw)
In-Reply-To: <20210205104414.299732-1-robert.foss@linaro.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
> 

  parent reply	other threads:[~2021-02-10 20:15 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 10:43 [PATCH v4 00/22] Add support for the SDM845 Camera Subsystem Robert Foss
2021-02-05 10:43 ` [PATCH v4 01/22] media: camss: Fix vfe_isr_comp_done() documentation Robert Foss
2021-02-05 10:43 ` [PATCH v4 02/22] media: camss: Fix vfe_isr comment typo Robert Foss
2021-02-05 10:43 ` [PATCH v4 03/22] media: camss: Replace trace_printk() with dev_dbg() Robert Foss
2021-02-06  4:38   ` Nicolas Boichat
2021-02-05 10:43 ` [PATCH v4 04/22] media: camss: Add CAMSS_845 camss version Robert Foss
2021-02-05 10:43 ` [PATCH v4 05/22] media: camss: Make ISPIF subdevice optional Robert Foss
2021-02-09 20:59   ` Andrey Konovalov
2021-02-10 10:43     ` Robert Foss
2021-02-05 10:43 ` [PATCH v4 06/22] media: camss: Refactor VFE HW version support Robert Foss
2021-02-05 10:43 ` [PATCH v4 07/22] media: camss: Add support for VFE hardware version Titan 170 Robert Foss
2021-02-10 19:36   ` Andrey Konovalov
2021-02-17 11:02     ` Robert Foss
2021-02-05 10:44 ` [PATCH v4 08/22] media: camss: Add missing format identifiers Robert Foss
2021-02-05 10:44 ` [PATCH v4 09/22] media: camss: Refactor CSID HW version support Robert Foss
2021-02-11  8:59   ` Andrey Konovalov
2021-02-15 10:23     ` Robert Foss
2021-02-05 10:44 ` [PATCH v4 10/22] media: camss: Add support for CSID hardware version Titan 170 Robert Foss
2021-02-05 10:44 ` [PATCH v4 11/22] media: camss: Add support for CSIPHY " Robert Foss
2021-02-06  1:15   ` kernel test robot
2021-02-08 18:02   ` Andrey Konovalov
2021-02-08 18:05     ` Robert Foss
2021-02-09 16:13   ` kernel test robot
2021-02-05 10:44 ` [PATCH v4 12/22] media: camss: Remove per VFE power domain toggling Robert Foss
2021-02-05 10:44 ` [PATCH v4 13/22] media: camss: Enable SDM845 Robert Foss
2021-02-05 10:44 ` [PATCH v4 14/22] dt-bindings: media: camss: Add qcom,msm8916-camss binding Robert Foss
2021-02-10 19:26   ` Rob Herring
2021-02-05 10:44 ` [PATCH v4 15/22] dt-bindings: media: camss: Add qcom,msm8996-camss binding Robert Foss
2021-02-10 19:32   ` Rob Herring
2021-02-05 10:44 ` [PATCH v4 16/22] dt-bindings: media: camss: Add qcom,sdm660-camss binding Robert Foss
2021-02-05 10:44 ` [PATCH v4 17/22] dt-bindings: media: camss: Add qcom,sdm845-camss binding Robert Foss
2021-02-10 19:33   ` Rob Herring
2021-02-05 10:44 ` [PATCH v4 18/22] MAINTAINERS: Change CAMSS documentation to use dtschema bindings Robert Foss
2021-02-05 10:44 ` [PATCH v4 19/22] media: dt-bindings: media: Remove qcom,camss documentation Robert Foss
2021-02-10 19:33   ` Rob Herring
2021-02-05 10:44 ` [PATCH v4 20/22] arm64: dts: sdm845: Add CAMSS ISP node Robert Foss
2021-02-05 10:44 ` [PATCH v4 21/22] arm64: dts: sdm845-db845c: Configure regulators for camss node Robert Foss
2021-02-05 10:44 ` [PATCH v4 22/22] arm64: dts: sdm845-db845c: Enable ov8856 sensor and connect to ISP Robert Foss
2021-02-10 20:14 ` Andrey Konovalov [this message]
2021-02-17 11:04   ` [PATCH v4 00/22] Add support for the SDM845 Camera Subsystem Robert Foss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fea18b2-307b-2b45-4bc7-d327022642b0@linaro.org \
    --to=andrey.konovalov@linaro.org \
    --cc=Sarvesh.Sridutt@smartwirelesscompute.com \
    --cc=agross@kernel.org \
    --cc=akapatra@quicinc.com \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=drinkcat@chromium.org \
    --cc=jonathan@marek.ca \
    --cc=kholk11@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robert.foss@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@iki.fi \
    --cc=tfiga@chromium.org \
    --cc=todor.too@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).