rs690.c (e199e6136ce6b151e6638ae93dca60748424d900) | rs690.c (724c80e1d630296d1324859e964d80d35007d83c) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 601 unchanged lines hidden (view full) --- 610 rv515_clock_startup(rdev); 611 /* Initialize GPU configuration (# pipes, ...) */ 612 rs690_gpu_init(rdev); 613 /* Initialize GART (initialize after TTM so we can allocate 614 * memory through TTM but finalize after TTM) */ 615 r = rs400_gart_enable(rdev); 616 if (r) 617 return r; | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 601 unchanged lines hidden (view full) --- 610 rv515_clock_startup(rdev); 611 /* Initialize GPU configuration (# pipes, ...) */ 612 rs690_gpu_init(rdev); 613 /* Initialize GART (initialize after TTM so we can allocate 614 * memory through TTM but finalize after TTM) */ 615 r = rs400_gart_enable(rdev); 616 if (r) 617 return r; |
618 619 /* allocate wb buffer */ 620 r = radeon_wb_init(rdev); 621 if (r) 622 return r; 623 |
|
618 /* Enable IRQ */ 619 rs600_irq_set(rdev); 620 rdev->config.r300.hdp_cntl = RREG32(RADEON_HOST_PATH_CNTL); 621 /* 1M ring buffer */ 622 r = r100_cp_init(rdev, 1024 * 1024); 623 if (r) { 624 dev_err(rdev->dev, "failled initializing CP (%d).\n", r); 625 return r; 626 } | 624 /* Enable IRQ */ 625 rs600_irq_set(rdev); 626 rdev->config.r300.hdp_cntl = RREG32(RADEON_HOST_PATH_CNTL); 627 /* 1M ring buffer */ 628 r = r100_cp_init(rdev, 1024 * 1024); 629 if (r) { 630 dev_err(rdev->dev, "failled initializing CP (%d).\n", r); 631 return r; 632 } |
627 r = r100_wb_init(rdev); 628 if (r) 629 dev_err(rdev->dev, "failled initializing WB (%d).\n", r); | |
630 r = r100_ib_init(rdev); 631 if (r) { 632 dev_err(rdev->dev, "failled initializing IB (%d).\n", r); 633 return r; 634 } 635 636 r = r600_audio_init(rdev); 637 if (r) { --- 24 unchanged lines hidden (view full) --- 662 radeon_surface_init(rdev); 663 return rs690_startup(rdev); 664} 665 666int rs690_suspend(struct radeon_device *rdev) 667{ 668 r600_audio_fini(rdev); 669 r100_cp_disable(rdev); | 633 r = r100_ib_init(rdev); 634 if (r) { 635 dev_err(rdev->dev, "failled initializing IB (%d).\n", r); 636 return r; 637 } 638 639 r = r600_audio_init(rdev); 640 if (r) { --- 24 unchanged lines hidden (view full) --- 665 radeon_surface_init(rdev); 666 return rs690_startup(rdev); 667} 668 669int rs690_suspend(struct radeon_device *rdev) 670{ 671 r600_audio_fini(rdev); 672 r100_cp_disable(rdev); |
670 r100_wb_disable(rdev); | 673 radeon_wb_disable(rdev); |
671 rs600_irq_disable(rdev); 672 rs400_gart_disable(rdev); 673 return 0; 674} 675 676void rs690_fini(struct radeon_device *rdev) 677{ 678 r600_audio_fini(rdev); 679 r100_cp_fini(rdev); | 674 rs600_irq_disable(rdev); 675 rs400_gart_disable(rdev); 676 return 0; 677} 678 679void rs690_fini(struct radeon_device *rdev) 680{ 681 r600_audio_fini(rdev); 682 r100_cp_fini(rdev); |
680 r100_wb_fini(rdev); | 683 radeon_wb_fini(rdev); |
681 r100_ib_fini(rdev); 682 radeon_gem_fini(rdev); 683 rs400_gart_fini(rdev); 684 radeon_irq_kms_fini(rdev); 685 radeon_fence_driver_fini(rdev); 686 radeon_bo_fini(rdev); 687 radeon_atombios_fini(rdev); 688 kfree(rdev->bios); --- 58 unchanged lines hidden (view full) --- 747 return r; 748 rs600_set_safe_registers(rdev); 749 rdev->accel_working = true; 750 r = rs690_startup(rdev); 751 if (r) { 752 /* Somethings want wront with the accel init stop accel */ 753 dev_err(rdev->dev, "Disabling GPU acceleration\n"); 754 r100_cp_fini(rdev); | 684 r100_ib_fini(rdev); 685 radeon_gem_fini(rdev); 686 rs400_gart_fini(rdev); 687 radeon_irq_kms_fini(rdev); 688 radeon_fence_driver_fini(rdev); 689 radeon_bo_fini(rdev); 690 radeon_atombios_fini(rdev); 691 kfree(rdev->bios); --- 58 unchanged lines hidden (view full) --- 750 return r; 751 rs600_set_safe_registers(rdev); 752 rdev->accel_working = true; 753 r = rs690_startup(rdev); 754 if (r) { 755 /* Somethings want wront with the accel init stop accel */ 756 dev_err(rdev->dev, "Disabling GPU acceleration\n"); 757 r100_cp_fini(rdev); |
755 r100_wb_fini(rdev); | 758 radeon_wb_fini(rdev); |
756 r100_ib_fini(rdev); 757 rs400_gart_fini(rdev); 758 radeon_irq_kms_fini(rdev); 759 rdev->accel_working = false; 760 } 761 return 0; 762} | 759 r100_ib_fini(rdev); 760 rs400_gart_fini(rdev); 761 radeon_irq_kms_fini(rdev); 762 rdev->accel_working = false; 763 } 764 return 0; 765} |