[PATCHv4 0/2] Speed Cap fixes for ppc64

2013-04-24 Thread lucaskt
From: Lucas Kannebley Tavares luca...@vnet.linux.ibm.com This patch series does: 1. max_bus_speed is used to set the device to gen2 speeds 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 3. radeon is

[PATCHv4 1/2] ppc64: perform proper max_bus_speed detection

2013-04-24 Thread lucaskt
From: Lucas Kannebley Tavares luca...@linux.vnet.ibm.com On pseries machines the detection for max_bus_speed should be done through an OpenFirmware property. This patch adds a function to perform this detection and a hook to perform dynamic adding of the function only for pseries. This is done by

[PATCHv4 2/2] radeon: use max_bus_speed to activate gen2 speeds

2013-04-24 Thread lucaskt
From: Lucas Kannebley Tavares luca...@linux.vnet.ibm.com radeon currently uses a drm function to get the speed capabilities for the bus, drm_pcie_get_speed_cap_mask. However, this is a non-standard method of performing this detection and this patch changes it to use the max_bus_speed attribute.

[PATCH 2/2] ppc64: Add arch-specific pcie_get_speed_cap_mask

2013-03-14 Thread lucaskt
From: Lucas Kannebley Tavares luca...@linux.vnet.ibm.com Betters support for gen2 speed detections on PCI buses on ppc64 architectures. Signed-off-by: Lucas Kannebley Tavares luca...@linux.vnet.ibm.com --- arch/powerpc/platforms/pseries/pci.c | 32 1 files

[PATCH 1/2] drm: Move drm_pcie_get_speed_cap_mask to PCI

2013-03-14 Thread lucaskt
From: Lucas Kannebley Tavares luca...@linux.vnet.ibm.com This function was more architecture related than drm related, as such it was moved to the PCI driver. This patch also allows it to be overwritten by architecture-dependent implementations, and fixes the radeon driver (only one that uses

PCI Speed Cap Fixes for ppc64

2013-03-14 Thread lucaskt
This patch series at first moves get_speed_cap_mask from DRM to PCI, fixes all radeon references (only driver that uses it) and then implements a architecture specific implementation for ppc64 for it. This is good because the drm_pcie_get_speed_cap_mask function is more architecture goo than