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:
aa2bdb2
)
drm/amdgpu: always emit GDS switch
author
Christian König
<
[email protected]
>
Mon, 11 May 2015 11:52:09 +0000
(13:52 +0200)
committer
Alex Deucher
<
[email protected]
>
Thu, 4 Jun 2015 01:03:31 +0000
(21:03 -0400)
Otherwise a process can access the GDS data of another process.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Reviewed-by: Jammy Zhou <
[email protected]
>
Reviewed-by: Monk Liu <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index a83ff03ffc80dea347baaf5c23eb52e50c6b4585..f2442b2cec00dfcba232bd6999e9e4d97431619e 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@
-179,7
+179,7
@@
int amdgpu_ib_schedule(struct amdgpu_device *adev, unsigned num_ibs,
amdgpu_vm_flush(ring, vm, ib->sync.last_vm_update);
}
- if (
ring->funcs->emit_gds_switch && ib->vm && (ib->flags & AMDGPU_IB_FLAG_GDS)
)
+ if (
vm && ring->funcs->emit_gds_switch
)
amdgpu_ring_emit_gds_switch(ring, ib->vm->ids[ring->idx].id,
ib->gds_base, ib->gds_size,
ib->gws_base, ib->gws_size,