mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
drm/i915: Drop wmb() inside pread_gtt
Inside pread, we only ever read from the GTT so the serialising wmb() instructions around the GGTT PTE updates are pointless. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190718145407.21352-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
bffb31f73b
commit
d45a4dd527
1 changed files with 0 additions and 3 deletions
|
@ -395,11 +395,9 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj,
|
||||||
unsigned page_length = PAGE_SIZE - page_offset;
|
unsigned page_length = PAGE_SIZE - page_offset;
|
||||||
page_length = remain < page_length ? remain : page_length;
|
page_length = remain < page_length ? remain : page_length;
|
||||||
if (node.allocated) {
|
if (node.allocated) {
|
||||||
wmb();
|
|
||||||
ggtt->vm.insert_page(&ggtt->vm,
|
ggtt->vm.insert_page(&ggtt->vm,
|
||||||
i915_gem_object_get_dma_address(obj, offset >> PAGE_SHIFT),
|
i915_gem_object_get_dma_address(obj, offset >> PAGE_SHIFT),
|
||||||
node.start, I915_CACHE_NONE, 0);
|
node.start, I915_CACHE_NONE, 0);
|
||||||
wmb();
|
|
||||||
} else {
|
} else {
|
||||||
page_base += offset & PAGE_MASK;
|
page_base += offset & PAGE_MASK;
|
||||||
}
|
}
|
||||||
|
@ -419,7 +417,6 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj,
|
||||||
out_unpin:
|
out_unpin:
|
||||||
mutex_lock(&i915->drm.struct_mutex);
|
mutex_lock(&i915->drm.struct_mutex);
|
||||||
if (node.allocated) {
|
if (node.allocated) {
|
||||||
wmb();
|
|
||||||
ggtt->vm.clear_range(&ggtt->vm, node.start, node.size);
|
ggtt->vm.clear_range(&ggtt->vm, node.start, node.size);
|
||||||
remove_mappable_node(&node);
|
remove_mappable_node(&node);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue