2009-06-01 14:58:56

by Paulraj, Sandeep

[permalink] [raw]
Subject: New Driver for DaVinci DM355/DM365/DM6446


Hello,

WE have a module(H3A) on Davinci DM6446,DM355 and DM365.

Customers require a way to collect the data required to perform the Auto Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as opposed to software. This is primarily for performance reasons as there is not enough software processing MIPS (to do 3A statistics) available in
an imaging/video system.

Including this block in hardware reduces the load on the processor and bandwidth to the memory as the data is collected on the fly from the imager.

This modules collects statistics and we currently implement it as a character driver.

Which mailing list would be the most appropriate mailing list to submit patches for review?

Thanks,
Sandeep


2009-06-01 16:34:48

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: Re: New Driver for DaVinci DM355/DM365/DM6446

Em Mon, 1 Jun 2009 09:56:40 -0500
"Paulraj, Sandeep" <[email protected]> escreveu:

>
> Hello,
>
> WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
>
> Customers require a way to collect the data required to perform the Auto Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as opposed to software. This is primarily for performance reasons as there is not enough software processing MIPS (to do 3A statistics) available in
> an imaging/video system.
>
> Including this block in hardware reduces the load on the processor and bandwidth to the memory as the data is collected on the fly from the imager.
>
> This modules collects statistics and we currently implement it as a character driver.
>
> Which mailing list would be the most appropriate mailing list to submit patches for review?

You should send they to:
LMML <[email protected]>

If you are proposing API changes, please submit they first.

>
> Thanks,
> Sandeep
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html




Cheers,
Mauro

2009-06-01 16:55:18

by Paulraj, Sandeep

[permalink] [raw]
Subject: RE: New Driver for DaVinci DM355/DM365/DM6446



> -----Original Message-----
> From: Mauro Carvalho Chehab [mailto:[email protected]]
> Sent: Monday, June 01, 2009 12:35 PM
> To: Paulraj, Sandeep
> Cc: [email protected]; [email protected]; Grosen,
> Mark
> Subject: Re: New Driver for DaVinci DM355/DM365/DM6446
>
> Em Mon, 1 Jun 2009 09:56:40 -0500
> "Paulraj, Sandeep" <[email protected]> escreveu:
>
> >
> > Hello,
> >
> > WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
> >
> > Customers require a way to collect the data required to perform the Auto
> Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as
> opposed to software. This is primarily for performance reasons as there is
> not enough software processing MIPS (to do 3A statistics) available in
> > an imaging/video system.
> >
> > Including this block in hardware reduces the load on the processor and
> bandwidth to the memory as the data is collected on the fly from the
> imager.
> >
> > This modules collects statistics and we currently implement it as a
> character driver.
> >
> > Which mailing list would be the most appropriate mailing list to submit
> patches for review?
>
> You should send they to:
> LMML <[email protected]>
>
> If you are proposing API changes, please submit they first.
[Sandeep] WE don't propose any API changes. This module for which we want to submit patches is a TI proprietary IP. We currently implement this as a character device and have a few IOCTL's.
We do not follow the V4L2 framework and do not use any V4L2 IOCTLs.

Can we continue to use it as a character driver?
>
> >
> > Thanks,
> > Sandeep
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-media"
> in
> > the body of a message to [email protected]
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
> Cheers,
> Mauro

2009-06-01 17:57:30

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: Re: New Driver for DaVinci DM355/DM365/DM6446

Em Mon, 1 Jun 2009 11:54:37 -0500
"Paulraj, Sandeep" <[email protected]> escreveu:

>
>
> > -----Original Message-----
> > From: Mauro Carvalho Chehab [mailto:[email protected]]
> > Sent: Monday, June 01, 2009 12:35 PM
> > To: Paulraj, Sandeep
> > Cc: [email protected]; [email protected]; Grosen,
> > Mark
> > Subject: Re: New Driver for DaVinci DM355/DM365/DM6446
> >
> > Em Mon, 1 Jun 2009 09:56:40 -0500
> > "Paulraj, Sandeep" <[email protected]> escreveu:
> >
> > >
> > > Hello,
> > >
> > > WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
> > >
> > > Customers require a way to collect the data required to perform the Auto
> > Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as
> > opposed to software. This is primarily for performance reasons as there is
> > not enough software processing MIPS (to do 3A statistics) available in
> > > an imaging/video system.
> > >
> > > Including this block in hardware reduces the load on the processor and
> > bandwidth to the memory as the data is collected on the fly from the
> > imager.
> > >
> > > This modules collects statistics and we currently implement it as a
> > character driver.
> > >
> > > Which mailing list would be the most appropriate mailing list to submit
> > patches for review?
> >
> > You should send they to:
> > LMML <[email protected]>
> >
> > If you are proposing API changes, please submit they first.
> [Sandeep] WE don't propose any API changes. This module for which we want to submit patches is a TI proprietary IP. We currently implement this as a character device and have a few IOCTL's.
> We do not follow the V4L2 framework and do not use any V4L2 IOCTLs.
>
> Can we continue to use it as a character driver?

