Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* drm_clflush_pages performance
@ 2012-09-15 14:41 hank peng
  2012-09-15 22:06 ` Dave Airlie
  0 siblings, 1 reply; 4+ messages in thread
From: hank peng @ 2012-09-15 14:41 UTC (permalink / raw)
  To: intel-gfx

I noticed that drm_clflush_pages function will first choose clfush
instead of wbinvd, its code like this:

void
drm_clflush_pages(struct page *pages[], unsigned long num_pages)
{

#if defined(CONFIG_X86)
	if (cpu_has_clflush) {
		drm_cache_flush_clflush(pages, num_pages);
		return;
	}

	if (on_each_cpu(drm_clflush_ipi_handler, NULL, 1) != 0)
		printk(KERN_ERR "Timed out waiting for cache flush.\n");


I think using clfush will be slower than using wbinvd, so I wonder if
I use wbinvd first, what else impact will it bring?


-- 
The simplest is not all best but the best is surely the simplest!

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

end of thread, other threads:[~2012-09-17 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-15 14:41 drm_clflush_pages performance hank peng
2012-09-15 22:06 ` Dave Airlie
2012-09-16  7:12   ` Chris Wilson
2012-09-17 17:17     ` Ben Widawsky

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