Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85ccc35b authored by Chris Wilson's avatar Chris Wilson
Browse files

agp/intel: Restore valid PTE bit for Sandybridge after bdd30729



In cleaning up the mask functions in bdd30729, the setting of the PTE
valid bit was dropped for Sandybridge.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 878a3c37
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1211,13 +1211,13 @@ static void gen6_write_entry(dma_addr_t addr, unsigned int entry,
	u32 pte_flags;

	if (type_mask == AGP_USER_UNCACHED_MEMORY)
		pte_flags = GEN6_PTE_UNCACHED;
		pte_flags = GEN6_PTE_UNCACHED | I810_PTE_VALID;
	else if (type_mask == AGP_USER_CACHED_MEMORY_LLC_MLC) {
		pte_flags = GEN6_PTE_LLC;
		pte_flags = GEN6_PTE_LLC | I810_PTE_VALID;
		if (gfdt)
			pte_flags |= GEN6_PTE_GFDT;
	} else { /* set 'normal'/'cached' to LLC by default */
		pte_flags = GEN6_PTE_LLC_MLC;
		pte_flags = GEN6_PTE_LLC_MLC | I810_PTE_VALID;
		if (gfdt)
			pte_flags |= GEN6_PTE_GFDT;
	}