diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 6c328115e66c..6ca20d7bf626 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -811,7 +811,7 @@ u32 r100_get_vblank_counter(struct radeon_device *rdev, int crtc) | |||
811 | void r100_fence_ring_emit(struct radeon_device *rdev, | 811 | void r100_fence_ring_emit(struct radeon_device *rdev, |
812 | struct radeon_fence *fence) | 812 | struct radeon_fence *fence) |
813 | { | 813 | { |
814 | struct radeon_cp *cp = &rdev->cp; | 814 | struct radeon_cp *cp = &rdev->cp[fence->ring]; |
815 | 815 | ||
816 | /* We have to make sure that caches are flushed before | 816 | /* We have to make sure that caches are flushed before |
817 | * CPU might read something from VRAM. */ | 817 | * CPU might read something from VRAM. */ |
@@ -849,7 +849,7 @@ int r100_copy_blit(struct radeon_device *rdev, | |||
849 | unsigned num_gpu_pages, | 849 | unsigned num_gpu_pages, |
850 | struct radeon_fence *fence) | 850 | struct radeon_fence *fence) |
851 | { | 851 | { |
852 | struct radeon_cp *cp = &rdev->cp; | 852 | struct radeon_cp *cp = &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]; |
853 | uint32_t cur_pages; | 853 | uint32_t cur_pages; |
854 | uint32_t stride_bytes = RADEON_GPU_PAGE_SIZE; | 854 | uint32_t stride_bytes = RADEON_GPU_PAGE_SIZE; |
855 | uint32_t pitch; | 855 | uint32_t pitch; |
@@ -934,7 +934,7 @@ static int r100_cp_wait_for_idle(struct radeon_device *rdev) | |||
934 | 934 | ||
935 | void r100_ring_start(struct radeon_device *rdev) | 935 | void r100_ring_start(struct radeon_device *rdev) |
936 | { | 936 | { |
937 | struct radeon_cp *cp = &rdev->cp; | 937 | struct radeon_cp *cp = &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]; |
938 | int r; | 938 | int r; |
939 | 939 | ||
940 | r = radeon_ring_lock(rdev, cp, 2); | 940 | r = radeon_ring_lock(rdev, cp, 2); |
@@ -1048,7 +1048,7 @@ static void r100_cp_load_microcode(struct radeon_device *rdev) | |||
1048 | 1048 | ||
1049 | int r100_cp_init(struct radeon_device *rdev, unsigned ring_size) | 1049 | int r100_cp_init(struct radeon_device *rdev, unsigned ring_size) |
1050 | { | 1050 | { |
1051 | struct radeon_cp *cp = &rdev->cp; | 1051 | struct radeon_cp *cp = &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]; |
1052 | unsigned rb_bufsz; | 1052 | unsigned rb_bufsz; |
1053 | unsigned rb_blksz; | 1053 | unsigned rb_blksz; |
1054 | unsigned max_fetch; | 1054 | unsigned max_fetch; |
@@ -1162,7 +1162,7 @@ void r100_cp_fini(struct radeon_device *rdev) | |||
1162 | } | 1162 | } |
1163 | /* Disable ring */ | 1163 | /* Disable ring */ |
1164 | r100_cp_disable(rdev); | 1164 | r100_cp_disable(rdev); |
1165 | radeon_ring_fini(rdev, &rdev->cp); | 1165 | radeon_ring_fini(rdev, &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]); |
1166 | DRM_INFO("radeon: cp finalized\n"); | 1166 | DRM_INFO("radeon: cp finalized\n"); |
1167 | } | 1167 | } |
1168 | 1168 | ||
@@ -1170,7 +1170,7 @@ void r100_cp_disable(struct radeon_device *rdev) | |||
1170 | { | 1170 | { |
1171 | /* Disable ring */ | 1171 | /* Disable ring */ |
1172 | radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); | 1172 | radeon_ttm_set_active_vram_size(rdev, rdev->mc.visible_vram_size); |
1173 | rdev->cp.ready = false; | 1173 | rdev->cp[RADEON_RING_TYPE_GFX_INDEX].ready = false; |
1174 | WREG32(RADEON_CP_CSQ_MODE, 0); | 1174 | WREG32(RADEON_CP_CSQ_MODE, 0); |
1175 | WREG32(RADEON_CP_CSQ_CNTL, 0); | 1175 | WREG32(RADEON_CP_CSQ_CNTL, 0); |
1176 | WREG32(R_000770_SCRATCH_UMSK, 0); | 1176 | WREG32(R_000770_SCRATCH_UMSK, 0); |
@@ -2587,7 +2587,7 @@ static int r100_debugfs_cp_ring_info(struct seq_file *m, void *data) | |||
2587 | struct drm_info_node *node = (struct drm_info_node *) m->private; | 2587 | struct drm_info_node *node = (struct drm_info_node *) m->private; |
2588 | struct drm_device *dev = node->minor->dev; | 2588 | struct drm_device *dev = node->minor->dev; |
2589 | struct radeon_device *rdev = dev->dev_private; | 2589 | struct radeon_device *rdev = dev->dev_private; |
2590 | struct radeon_cp *cp = &rdev->cp; | 2590 | struct radeon_cp *cp = &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]; |
2591 | uint32_t rdp, wdp; | 2591 | uint32_t rdp, wdp; |
2592 | unsigned count, i, j; | 2592 | unsigned count, i, j; |
2593 | 2593 | ||
@@ -3686,7 +3686,7 @@ int r100_ring_test(struct radeon_device *rdev, struct radeon_cp *cp) | |||
3686 | 3686 | ||
3687 | void r100_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib) | 3687 | void r100_ring_ib_execute(struct radeon_device *rdev, struct radeon_ib *ib) |
3688 | { | 3688 | { |
3689 | struct radeon_cp *cp = &rdev->cp; | 3689 | struct radeon_cp *cp = &rdev->cp[RADEON_RING_TYPE_GFX_INDEX]; |
3690 | 3690 | ||
3691 | radeon_ring_write(cp, PACKET0(RADEON_CP_IB_BASE, 1)); | 3691 | radeon_ring_write(cp, PACKET0(RADEON_CP_IB_BASE, 1)); |
3692 | radeon_ring_write(cp, ib->gpu_addr); | 3692 | radeon_ring_write(cp, ib->gpu_addr); |
@@ -3778,7 +3778,7 @@ void r100_mc_stop(struct radeon_device *rdev, struct r100_mc_save *save) | |||
3778 | /* Shutdown CP we shouldn't need to do that but better be safe than | 3778 | /* Shutdown CP we shouldn't need to do that but better be safe than |
3779 | * sorry | 3779 | * sorry |
3780 | */ | 3780 | */ |
3781 | rdev->cp.ready = false; | 3781 | rdev->cp[RADEON_RING_TYPE_GFX_INDEX].ready = false; |
3782 | WREG32(R_000740_CP_CSQ_CNTL, 0); | 3782 | WREG32(R_000740_CP_CSQ_CNTL, 0); |
3783 | 3783 | ||
3784 | /* Save few CRTC registers */ | 3784 | /* Save few CRTC registers */ |