In this case, I don't see why you want it to be upstream.



Cheers,
Mauro

Subject: RE: New Driver for DaVinci DM355/DM365/DM6446

> From: [email protected] [[email protected]] On Behalf Of Paulraj, Sandeep
> Sent: Monday, June 01, 2009 5:56 PM
> To: [email protected]
> Cc: [email protected]; Grosen, Mark
> Subject: New Driver for DaVinci DM355/DM365/DM6446
>
> Hello,
>
> WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
>
> Customers require a way to collect the data required to perform the Auto Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as opposed to software. > This is primarily for performance reasons as there is not enough software processing MIPS (to do 3A statistics) available in
> an imaging/video system.
>
> Including this block in hardware reduces the load on the processor and bandwidth to the memory as the data is collected on the fly from the imager.
>
> This modules collects statistics and we currently implement it as a character driver.

This also exists in OMAP3 chips, and is part of the ISP module.

I maintain, along with Sakari Ailus, a V4L2 camera driver, which is currently just shared through a gitorious repository:

http://gitorious.org/omap3camera

The way we offer an interface for the user to be able to request this statistics is with the usage of private IOCTLs declared inside the same V4L2 capturing device driver.

So, that way we have a V4L2 driver which has a private call, instead of having it separately from the capture driver.

Regards,
Sergio
>
> Which mailing list would be the most appropriate mailing list to submit patches for review?
>
> Thanks,
> Sandeep
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

2009-06-01 18:39:51

by Paulraj, Sandeep

[permalink] [raw]
Subject: RE: New Driver for DaVinci DM355/DM365/DM6446

Mauro,
Please see inline

> -----Original Message-----
> From: Mauro Carvalho Chehab [mailto:[email protected]]
> Sent: Monday, June 01, 2009 1:57 PM
> To: Paulraj, Sandeep
> Cc: [email protected]; [email protected]; Grosen,
> Mark
> Subject: Re: New Driver for DaVinci DM355/DM365/DM6446
>
> Em Mon, 1 Jun 2009 11:54:37 -0500
> "Paulraj, Sandeep" <[email protected]> escreveu:
>
> >
> >
> > > -----Original Message-----
> > > From: Mauro Carvalho Chehab [mailto:[email protected]]
> > > Sent: Monday, June 01, 2009 12:35 PM
> > > To: Paulraj, Sandeep
> > > Cc: [email protected]; [email protected]; Grosen,
> > > Mark
> > > Subject: Re: New Driver for DaVinci DM355/DM365/DM6446
> > >
> > > Em Mon, 1 Jun 2009 09:56:40 -0500
> > > "Paulraj, Sandeep" <[email protected]> escreveu:
> > >
> > > >
> > > > Hello,
> > > >
> > > > WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
> > > >
> > > > Customers require a way to collect the data required to perform the
> Auto
> > > Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in
> hardware as
> > > opposed to software. This is primarily for performance reasons as
> there is
> > > not enough software processing MIPS (to do 3A statistics) available in
> > > > an imaging/video system.
> > > >
> > > > Including this block in hardware reduces the load on the processor
> and
> > > bandwidth to the memory as the data is collected on the fly from the
> > > imager.
> > > >
> > > > This modules collects statistics and we currently implement it as a
> > > character driver.
> > > >
> > > > Which mailing list would be the most appropriate mailing list to
> submit
> > > patches for review?
> > >
> > > You should send they to:
> > > LMML <[email protected]>
> > >
> > > If you are proposing API changes, please submit they first.
> > [Sandeep] WE don't propose any API changes. This module for which we
> want to submit patches is a TI proprietary IP. We currently implement this
> as a character device and have a few IOCTL's.
> > We do not follow the V4L2 framework and do not use any V4L2 IOCTLs.
> >
> > Can we continue to use it as a character driver?
>
> In this case, I don't see why you want it to be upstream.
[Sandeep] TI customers and TI itself want to see this driver part of open source trees. Considering this we would like to submit our patches to the linux-media mailing list.
IS this OK?
>
>
>
> Cheers,
> Mauro

2009-06-01 18:59:05

by Karicheri, Muralidharan

[permalink] [raw]
Subject: RE: New Driver for DaVinci DM355/DM365/DM6446

