Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: devel

cx18: Forward progress on older machines and mailbox error codes

 

 

ivtv devel RSS feed   Index | Next | Previous | View Threaded


awalls at radix

Aug 30, 2008, 7:55 PM

Post #1 of 4 (2368 views)
Permalink
cx18: Forward progress on older machines and mailbox error codes

Hans,

Can you decode the following error codes for me?

# grep 'mailbox error ' /var/log/messages
Aug 30 21:46:40 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
Aug 30 21:54:46 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
Aug 30 21:55:40 arabian kernel: cx18-0 api: mailbox error 20080003 for command CX18_CPU_SET_VIDEO_RESOLUTION
Aug 30 22:15:41 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
Aug 30 22:17:07 arabian kernel: cx18-0 api: mailbox error 20080003 for command CX18_CPU_SET_VIDEO_RESOLUTION
Aug 30 22:26:47 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI


I've was able to get my Raptor board working in my old machine (82810E
Northbridge & 82801AA Nouthbridge) and can do analog capture from
composite 1 with it.

I've got my HVR-1600 in that old machine now, and get past all the I2C
and firmware init without problems. Logging status even shows the
microcontroller is detecting stereo with SAP. But I can't get an analog
capture to work right yet. I got the above error messages on some
occasions with the 'cat /dev/video0 > foo.mpg' just hanging producing no
data. I also get captures with cat griping 'cat: /dev/video0:
Input/output error' along with lots of 'busy' messages:

Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_STOP busy
Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_STOP busy
Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_CPU_DE_RELEASE_MDL busy
Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_CPU_DE_RELEASE_MDL busy
Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_DESTROY_TASK busy
Aug 30 22:36:57 arabian kernel: cx18-0: mb CX18_DESTROY_TASK busy

Aug 30 22:37:37 arabian kernel: cx18-0: mb CX18_APU_RESETAI busy
Aug 30 22:37:37 arabian kernel: cx18-0: mb CX18_APU_RESETAI busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VIDEO_MUTE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VIDEO_MUTE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CREATE_TASK busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CREATE_TASK busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_CHANNEL_TYPE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_CHANNEL_TYPE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VER_CROP_LINE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VER_CROP_LINE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_MISC_PARAMETERS busy
[...]
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_MISC_PARAMETERS busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_CAPTURE_LINE_NO busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_CAPTURE_LINE_NO busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_INDEXTABLE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_INDEXTABLE busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VIDEO_IN busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_SET_VIDEO_IN busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_SET_MDL_ACK busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_SET_MDL_ACK busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_SET_MDL busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_SET_MDL busy
[...]
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_SET_MDL busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_START busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_START busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_STOP busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_CAPTURE_STOP busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_RELEASE_MDL busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_CPU_DE_RELEASE_MDL busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_DESTROY_TASK busy
Aug 30 22:37:55 arabian kernel: cx18-0: mb CX18_DESTROY_TASK busy

Regards,
Andy



_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


awalls at radix

Aug 31, 2008, 1:07 PM

Post #2 of 4 (2218 views)
Permalink
Re: cx18: Forward progress on older machines and mailbox error codes [In reply to]

On Sat, 2008-08-30 at 22:55 -0400, Andy Walls wrote:
> Hans,
>
> Can you decode the following error codes for me?
>
> # grep 'mailbox error ' /var/log/messages
> Aug 30 21:46:40 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
> Aug 30 21:54:46 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
> Aug 30 21:55:40 arabian kernel: cx18-0 api: mailbox error 20080003 for command CX18_CPU_SET_VIDEO_RESOLUTION
> Aug 30 22:15:41 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
> Aug 30 22:17:07 arabian kernel: cx18-0 api: mailbox error 20080003 for command CX18_CPU_SET_VIDEO_RESOLUTION
> Aug 30 22:26:47 arabian kernel: cx18-0 api: mailbox error 200800ff for command CX18_APU_RESETAI
>
>
> I've was able to get my Raptor board working in my old machine (82810E
> Northbridge & 82801AA Nouthbridge) and can do analog capture from
> composite 1 with it.
>
> I've got my HVR-1600 in that old machine now, and get past all the I2C
> and firmware init without problems. Logging status even shows the
> microcontroller is detecting stereo with SAP. But I can't get an analog
> capture to work right yet.

Woo hoo! I got the HVR-1600 to do an OTA analog capture in this old
machine too!

Now, I'm gonna go drink a beer and mow my lawn. :)

In the next few days, I should have a fix checked in for testing proper
operation of CX23418 based cards in motherboards where they currently
don't appear to work (tveeprom errors, I2C errors, etc.).

Regards,
Andy


_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


hverkuil at xs4all

Aug 31, 2008, 1:14 PM

Post #3 of 4 (2219 views)
Permalink
Re: cx18: Forward progress on older machines and mailbox error codes [In reply to]

On Sunday 31 August 2008 22:07:59 Andy Walls wrote:
> On Sat, 2008-08-30 at 22:55 -0400, Andy Walls wrote:
> > Hans,
> >
> > Can you decode the following error codes for me?
> >
> > # grep 'mailbox error ' /var/log/messages
> > Aug 30 21:46:40 arabian kernel: cx18-0 api: mailbox error 200800ff
for command CX18_APU_RESETAI
> > Aug 30 21:54:46 arabian kernel: cx18-0 api: mailbox error 200800ff
for command CX18_APU_RESETAI
> > Aug 30 21:55:40 arabian kernel: cx18-0 api: mailbox error 20080003
for command CX18_CPU_SET_VIDEO_RESOLUTION
> > Aug 30 22:15:41 arabian kernel: cx18-0 api: mailbox error 200800ff
for command CX18_APU_RESETAI
> > Aug 30 22:17:07 arabian kernel: cx18-0 api: mailbox error 20080003
for command CX18_CPU_SET_VIDEO_RESOLUTION
> > Aug 30 22:26:47 arabian kernel: cx18-0 api: mailbox error 200800ff
for command CX18_APU_RESETAI
> >
> >
> > I've was able to get my Raptor board working in my old machine
(82810E
> > Northbridge & 82801AA Nouthbridge) and can do analog capture from
> > composite 1 with it.
> >
> > I've got my HVR-1600 in that old machine now, and get past all the
I2C
> > and firmware init without problems. Logging status even shows the
> > microcontroller is detecting stereo with SAP. But I can't get an
analog
> > capture to work right yet.
>
> Woo hoo! I got the HVR-1600 to do an OTA analog capture in this old
> machine too!
>
> Now, I'm gonna go drink a beer and mow my lawn. :)
>
> In the next few days, I should have a fix checked in for testing
proper
> operation of CX23418 based cards in motherboards where they currently
> don't appear to work (tveeprom errors, I2C errors, etc.).

Great job, Andy!

Thank you!

Hans

_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


awalls at radix

Aug 31, 2008, 1:28 PM

Post #4 of 4 (2234 views)
Permalink
Re: cx18: Forward progress on older machines and mailbox error codes [In reply to]

On Sun, 2008-08-31 at 22:14 +0200, Hans Verkuil wrote:

> > In the next few days, I should have a fix checked in for testing
> proper
> > operation of CX23418 based cards in motherboards where they currently
> > don't appear to work (tveeprom errors, I2C errors, etc.).
>
> Great job, Andy!
>
> Thank you!

You're welcome!

A short summary of the problem is that the Linux cx18 driver was
accessing the CX23418 *too rapidly*.

Please Hans, next time try to write less efficient code. ;)

Regards,
Andy

> Hans
>


_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

ivtv devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.