mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
drm/radeon: tweak ACCEL_WORKING2 query for the new firmware for hawaii
Adjust the previous tweak for hawaii to return 3 if the new firmware is used. Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
78cd3661fe
commit
9eb401af05
1 changed files with 7 additions and 3 deletions
|
@ -255,10 +255,14 @@ static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file
|
|||
break;
|
||||
case RADEON_INFO_ACCEL_WORKING2:
|
||||
if (rdev->family == CHIP_HAWAII) {
|
||||
if (rdev->accel_working)
|
||||
*value = 2;
|
||||
else
|
||||
if (rdev->accel_working) {
|
||||
if (rdev->new_fw)
|
||||
*value = 3;
|
||||
else
|
||||
*value = 2;
|
||||
} else {
|
||||
*value = 0;
|
||||
}
|
||||
} else {
|
||||
*value = rdev->accel_working;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue