diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-02 16:06:59 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-02 16:12:09 +0000 |
commit | 866a61a2590f0c5ae6592a13d4e3de3e68f5e373 (patch) | |
tree | dd6a06c5e91e8ad8e42ff0b52d1c575c3db978b1 | |
parent | 1c653786895fc30be0e88455ce5f9caf9adc835d (diff) |
sna: Disable vmap on 965gm
The sampler just dies if it encounters a snoopable page, for no apparent
reason. Whilst I encountered the bug on Crestline, disable it for the
rest of gen4 just to be safe.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 1ec9fb4c..cc80278f 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -599,6 +599,8 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen) #if defined(USE_VMAP) if (!DBG_NO_VMAP) kgem->has_vmap = gem_param(kgem, I915_PARAM_HAS_VMAP) > 0; + if (gen == 40) + kgem->has_vmap = false; /* sampler dies with snoopable memory */ #endif DBG(("%s: using vmap=%d\n", __FUNCTION__, kgem->has_vmap)); |