All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: airlied@gmail.com, dri-devel@lists.freedesktop.org
Subject: [PATCH 06/15] drm/radeon/kms: add support for cayman irqs
Date: Wed,  2 Mar 2011 20:07:32 -0500	[thread overview]
Message-ID: <1299114461-4289-6-git-send-email-alexdeucher@gmail.com> (raw)
In-Reply-To: <1299114461-4289-1-git-send-email-alexdeucher@gmail.com>

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
---
 drivers/gpu/drm/radeon/r600.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c
index 36efc45..88eaffc 100644
--- a/drivers/gpu/drm/radeon/r600.c
+++ b/drivers/gpu/drm/radeon/r600.c
@@ -47,6 +47,7 @@
 #define EVERGREEN_PFP_UCODE_SIZE 1120
 #define EVERGREEN_PM4_UCODE_SIZE 1376
 #define EVERGREEN_RLC_UCODE_SIZE 768
+#define CAYMAN_RLC_UCODE_SIZE 1024
 
 /* Firmware Names */
 MODULE_FIRMWARE("radeon/R600_pfp.bin");
@@ -2817,13 +2818,20 @@ static int r600_rlc_init(struct radeon_device *rdev)
 	WREG32(RLC_HB_CNTL, 0);
 	WREG32(RLC_HB_RPTR, 0);
 	WREG32(RLC_HB_WPTR, 0);
-	WREG32(RLC_HB_WPTR_LSB_ADDR, 0);
-	WREG32(RLC_HB_WPTR_MSB_ADDR, 0);
+	if (rdev->family <= CHIP_CAICOS) {
+		WREG32(RLC_HB_WPTR_LSB_ADDR, 0);
+		WREG32(RLC_HB_WPTR_MSB_ADDR, 0);
+	}
 	WREG32(RLC_MC_CNTL, 0);
 	WREG32(RLC_UCODE_CNTL, 0);
 
 	fw_data = (const __be32 *)rdev->rlc_fw->data;
-	if (rdev->family >= CHIP_CEDAR) {
+	if (rdev->family >= CHIP_CAYMAN) {
+		for (i = 0; i < CAYMAN_RLC_UCODE_SIZE; i++) {
+			WREG32(RLC_UCODE_ADDR, i);
+			WREG32(RLC_UCODE_DATA, be32_to_cpup(fw_data++));
+		}
+	} else if (rdev->family >= CHIP_CEDAR) {
 		for (i = 0; i < EVERGREEN_RLC_UCODE_SIZE; i++) {
 			WREG32(RLC_UCODE_ADDR, i);
 			WREG32(RLC_UCODE_DATA, be32_to_cpup(fw_data++));
-- 
1.7.1.1

  parent reply	other threads:[~2011-03-03  1:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  1:07 [PATCH 01/15] drm/radeon/kms: add cayman chip family Alex Deucher
2011-03-03  1:07 ` [PATCH 02/15] drm/radeon/kms: add ucode loader for cayman Alex Deucher
2011-03-03  1:07 ` [PATCH 03/15] drm/radeon/kms: add gpu_init function " Alex Deucher
2011-03-03  1:07 ` [PATCH 04/15] drm/radeon/kms: add support for cayman gart setup Alex Deucher
2011-03-03  1:07 ` [PATCH 05/15] drm/radeon/kms: add support for CP setup on cayman asics Alex Deucher
2011-03-03  1:07 ` Alex Deucher [this message]
2011-03-03  1:07 ` [PATCH 07/15] drm/radeon/kms: add cayman asic reset support Alex Deucher
2011-03-03  1:07 ` [PATCH 08/15] drm/radeon/kms/cayman: add asic init/startup/fini/suspend/resume functions Alex Deucher
2011-03-03  1:07 ` [PATCH 09/15] drm/radeon/kms: add cayman safe regs Alex Deucher
2011-03-03  1:07 ` [PATCH 10/15] drm/radeon/kms: add radeon_asic entry for cayman Alex Deucher
2011-03-03  1:07 ` [PATCH 11/15] drm/radeon/kms: add cayman CS check support Alex Deucher
2011-03-03  1:07 ` [PATCH 12/15] drm/radeon/kms: additional default context regs for cayman Alex Deucher
2011-03-03  1:07 ` [PATCH 13/15] drm/radeon/kms/cayman: always set certain VGT regs at CP init Alex Deucher
2011-03-03  1:07 ` [PATCH 14/15] drm/radeon/kms: cayman/evergreen cs checker updates Alex Deucher
2011-03-03  1:07 ` [PATCH 15/15] drm/radeon/kms: add cayman pci ids 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=1299114461-4289-6-git-send-email-alexdeucher@gmail.com \
    --to=alexdeucher@gmail.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.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.