All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Boll <andreas.boll.dev@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>,
	Andreas Boll <andreas.boll.dev@gmail.com>,
	stable@vger.kernel.org
Subject: [PATCH 2/4] drm/radeon: tweak ACCEL_WORKING2 query for hawaii
Date: Fri,  1 Aug 2014 20:05:30 +0200	[thread overview]
Message-ID: <1406916332-4195-2-git-send-email-andreas.boll.dev@gmail.com> (raw)
In-Reply-To: <1406916332-4195-1-git-send-email-andreas.boll.dev@gmail.com>

From: Alex Deucher <alexander.deucher@amd.com>

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
---
 drivers/gpu/drm/radeon/radeon_kms.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c
index d25ae6a..c1a206d 100644
--- a/drivers/gpu/drm/radeon/radeon_kms.c
+++ b/drivers/gpu/drm/radeon/radeon_kms.c
@@ -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)
-- 
2.0.1

  reply	other threads:[~2014-08-01 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 18:05 [PATCH 1/4] drm/radeon: use packet2 for nop on hawaii with old firmware Andreas Boll
2014-08-01 18:05 ` Andreas Boll [this message]
2014-08-01 18:05 ` [PATCH 3/4] drm/radeon: use packet3 for nop on hawaii with new firmware Andreas Boll
2014-08-01 18:05 ` [PATCH 4/4] drm/radeon: tweak ACCEL_WORKING2 query for the new firmware for hawaii Andreas Boll
2014-08-04 18:42 ` [PATCH 1/4] drm/radeon: use packet2 for nop on hawaii with old firmware Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406916332-4195-2-git-send-email-andreas.boll.dev@gmail.com \
    --to=andreas.boll.dev@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.