Re: PCIe driver not working properly after upgrading to linux 3.8.13

2014-08-20 Thread Aaron Sierra
- Original Message -
 From: Gokul C G goku...@kalkitech.in
 Sent: Tuesday, August 19, 2014 9:43:38 AM
 
 HI,
 
 I am facing problem with PCIE driver in new Linux kernel compiled for powerpc
 architecture (Big endian) ,freescales P2040 processor.I was using old kernel
 Linux version 3.0.48 previously and now updated to Linux version
 3.8.13-rt9.After updating to the new kernel, PCIe device drivers not working
 properly and i am getting some error messages in the boot-up .My intention
 is to use EXAR PCIe Multiport serial driver and add 8 serial ports in
 addition to 4 built in serial ports provided by P2040 processor. The PCIe
 driver form EXAR is compiled and loaded as kernel module . The same was
 working with linux kernel 3.0.48 and following prints observed while loading
 kernel module.
 

Have you attempted to use the XR17V35x support present in the updated version
of the kernel that you're using (I assume it's Freescale SDK 1.4.x)?

8250 core support for Exar parts:
http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/tree/drivers/tty/serial/8250/8250.c?h=sdk-v.1.4.x#n296

PCI vendor and device IDs for 2, 4 and 8 port Exar parts:
http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/tree/drivers/tty/serial/8250/8250_pci.c?h=sdk-v.1.4.x#n1722

-Aaron
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: PCIe driver not working properly after upgrading to linux 3.8.13

2014-08-19 Thread Scott Wood
On Tue, 2014-08-19 at 20:13 +0530, Gokul C G wrote:
 HI,
 
  
 
 I am facing problem with PCIE driver in new Linux kernel compiled for
 powerpc architecture (Big endian) ,freescales P2040 processor.I was
 using old kernel Linux version 3.0.48 previously and now updated to
 Linux version 3.8.13-rt9.After updating to the new kernel, 

3.8.13-rt9 is also an old kernel. :-)

It is also presumably a Freescale SDK kernel (not even the most recent
one), so it would be best to stick with community.freescale.com (you
didn't follow up to my response there) or, in the case of problems with
third party code you've added on to the SDK kernel, the support channels
of whoever provided you with the software.

 PCIe device drivers not working properly and i am getting some error
 messages in the boot-up .My intention is to use   EXAR PCIe Multiport
 serial driver and add 8 serial ports in addition to 4 built in serial
 ports provided by P2040 processor. The PCIe driver form EXAR is
 compiled and  loaded as kernel module . The same was working with
 linux kernel 3.0.48 and following prints observed while loading kernel
 module.
 
 
 linux 3.0.48 ,working insmod log
 
 
 
  
 
 
 
 Exar PCIe (XR17V35x) serial driver Revision: 1.2

I don't see this driver in the kernel tree.  We can't help you with code
we can't see.  Are you sure that the driver is expected to work with
3.8?  Have you tried debugging it and/or contacting Exar for support
with their driver?


 PCI: Probing PCI hardware
 
 fsl-pci ffe201000.pcie: PCI host bridge to bus :00
 
 pci_bus :00: root bus resource [io  0x-0x]
 
 pci_bus :00: root bus resource [mem 0xc2000-0xc3fff] (bus
 address [0xe000-0x])
 
 pci_bus :00: root bus resource [bus 00-ff]
 
 PCIE error(s) detected
 
 PCIE ERR_DR register: 0x8002
 
 PCIE ERR_CAP_STAT register: 0x8001
 
 PCIE ERR_CAP_R0 register: 0x0800
 
 pci :00:00.0: PCI bridge to [bus 01-ff]
 
 PCIE ERR_CAP_R1 register: 0x
 
 PCIE ERR_CAP_R2 register: 0x
 
 PCIE ERR_CAP_R3 register: 0x
 
 PCI: Cannot allocate resource region 0 of device :00:00.0, will
 remap
 
 pci :00:00.0: BAR 0: can't assign mem (size 0x100)
 
 pci :00:00.0: BAR 9: can't assign mem pref (size 0x20)
 
 pci :00:00.0: PCI bridge to [bus 01]
 
 pci :00:00.0:   bridge window [io  0x-0x]
 
 pci :00:00.0:   bridge window [mem 0xc2000-0xc3fff]
 
  
 
I get very similar errors on Freescale's SDK 1.5 kernel (based on
v3.8.13-rt9), and it doesn't stop a PCIe network card from working.  So
I wouldn't focus too much on these errors.

-Scott


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev