From: Christian König Date: Sun, 7 Sep 2014 10:06:52 +0000 (+0200) Subject: drm/radeon: fix semaphore value init X-Git-Tag: v3.17-rc5~23^2~4^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f229407da79315c18a2f25f485e1a1b9fdda1e92;p=platform%2Fkernel%2Flinux-exynos.git drm/radeon: fix semaphore value init Semaphore values have 64 bits, not 32. This fixes a very subtle bug that disables synchronization when the upper 32bits wasn't zero. Signed-off-by: Christian König Cc: stable@vger.kernel.org Reviewed-By: Grigori Goronzy Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_semaphore.c b/drivers/gpu/drm/radeon/radeon_semaphore.c index 56d9fd6..abd6753 100644 --- a/drivers/gpu/drm/radeon/radeon_semaphore.c +++ b/drivers/gpu/drm/radeon/radeon_semaphore.c @@ -34,7 +34,7 @@ int radeon_semaphore_create(struct radeon_device *rdev, struct radeon_semaphore **semaphore) { - uint32_t *cpu_addr; + uint64_t *cpu_addr; int i, r; *semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL);