diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 9890b45..5b9ee37 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -3719,15 +3719,20 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev, sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1; if (num_entries > VBIOS_MC_REGISTER_ARRAY_SIZE) return -EINVAL; + printk("module_index = %d num_entries = %d\n", module_index, num_entries); while (!(reg_block->asRegIndexBuf[i].ucPreRegDataLength & ACCESS_PLACEHOLDER) && (i < num_entries)) { reg_table->mc_reg_address[i].s1 = (u16)(le16_to_cpu(reg_block->asRegIndexBuf[i].usRegIndex)); reg_table->mc_reg_address[i].pre_reg_data = (u8)(reg_block->asRegIndexBuf[i].ucPreRegDataLength); + printk("%d: s1 = 0x%04x prd = 0x%02x\n", i, + reg_table->mc_reg_address[i].s1, + reg_table->mc_reg_address[i].pre_reg_data); i++; } reg_table->last = i; + printk("last = %d\n", reg_table->last); while ((*(u32 *)reg_data != END_OF_REG_DATA_BLOCK) && (num_ranges < VBIOS_MAX_AC_TIMING_ENTRIES)) { t_mem_id = (u8)((*(u32 *)reg_data & MEM_ID_MASK) >> MEM_ID_SHIFT); @@ -3764,6 +3769,7 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev, DRM_ERROR("Unknown table version %d, %d\n", frev, crev); return -EINVAL; } + printk("last = %d\n", reg_table->last); radeon_print_mc_reg_table(reg_table); return 0; }