projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a7918
)
drm/i915: Only apply legacy PDE overflow detection to 3lvl machines
author
Chris Wilson
<
[email protected]
>
Fri, 17 Feb 2017 14:14:55 +0000
(14:14 +0000)
committer
Chris Wilson
<
[email protected]
>
Mon, 20 Feb 2017 09:42:59 +0000
(09:42 +0000)
Prevent the overflow check from firing on machines with the full 4lvl
page tables, that are not restricted to GEN8_LEGACY_PDES.
v2: Also fix the off-by-one in the compare
Fixes: 894ccebee2b0 ("drm/i915: Micro-optimise gen8_ppgtt_insert_entries()")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Mika Kuoppala <
[email protected]
>
Cc: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Mika Kuoppala <
[email protected]
>
drivers/gpu/drm/i915/i915_gem_gtt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_gtt.c
b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 47a38272f54c36f558c7ef304c542df2996e28b2..a5162cbc0ea022ffaac9f9236f4ada938601ad4f 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/
drivers/gpu/drm/i915/i915_gem_gtt.c
@@
-854,7
+854,8
@@
gen8_ppgtt_insert_pte_entries(struct i915_hw_ppgtt *ppgtt,
break;
}
- GEM_BUG_ON(pdpe > GEN8_LEGACY_PDPES);
+ GEM_BUG_ON(!i915_vm_is_48bit(&ppgtt->base) &&
+ pdpe >= GEN8_LEGACY_PDPES);
pd = pdp->page_directory[pdpe];
pde = 0;
}