@@ -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);
@@ -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;
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@redhat.com> --- drivers/gpu/drm/radeon/atom.c | 1 - drivers/gpu/drm/radeon/radeon_drv.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletions(-)