Skip to contentSkip to conversation

drm: Missed clflushopt in drm_clflush_virt_range

PATCH Ross Zwisler 2 participants 2 messages Apr 21, 2014 – Apr 28, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CF7ADB41.27CDE%[email protected]

#1 lore raw
Quoted 30 lines · Ross Zwisler

With this commit:

2a0788dc9bc4 x86: Use clflushopt in drm_clflush_virt_range

If clflushopt is available on the system, we use it instead of clflush in drm_clflush_virt_range. There were two calls to clflush in this function, but only one was changed to clflushopt. This patch changes the other clflush call to clflushopt.

---
 drivers/gpu/drm/drm_cache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_cache.c +1 -1
index 534cb89..041b73b 100644
@@ -138,7 +138,7 @@ drm_clflush_virt_range(char *addr, unsigned long length)
 		char *end = addr + length;
 		mb();
 		for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
-			clflush(addr);
+			clflushopt(addr);
 		clflushopt(end - 1);
 		mb();
 		return;
Signature · 1 line
1.7.10.4

Ping? :)

#2 lore raw

Hi

Quoted 25 lines · Ross Zwisler
Quoted 24 lines · Ross Zwisler

With this commit:

2a0788dc9bc4 x86: Use clflushopt in drm_clflush_virt_range

If clflushopt is available on the system, we use it instead of clflush in drm_clflush_virt_range. There were two calls to clflush in this function, but only one was changed to clflushopt. This patch changes the other clflush call to clflushopt.

---
 drivers/gpu/drm/drm_cache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_cache.c +0 -1
index 534cb89..041b73b 100644
@@ -138,7 +138,7 @@ drm_clflush_virt_range(char *addr, unsigned long length)
              char *end = addr + length;
              mb();
              for (; addr < end; addr += boot_cpu_data.x86_clflush_size)
-                     clflush(addr);
Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/drm_cache.c +1 -1
+                     clflushopt(addr);
              clflushopt(end - 1);
              mb();
              return;
--

1.7.10.4

Ping? :)

This was merged through -tip, right? The DRM tree does not include the initial patches, yet, so I'd recommend merging this through -tip again. I've put hpa on CC for that. However, I cannot see where the initial patch was sent to, so can you resent it properly to lkml, please? And please also put the respective maintainers on CC.

Thanks
David