diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-03-02 20:07:40 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-03-02 20:57:03 -0500 |
commit | 8aa75009bca5e700e9236c8e066d2f943069c883 (patch) | |
tree | d2b7217036fd0928a0f32e9428d211a1a355f472 | |
parent | 9b91d18d20fbd3e907cee71d1acaba7943de887a (diff) |
drm/radeon/kms: cayman/evergreen cs checker updates
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen_cs.c | 20 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/evergreend.h | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/reg_srcs/cayman | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/reg_srcs/evergreen | 2 |
4 files changed, 30 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 5021bd2c1613..5e4f9f876d4f 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c | |||
@@ -479,8 +479,24 @@ static inline int evergreen_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u3 | |||
479 | case SQ_VSTMP_RING_ITEMSIZE: | 479 | case SQ_VSTMP_RING_ITEMSIZE: |
480 | case VGT_TF_RING_SIZE: | 480 | case VGT_TF_RING_SIZE: |
481 | /* get value to populate the IB don't remove */ | 481 | /* get value to populate the IB don't remove */ |
482 | tmp =radeon_get_ib_value(p, idx); | 482 | /*tmp =radeon_get_ib_value(p, idx); |
483 | ib[idx] = 0; | 483 | ib[idx] = 0;*/ |
484 | break; | ||
485 | case SQ_ESGS_RING_BASE: | ||
486 | case SQ_GSVS_RING_BASE: | ||
487 | case SQ_ESTMP_RING_BASE: | ||
488 | case SQ_GSTMP_RING_BASE: | ||
489 | case SQ_HSTMP_RING_BASE: | ||
490 | case SQ_LSTMP_RING_BASE: | ||
491 | case SQ_PSTMP_RING_BASE: | ||
492 | case SQ_VSTMP_RING_BASE: | ||
493 | r = evergreen_cs_packet_next_reloc(p, &reloc); | ||
494 | if (r) { | ||
495 | dev_warn(p->dev, "bad SET_CONTEXT_REG " | ||
496 | "0x%04X\n", reg); | ||
497 | return -EINVAL; | ||
498 | } | ||
499 | ib[idx] += (u32)((reloc->lobj.gpu_offset >> 8) & 0xffffffff); | ||
484 | break; | 500 | break; |
485 | case DB_DEPTH_CONTROL: | 501 | case DB_DEPTH_CONTROL: |
486 | track->db_depth_control = radeon_get_ib_value(p, idx); | 502 | track->db_depth_control = radeon_get_ib_value(p, idx); |
diff --git a/drivers/gpu/drm/radeon/evergreend.h b/drivers/gpu/drm/radeon/evergreend.h index 328f2a4d1962..21e839bd20e7 100644 --- a/drivers/gpu/drm/radeon/evergreend.h +++ b/drivers/gpu/drm/radeon/evergreend.h | |||
@@ -754,13 +754,21 @@ | |||
754 | 754 | ||
755 | #define SQ_CONST_MEM_BASE 0x8df8 | 755 | #define SQ_CONST_MEM_BASE 0x8df8 |
756 | 756 | ||
757 | #define SQ_ESGS_RING_BASE 0x8c40 | ||
757 | #define SQ_ESGS_RING_SIZE 0x8c44 | 758 | #define SQ_ESGS_RING_SIZE 0x8c44 |
759 | #define SQ_GSVS_RING_BASE 0x8c48 | ||
758 | #define SQ_GSVS_RING_SIZE 0x8c4c | 760 | #define SQ_GSVS_RING_SIZE 0x8c4c |
761 | #define SQ_ESTMP_RING_BASE 0x8c50 | ||
759 | #define SQ_ESTMP_RING_SIZE 0x8c54 | 762 | #define SQ_ESTMP_RING_SIZE 0x8c54 |
763 | #define SQ_GSTMP_RING_BASE 0x8c58 | ||
760 | #define SQ_GSTMP_RING_SIZE 0x8c5c | 764 | #define SQ_GSTMP_RING_SIZE 0x8c5c |
765 | #define SQ_VSTMP_RING_BASE 0x8c60 | ||
761 | #define SQ_VSTMP_RING_SIZE 0x8c64 | 766 | #define SQ_VSTMP_RING_SIZE 0x8c64 |
767 | #define SQ_PSTMP_RING_BASE 0x8c68 | ||
762 | #define SQ_PSTMP_RING_SIZE 0x8c6c | 768 | #define SQ_PSTMP_RING_SIZE 0x8c6c |
769 | #define SQ_LSTMP_RING_BASE 0x8e10 | ||
763 | #define SQ_LSTMP_RING_SIZE 0x8e14 | 770 | #define SQ_LSTMP_RING_SIZE 0x8e14 |
771 | #define SQ_HSTMP_RING_BASE 0x8e18 | ||
764 | #define SQ_HSTMP_RING_SIZE 0x8e1c | 772 | #define SQ_HSTMP_RING_SIZE 0x8e1c |
765 | #define VGT_TF_RING_SIZE 0x8988 | 773 | #define VGT_TF_RING_SIZE 0x8988 |
766 | 774 | ||
diff --git a/drivers/gpu/drm/radeon/reg_srcs/cayman b/drivers/gpu/drm/radeon/reg_srcs/cayman index 615a7ab20f72..6334f8ac1209 100644 --- a/drivers/gpu/drm/radeon/reg_srcs/cayman +++ b/drivers/gpu/drm/radeon/reg_srcs/cayman | |||
@@ -1,4 +1,5 @@ | |||
1 | cayman 0x9400 | 1 | cayman 0x9400 |
2 | 0x0000802C GRBM_GFX_INDEX | ||
2 | 0x000088B0 VGT_VTX_VECT_EJECT_REG | 3 | 0x000088B0 VGT_VTX_VECT_EJECT_REG |
3 | 0x000088C4 VGT_CACHE_INVALIDATION | 4 | 0x000088C4 VGT_CACHE_INVALIDATION |
4 | 0x000088D4 VGT_GS_VERTEX_REUSE | 5 | 0x000088D4 VGT_GS_VERTEX_REUSE |
@@ -205,6 +206,7 @@ cayman 0x9400 | |||
205 | 0x00028348 PA_SC_VPORT_ZMIN_15 | 206 | 0x00028348 PA_SC_VPORT_ZMIN_15 |
206 | 0x0002834C PA_SC_VPORT_ZMAX_15 | 207 | 0x0002834C PA_SC_VPORT_ZMAX_15 |
207 | 0x00028350 SX_MISC | 208 | 0x00028350 SX_MISC |
209 | 0x00028354 SX_SURFACE_SYNC | ||
208 | 0x00028380 SQ_VTX_SEMANTIC_0 | 210 | 0x00028380 SQ_VTX_SEMANTIC_0 |
209 | 0x00028384 SQ_VTX_SEMANTIC_1 | 211 | 0x00028384 SQ_VTX_SEMANTIC_1 |
210 | 0x00028388 SQ_VTX_SEMANTIC_2 | 212 | 0x00028388 SQ_VTX_SEMANTIC_2 |
diff --git a/drivers/gpu/drm/radeon/reg_srcs/evergreen b/drivers/gpu/drm/radeon/reg_srcs/evergreen index 9177f9191837..7e1637176e08 100644 --- a/drivers/gpu/drm/radeon/reg_srcs/evergreen +++ b/drivers/gpu/drm/radeon/reg_srcs/evergreen | |||
@@ -1,4 +1,5 @@ | |||
1 | evergreen 0x9400 | 1 | evergreen 0x9400 |
2 | 0x0000802C GRBM_GFX_INDEX | ||
2 | 0x00008040 WAIT_UNTIL | 3 | 0x00008040 WAIT_UNTIL |
3 | 0x00008044 WAIT_UNTIL_POLL_CNTL | 4 | 0x00008044 WAIT_UNTIL_POLL_CNTL |
4 | 0x00008048 WAIT_UNTIL_POLL_MASK | 5 | 0x00008048 WAIT_UNTIL_POLL_MASK |
@@ -220,6 +221,7 @@ evergreen 0x9400 | |||
220 | 0x00028348 PA_SC_VPORT_ZMIN_15 | 221 | 0x00028348 PA_SC_VPORT_ZMIN_15 |
221 | 0x0002834C PA_SC_VPORT_ZMAX_15 | 222 | 0x0002834C PA_SC_VPORT_ZMAX_15 |
222 | 0x00028350 SX_MISC | 223 | 0x00028350 SX_MISC |
224 | 0x00028354 SX_SURFACE_SYNC | ||
223 | 0x00028380 SQ_VTX_SEMANTIC_0 | 225 | 0x00028380 SQ_VTX_SEMANTIC_0 |
224 | 0x00028384 SQ_VTX_SEMANTIC_1 | 226 | 0x00028384 SQ_VTX_SEMANTIC_1 |
225 | 0x00028388 SQ_VTX_SEMANTIC_2 | 227 | 0x00028388 SQ_VTX_SEMANTIC_2 |