Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Aurelien Jarno
Hi all, Some news on that point. After a discussion with Paul Brook, Thiemo Seufer and Ralf Baechle on IRC yesterday, we got convinced that the current IRQ handling is not correct. The hardware interrupt is currently deasserted by the CPU itself (in cpu-exec.c). It should be deasserted by the in

Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Marius Groeger
On Tue, 23 Jan 2007, Aurelien Jarno wrote: > There is currently a bug concerning the IRQ acknowlege on the MIPS > system emulation. It concerns both the QEMU and Malta boards, though it > is only detectable with a 2.4 kernel and thus on the Malta board. The > symptom is a storm of "We got a spurio

[Qemu-devel] Re: DMA timeouts running a FreeBSD guest with last CVS snapshot

2007-01-23 Thread Carlo Marcelo Arenas Belon
On Mon, Jan 22, 2007 at 11:55:11AM +0100, Aurelien Jarno wrote: > Carlo Marcelo Arenas Belon a écrit : > > > > The following patch moves the initialization of bm->cur_addr to match > > FreeBSD behavior while being also compatible with all other guests > > the following snippet kept the initiali

[Qemu-devel] [PATCH V2] DMA timeouts running a FreeBSD guest

2007-01-23 Thread Carlo Marcelo Arenas Belon
Greetings, the following patch moves the initialization for bm->cur_addr from the ide_dma_start function to bmdma_addr_writel, so that it is set in sync with the call to set the destination address for DMA (bm->addr) and to avoid timeouts in guests that set this address after they have called t

Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Alexander Voropay
"Aurelien Jarno" <[EMAIL PROTECTED]> wrote: Then after playing with the current code, I am sure we are missing a simple interrupt controller for the MIPS CPU. It supports 6 hardware interrupts (IP2 to IP7) and we are using two of them in the current emulation: one for the i8259a and the other fo

Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Paul Brook
> It should be good to have a well-defined modular IRQ routing > architecture in the Qemu. We've got most of one for the ARM targets (see hw/arm_pic.h). This file contains both the target independent bits and the ARM specific bits for emulating the CPU IRQ/FIQ pins. Annother possibility to abst

[Qemu-devel] [PATCH] fix i386-softmmu with newer kernel headers

2007-01-23 Thread VMiklos
hi with newer kernel-headers, i get the following compile error: gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I.. -I/var/tmp/fst/src/qemu-0.8.2/target-i386 -I/var/tmp/fst/src/qemu-0.8.2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/var/tmp/fst/src/qemu-0.8.2/f

Re: [Qemu-devel] [PATCH] fix i386-softmmu with newer kernel headers