Sergio,

Is it part of the patches Vaibhav & others from TI are submitting to open source ? I know that there is an ongoing effort at TI India to submit the resizer driver to open source for OMAP3? As per the email exchanges I had with Vaibhav (TI India) on this, it is part of the ISP module. We plan to submit the patches to open source for H3A and was trying to see which is the right way to do it. We will investigate the tree you mentioned below and let you know if we have additional questions. The plan is to align with OMAP3 for the implementation.

regards,

Murali Karicheri
email: [email protected]

>-----Original Message-----
>From: [email protected] [mailto:linux-media-
>[email protected]] On Behalf Of Aguirre Rodriguez, Sergio Alberto
>Sent: Monday, June 01, 2009 2:39 PM
>To: Paulraj, Sandeep; [email protected]
>Cc: [email protected]; Grosen, Mark
>Subject: RE: New Driver for DaVinci DM355/DM365/DM6446
>
>> From: [email protected] [linux-media-
>[email protected]] On Behalf Of Paulraj, Sandeep
>> Sent: Monday, June 01, 2009 5:56 PM
>> To: [email protected]
>> Cc: [email protected]; Grosen, Mark
>> Subject: New Driver for DaVinci DM355/DM365/DM6446
>>
>> Hello,
>>
>> WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
>>
>> Customers require a way to collect the data required to perform the Auto
>Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as
>opposed to software. > This is primarily for performance reasons as there
>is not enough software processing MIPS (to do 3A statistics) available in
>> an imaging/video system.
>>
>> Including this block in hardware reduces the load on the processor and
>bandwidth to the memory as the data is collected on the fly from the imager.
>>
>> This modules collects statistics and we currently implement it as a
>character driver.
>
>This also exists in OMAP3 chips, and is part of the ISP module.
>
>I maintain, along with Sakari Ailus, a V4L2 camera driver, which is
>currently just shared through a gitorious repository:
>
>http://gitorious.org/omap3camera
>
>The way we offer an interface for the user to be able to request this
>statistics is with the usage of private IOCTLs declared inside the same
>V4L2 capturing device driver.
>
>So, that way we have a V4L2 driver which has a private call, instead of
>having it separately from the capture driver.
>
>Regards,
>Sergio
>>
>> Which mailing list would be the most appropriate mailing list to submit
>patches for review?
>>
>> Thanks,
>> Sandeep
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-media" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html

2009-06-01 18:59:26

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: Re: New Driver for DaVinci DM355/DM365/DM6446

Em Mon, 1 Jun 2009 13:39:17 -0500
"Paulraj, Sandeep" <[email protected]> escreveu:

> > > [Sandeep] WE don't propose any API changes. This module for which we
> > want to submit patches is a TI proprietary IP. We currently implement this
> > as a character device and have a few IOCTL's.
> > > We do not follow the V4L2 framework and do not use any V4L2 IOCTLs.
> > >
> > > Can we continue to use it as a character driver?
> >
> > In this case, I don't see why you want it to be upstream.
> [Sandeep] TI customers and TI itself want to see this driver part of open source trees. Considering this we would like to submit our patches to the linux-media mailing list.
> IS this OK?

If you're just providing a character API with some protocol protected by IP,
you're not providing the source code of the driver, but something else.

It is not ok to provide such driver.

Also, even if you disclosure your protocol, it makes no sense to create another
API for userspace communication, for features that already exists or can easily
expand to accommodate your needs.

So, you should really use the V4L2 API for the driver, expanding it where
required, if you want it to be considered for upstream addition.



Cheers,
Mauro

2009-06-01 19:02:19

by Mauro Carvalho Chehab

[permalink] [raw]
Subject: Re: New Driver for DaVinci DM355/DM365/DM6446

Em Mon, 1 Jun 2009 13:38:37 -0500
"Aguirre Rodriguez, Sergio Alberto" <[email protected]> escreveu:

> > From: [email protected] [[email protected]] On Behalf Of Paulraj, Sandeep
> > Sent: Monday, June 01, 2009 5:56 PM
> > To: [email protected]
> > Cc: [email protected]; Grosen, Mark
> > Subject: New Driver for DaVinci DM355/DM365/DM6446
> >
> > Hello,
> >
> > WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
> >
> > Customers require a way to collect the data required to perform the Auto Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as opposed to software. > This is primarily for performance reasons as there is not enough software processing MIPS (to do 3A statistics) available in
> > an imaging/video system.
> >
> > Including this block in hardware reduces the load on the processor and bandwidth to the memory as the data is collected on the fly from the imager.
> >
> > This modules collects statistics and we currently implement it as a character driver.
>
> This also exists in OMAP3 chips, and is part of the ISP module.
>
> I maintain, along with Sakari Ailus, a V4L2 camera driver, which is currently just shared through a gitorious repository:
>
> http://gitorious.org/omap3camera
>
> The way we offer an interface for the user to be able to request this statistics is with the usage of private IOCTLs declared inside the same V4L2 capturing device driver.
>
> So, that way we have a V4L2 driver which has a private call, instead of having it separately from the capture driver.

