qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] MMIO coalescing of the i82378 bridge
@ 2012-06-23  9:28 Jan Kiszka
  2012-06-23 12:46 ` Andreas Färber
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2012-06-23  9:28 UTC (permalink / raw)
  To: Andreas Färber, Hervé Poussineau; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

Hi all,

just stumbled over the memory_region_set_coalescing in pci_i82378_init:
What ISA devices are affected by this? It looks a bit strange to me as
the MMIO requests are apparently mapped on PIO requests, and we don't
have PIO coalescing on x86. Depending on the target device on PREP, this
may have some unexpected side effects. Or is only framebuffer memory
addressed this way?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* Re: [Qemu-devel] MMIO coalescing of the i82378 bridge
  2012-06-23  9:28 [Qemu-devel] MMIO coalescing of the i82378 bridge Jan Kiszka
@ 2012-06-23 12:46 ` Andreas Färber
  2012-06-23 12:53   ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Färber @ 2012-06-23 12:46 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Hervé Poussineau, qemu-devel

Hi Jan,

Am 23.06.2012 11:28, schrieb Jan Kiszka:
> just stumbled over the memory_region_set_coalescing in pci_i82378_init:
> What ISA devices are affected by this? It looks a bit strange to me as
> the MMIO requests are apparently mapped on PIO requests, and we don't
> have PIO coalescing on x86. Depending on the target device on PREP, this
> may have some unexpected side effects. Or is only framebuffer memory
> addressed this way?

I only remember touching that line to rebase it onto either Memory API
or QOM. The i82378 is the sole PCI-ISA bridge so all ISA devices will be
affected by it, which is pretty much everything except VGA iirc.
The upcoming pc87312(?) Super I/O also would be attached to it,
replacing some of the bogus I/O in the current "prep" machine.

I'm not familiar with what this option affects. What unexpected side
effects would you expect? :)

Regards,
Andreas

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

* Re: [Qemu-devel] MMIO coalescing of the i82378 bridge
  2012-06-23 12:46 ` Andreas Färber
@ 2012-06-23 12:53   ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2012-06-23 12:53 UTC (permalink / raw)
  To: Andreas Färber; +Cc: Hervé Poussineau, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

On 2012-06-23 14:46, Andreas Färber wrote:
> Hi Jan,
> 
> Am 23.06.2012 11:28, schrieb Jan Kiszka:
>> just stumbled over the memory_region_set_coalescing in pci_i82378_init:
>> What ISA devices are affected by this? It looks a bit strange to me as
>> the MMIO requests are apparently mapped on PIO requests, and we don't
>> have PIO coalescing on x86. Depending on the target device on PREP, this
>> may have some unexpected side effects. Or is only framebuffer memory
>> addressed this way?
> 
> I only remember touching that line to rebase it onto either Memory API
> or QOM. The i82378 is the sole PCI-ISA bridge so all ISA devices will be
> affected by it, which is pretty much everything except VGA iirc.
> The upcoming pc87312(?) Super I/O also would be attached to it,
> replacing some of the bogus I/O in the current "prep" machine.
> 
> I'm not familiar with what this option affects. What unexpected side
> effects would you expect? :)

Simple example: You write to the PIT to start/stop a timer, but this
transaction is now delayed until the next coalesced buffer flush.

IOW, there surely exit write operations that must not be reordered /wrt
to the VCPU execution flow. I would recommend to drop coalescing, even
more if its benefit is not clear.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

end of thread, other threads:[~2012-06-23 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-23  9:28 [Qemu-devel] MMIO coalescing of the i82378 bridge Jan Kiszka
2012-06-23 12:46 ` Andreas Färber
2012-06-23 12:53   ` Jan Kiszka

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).