All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
@ 2017-10-17  6:27 Krzysztof Hałasa
  2017-10-17 11:33 ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Hałasa @ 2017-10-17  6:27 UTC (permalink / raw)
  To: Steve Longerbeam, Philipp Zabel
  Cc: Mauro Carvalho Chehab, Greg Kroah-Hartman, linux-media

Without this fix, in 8-bit Y/Bayer mode, every other 8-byte group
of pixels is lost.
Not sure about possible side effects, though.

Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>

--- a/drivers/staging/media/imx/imx-media-csi.c
+++ b/drivers/staging/media/imx/imx-media-csi.c
@@ -340,7 +340,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
 	case V4L2_PIX_FMT_SGBRG8:
 	case V4L2_PIX_FMT_SGRBG8:
 	case V4L2_PIX_FMT_SRGGB8:
-		burst_size = 8;
+		burst_size = 16;
 		passthrough = true;
 		passthrough_bits = 8;
 		break;

-- 
Krzysztof Halasa

Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
  2017-10-17  6:27 [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode Krzysztof Hałasa
@ 2017-10-17 11:33 ` Fabio Estevam
  2017-10-17 13:26   ` Krzysztof Hałasa
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2017-10-17 11:33 UTC (permalink / raw)
  To: Krzysztof Hałasa
  Cc: Steve Longerbeam, Philipp Zabel, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, linux-media, Russell King - ARM Linux

Hi Krzysztof,

On Tue, Oct 17, 2017 at 4:27 AM, Krzysztof Hałasa <khalasa@piap.pl> wrote:
> Without this fix, in 8-bit Y/Bayer mode, every other 8-byte group
> of pixels is lost.
> Not sure about possible side effects, though.
>
> Signed-off-by: Krzysztof Hałasa <khalasa@piap.pl>
>
> --- a/drivers/staging/media/imx/imx-media-csi.c
> +++ b/drivers/staging/media/imx/imx-media-csi.c
> @@ -340,7 +340,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
>         case V4L2_PIX_FMT_SGBRG8:
>         case V4L2_PIX_FMT_SGRBG8:
>         case V4L2_PIX_FMT_SRGGB8:
> -               burst_size = 8;
> +               burst_size = 16;
>                 passthrough = true;
>                 passthrough_bits = 8;
>                 break;

Russell has sent the same fix and Philipp made a comment about the
possibility of using 32-byte or 64-byte bursts:
http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
  2017-10-17 11:33 ` Fabio Estevam
@ 2017-10-17 13:26   ` Krzysztof Hałasa
  2017-10-17 13:53     ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Hałasa @ 2017-10-17 13:26 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Steve Longerbeam, Philipp Zabel, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, linux-media, Russell King - ARM Linux

Fabio Estevam <festevam@gmail.com> writes:

>> --- a/drivers/staging/media/imx/imx-media-csi.c
>> +++ b/drivers/staging/media/imx/imx-media-csi.c
>> @@ -340,7 +340,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
>>         case V4L2_PIX_FMT_SGBRG8:
>>         case V4L2_PIX_FMT_SGRBG8:
>>         case V4L2_PIX_FMT_SRGGB8:
>> -               burst_size = 8;
>> +               burst_size = 16;
>>                 passthrough = true;
>>                 passthrough_bits = 8;
>>                 break;
>
> Russell has sent the same fix and Philipp made a comment about the
> possibility of using 32-byte or 64-byte bursts:
> http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html

Great.

Sometimes I wonder how many people are working on exactly the same
stuff.
-- 
Krzysztof Halasa

Industrial Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
  2017-10-17 13:26   ` Krzysztof Hałasa
@ 2017-10-17 13:53     ` Russell King - ARM Linux
  2017-10-17 14:27       ` Fabio Estevam
  2017-10-17 15:24       ` Philipp Zabel
  0 siblings, 2 replies; 6+ messages in thread
From: Russell King - ARM Linux @ 2017-10-17 13:53 UTC (permalink / raw)
  To: Krzysztof Hałasa
  Cc: Fabio Estevam, Steve Longerbeam, Philipp Zabel,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, linux-media

On Tue, Oct 17, 2017 at 03:26:19PM +0200, Krzysztof Hałasa wrote:
> Fabio Estevam <festevam@gmail.com> writes:
> 
> >> --- a/drivers/staging/media/imx/imx-media-csi.c
> >> +++ b/drivers/staging/media/imx/imx-media-csi.c
> >> @@ -340,7 +340,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
> >>         case V4L2_PIX_FMT_SGBRG8:
> >>         case V4L2_PIX_FMT_SGRBG8:
> >>         case V4L2_PIX_FMT_SRGGB8:
> >> -               burst_size = 8;
> >> +               burst_size = 16;
> >>                 passthrough = true;
> >>                 passthrough_bits = 8;
> >>                 break;
> >
> > Russell has sent the same fix and Philipp made a comment about the
> > possibility of using 32-byte or 64-byte bursts:
> > http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
> 
> Great.
> 
> Sometimes I wonder how many people are working on exactly the same
> stuff.

I do wish the patch was merged (which fixes a real problem) rather than
hanging around for optimisation questions.  We can always increase it
in the future if it's deemed that a larger burst size is beneficial.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
  2017-10-17 13:53     ` Russell King - ARM Linux
@ 2017-10-17 14:27       ` Fabio Estevam
  2017-10-17 15:24       ` Philipp Zabel
  1 sibling, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2017-10-17 14:27 UTC (permalink / raw)
  To: Russell King - ARM Linux
  Cc: Krzysztof Hałasa, Steve Longerbeam, Philipp Zabel,
	Mauro Carvalho Chehab, Greg Kroah-Hartman, linux-media

On Tue, Oct 17, 2017 at 11:53 AM, Russell King - ARM Linux
<linux@armlinux.org.uk> wrote:

> I do wish the patch was merged (which fixes a real problem) rather than
> hanging around for optimisation questions.  We can always increase it
> in the future if it's deemed that a larger burst size is beneficial.

Agreed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode
  2017-10-17 13:53     ` Russell King - ARM Linux
  2017-10-17 14:27       ` Fabio Estevam
@ 2017-10-17 15:24       ` Philipp Zabel
  1 sibling, 0 replies; 6+ messages in thread
From: Philipp Zabel @ 2017-10-17 15:24 UTC (permalink / raw)
  To: Russell King - ARM Linux, Krzysztof Hałasa
  Cc: Fabio Estevam, Steve Longerbeam, Mauro Carvalho Chehab,
	Greg Kroah-Hartman, linux-media

On Tue, 2017-10-17 at 14:53 +0100, Russell King - ARM Linux wrote:
> On Tue, Oct 17, 2017 at 03:26:19PM +0200, Krzysztof Hałasa wrote:
> > Fabio Estevam <festevam@gmail.com> writes:
> > 
> > > > --- a/drivers/staging/media/imx/imx-media-csi.c
> > > > +++ b/drivers/staging/media/imx/imx-media-csi.c
> > > > @@ -340,7 +340,7 @@ static int csi_idmac_setup_channel(struct csi_priv *priv)
> > > >         case V4L2_PIX_FMT_SGBRG8:
> > > >         case V4L2_PIX_FMT_SGRBG8:
> > > >         case V4L2_PIX_FMT_SRGGB8:
> > > > -               burst_size = 8;
> > > > +               burst_size = 16;
> > > >                 passthrough = true;
> > > >                 passthrough_bits = 8;
> > > >                 break;
> > > 
> > > Russell has sent the same fix and Philipp made a comment about the
> > > possibility of using 32-byte or 64-byte bursts:
> > > http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2017-October/111960.html
> > 
> > Great.
> > 
> > Sometimes I wonder how many people are working on exactly the same
> > stuff.
> 
> I do wish the patch was merged (which fixes a real problem) rather than
> hanging around for optimisation questions.  We can always increase it
> in the future if it's deemed that a larger burst size is beneficial.

I am sorry, that patch should have been part of last week's pull
request. I'll send another one for -rc6.

regards
Philipp

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-17 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17  6:27 [PATCH][MEDIA]i.MX6 CSI: Fix MIPI camera operation in RAW/Bayer mode Krzysztof Hałasa
2017-10-17 11:33 ` Fabio Estevam
2017-10-17 13:26   ` Krzysztof Hałasa
2017-10-17 13:53     ` Russell King - ARM Linux
2017-10-17 14:27       ` Fabio Estevam
2017-10-17 15:24       ` Philipp Zabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.