This seems to be a much better approach, provided that the private IOCTL's will
be properly documented on a public document. If there are enough usage for
they, we may even add them as an optional part of V4L2 API.



Cheers,
Mauro

Subject: RE: New Driver for DaVinci DM355/DM365/DM6446

> From: Karicheri, Muralidharan
> Sent: Monday, June 01, 2009 9:58 PM
> To: Aguirre Rodriguez, Sergio Alberto; Paulraj, Sandeep; [email protected]
> Cc: [email protected]; Grosen, Mark
> Subject: RE: New Driver for DaVinci DM355/DM365/DM6446
>
> Sergio,
>
> Is it part of the patches Vaibhav & others from TI are submitting to open source ?

Yes, currently I have been sharing this codebase with Vaibhav, which he is taking for the 3530 EVM, which uses the camera ISP to receive images from a video decoder using a parallel BT656 output.


> I know that there is an
> ongoing effort at TI India to submit the resizer driver to open source for OMAP3?

I guess this is still on hold, as the current internal approach is not acceptable in the V4L2 standards.

> As per the email
> exchanges I had with Vaibhav (TI India) on this, it is part of the ISP module.

That's correct.

> We plan to submit the
> patches to open source for H3A and was trying to see which is the right way to do it.

The ISP driver core that we are sharing, it already has the H3A driver on it, which is accessed through Private IOCTLs declared inside the driver.

> We will
> investigate the tree you mentioned below and let you know if we have additional questions.

Vaibhav should be already familiar with this codebase, so maybe it could be easier for you to talk with him about this.

> The plan is to align with OMAP3 for the implementation.

Although the current code maintenance is on hold because i've been busy with some other custormer requirements, i havent been able to continue working on the pending TODOs so far. But as this strategy on a better collaboration with the community is attempted, i'm trying ot find my way to get back wit hthe maintenance of this driver to meet at least the required changes for acceptance of the driver.

It'll be definitively good to align on this, so we can avoid rewriting the same thing over again.

Regards,
Sergio
>
> regards,
>
> Murali Karicheri
> email: [email protected]
>
>-----Original Message-----
>From: [email protected] [mailto:linux-media-
>[email protected]] On Behalf Of Aguirre Rodriguez, Sergio Alberto
>Sent: Monday, June 01, 2009 2:39 PM
>To: Paulraj, Sandeep; [email protected]
>Cc: [email protected]; Grosen, Mark
>Subject: RE: New Driver for DaVinci DM355/DM365/DM6446
>
>> From: [email protected] [linux-media-
>[email protected]] On Behalf Of Paulraj, Sandeep
>> Sent: Monday, June 01, 2009 5:56 PM
>> To: [email protected]
>> Cc: [email protected]; Grosen, Mark
>> Subject: New Driver for DaVinci DM355/DM365/DM6446
>>
>> Hello,
>>
>> WE have a module(H3A) on Davinci DM6446,DM355 and DM365.
>>
>> Customers require a way to collect the data required to perform the Auto
>Exposure (AE), Auto Focus(AF), and Auto White balance (AWB) in hardware as
>opposed to software. > This is primarily for performance reasons as there
>is not enough software processing MIPS (to do 3A statistics) available in
>> an imaging/video system.
>>
>> Including this block in hardware reduces the load on the processor and
>bandwidth to the memory as the data is collected on the fly from the imager.
>>
>> This modules collects statistics and we currently implement it as a
>character driver.
>
>This also exists in OMAP3 chips, and is part of the ISP module.
>
>I maintain, along with Sakari Ailus, a V4L2 camera driver, which is
>currently just shared through a gitorious repository:
>
>http://gitorious.org/omap3camera
>
>The way we offer an interface for the user to be able to request this
>statistics is with the usage of private IOCTLs declared inside the same
>V4L2 capturing device driver.
>
>So, that way we have a V4L2 driver which has a private call, instead of
>having it separately from the capture driver.
>
>Regards,
>Sergio
>>
>> Which mailing list would be the most appropriate mailing list to submit
>patches for review?
>>
>> Thanks,
>> Sandeep
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to [email protected]
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-media" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html