Skip to contentSkip to conversation

Patch "agp/intel: Flush chipset writes after updating a single PTE" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Nov 17, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

agp/intel: Flush chipset writes after updating a single PTE

to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
agp-intel-flush-chipset-writes-after-updating-a-single-pte.patch
and it can be found in the queue-4.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 3497971a71d8b15a41b7bf2bf66ebf5909b2bd3f Mon Sep 17 00:00:00 2001

From: Chris Wilson <[email protected]>
Date: Thu, 18 Aug 2016 17:16:41 +0100
Subject: agp/intel: Flush chipset writes after updating a single PTE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Chris Wilson <[email protected]>

commit 3497971a71d8b15a41b7bf2bf66ebf5909b2bd3f upstream.

After we update one PTE for a page, the caller expects to be able to immediately use that through a GGTT read/write. To comply with the callers expectations we therefore need to flush the chipset buffers before returning.

---
 drivers/char/agp/intel-gtt.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/char/agp/intel-gtt.c +2 -0
@@ -845,6 +845,8 @@ void intel_gtt_insert_page(dma_addr_t ad
 			   unsigned int flags)
 {
 	intel_private.driver->write_entry(addr, pg, flags);
+	if (intel_private.driver->chipset_flush)
+		intel_private.driver->chipset_flush();
 }
 EXPORT_SYMBOL(intel_gtt_insert_page);
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.8/agp-intel-flush-chipset-writes-after-updating-a-single-pte.patch