forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Whats the threshold on the VU0 watchdog ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Jul 22, 2004 6:19 pm    Post subject: Whats the threshold on the VU0 watchdog ? Reply with quote

The PS2 VU documentation says VU0 will halt and interrupt on a watchdog if it runs too long. This is probably so that an out-of-control VU0 doesn't create a situation that prevent access to the VU1 control registers. Unfortunately, it doesn't appear to be documented what thresholds trip that watchdog. Anyone know ?

Gorim
Back to top
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu Jul 22, 2004 7:54 pm    Post subject: Reply with quote

Huh wich page in the vu manual did you get that from ?
and well frankly I dont see the point you can always stop/start vu0 from ee core.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Jul 22, 2004 9:55 pm    Post subject: Reply with quote

blackdroid wrote:
Huh wich page in the vu manual did you get that from ?
and well frankly I dont see the point you can always stop/start vu0 from ee core.




    1. VU User's Manual, p201, COP2 registers are used for VU0 control registers.
    2. VU User's Manual, p204, co-processor transfer instructions are used to access the VU0 control registers.
    3. VU User's Manual, pp216,232,etc..., variants of QMTC2, CFC2, etc...can interlock on a running VU0, until the VCALLMS'ed microroutine completes.
    4. EE User's Manual, p28, INT_VU0WD (interrurpt 14, VU0 in RUN status for a long time continuously, forcebreak sent to VU)


Summary: As you point out, one can send their own forcebreak to VU0, but it requires a COP2 transfer. However, depending on the situation, a COP2 transfer instruction can be chosen to interlock with a running VU0 or to not interlock. In the former situation, a risk is created that a VCALLMS microroutine will not stop. As long as interlocked transfer instructions are used, access to VU0 and VU1 control registers are blocked. The easy way around this is to not interlock, but the option to *use* interlock is available for a reason, thus the watchdog on VU0 would also be necessary for a worst case scenario where one needs to regain control of VU0.

Yes, the manual doesn't come right out and directly state what I originally posted, but sometimes you just gotta read between the lines, no ? :)

Gorim
Back to top
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Thu Jul 22, 2004 10:41 pm    Post subject: Reply with quote

first time I actually caught the watchdog word on the interrupt table presentation.
guess you need to time it :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group