]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu:impl vgt_flush for VI(V5)
authorMonk Liu <Monk.Liu@amd.com>
Fri, 11 Nov 2016 10:25:49 +0000 (18:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2016 20:08:40 +0000 (15:08 -0500)
commit45682886bcd4a7d94a3281460c29a8a5c5438212
tree5c13f4cffd83375c1278ab826d4970a58f732476
parent79abf1add6e6b8fa9951cfb2122c08defa57fbd1
drm/amdgpu:impl vgt_flush for VI(V5)

when shadowing enabled, tesselation app will trigger
vm fault because below three tesselation registers:

VGT_TF_RING_SIZE__CI__VI,
VGT_HS_OFFCHIP_PARAM__CI__VI,
VGT_TF_MEMORY_BASE__CI__VI,

need to be programed after vgt-flush.

Tesselation picture vm fault disappeared after vgt-flush
introduced.

v2:implement vgt-flush for CI & SI.
v3:move vgt flush inside of cntx_cntrl
v4:count vgt flush in frame_size
v5:squash in typo fix

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c