public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pgprot_writecombine() and PATs on x86
@ 2007-04-25 18:02 Roland Dreier
  2007-04-25 18:19 ` Andi Kleen
  0 siblings, 1 reply; 10+ messages in thread
From: Roland Dreier @ 2007-04-25 18:02 UTC (permalink / raw)
  To: Eric W. Biederman, linux-kernel; +Cc: mst, jackm, ak

Hi Eric,

Where do your patches to add an implementation of
pgprot_writecombine() using PATs on x86 stand?  The mlx4 driver I'm
planning on merging for 2.6.22 would really like writecombining, and
I'm interested in doing the work to finally get the PAT stuff merged
(probably for 2.6.23 I guess).

Just to give a little background on my motivation: the mlx4 hardware
allows a page in its PCI space to be mapped, where the driver can write
descriptors and payloads directly, instead of ringing a doorbell and
having the HW fetch the descriptor from system memory, for better latency.

The driver allows this page to be mapped to userspace and used
directly from latency sensitive stuff like MPI applications.  I added
a hacked up version of the PAT stuff to map the page into userspace
with pgprot_writecombine(), and that lowered the measured MPI latency
by 450 nsecs, which doesn't seem like much until I tell you that the
latency when from ~1.85 usec to ~1.4 usec.  So copying the descriptor
is a huge part of the total latency and users are definitely going to
want that 25% improvement.

Anyway as I said I want to get the PAT stuff upstream, so I'm posting
this to find out the latest state and avoid duplicating work.

Thanks,
  Roland

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

end of thread, other threads:[~2007-04-26  6:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25 18:02 pgprot_writecombine() and PATs on x86 Roland Dreier
2007-04-25 18:19 ` Andi Kleen
2007-04-25 18:31   ` Eric W. Biederman
2007-04-25 18:35     ` Roland Dreier
2007-04-25 18:45       ` Eric W. Biederman
2007-04-26  5:43         ` Michael S. Tsirkin
2007-04-26  6:13           ` Eric W. Biederman
2007-04-25 18:33   ` Roland Dreier
2007-04-25 18:41   ` Dave Jones
2007-04-25 19:10     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox