mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Du, Bin" <bin.du@amd.com>
To: Shengyu Qu <wiagn233@outlook.com>,
	mchehab@kernel.org, hverkuil@xs4all.nl,
	laurent.pinchart+renesas@ideasonboard.com,
	bryan.odonoghue@linaro.org, sakari.ailus@linux.intel.com,
	prabhakar.mahadev-lad.rj@bp.renesas.com,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	sultan@kerneltoast.com
Cc: pratap.nirujogi@amd.com, benjamin.chan@amd.com, king.li@amd.com,
	gjorgji.rosikopulos@amd.com, Phil.Jawich@amd.com,
	Dominic.Antony@amd.com, mario.limonciello@amd.com,
	richard.gong@amd.com, anson.tsao@amd.com, bin.du@amd.com
Subject: Re: [PATCH v3 0/7] Add AMD ISP4 driver
Date: Wed, 10 Sep 2025 10:34:53 +0800	[thread overview]
Message-ID: <c89e8dda-ae05-46bc-bf3e-9e95a20538a4@amd.com> (raw)
In-Reply-To: <485f202e-de42-48c0-bdae-52d6290fd7d3@amd.com>

Hi,

On 9/10/2025 10:15 AM, Du, Bin wrote:
> Hi Shengyu,
> 
> On 9/7/2025 2:40 AM, Shengyu Qu wrote:
>> Hi,
>>
>>
>>> Changes v2 -> v3:
>>>
>>> - All the dependent patches in other modules (drm/amd/amdgpu, 
>>> platform/x86, pinctrl/amd) merged on upstream mainline kernel 
>>> (https://github.com/torvalds/linux) v6.17.
>>> - Removed usage of amdgpu structs in ISP driver. Added helper 
>>> functions in amdgpu accepting opaque params from ISP driver to 
>>> allocate and release ISP GART buffers.
>>> - Moved sensor and MIPI phy control entirely into ISP FW instead of 
>>> the previous hybrid approach controlling sensor from both FW and x86 
>>> (sensor driver).
>>> - Removed phy configuration and sensor binding as x86 (sensor driver) 
>>> had relinquished the sensor control for ISP FW. With this approach 
>>> the driver will be exposed as web camera like interface.
>>> - New FW with built-in sensor driver is submitted on upstream linux- 
>>> firmware repo (https://gitlab.com/kernel-firmware/linux-firmware/).
>>
>>
>> The sensor is MIPI CSI and controlled by I2C, isn't it? Then why we 
>> put all control logic into FW rather than driver? Any existing CSI 
>> camera ISP support implementation are not doing this by FW.
>>
> 
> Yes, it's MIPI CSI sensor and controlled by I2C. In AMD ISP 3A algo 
> architecture, part of the sensor control resides in the FW and in 
> previous version, sensor init control is put in the sensor driver. With 
> discussion with the V4L2 maintainer, the current approach starting from 
> V3 is to move all sensor control into FW and remove the sensor driver 
> dependency. Please refer to https://lore.kernel.org/all/63949b3b- 
> ca2d-42aa-bc8d-43f2952d307a@amd.com/#t which provides the context and 
> background on how we arrived at the current architectural change in v3.
> 

Also quote the comments from Laurent Pinchart in 
https://lore.kernel.org/all/20250812134222.GN30054@pendragon.ideasonboard.com/ 
"Exposing the camera sensor to both the firmware and the host 
concurrently is asking for trouble. If you really want to abstract the 
camera behind a firmware and only expose a webcam-like API (or not even 
that in this version, as the driver exposes no control as far as I can 
see), then you should push the whole sensor handling to the firmware 
too. In my opinion that would not be a good solution compared to 
exposing the ISP to the host, but it would be better than this hybrid 
model." Many thanks Laurent Pinchart and Sakari Ailus for the arch 
change guide.

>> Cheers,
>> Shengyu
> 

-- 
Regards,
Bin


      reply	other threads:[~2025-09-10  2:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28  8:45 Bin Du
2025-08-28 16:56 ` Laurent Pinchart
2025-08-28 16:58   ` Limonciello, Mario
2025-09-02  3:21     ` Du, Bin
2025-08-28 16:58   ` Laurent Pinchart
2025-09-02  3:39     ` Du, Bin
2025-09-02 15:53       ` Mario Limonciello
2025-09-03  3:29         ` Du, Bin
2025-08-31 13:41 ` Alexey Zagorodnikov
2025-09-02  6:16   ` Du, Bin
2025-09-06 18:40 ` Shengyu Qu
2025-09-10  2:15   ` Du, Bin
2025-09-10  2:34     ` Du, Bin [this message]

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=c89e8dda-ae05-46bc-bf3e-9e95a20538a4@amd.com \
    --to=bin.du@amd.com \
    --cc=Dominic.Antony@amd.com \
    --cc=Phil.Jawich@amd.com \
    --cc=anson.tsao@amd.com \
    --cc=benjamin.chan@amd.com \
    --cc=bryan.odonoghue@linaro.org \
    --cc=gjorgji.rosikopulos@amd.com \
    --cc=hverkuil@xs4all.nl \
    --cc=king.li@amd.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=mchehab@kernel.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=pratap.nirujogi@amd.com \
    --cc=richard.gong@amd.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sultan@kerneltoast.com \
    --cc=wiagn233@outlook.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

all inboxes | Powered by JetHome®