Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle

2006-09-21 Thread Joerg Platte
Am Mittwoch, 20. September 2006 21:25 schrieb Blue Swirl: Great work! I can also confirm that it works and CPU is halted correctly. Here it doesn't work with linux 2.6.13. Is there a special configuration option or kernel version required to make it work? regards, Jörg

Re: [Qemu-devel] qemu-system-sparc uses all host cpu whiletargetsystem is idle

2006-09-21 Thread Joerg Platte
Am Donnerstag, 21. September 2006 10:53 schrieb Aurelien Jarno: You also need to update openbios from the latest SVN. Then prtconf should report a device called power-management (and not xxxpower-management). Thank you for this information. Now it works and helps to save a lot of battery

Re: [Qemu-devel] Sparc32 bash problem solved

2006-05-27 Thread Joerg Platte
Am Samstag, 27. Mai 2006 21:30 schrieb Blue Swirl: For some reason, bash and strace didn't work inside Sparc32 system emulator. I finally found the reason by observing strange Linux behaviour relating to MMU no-fault mode. No fault mode seems to apply only to supervisor accesses, not user

Re: [Qemu-devel] Sparc32 bash problem solved

2006-05-27 Thread Joerg Platte
Am Samstag, 27. Mai 2006 22:21 schrieb Joerg Platte: Yes, booting a small system with udev works! qemu in graphical mode boots up to the login prompt. But unfortunately each character i tried to type in is corrupt. Hence, its not possible to log in. In console mode getty causes a kernel oops

Re: [Qemu-devel] fpu problems with qemu-system-sparc

2006-05-22 Thread Joerg Platte
Am Montag, 22. Mai 2006 21:12 schrieb Joerg Platte: Hi! PS: Booting a normal SPARC-Image with init, hotplug, ... seems to work now much better than before. There is no bash segfault any more: Shit, the bash still not works (I forgot the bash symlink pointing to a dash :-). But programs using

Re: [Qemu-devel] fpu problems with qemu-system-sparc

2006-05-19 Thread Joerg Platte
Am Donnerstag, 18. Mai 2006 19:53 schrieb Blue Swirl: I've checked a lot of the executed instructions in qemu and cannot find any problems up to now. Does somebody else has an idea what to check? The test program simply adds two float variables (fadds-instruction) in a loop and this crashes

Re: [Qemu-devel] SPARC iommu mapping

2006-05-03 Thread Joerg Platte
Am Montag, 17. April 2006 10:49 schrieb Blue Swirl: Hi! This command fails when installing kernel and modules: qemu-system-sparc -kernel vmlinux-2.6.11+tcx -cdrom debian-30r4-sparc-binary-1.iso -hda hd -initrd debian-30r4-sparc.initrd -nographic -append 'cdrom ramdisk_size=16384 devfs=mount

Re: [Qemu-devel] SPARC iommu mapping

2006-04-14 Thread Joerg Platte
Am Dienstag, 11. April 2006 21:21 schrieb Blue Swirl: Hi! Great work! Now the Debian 3.0r4 installer with 2.6.11+tcx kernel almost finishes. Performance is also much better. I tried to boot a deb-bootstrapped SPARC image. But the first executed script segfaults when executing another command

Re: [Qemu-devel] SPARC iommu mapping

2006-04-10 Thread Joerg Platte
Am Freitag, 7. April 2006 17:44 schrieb Blue Swirl: Hi! The attached patch is an updated version of my previous patch. Now it applies cleanly to cvs head and the read and write performance is increased. regards, Jörg --- esp.c 2006-04-10 14:51:37.0 +0200 +++ esp.c.new 2006-04-10

Re: [Qemu-devel] SPARC iommu mapping

2006-04-09 Thread Joerg Platte
Am Freitag, 7. April 2006 17:44 schrieb Blue Swirl: Hi! Maybe this patch helps? The attached patch is an updated version of your patch. With whis patch I was able to copy files from one directory to another on a disk image. After unmounting the image, e2fsck reported no errors on this image.

Re: [Qemu-devel] SPARC iommu mapping

2006-04-07 Thread Joerg Platte
Am Freitag, 7. April 2006 17:44 schrieb Blue Swirl: Hi! Thank you for the excellent analysis of the problem! Looks like Qemu doesn't handle the case where DMA length and SCSI length are not equal. Exact. So Linux splits the transfer into two parts to use two separate pieces of buffers.

Re: [Qemu-devel] SPARC iommu mapping

2006-04-06 Thread Joerg Platte
Am Mittwoch, 5. April 2006 19:36 schrieb Blue Swirl: Hi! Today I did some more tests to determine, what's going wrong. At first, Linux flushes the page entries for the 14 buffers that are to be written to disk: IOMMU: page flush f001c000 IOMMU: page flush f001d000 IOMMU: page flush f001e000

Re: [Qemu-devel] SPARC iommu mapping

2006-04-05 Thread Joerg Platte
Am Dienstag, 4. April 2006 21:27 schrieb Joerg Platte: Hi! To find this problem, I enabled debugging in the esp.c file and printed the mapped address (after iommu mapping). In some cases the mapped address is zero: ESP: DMA address 0beb8000 ESP: DMA address I didn't find a manual

Re: [Qemu-devel] SPARC iommu mapping

2006-04-05 Thread Joerg Platte
Am Mittwoch, 5. April 2006 19:36 schrieb Blue Swirl: Hi! I don't have any better documentation either, I just coded against what Proll and Linux expect. But the theory of operation is simple. Much like OK, I thought I was just too stupid to find good documentation :-) how the MMU translates

Re: [Qemu-devel] SPARC iommu mapping

2006-04-05 Thread Joerg Platte
Am Mittwoch, 5. April 2006 19:36 schrieb Blue Swirl: Hi! The DMA controllers for both ESP and Lance are within the same page. This means that in Qemu, DMA controller register accesses for either of them go to just one of these. It just happens to work, but maybe this causes the problem. You