r420.c (17e15b0c719b5ec0b344d3ebe3787b48315a0218) r420.c (72542d77058bd45ccafd1e15ed3c70349fe3277b)
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

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

296 /* Reset gpu before posting otherwise ATOM will enter infinite loop */
297 if (radeon_gpu_reset(rdev)) {
298 dev_warn(rdev->dev,
299 "GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n",
300 RREG32(R_000E40_RBBM_STATUS),
301 RREG32(R_0007C0_CP_STAT));
302 }
303 /* check if cards are posted or not */
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

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

296 /* Reset gpu before posting otherwise ATOM will enter infinite loop */
297 if (radeon_gpu_reset(rdev)) {
298 dev_warn(rdev->dev,
299 "GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n",
300 RREG32(R_000E40_RBBM_STATUS),
301 RREG32(R_0007C0_CP_STAT));
302 }
303 /* check if cards are posted or not */
304 if (!radeon_card_posted(rdev) && rdev->bios) {
305 DRM_INFO("GPU not posted. posting now...\n");
306 if (rdev->is_atom_bios) {
307 atom_asic_init(rdev->mode_info.atom_context);
308 } else {
309 radeon_combios_asic_init(rdev->ddev);
310 }
311 }
304 if (radeon_boot_test_post_card(rdev) == false)
305 return -EINVAL;
306
312 /* Initialize clocks */
313 radeon_get_clock_info(rdev->ddev);
314 /* Initialize power management */
315 radeon_pm_init(rdev);
316 /* Get vram informations */
317 r300_vram_info(rdev);
318 /* Initialize memory controller (also test AGP) */
319 r = r420_mc_init(rdev);

--- 85 unchanged lines hidden ---
307 /* Initialize clocks */
308 radeon_get_clock_info(rdev->ddev);
309 /* Initialize power management */
310 radeon_pm_init(rdev);
311 /* Get vram informations */
312 r300_vram_info(rdev);
313 /* Initialize memory controller (also test AGP) */
314 r = r420_mc_init(rdev);

--- 85 unchanged lines hidden ---