Skip to contentSkip to conversation

radeon drm-fixes-3.11

GIT PULL [email protected] 2 participants 5 messages Jul 17, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Alex Deucher <[email protected]>

Hi Dave,

Just a few DPM fixes.

The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc:

uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000)

are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-fixes-3.11

Alex Deucher (3):
drm/radeon: add a module parameter to disable aspm drm/radeon: fix an endian bug in atom table parsing drm/radeon/dpm: fix atom vram table parsing

Andre Heider (1):
drm/radeon/dpm/atom: restructure logic to work around a compiler bug

 drivers/gpu/drm/radeon/evergreen.c       |    3 ++
 drivers/gpu/drm/radeon/radeon.h          |    1 +
 drivers/gpu/drm/radeon/radeon_atombios.c |   33 ++++++++++++-----------------
 drivers/gpu/drm/radeon/radeon_drv.c      |    4 +++
 drivers/gpu/drm/radeon/rv6xx_dpm.c       |   14 +++++++-----
 drivers/gpu/drm/radeon/rv770_dpm.c       |   14 +++++++-----
 drivers/gpu/drm/radeon/si.c              |    3 ++
 7 files changed, 41 insertions(+), 31 deletions(-)
#1 lore raw
Quoted 13 lines · On Wed, Jul 17, 2013 at 9:54 PM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Hi Dave,

Just a few DPM fixes.

The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc:

uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000)

are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-fixes-3.11

Quoted 7 lines

Alex Deucher (3):
drm/radeon: add a module parameter to disable aspm drm/radeon: fix an endian bug in atom table parsing drm/radeon/dpm: fix atom vram table parsing

Andre Heider (1):
drm/radeon/dpm/atom: restructure logic to work around a compiler bug

Discarding the debug patches from bug #66932 and then merging your branch makes it break again :P
Seems like the printk()s mattered and the gcc 4.8 still hates the code.

I still think its due to the asRegIndexBuf[1] definition + accessing the array with i>0, let me poke at it a little

#2 lore raw

Dave hold off on this for now.

Alex

Quoted 28 lines · Andre Heider
Quoted 13 lines · On Wed, Jul 17, 2013 at 9:54 PM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Hi Dave,

Just a few DPM fixes.

The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc:

uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000)

are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-fixes-3.11

Quoted 7 lines

Alex Deucher (3):
drm/radeon: add a module parameter to disable aspm drm/radeon: fix an endian bug in atom table parsing drm/radeon/dpm: fix atom vram table parsing

Andre Heider (1):
drm/radeon/dpm/atom: restructure logic to work around a compiler bug

Discarding the debug patches from bug #66932 and then merging your branch makes it break again :P
Seems like the printk()s mattered and the gcc 4.8 still hates the code.

I still think its due to the asRegIndexBuf[1] definition + accessing the array with i>0, let me poke at it a little

#3 lore raw
In reply to Andre Heider
Quoted 22 lines · Andre Heider
Quoted 13 lines · On Wed, Jul 17, 2013 at 9:54 PM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Hi Dave,

Just a few DPM fixes.

The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc:

uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000)

are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-fixes-3.11

Quoted 7 lines

Alex Deucher (3):
drm/radeon: add a module parameter to disable aspm drm/radeon: fix an endian bug in atom table parsing drm/radeon/dpm: fix atom vram table parsing

Andre Heider (1):
drm/radeon/dpm/atom: restructure logic to work around a compiler bug

Quoted 6 lines

Discarding the debug patches from bug #66932 and then merging your branch makes it break again :P
Seems like the printk()s mattered and the gcc 4.8 still hates the code.

I still think its due to the asRegIndexBuf[1] definition + accessing the array with i>0, let me poke at it a little

Does the attached patch help?

Alex

From f90555cbe629e14c6af1dcec1933a3833ecd321f Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Wed, 17 Jul 2013 16:34:12 -0400
Subject: [PATCH] drm/radeon/dpm/atom: fix broken gcc harder

See bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=66932
https://bugs.freedesktop.org/show_bug.cgi?id=66972
https://bugs.freedesktop.org/show_bug.cgi?id=66945

---
 drivers/gpu/drm/radeon/radeon_atombios.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_atombios.c +6 -3
index 2606ec6..e3f3e88 100644
@@ -3699,18 +3699,21 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev,
 						(ATOM_MEMORY_SETTING_DATA_BLOCK *)
 						((u8 *)reg_block + (2 * sizeof(u16)) +
 						 le16_to_cpu(reg_block->usRegIndexTblSize));
+					ATOM_INIT_REG_INDEX_FORMAT *format = &reg_block->asRegIndexBuf[0];
 					num_entries = (u8)((le16_to_cpu(reg_block->usRegIndexTblSize)) /
 							   sizeof(ATOM_INIT_REG_INDEX_FORMAT)) - 1;
 					if (num_entries > VBIOS_MC_REGISTER_ARRAY_SIZE)
 						return -EINVAL;
 					while (i < num_entries) {
-						if (reg_block->asRegIndexBuf[i].ucPreRegDataLength & ACCESS_PLACEHOLDER)
+						if (format->ucPreRegDataLength & ACCESS_PLACEHOLDER)
 							break;
 						reg_table->mc_reg_address[i].s1 =
-							(u16)(le16_to_cpu(reg_block->asRegIndexBuf[i].usRegIndex));
+							(u16)(le16_to_cpu(format->usRegIndex));
 						reg_table->mc_reg_address[i].pre_reg_data =
-							(u8)(reg_block->asRegIndexBuf[i].ucPreRegDataLength);
+							(u8)(format->ucPreRegDataLength);
 						i++;
+						format = (ATOM_INIT_REG_INDEX_FORMAT *)
+							((u8 *)format + sizeof(ATOM_INIT_REG_INDEX_FORMAT));
 					}
 					reg_table->last = i;
 					while ((*(u32 *)reg_data != END_OF_REG_DATA_BLOCK) &&
Signature · 1 line
1.7.7.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

From: Alex Deucher <[email protected]>

Hi Dave,

Take two. Just some DPM fixes.

The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc:

uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000)

are available in the git repository at:
git://people.freedesktop.org/~agd5f/linux drm-fixes-3.11

Alex Deucher (5):
drm/radeon: add a module parameter to disable aspm drm/radeon: fix an endian bug in atom table parsing drm/radeon/dpm: fix atom vram table parsing drm/radeon/dpm/atom: fix broken gcc harder drm/radeon/dpm: add debugfs support for RS780/RS880 (v3)

Andre Heider (1):
drm/radeon/dpm/atom: restructure logic to work around a compiler bug

 drivers/gpu/drm/radeon/evergreen.c       |    3 ++
 drivers/gpu/drm/radeon/radeon.h          |    1 +
 drivers/gpu/drm/radeon/radeon_asic.c     |    1 +
 drivers/gpu/drm/radeon/radeon_asic.h     |    2 +
 drivers/gpu/drm/radeon/radeon_atombios.c |   40 ++++++++++++++---------------
 drivers/gpu/drm/radeon/radeon_drv.c      |    4 +++
 drivers/gpu/drm/radeon/rs780_dpm.c       |   25 ++++++++++++++++++
 drivers/gpu/drm/radeon/rs780d.h          |    3 ++
 drivers/gpu/drm/radeon/rv6xx_dpm.c       |   14 ++++++----
 drivers/gpu/drm/radeon/rv770_dpm.c       |   14 ++++++----
 drivers/gpu/drm/radeon/si.c              |    3 ++
 11 files changed, 77 insertions(+), 33 deletions(-)