r100.c (9e5b2af75abc67c13005c706cf95bbbb78f7fddc) r100.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

--- 3361 unchanged lines hidden (view full) ---

3370 r100_irq_disable(rdev);
3371 if (rdev->flags & RADEON_IS_PCI)
3372 r100_pci_gart_disable(rdev);
3373 return 0;
3374}
3375
3376void r100_fini(struct radeon_device *rdev)
3377{
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

--- 3361 unchanged lines hidden (view full) ---

3370 r100_irq_disable(rdev);
3371 if (rdev->flags & RADEON_IS_PCI)
3372 r100_pci_gart_disable(rdev);
3373 return 0;
3374}
3375
3376void r100_fini(struct radeon_device *rdev)
3377{
3378 r100_suspend(rdev);
3379 r100_cp_fini(rdev);
3380 r100_wb_fini(rdev);
3381 r100_ib_fini(rdev);
3382 radeon_gem_fini(rdev);
3383 if (rdev->flags & RADEON_IS_PCI)
3384 r100_pci_gart_fini(rdev);
3385 radeon_agp_fini(rdev);
3386 radeon_irq_kms_fini(rdev);

--- 95 unchanged lines hidden (view full) ---

3482 return r;
3483 }
3484 r100_set_safe_registers(rdev);
3485 rdev->accel_working = true;
3486 r = r100_startup(rdev);
3487 if (r) {
3488 /* Somethings want wront with the accel init stop accel */
3489 dev_err(rdev->dev, "Disabling GPU acceleration\n");
3378 r100_cp_fini(rdev);
3379 r100_wb_fini(rdev);
3380 r100_ib_fini(rdev);
3381 radeon_gem_fini(rdev);
3382 if (rdev->flags & RADEON_IS_PCI)
3383 r100_pci_gart_fini(rdev);
3384 radeon_agp_fini(rdev);
3385 radeon_irq_kms_fini(rdev);

--- 95 unchanged lines hidden (view full) ---

3481 return r;
3482 }
3483 r100_set_safe_registers(rdev);
3484 rdev->accel_working = true;
3485 r = r100_startup(rdev);
3486 if (r) {
3487 /* Somethings want wront with the accel init stop accel */
3488 dev_err(rdev->dev, "Disabling GPU acceleration\n");
3490 r100_suspend(rdev);
3491 r100_cp_fini(rdev);
3492 r100_wb_fini(rdev);
3493 r100_ib_fini(rdev);
3489 r100_cp_fini(rdev);
3490 r100_wb_fini(rdev);
3491 r100_ib_fini(rdev);
3492 radeon_irq_kms_fini(rdev);
3494 if (rdev->flags & RADEON_IS_PCI)
3495 r100_pci_gart_fini(rdev);
3493 if (rdev->flags & RADEON_IS_PCI)
3494 r100_pci_gart_fini(rdev);
3496 radeon_irq_kms_fini(rdev);
3497 rdev->accel_working = false;
3498 }
3499 return 0;
3500}
3495 rdev->accel_working = false;
3496 }
3497 return 0;
3498}