Skip to content

Commit f229407

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
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 <[email protected]> Cc: [email protected] Reviewed-By: Grigori Goronzy <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b6c2b4f commit f229407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/radeon/radeon_semaphore.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
int radeon_semaphore_create(struct radeon_device *rdev,
3535
struct radeon_semaphore **semaphore)
3636
{
37-
uint32_t *cpu_addr;
37+
uint64_t *cpu_addr;
3838
int i, r;
3939

4040
*semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL);

0 commit comments

Comments
 (0)