[PATCH] drm: change pci_read_config_dword calls to pcie_capability_read_dword ones

2012-12-22 Thread Lucas Kannebley Tavares
Replacing these calls avoids compatibility problems with PCIe v1/v2 Capability structures. Signed-off-by: Lucas Kannebley Tavares --- drivers/gpu/drm/drm_pci.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c

[PATCH] drm: fixed access to PCI host bridges

2012-12-22 Thread Lucas Kannebley Tavares
During the process of obtaining the speed cap for the device, it attempts go get the PCI Host bus. However on architectures such as PPC or IA64, those do not appear as devices. Signed-off-by: Lucas Kannebley Tavares --- drivers/gpu/drm/drm_pci.c |5 + 1 files changed, 5 insertions

Re: drm: Added ppc64 root device getter

2012-12-22 Thread Lucas Kannebley Tavares
On 12/13/2012 09:31 PM, Bjorn Helgaas wrote: [+cc Betty] On Thu, Dec 13, 2012 at 4:04 PM, Lucas Kannebley Tavares wrote: On architectures such as ppc64, there is no root bus device (it belongs to the hypervisor). DRM attempted to get one, causing a null-pointer dereference. In addition to

drm: Added ppc64 root device getter

2012-12-13 Thread Lucas Kannebley Tavares
On architectures such as ppc64, there is no root bus device (it belongs to the hypervisor). DRM attempted to get one, causing a null-pointer dereference. Signed-off-by: Lucas Kannebley Tavares -- diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile

radeon: RFC speed cap detection on ppc64

2012-10-19 Thread Lucas Kannebley Tavares
+ root = drm_get_pcie_root_dev(dev->pdev); pos = pci_pcie_cap(root); if (!pos) -- Lucas Kannebley Tavares Software Engineer IBM Linux Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to