W liście z nie, 28-09-2003, godz. 20:24, Keith Whitwell pisze: > Jacek Rosik wrote: > > Hi! > > > > I've been working on adding stereo support for radeon/r200 driver > > recently. I have several questions mainly about kernel side and > > interrupts. > > > > 1) About CP. As I understand it it's some kind of queue for commands. > > So, is there such posibility that if I write some value into register > > using it and after that another value is written using RADEON_WRITE the > > second value will be overwritten by first one? Is it flushed on context > > change? For example when server grabs a lock after client. > > If you want to write registers in the hardware while the CP is active, it's > typically necessary to use CP commands to do so. However, it does depend > which register you are talking about.
RADEON_CRTC_OFFSET/RADEON_CRTC2_OFFSET in order to flip buffers. > > 2) Can I block radeon interrupt (swi and vbl) and if so how can I do it? > > What I mean is to block them for a while and not to loose any. > > It is possible to block interrupts in the kernel, but generally it's > discouraged. I certainly don't see why you'd need to do that to support stereo. Generally I don't, but things get a little nasty with page flipping and stereo. I was thinking how to solve them but I think I'll just disable page flipping for now. Anyway does somebody know any good source of info about handling interrupts in Linux? I've read some docs but a little bit outdated. > > 3)Is touching SAREA from interrupt handler (radeon_dma_service) a bad > > idea? > > Yes - the SAREA is protected by the hardware lock. You have to grab the lock > before you touch it and you can't do that from an interrupt handler. Does it mean that I shouldn't even read any values from it? I'm going to flip left/right eye buffers in interrupt handler. For that I need viewport offsets which are stored in SAREA. Or viewport position will reset to top left corner. -- Jacek Rosik <[EMAIL PROTECTED]> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
