r420.c (e1a0bdd8022317e98650e70850de73eccfcde5ad) | r420.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 --- 375 unchanged lines hidden (view full) --- 384 return r; 385 } 386 r420_set_reg_safe(rdev); 387 rdev->accel_working = true; 388 r = r420_startup(rdev); 389 if (r) { 390 /* Somethings want wront with the accel init stop accel */ 391 dev_err(rdev->dev, "Disabling GPU acceleration\n"); | 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 --- 375 unchanged lines hidden (view full) --- 384 return r; 385 } 386 r420_set_reg_safe(rdev); 387 rdev->accel_working = true; 388 r = r420_startup(rdev); 389 if (r) { 390 /* Somethings want wront with the accel init stop accel */ 391 dev_err(rdev->dev, "Disabling GPU acceleration\n"); |
392 r420_suspend(rdev); | |
393 r100_cp_fini(rdev); 394 r100_wb_fini(rdev); 395 r100_ib_fini(rdev); | 392 r100_cp_fini(rdev); 393 r100_wb_fini(rdev); 394 r100_ib_fini(rdev); |
395 radeon_irq_kms_fini(rdev); |
|
396 if (rdev->flags & RADEON_IS_PCIE) 397 rv370_pcie_gart_fini(rdev); 398 if (rdev->flags & RADEON_IS_PCI) 399 r100_pci_gart_fini(rdev); 400 radeon_agp_fini(rdev); | 396 if (rdev->flags & RADEON_IS_PCIE) 397 rv370_pcie_gart_fini(rdev); 398 if (rdev->flags & RADEON_IS_PCI) 399 r100_pci_gart_fini(rdev); 400 radeon_agp_fini(rdev); |
401 radeon_irq_kms_fini(rdev); | |
402 rdev->accel_working = false; 403 } 404 return 0; 405} 406 407/* 408 * Debugfs info 409 */ --- 30 unchanged lines hidden --- | 401 rdev->accel_working = false; 402 } 403 return 0; 404} 405 406/* 407 * Debugfs info 408 */ --- 30 unchanged lines hidden --- |