[Qemu-devel] Re: bonito: PCI_STATUS questions

2010-10-29 Thread chen huacai
Yes, I think so. On Fri, Oct 29, 2010 at 4:16 PM, Michael S. Tsirkin wrote: > On Thu, Oct 28, 2010 at 04:31:33PM +0800, chen huacai wrote: >> Please see bonito64_pcibios_config_access() in >> arch/mips/pci/ops-bonito64.c of Linux kernel code. >> You will find something useful. > > > Thanks! > I f

[Qemu-devel] Re: bonito: PCI_STATUS questions

2010-10-29 Thread Michael S. Tsirkin
On Thu, Oct 28, 2010 at 04:31:33PM +0800, chen huacai wrote: > Please see bonito64_pcibios_config_access() in > arch/mips/pci/ops-bonito64.c of Linux kernel code. > You will find something useful. Thanks! I found this: /* Clear aborts */ BONITO_PCICMD |= BONITO_PCICMD_MABORT_CLR

[Qemu-devel] Re: bonito: PCI_STATUS questions

2010-10-28 Thread chen huacai
Please see bonito64_pcibios_config_access() in arch/mips/pci/ops-bonito64.c of Linux kernel code. You will find something useful. On Thu, Oct 28, 2010 at 12:54 PM, Michael S. Tsirkin wrote: > On Thu, Oct 28, 2010 at 08:57:01AM +0800, chen huacai wrote: >> Because the code in PMON and Linux kernel

[Qemu-devel] Re: bonito: PCI_STATUS questions

2010-10-27 Thread Michael S. Tsirkin
On Thu, Oct 28, 2010 at 08:57:01AM +0800, chen huacai wrote: > Because the code in PMON and Linux kernel use these bits to verify r/w > operations. If one of them is 1 after r/w, PMON and Linux will > consider r/w has failed. Where's that code in Linux? > I guess that software will not set them t

[Qemu-devel] Re: bonito: PCI_STATUS questions

2010-10-27 Thread chen huacai
Because the code in PMON and Linux kernel use these bits to verify r/w operations. If one of them is 1 after r/w, PMON and Linux will consider r/w has failed. I guess that software will not set them to 1, because it is set by hardware when operation fails. On Thu, Oct 28, 2010 at 12:12 AM, Michael