[Intel-gfx] [PATCH 14/25] agp/intel: always use uncached mappings on VLV
Daniel Vetter
daniel at ffwll.ch
Wed Mar 21 22:09:18 CET 2012
On Wed, Mar 21, 2012 at 12:48:35PM -0700, Jesse Barnes wrote:
> Until the snoopable ones are debugged.
>
> Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> ---
> drivers/char/agp/intel-gtt.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
> index 8d5bef3..25911a1 100644
> --- a/drivers/char/agp/intel-gtt.c
> +++ b/drivers/char/agp/intel-gtt.c
> @@ -1186,8 +1186,7 @@ static void valleyview_write_entry(dma_addr_t addr, unsigned int entry,
> unsigned int gfdt = flags & AGP_USER_CACHED_MEMORY_GFDT;
> u32 pte_flags;
>
> - if (type_mask == AGP_USER_MEMORY)
> - pte_flags = GEN6_PTE_UNCACHED | I810_PTE_VALID;
> + pte_flags = GEN6_PTE_UNCACHED | I810_PTE_VALID;
Squash this with the previous one. Even for the snb we'll never see
AGP_USER_MEMORY because only the ums driver ever used this. Before gem.
And I think even then you need to dig out pretty old userspace to actually
see it.
-Daniel
>
> /* gen6 has bit11-4 for physical addr bit39-32 */
> addr |= (addr >> 28) & 0xff0;
> --
> 1.7.5.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48
More information about the Intel-gfx
mailing list