Skip to contentSkip to conversation

qemu-system-sparc video problem on 16 bitdisplays

Qemu-devel Blue Swirl 6 participants 9 messages Sep 8, 2006 – Sep 12, 2006

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw
Quoted 2 lines

It must be hanging while probing for sound modules, try adding 'blacklist snd-sun-cs4231' to /etc/modules.d/blacklist

This patch should fix hanging, unless some program waits until playback is finished.

Implementing full audio support for CS4231 would not be too difficult. Is this chip used anywhere else? The data sheet mentions some ISA card and Windows 3.1.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

#1 lore raw
Quoted 3 lines · Blue Swirl

Implementing full audio support for CS4231 would not be too difficult. Is this chip used anywhere else? The data sheet mentions some ISA card and Windows 3.1.

The "Windows Sound System" cards apparently used it.

Signature · 1 line
Stuart Brady
#2 lore raw

[Qemu-devel] ARM CPU Speed simulated by Qemu?

Hi all,
I found that Qemu ARM system simulates ARM926EJ-S and ARM1026EJ-S processor. And I found on ARM website that the speed of these CPUs vary from 266 to 540 MHz. Could you tell me the exact speed of the ARM926EJ-S and ARM1026EJ-S processor simulated by Qemu? It's very important for me to finish my report.
Thanks and best regards,
Tieu

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#3 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

Quoted 8 lines · Tieu Ma Dau

Hi all, I found that Qemu ARM system simulates ARM926EJ-S and ARM1026EJ-S processor. And I found on ARM website that the speed of these CPUs vary from 266 to 540 MHz. Could you tell me the exact speed of the ARM926EJ-S and ARM1026EJ-S processor simulated by Qemu? It's very important for me to finish my report.
Thanks and best regards,
Tieu

Hi,

You can guess cpu speed by running some benchmarks, but it's impossible to tell exactly.
Qemu translates arm blocks into host cpu instructions dynamically at run-time, and executes them. So, the processor doesn't run the same instructions, only the instructions whose effect is the same on the other architecture.

Nyos

#4 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

In reply to Tieu Ma Dau
Quoted 7 lines · Tieu Ma Dau

Hi all,
I found that Qemu ARM system simulates ARM926EJ-S and ARM1026EJ-S processor. And I found on ARM website that the speed of these CPUs vary from 266 to 540 MHz. Could you tell me the exact speed of the ARM926EJ-S and ARM1026EJ-S processor simulated by Qemu? It's very important for me to finish my report.

Qemu is not cycle accurate. There is no particularly meaningful way to translate between qemu performance and how fast something will run on real hardware.

Modern CPUs are complicated, with many factors effecting execution speed (pipeline interlocks, multiple levels of cache). A cycle accurate simulator will generally be orders of magnitude slower than qemu.

Paul

#5 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

Quoted 1 line · Paul Brook

Modern CPUs are complicated, with many factors effecting execution speed (pipeline interlocks, multiple levels of cache). A cycle accurate simulator will generally be orders of magnitude slower than qemu.

Would it be feasible to just limit the number of instructions qemu simulates? Of course that's not very precise and most probably far from cycle accurate. But it would allow to easily scale down a virtual machine. Which then would allow comparable benchmarks or such.

One step, somewhat more accurate would be to weight all the different assembler commands with known (measured) average execution times. Taking into account 40% cache misses, for example. (Hm.. but since cache misses are very expensive, that might not lead to a much better approximation, I guess)

Any documents or discussion threads related to that topic? Other projects trying to achieve that?

Since my benchmarking application is mostly disk- and network-I/O bound, thus I'll first try to scale that down, which seems far easier to do (much less performance penalty for that).

Regards

Markus

#6 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

Quoted 10 lines · Markus Schiltknecht
Quoted 3 lines · Paul Brook

Modern CPUs are complicated, with many factors effecting execution speed (pipeline interlocks, multiple levels of cache). A cycle accurate simulator will generally be orders of magnitude slower than qemu.

Would it be feasible to just limit the number of instructions qemu simulates? Of course that's not very precise and most probably far from cycle accurate. But it would allow to easily scale down a virtual machine. Which then would allow comparable benchmarks or such.

Quoted 5 lines

One step, somewhat more accurate would be to weight all the different assembler commands with known (measured) average execution times. Taking into account 40% cache misses, for example. (Hm.. but since cache misses are very expensive, that might not lead to a much better approximation, I guess)

I'd be surprised if you managed to get any sort of reliable results. Most of what you described can be achieved with profiling and static analysis.

You could maybe get order-of-magnitude estimates (ie. do you need a 20MHz cpu or a 2GHz cpu), but I certainly wouldn't trust the results for deciding between eg. 500MHz and 200MHz cores.

IMHO a benchmarking setup that doesn't reliably correspond to real system performance is worse than useless.

Paul

#7 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

Quoted 1 line · Paul Brook

IMHO a benchmarking setup that doesn't reliably correspond to real system performance is worse than useless.

Agreed. So let's see what's needed to get a reliably corresponding system. I'm interested in three layers: CPU, hard disk and network.

Networking is the simplest, I think. I would need to be able to define throughput and latency and be able to simulate network collisions (i.e. packet loss percentage).

Emulating a hard disk is already more complicated. One could likewise define throughput and latency (= avg. seek time). But in most cases that would not be sufficient, because depending on the head position, seek time may vary wildly. Thus more like a rotation speed and head position emulation is necessary. Most disks today also have different zones with varying data density (more sectors on the outer tracks). And last but not least, there are caches in most drives...

Now, CPUs is where I have only a vague idea of what would be needed to simulate. I know there are up to three levels of caches and main memory, which all have different access times. The CPU itself has a pipeline and branch prediction and such which could invalidate the contents of pipeline up to a given point (of branching).

I think the most time consuming operation which should be properly simulated is memory access. For this to work properly, all levels of caches must be emulated, too.

How much do misses on the branch prediction level cost? How much pipeline interlocks? I don't think those would be _that_ dramatic. Since today's compilers are said to be optimizing quite well...

I agree that implementing all of that would be a significant amount of work, already. What else do I miss?

Regards

Markus

#8 lore raw

Re: [Qemu-devel] ARM CPU Speed simulated by Qemu?

Quoted 3 lines

How much do misses on the branch prediction level cost? How much pipeline interlocks? I don't think those would be _that_ dramatic. Since today's compilers are said to be optimizing quite well...

It all depends on the code you're running. Certainly branch prediction can have a major effect if the hardware consistently gets it wrong. Even arm hardware has 5/7 stage pipelines that need flushing on a mispredict.

Pipeline interlocks are likely to be relatively small, for most Arm hardware at least (ia64 is a completely different story :-). As a compiler author I'd generally expect a few % performance improvement from a good scheduling model.

I wouldn't assuming the compiler gets everything right, as it's quite common for systems to be built for the lowest common denominator target.

Paul