29 #include <linux/slab.h>
37 #include "r420_reg_safe.h"
80 rdev->
config.
r300.reg_safe_bm = r420_reg_safe_bm;
87 unsigned gb_pipe_select;
96 "programming pipes. Bad things might happen.\n");
100 num_pipes = ((gb_pipe_select >> 12) & 3) + 1;
103 if ((rdev->
pdev->device == 0x5e4c) ||
104 (rdev->
pdev->device == 0x5e4f))
132 "programming pipes. Bad things might happen.\n");
145 "programming pipes. Bad things might happen.\n");
157 DRM_INFO(
"radeon: %d quad pipes, %d z pipes initialized.\n",
180 DRM_ERROR(
"Failed to register debugfs file for RBBM !\n");
183 DRM_ERROR(
"Failed to register debugfs file for pipes !\n");
241 r420_clock_resume(rdev);
263 dev_err(rdev->
dev,
"failed initializing CP fences (%d).\n", r);
273 dev_err(rdev->
dev,
"failed initializing CP (%d).\n", r);
276 r420_cp_errata_init(rdev);
280 dev_err(rdev->
dev,
"IB initialization failed (%d).\n", r);
297 r420_clock_resume(rdev);
300 dev_warn(rdev->
dev,
"GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n",
311 r420_clock_resume(rdev);
316 r = r420_startup(rdev);
325 r420_cp_errata_fini(rdev);
389 "GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n",
436 r420_set_reg_safe(rdev);
439 r = r420_startup(rdev);
442 dev_err(rdev->
dev,
"Disabling GPU acceleration\n");
460 #if defined(CONFIG_DEBUG_FS)
461 static int r420_debugfs_pipes_info(
struct seq_file *
m,
void *
data)
463 struct drm_info_node *
node = (
struct drm_info_node *) m->
private;
477 static struct drm_info_list r420_pipes_info_list[] = {
478 {
"r420_pipes_info", r420_debugfs_pipes_info, 0,
NULL},
484 #if defined(CONFIG_DEBUG_FS)