aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rv770.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-10-18 05:54:30 -0400
committerDave Airlie <airlied@redhat.com>2011-10-18 05:54:30 -0400
commit017ed8012e74ca15748863f45d2c078453026a0a (patch)
tree7071171a06de4e93fc890e0afce5c23596a26619 /drivers/gpu/drm/radeon/rv770.c
parent80d9b24a658c83602aea66e45e2347c5bb3cbd47 (diff)
parent899e3ee404961a90b828ad527573aaaac39f0ab1 (diff)
Merge tag 'v3.1-rc10' into drm-core-next
There are a number of fixes in mainline required for code in -next, also there was a few conflicts I'd rather resolve myself. Signed-off-by: Dave Airlie <airlied@redhat.com> Conflicts: drivers/gpu/drm/radeon/evergreen.c drivers/gpu/drm/radeon/r600.c drivers/gpu/drm/radeon/radeon_asic.h
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770.c')
-rw-r--r--drivers/gpu/drm/radeon/rv770.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c
index 298feaec6d56..87cc1feee3ac 100644
--- a/drivers/gpu/drm/radeon/rv770.c
+++ b/drivers/gpu/drm/radeon/rv770.c
@@ -539,55 +539,6 @@ static u32 r700_get_tile_pipe_to_backend_map(struct radeon_device *rdev,
539 return backend_map; 539 return backend_map;
540} 540}
541 541
542static void rv770_program_channel_remap(struct radeon_device *rdev)
543{
544 u32 tcp_chan_steer, mc_shared_chremap, tmp;
545 bool force_no_swizzle;
546
547 switch (rdev->family) {
548 case CHIP_RV770:
549 case CHIP_RV730:
550 force_no_swizzle = false;
551 break;
552 case CHIP_RV710:
553 case CHIP_RV740:
554 default:
555 force_no_swizzle = true;
556 break;
557 }
558
559 tmp = RREG32(MC_SHARED_CHMAP);
560 switch ((tmp & NOOFCHAN_MASK) >> NOOFCHAN_SHIFT) {
561 case 0:
562 case 1:
563 default:
564 /* default mapping */
565 mc_shared_chremap = 0x00fac688;
566 break;
567 case 2:
568 case 3:
569 if (force_no_swizzle)
570 mc_shared_chremap = 0x00fac688;
571 else
572 mc_shared_chremap = 0x00bbc298;
573 break;
574 }
575
576 if (rdev->family == CHIP_RV740)
577 tcp_chan_steer = 0x00ef2a60;
578 else
579 tcp_chan_steer = 0x00fac688;
580
581 /* RV770 CE has special chremap setup */
582 if (rdev->pdev->device == 0x944e) {
583 tcp_chan_steer = 0x00b08b08;
584 mc_shared_chremap = 0x00b08b08;
585 }
586
587 WREG32(TCP_CHAN_STEER, tcp_chan_steer);
588 WREG32(MC_SHARED_CHREMAP, mc_shared_chremap);
589}
590
591static void rv770_gpu_init(struct radeon_device *rdev) 542static void rv770_gpu_init(struct radeon_device *rdev)
592{ 543{
593 int i, j, num_qd_pipes; 544 int i, j, num_qd_pipes;
@@ -788,8 +739,6 @@ static void rv770_gpu_init(struct radeon_device *rdev)
788 WREG32(DCP_TILING_CONFIG, (gb_tiling_config & 0xffff)); 739 WREG32(DCP_TILING_CONFIG, (gb_tiling_config & 0xffff));
789 WREG32(HDP_TILING_CONFIG, (gb_tiling_config & 0xffff)); 740 WREG32(HDP_TILING_CONFIG, (gb_tiling_config & 0xffff));
790 741
791 rv770_program_channel_remap(rdev);
792
793 WREG32(CC_RB_BACKEND_DISABLE, cc_rb_backend_disable); 742 WREG32(CC_RB_BACKEND_DISABLE, cc_rb_backend_disable);
794 WREG32(CC_GC_SHADER_PIPE_CONFIG, cc_gc_shader_pipe_config); 743 WREG32(CC_GC_SHADER_PIPE_CONFIG, cc_gc_shader_pipe_config);
795 WREG32(GC_USER_SHADER_PIPE_CONFIG, cc_gc_shader_pipe_config); 744 WREG32(GC_USER_SHADER_PIPE_CONFIG, cc_gc_shader_pipe_config);