rs690.c (e1a0bdd8022317e98650e70850de73eccfcde5ad) | rs690.c (655efd3dc92cd0d37292157178d33deb0430aeaa) |
---|---|
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 --- 662 unchanged lines hidden (view full) --- 671 r100_wb_disable(rdev); 672 rs600_irq_disable(rdev); 673 rs400_gart_disable(rdev); 674 return 0; 675} 676 677void rs690_fini(struct radeon_device *rdev) 678{ | 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 --- 662 unchanged lines hidden (view full) --- 671 r100_wb_disable(rdev); 672 rs600_irq_disable(rdev); 673 rs400_gart_disable(rdev); 674 return 0; 675} 676 677void rs690_fini(struct radeon_device *rdev) 678{ |
679 rs690_suspend(rdev); | |
680 r100_cp_fini(rdev); 681 r100_wb_fini(rdev); 682 r100_ib_fini(rdev); 683 radeon_gem_fini(rdev); 684 rs400_gart_fini(rdev); 685 radeon_irq_kms_fini(rdev); 686 radeon_fence_driver_fini(rdev); 687 radeon_bo_fini(rdev); --- 63 unchanged lines hidden (view full) --- 751 if (r) 752 return r; 753 rs600_set_safe_registers(rdev); 754 rdev->accel_working = true; 755 r = rs690_startup(rdev); 756 if (r) { 757 /* Somethings want wront with the accel init stop accel */ 758 dev_err(rdev->dev, "Disabling GPU acceleration\n"); | 679 r100_cp_fini(rdev); 680 r100_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); --- 63 unchanged lines hidden (view full) --- 750 if (r) 751 return r; 752 rs600_set_safe_registers(rdev); 753 rdev->accel_working = true; 754 r = rs690_startup(rdev); 755 if (r) { 756 /* Somethings want wront with the accel init stop accel */ 757 dev_err(rdev->dev, "Disabling GPU acceleration\n"); |
759 rs690_suspend(rdev); | |
760 r100_cp_fini(rdev); 761 r100_wb_fini(rdev); 762 r100_ib_fini(rdev); 763 rs400_gart_fini(rdev); 764 radeon_irq_kms_fini(rdev); 765 rdev->accel_working = false; 766 } 767 return 0; 768} | 758 r100_cp_fini(rdev); 759 r100_wb_fini(rdev); 760 r100_ib_fini(rdev); 761 rs400_gart_fini(rdev); 762 radeon_irq_kms_fini(rdev); 763 rdev->accel_working = false; 764 } 765 return 0; 766} |