2007-01-23 Thread Johannes Schindelin
Hi, On Tue, 23 Jan 2007, VMiklos wrote: > /var/tmp/fst/src/qemu-0.8.2/usb-linux.c:29:28: linux/compiler.h: No > such file or directory > make[1]: *** [usb-linux.o] Error 1 > make[1]: Leaving directory `/var/tmp/fst/src/qemu-0.8.2/i386-softmmu' > make: *** [subdir-i386-softmmu] Error 2 > > is thi

Re: [Qemu-devel] [PATCH] fix i386-softmmu with newer kernel headers

2007-01-23 Thread Lonnie Mendez
On Tue, 2007-01-23 at 17:03 +0100, VMiklos wrote: > hi > > with newer kernel-headers, i get the following compile error: > gcc-3.3 -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. > -I.. -I/var/tmp/fst/src/qemu-0.8.2/target-i386 > -I/var/tmp/fst/src/qemu-0.8.2 -D_GNU_SOURCE -D_FILE_OFFSE

Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Aurelien Jarno
Alexander Voropay a écrit : > "Aurelien Jarno" <[EMAIL PROTECTED]> wrote: > >> Then after playing with the current code, I am sure we are missing a >> simple interrupt controller for the MIPS CPU. It supports 6 hardware >> interrupts (IP2 to IP7) and we are using two of them in the current >> emul

[Qemu-devel] [PATCH] Reworking MIPS interrupts handling

2007-01-23 Thread Aurelien Jarno
Hi all, Please find below a patch to fix the IRQ issue on the MIPS platform. I have tested it on both 2.4 and 2.6 kernel and it works fine. Here are a few comments on the patch to understand how it works. - The CPU hardware interrupt (CPU_INTERRUPT_HARD) is not deasserted by the CPU anymore, b

Re: [Qemu-devel] [PATCH] Reworking MIPS interrupts handling

2007-01-23 Thread Aurelien Jarno
On Tue, Jan 23, 2007 at 07:42:20PM +0100, Aurelien Jarno wrote: > Hi all, > > Please find below a patch to fix the IRQ issue on the MIPS platform. I > have tested it on both 2.4 and 2.6 kernel and it works fine. > Here is an updated patch including the comments from Paul Brook via IRC. Thanks Pa

Re: [Qemu-devel] [RFC] IRQ acknowledge on MIPS

2007-01-23 Thread Fabrice Bellard
Paul Brook wrote: It should be good to have a well-defined modular IRQ routing architecture in the Qemu. We've got most of one for the ARM targets (see hw/arm_pic.h). This file contains both the target independent bits and the ARM specific bits for emulating the CPU IRQ/FIQ pins. Annother

Re: [Qemu-devel] [PATCH] Reworking MIPS interrupts handling

2007-01-23 Thread Fabrice Bellard
Good. I prefer this implementation to the current one! Fabrice. Aurelien Jarno wrote: On Tue, Jan 23, 2007 at 07:42:20PM +0100, Aurelien Jarno wrote: Hi all, Please find below a patch to fix the IRQ issue on the MIPS platform. I have tested it on both 2.4 and 2.6 kernel and it works fine.

[Qemu-devel] [PATCH] PIIX4 SMBus host, EEPROM device emulation

2007-01-23 Thread Ed Swierk
The attached patch adds SMBus host support to the emulated PIIX4 power management device (acpi.c), and adds an emulated serial EEPROM device accessible via the SMBus interface. I tried to follow the Intel 82371AB spec for the SMBus support; the interface should be generic enough to implement a va

Re: [Qemu-devel] [PATCH] PIIX4 SMBus host, EEPROM device emulation

2007-01-23 Thread Fabrice Bellard
Ed Swierk wrote: The attached patch adds SMBus host support to the emulated PIIX4 power management device (acpi.c), and adds an emulated serial EEPROM device accessible via the SMBus interface. I tried to follow the Intel 82371AB spec for the SMBus support; the interface should be generic enough

Re: [Qemu-devel] [PATCH] PIIX4 SMBus host, EEPROM device emulation

2007-01-23 Thread Ed Swierk
On 1/23/07, Fabrice Bellard <[EMAIL PROTECTED]> wrote: OK, but avoid using mmap() in the device code. Moreover, files in the BIOS directory are not writable. OK. Would it be better to do the following: - add a command-line option -seeprom that sets the file to use as backing store for the smbu

[Qemu-devel] qemu/target-mips cpu.h op.c op_helper.c transla...

2007-01-23 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/01/23 22:45:22 Modified files: target-mips: cpu.h op.c op_helper.c translate.c Log message: Implementing dmfc/dmtc. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/cpu.

Re: [Qemu-devel] [PATCH] PIIX4 SMBus host, EEPROM device emulation

2007-01-23 Thread Ed Swierk
Here's a revised patch with the mmap stuff removed. I'll refine the persistence support, but in the meantime the EEPROM device is usable even if it forgets its contents when qemu exits. --Ed Index: qemu-0.8.2/hw/acpi.c === --- qemu-0

[Qemu-devel] qemu/hw ide.c

2007-01-23 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/01/24 01:12:42 Modified files: hw : ide.c Log message: Fix DMA timeouts on FreeBSD, by Carlo Marcelo Arenas Belon. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/qemu/hw/ide.c?

[Qemu-devel] qemu Makefile.target cpu-exec.c vl.h hw/gt64xxx...

2007-01-23 Thread Thiemo Seufer
CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/01/24 01:47:51 Modified files: . : Makefile.target cpu-exec.c vl.h hw : gt64xxx.c i8259.c mips_malta.c mips_r4k.c mips_timer.c targe

Re: [Qemu-devel] [PATCH] PIIX4 SMBus host, EEPROM device emulation

2007-01-23 Thread Ed Swierk
Windows 2000 boots and PC Wizard 2007 displays the following information under the Mainboard category: > SMBus/i2c Bus : Yes >> General Information Device : 82371AB/EB/MB PIIX4/E/M Power Management Controller Revision : 0 Frequency : 16 KHz Address : 0xB100 >> Device