drm/amd/display: Poll for GPUVM context ready (v2)
authorJulian Parkin <julian.parkin@amd.com>
Thu, 13 Jun 2019 16:49:37 +0000 (12:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:09 +0000 (14:18 -0500)
commit24253476977af5456af962bbaaf53e9f1dae5cc1
treeea76b688c2f35f40a80ee632618256ed4a772b39
parent88eac241a1fc500ce5274a09ddc4bd5fc2b5adb6
drm/amd/display: Poll for GPUVM context ready (v2)

[Why]
Hardware docs state that we must wait until the GPUVM context is ready
after programming it.

[How]
Poll until the valid bit of PAGE_TABLE_BASE_ADDR_LO32 is set to 1 after
programming it.

v2: fix include for udelay (Alex)

Signed-off-by: Julian Parkin <julian.parkin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c