OSDN Git Service

drm/radeon: preallocate mem for UVD create/destroy msg
authorChristian König <christian.koenig@amd.com>
Fri, 22 Aug 2014 12:25:55 +0000 (14:25 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Aug 2014 02:46:23 +0000 (22:46 -0400)
commitfeba9b0bcf492ba991d7fbfc211dd49ebbc95a4b
treeef2896a8e05be32c2d62911da795dc5106f17030
parent3852752ca89ca00aa13f12a9b9450fd97ff437d4
drm/radeon: preallocate mem for UVD create/destroy msg

llocating memory for UVD create and destroy messages can fail, which is
rather annoying when this happens in the middle of a GPU reset. Try to
avoid this condition by preallocating a page for those dummy messages.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_uvd.c