<div class="gmail_quote">On Thu, Apr 11, 2013 at 9:13 AM, Lucas Kannebley Tavares <span dir="ltr"><<a href="mailto:lucaskt@linux.vnet.ibm.com" target="_blank">lucaskt@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
After all the comments in the last patch series, I did a refactoring of what I was proposing and came up with this. Basically, now:<br>
1. max_bus_speed is used to set the device to gen2 speeds<br>
2. on power there's no longer a conflict between the pseries call and other architectures, because the overwrite is done via a ppc_md hook<br>
3. radeon is using bus->max_bus_speed instead of drm_pcie_get_speed_cap_mask for gen2 capability detection<br>
<br>
The first patch consists of some architecture changes, such as adding a hook on powerpc for pci_root_bridge_prepare, so that pseries will initialize it to a function, while all other architectures get a NULL pointer. So that whenever whenever pci_create_root_bus is called, we'll get max_bus_speed properly setup from OpenFirmware.<br>
<br>
The second patch consists of simple radeon changes not to call drm_get_pcie_speed_cap_mask anymore. I assume that on x86 machines, the max_bus_speed property will be properly set already.<br></blockquote><div><br>The radeon changes are :<br>
<br>Reviewed-by: Jerome Glisse <<a href="mailto:jglisse@redhat.com">jglisse@redhat.com</a>><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Lucas Kannebley Tavares (2):<br>
ppc64: perform proper max_bus_speed detection<br>
radeon: use max_bus_speed to activate gen2 speeds<br>
<br>
arch/powerpc/include/asm/machdep.h | 2 +<br>
arch/powerpc/kernel/pci-common.c | 8 +++++<br>
arch/powerpc/platforms/pseries/pci.c | 51 ++++++++++++++++++++++++++++++++<br>
arch/powerpc/platforms/pseries/setup.c | 4 ++<br>
drivers/gpu/drm/radeon/evergreen.c | 9 +----<br>
drivers/gpu/drm/radeon/r600.c | 8 +----<br>
drivers/gpu/drm/radeon/rv770.c | 8 +----<br>
7 files changed, 69 insertions(+), 21 deletions(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.4.4<br>
<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</font></span></blockquote></div><br>