From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Mauro Carvalho Chehab <mchehab+huawei@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Subject: Re: [PATCH v4 00/15] media: rcar: Streams support
Date: Tue, 27 Jan 2026 10:25:19 +0100 [thread overview]
Message-ID: <20260127092519.GC3751370@ragnatech.se> (raw)
In-Reply-To: <4d1556bc-7a57-407a-a124-a83accc7afc8@ideasonboard.com>
Hi Tomi,
On 2026-01-27 10:59:21 +0200, Tomi Valkeinen wrote:
> Hi,
>
> On 26/01/2026 21:39, Niklas Söderlund wrote:
> > Hi Tomi,
> >
> > Thanks for digging in this.
> >
> > On 2026-01-26 16:01:36 +0200, Tomi Valkeinen wrote:
> >> Hi,
> >>
> >> On 31/12/2025 11:57, Niklas Söderlund wrote:
> >>> Hi Tomi,
> >>>
> >>> Thanks for your persistent work on this series!
> >>>
> >>> On 2025-12-16 17:18:17 +0200, Tomi Valkeinen wrote:
> >>>> Add streams support to Renesas rcar platform driver.
> >>>>
> >>>> The series keaps compatibility with the current upstream for a single
> >>>> stream use case. However, in upstream there's a limited custom
> >>>> multi-stream support implemented to the rcar driver, which will be
> >>>> replaced with the upstream's Streams API.
> >>>>
> >>>> I have tested this series on Sparrow-Hawk board, with a few different
> >>>> setups:
> >>>>
> >>>> IMX219 connected to the CSI0 connector
> >>>> - The following patches applied to my test branch in addition to this
> >>>> series:
> >>>> 1) The v4l2_subdev_get_frame_desc_passthrough dependency
> >>>> 2) Revert of commit e7376745ad5c8548e31d9ea58adfb5a847e017a4 ("media:
> >>>> rcar-vin: Fix stride setting for RAW8 formats"), as that commit
> >>>> breaks RAW8
> >>>
> >>> That is so odd, I do grab RAW8 on V4H with a IMX219. In what way is do
> >>> you see RAW8 breaking?
> >> I think I found it. It's broken for all formats and resolutions, based
> >> on luck:
> >>
> >> VNIS_REG has the lowest 4 bits always 0. From the doc: "These bits
> >> specify the width of the transfer destination memory in 16-pixel
> >> unit."
> >>
> >> We do nothing to comply with that.
> >
> > Yes we do, but maybe not enough?
> >
> > In rvin_format_bytesperline() we align for this, we even consider the
> > special cases for NV12 and NV16.
> >
> > The value written to VNIS_REG is vin->format.bytesperline / fmt->bpp,
> > and the value writen to vin->format.bytesperline is ALIGN(pix->width,
> > align) * fmt->bpp. And for all formats (not NV12 or NV16) is 0x10, so we
> > do align it to the 16-pixel unit no?
> >
> > Maybe their is a corner case I have missed or maybe I'm missing some
> > other angle? And I agree adding and removing the fmt->bpp multiplier is
> > not the best here. As we have finally moved this driver to media graph
> > only there are lots of areas things can be cleaned up and improved as we
> > no longer need to consider all that Gen2 special cases. I bet this can
> > likely be cleaned up.
> Right, but if we have the stride / 2 code in, we will get strides not
> aligned to 16 bytes unless the bytesperline happened to be aligned to 32
> bytes.
>
> I sent "[PATCH] media: renesas: vin: Fix RAW8 (again)". I still don't
> understand exactly how the RAW8 processing goes in the hardware, but
> afaics the stride / 2 is required, I cannot get any proper images
> without that. The documentation doesn't really describe it so I'm not
> totally content with all this.
>
> Anyway, please test the new patch on your end, perhaps we'll finally
> have a conclusion on the RAW8 =).
Reading the comments in that patch and the documentation and I now see
the other way the docs could be interpreted :-) I agree that if it works
(I'm sure it does) it also satisfy the documentation. I will give it a
spin and reply in that patch. It would indeed be super to solve this
correctly, thanks for your efforts!
>
> Tomi
>
--
Kind Regards,
Niklas Söderlund
prev parent reply other threads:[~2026-01-27 9:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-16 15:18 [PATCH v4 00/15] media: rcar: Streams support Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 01/15] media: rcar-isp: Improve ISPPROCMODE_DT_PROC_MODE_VC Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 02/15] media: rcar-csi2: Improve FLD_FLD_EN macros Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 03/15] media: rcar-csi2: Move rcsi2_calc_mbps() Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 04/15] media: rcar-csi2: Simplify rcsi2_calc_mbps() Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 05/15] media: rcar-csi2: Optimize rcsi2_calc_mbps() Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 06/15] media: rcar-vin: Link VINs on Gen3 to a single channel on each CSI-2 Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 07/15] media: rcar-isp: Move {enable|disable}_streams() calls Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 08/15] media: rcar-csi2: " Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 09/15] media: rcar-csi2: Switch to Streams API Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 10/15] media: rcar-isp: " Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 11/15] media: rcar-csi2: Add .get_frame_desc op Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 12/15] media: rcar-isp: Call get_frame_desc to find out VC & DT Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 13/15] media: rcar-csi2: Call get_frame_desc to find out VC & DT (Gen3) Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 14/15] media: rcar-csi2: Add full streams support Tomi Valkeinen
2025-12-16 15:18 ` [PATCH v4 15/15] media: rcar-isp: " Tomi Valkeinen
2025-12-31 9:57 ` [PATCH v4 00/15] media: rcar: Streams support Niklas Söderlund
2026-01-08 13:57 ` Tomi Valkeinen
2026-01-11 17:31 ` Niklas Söderlund
2026-01-26 14:01 ` Tomi Valkeinen
2026-01-26 19:39 ` Niklas Söderlund
2026-01-27 8:59 ` Tomi Valkeinen
2026-01-27 9:25 ` Niklas Söderlund [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=20260127092519.GC3751370@ragnatech.se \
--to=niklas.soderlund@ragnatech.se \
--cc=jacopo.mondi@ideasonboard.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab+huawei@kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tomi.valkeinen+renesas@ideasonboard.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