Skip to content

Commit

Permalink
drm/radeon: tweak ACCEL_WORKING2 query for hawaii
Browse files Browse the repository at this point in the history
Return 2 so we can be sure the kernel has the necessary
changes for acceleration to work.

Note: This patch depends on these two commits:
 - drm/radeon: fix cut and paste issue for hawaii.
 - drm/radeon: use packet2 for nop on hawaii with old firmware

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Alex Deucher committed Aug 5, 2014
1 parent 0e16e4c commit 3c64bd2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/gpu/drm/radeon/radeon_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,14 @@ static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file
}
break;
case RADEON_INFO_ACCEL_WORKING2:
*value = rdev->accel_working;
if (rdev->family == CHIP_HAWAII) {
if (rdev->accel_working)
*value = 2;
else
*value = 0;
} else {
*value = rdev->accel_working;
}
break;
case RADEON_INFO_TILING_CONFIG:
if (rdev->family >= CHIP_BONAIRE)
Expand Down

0 comments on commit 3c64bd2

Please sign in to comment.