qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] bonito: PCI_STATUS questions
@ 2010-10-27 16:12 Michael S. Tsirkin
  2010-10-28  0:57 ` [Qemu-devel] " chen huacai
  0 siblings, 1 reply; 6+ messages in thread
From: Michael S. Tsirkin @ 2010-10-27 16:12 UTC (permalink / raw)
  To: qemu-devel, zltjiangshi, Aurelien Jarno

I see code in bonito.c that clears bits:
PCI_STATUS_REC_MASTER_ABORT | PCI_STATUS_REC_TARGET_ABORT
on each read and write.

However
1. I don't see anything in code that would set these bits
2. The PCI spec says this about the status register:

	Reads to this register behave normally. Writes are slightly different in
	that bits can be reset, but not set. A one bit is reset (if it is not
	read-only) whenever the register is written, and the write data in the
	corresponding bit location is a 1. For instance, to clear bit 14 and not
	affect any other bits, write the value 0100_0000_0000_0000b to the
	register.

while the code in bonito.c resets the bits to 0 on each write.

Comments?

-- 
MST

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

end of thread, other threads:[~2010-10-29 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 16:12 [Qemu-devel] bonito: PCI_STATUS questions Michael S. Tsirkin
2010-10-28  0:57 ` [Qemu-devel] " chen huacai
2010-10-28  4:54   ` Michael S. Tsirkin
2010-10-28  8:31     ` chen huacai
2010-10-29  8:16       ` Michael S. Tsirkin
2010-10-29 13:34         ` chen huacai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).