Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9eb401af authored by Andreas Boll's avatar Andreas Boll Committed by Alex Deucher
Browse files

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: default avatarAndreas Boll <andreas.boll.dev@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 78cd3661
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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;
			if (rdev->accel_working) {
				if (rdev->new_fw)
					*value = 3;
				else
					*value = 2;
			} else {
				*value = 0;
			}
		} else {
			*value = rdev->accel_working;
		}