[PATCH] drm/radeon: Make atom_debug a module parameter
Adam Jackson
ajax at redhat.com
Thu May 12 14:45:13 PDT 2011
If we're going to build atom debugging all the time anyway, we might as
well make it easy to get at.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
drivers/gpu/drm/radeon/atom.c | 1 -
drivers/gpu/drm/radeon/radeon_drv.c | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c
index 258fa5e..ec01112 100644
--- a/drivers/gpu/drm/radeon/atom.c
+++ b/drivers/gpu/drm/radeon/atom.c
@@ -61,7 +61,6 @@ typedef struct {
bool abort;
} atom_exec_context;
-int atom_debug = 0;
static int atom_execute_table_locked(struct atom_context *ctx, int index, uint32_t * params);
int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 63d2de8..f7b6aae 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -116,6 +116,7 @@ int radeon_audio = 1;
int radeon_disp_priority = 0;
int radeon_hw_i2c = 0;
int radeon_pcie_gen2 = 0;
+int atom_debug = 0;
MODULE_PARM_DESC(no_wb, "Disable AGP writeback for scratch registers");
module_param_named(no_wb, radeon_no_wb, int, 0444);
@@ -162,6 +163,9 @@ module_param_named(hw_i2c, radeon_hw_i2c, int, 0444);
MODULE_PARM_DESC(pcie_gen2, "PCIE Gen2 mode (1 = enable)");
module_param_named(pcie_gen2, radeon_pcie_gen2, int, 0444);
+MODULE_PARM_DESC(atom_debug, "Debug atombios execution (1 = enable)");
+module_param_named(atom_debug, atom_debug, int, 0444);
+
static int radeon_suspend(struct drm_device *dev, pm_message_t state)
{
drm_radeon_private_t *dev_priv = dev->dev_private;
--
1.7.4.4
More information about the dri-devel
mailing list