* i.MX6 - PCIe not detecting some devices in Linux 3.14.28
@ 2015-05-21 16:26 ansaris
2015-05-21 16:41 ` Nikolay Dimitrov
0 siblings, 1 reply; 6+ messages in thread
From: ansaris @ 2015-05-21 16:26 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
Hi,
We are using imx6Q custom platform based on sabresd platform. For our
development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
used Linux 3.10.53_1.0.0-GA BSP.
We have seen that the pcie driver file is updated in Linux 3.14.28.
The problem we are facing is, we have a PCIe device which is SSD SATA.
With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
and it is showing below error.
imx6q-pcie 1ffc000.pcie: phy link never came up
imx6q-pcie 1ffc000.pcie: Failed to bring link up!
imx6q-pcie 1ffc000.pcie: failed to initialize host
imx6q-pcie: probe of 1ffc000.pcie failed with error -22
With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
and mounted as block device.
Here we have not changed any hardware. We just replaced the booting SD
card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
In addition, , we have checked with several PCIe devices (network PCIe
devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
are getting detected.
Please note that, all the devices are getting detected in the Linux
3.10.53_1.0.0-GA BSP.
Please help us to resolve this issue.
Thank You,
Regards,
Ansari
[-- Attachment #2: Type: text/html, Size: 3103 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: i.MX6 - PCIe not detecting some devices in Linux 3.14.28
2015-05-21 16:26 i.MX6 - PCIe not detecting some devices in Linux 3.14.28 ansaris
@ 2015-05-21 16:41 ` Nikolay Dimitrov
2015-05-21 16:57 ` ansaris
2015-05-21 17:29 ` Eric Bénard
0 siblings, 2 replies; 6+ messages in thread
From: Nikolay Dimitrov @ 2015-05-21 16:41 UTC (permalink / raw)
To: ansaris, meta-freescale@yoctoproject.org
Hi ansaris,
On 05/21/2015 07:26 PM, ansaris wrote:
> Hi,
> We are using imx6Q custom platform based on sabresd platform. For our
> development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
> used Linux 3.10.53_1.0.0-GA BSP.
> We have seen that the pcie driver file is updated in Linux 3.14.28.
>
> The problem we are facing is, we have a PCIe device which is SSD SATA.
> With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
> and it is showing below error.
> imx6q-pcie 1ffc000.pcie: phy link never came up
> imx6q-pcie 1ffc000.pcie: Failed to bring link up!
> imx6q-pcie 1ffc000.pcie: failed to initialize host
> imx6q-pcie: probe of 1ffc000.pcie failed with error -22
>
> With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
> and mounted as block device.
> Here we have not changed any hardware. We just replaced the booting SD
> card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
>
> In addition, , we have checked with several PCIe devices (network PCIe
> devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
> are getting detected.
> Please note that, all the devices are getting detected in the Linux
> 3.10.53_1.0.0-GA BSP.
>
> Please help us to resolve this issue.
Please clarify whether your device is PCIe or SATA - it can be only one
of those, not both at the same time.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX6 - PCIe not detecting some devices in Linux 3.14.28
2015-05-21 16:41 ` Nikolay Dimitrov
@ 2015-05-21 16:57 ` ansaris
2015-05-21 17:08 ` Nikolay Dimitrov
2015-05-21 17:29 ` Eric Bénard
1 sibling, 1 reply; 6+ messages in thread
From: ansaris @ 2015-05-21 16:57 UTC (permalink / raw)
To: Nikolay Dimitrov, meta-freescale@yoctoproject.org
Hi Nikolay,
Thank you for your prompt input.
My PCIe device is a SSD SATA only and it is connected in mini-pcie slot.
With Linux 3.10.53_1.0.0-GA BSP, the same device is getting detected and
it is not detecting in Linux 3.10.53_1.0.0-GA.
Thank You
Regards,
Ansari
On Thursday 21 May 2015 10:11 PM, Nikolay Dimitrov wrote:
> Hi ansaris,
>
> On 05/21/2015 07:26 PM, ansaris wrote:
>> Hi,
>> We are using imx6Q custom platform based on sabresd platform. For our
>> development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
>> used Linux 3.10.53_1.0.0-GA BSP.
>> We have seen that the pcie driver file is updated in Linux 3.14.28.
>>
>> The problem we are facing is, we have a PCIe device which is SSD SATA.
>> With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
>> and it is showing below error.
>> imx6q-pcie 1ffc000.pcie: phy link never came up
>> imx6q-pcie 1ffc000.pcie: Failed to bring link up!
>> imx6q-pcie 1ffc000.pcie: failed to initialize host
>> imx6q-pcie: probe of 1ffc000.pcie failed with error -22
>>
>> With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
>> and mounted as block device.
>> Here we have not changed any hardware. We just replaced the booting SD
>> card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
>>
>> In addition, , we have checked with several PCIe devices (network PCIe
>> devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
>> are getting detected.
>> Please note that, all the devices are getting detected in the Linux
>> 3.10.53_1.0.0-GA BSP.
>>
>> Please help us to resolve this issue.
>
> Please clarify whether your device is PCIe or SATA - it can be only one
> of those, not both at the same time.
>
> Regards,
> Nikolay
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX6 - PCIe not detecting some devices in Linux 3.14.28
2015-05-21 16:57 ` ansaris
@ 2015-05-21 17:08 ` Nikolay Dimitrov
0 siblings, 0 replies; 6+ messages in thread
From: Nikolay Dimitrov @ 2015-05-21 17:08 UTC (permalink / raw)
To: ansaris, meta-freescale@yoctoproject.org
Hi ansaris,
On 05/21/2015 07:57 PM, ansaris wrote:
> Hi Nikolay,
>
> Thank you for your prompt input.
>
> My PCIe device is a SSD SATA only and it is connected in mini-pcie slot.
> With Linux 3.10.53_1.0.0-GA BSP, the same device is getting detected and
> it is not detecting in Linux 3.10.53_1.0.0-GA.
>
> Thank You
> Regards,
> Ansari
>
> On Thursday 21 May 2015 10:11 PM, Nikolay Dimitrov wrote:
>> Hi ansaris,
>>
>> On 05/21/2015 07:26 PM, ansaris wrote:
>>> Hi,
>>> We are using imx6Q custom platform based on sabresd platform. For our
>>> development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
>>> used Linux 3.10.53_1.0.0-GA BSP.
>>> We have seen that the pcie driver file is updated in Linux 3.14.28.
>>>
>>> The problem we are facing is, we have a PCIe device which is SSD SATA.
>>> With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
>>> and it is showing below error.
>>> imx6q-pcie 1ffc000.pcie: phy link never came up
>>> imx6q-pcie 1ffc000.pcie: Failed to bring link up!
>>> imx6q-pcie 1ffc000.pcie: failed to initialize host
>>> imx6q-pcie: probe of 1ffc000.pcie failed with error -22
>>>
>>> With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
>>> and mounted as block device.
>>> Here we have not changed any hardware. We just replaced the booting SD
>>> card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
>>>
>>> In addition, , we have checked with several PCIe devices (network PCIe
>>> devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
>>> are getting detected.
>>> Please note that, all the devices are getting detected in the Linux
>>> 3.10.53_1.0.0-GA BSP.
>>>
>>> Please help us to resolve this issue.
>>
>> Please clarify whether your device is PCIe or SATA - it can be only one
>> of those, not both at the same time.
Most probably the device has a mPCIe form-factor, but it's a SATA
device. Please check whether you have SATA drivers enabled in the
kernel config.
Also, if the device's power rails can be controlled by the software,
you need to check that the device is actually powered-on.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX6 - PCIe not detecting some devices in Linux 3.14.28
2015-05-21 16:41 ` Nikolay Dimitrov
2015-05-21 16:57 ` ansaris
@ 2015-05-21 17:29 ` Eric Bénard
2015-05-21 18:11 ` Nikolay Dimitrov
1 sibling, 1 reply; 6+ messages in thread
From: Eric Bénard @ 2015-05-21 17:29 UTC (permalink / raw)
To: Nikolay Dimitrov; +Cc: meta-freescale@yoctoproject.org
Hi Nikolay,
Le Thu, 21 May 2015 19:41:19 +0300,
Nikolay Dimitrov <picmaster@mail.bg> a écrit :
> On 05/21/2015 07:26 PM, ansaris wrote:
> > Hi,
> > We are using imx6Q custom platform based on sabresd platform. For our
> > development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
> > used Linux 3.10.53_1.0.0-GA BSP.
> > We have seen that the pcie driver file is updated in Linux 3.14.28.
> >
> > The problem we are facing is, we have a PCIe device which is SSD SATA.
> > With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
> > and it is showing below error.
> > imx6q-pcie 1ffc000.pcie: phy link never came up
> > imx6q-pcie 1ffc000.pcie: Failed to bring link up!
> > imx6q-pcie 1ffc000.pcie: failed to initialize host
> > imx6q-pcie: probe of 1ffc000.pcie failed with error -22
> >
> > With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
> > and mounted as block device.
> > Here we have not changed any hardware. We just replaced the booting SD
> > card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
> >
> > In addition, , we have checked with several PCIe devices (network PCIe
> > devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
> > are getting detected.
> > Please note that, all the devices are getting detected in the Linux
> > 3.10.53_1.0.0-GA BSP.
> >
> > Please help us to resolve this issue.
>
> Please clarify whether your device is PCIe or SATA - it can be only one
> of those, not both at the same time.
>
FWIW newer M.2 boards directly expose a PCIe interface and embed a SATA
controler which (I believe) expose one drive but balances the load
between several SATA SSD to get better performances.
So the host only see a PCIe interface but the board has both PCIe and
SATA inside (and the host needs both PCIe and AHCI support) :
http://en.wikipedia.org/wiki/M.2
http://www.amazon.com/Samsung-XP941-512GB-AHCI-80mm/dp/B00JOSM3TK
http://www.bjorn3d.com/2015/03/480gb-hyperx-predator-m-2-pcie-ssd-shpm2280p2480g/
(M.2 SSD also exist with a SATA interface directly exposed but they have
a different keying on the connector to prevent the mismatch which is
possible with mSATA vs mPCIe).
Best regards,
Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX6 - PCIe not detecting some devices in Linux 3.14.28
2015-05-21 17:29 ` Eric Bénard
@ 2015-05-21 18:11 ` Nikolay Dimitrov
0 siblings, 0 replies; 6+ messages in thread
From: Nikolay Dimitrov @ 2015-05-21 18:11 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
Hi Eric,
On 05/21/2015 08:29 PM, Eric Bénard wrote:
> Hi Nikolay,
>
> Le Thu, 21 May 2015 19:41:19 +0300,
> Nikolay Dimitrov <picmaster@mail.bg> a écrit :
>> On 05/21/2015 07:26 PM, ansaris wrote:
>>> Hi,
>>> We are using imx6Q custom platform based on sabresd platform. For our
>>> development we are using Linux 3.14.28_1.0.0-GA BSP but initially we
>>> used Linux 3.10.53_1.0.0-GA BSP.
>>> We have seen that the pcie driver file is updated in Linux 3.14.28.
>>>
>>> The problem we are facing is, we have a PCIe device which is SSD SATA.
>>> With Linux 3.14.28_1.0.0-GA BSP, the PCIe-SATA is not getting detected
>>> and it is showing below error.
>>> imx6q-pcie 1ffc000.pcie: phy link never came up
>>> imx6q-pcie 1ffc000.pcie: Failed to bring link up!
>>> imx6q-pcie 1ffc000.pcie: failed to initialize host
>>> imx6q-pcie: probe of 1ffc000.pcie failed with error -22
>>>
>>> With Linux 3.10.53_1.0.0-GA BSP, the same PCIe-SATA is getting detected
>>> and mounted as block device.
>>> Here we have not changed any hardware. We just replaced the booting SD
>>> card which contains Linux 3.10.53_1.0.0-GA BSP binaries.
>>>
>>> In addition, , we have checked with several PCIe devices (network PCIe
>>> devices) with Linux 3.14.28_1.0.0-GA BSP. Only some of the PCIe devices
>>> are getting detected.
>>> Please note that, all the devices are getting detected in the Linux
>>> 3.10.53_1.0.0-GA BSP.
>>>
>>> Please help us to resolve this issue.
>>
>> Please clarify whether your device is PCIe or SATA - it can be only one
>> of those, not both at the same time.
>>
> FWIW newer M.2 boards directly expose a PCIe interface and embed a SATA
> controler which (I believe) expose one drive but balances the load
> between several SATA SSD to get better performances.
> So the host only see a PCIe interface but the board has both PCIe and
> SATA inside (and the host needs both PCIe and AHCI support) :
> http://en.wikipedia.org/wiki/M.2
> http://www.amazon.com/Samsung-XP941-512GB-AHCI-80mm/dp/B00JOSM3TK
> http://www.bjorn3d.com/2015/03/480gb-hyperx-predator-m-2-pcie-ssd-shpm2280p2480g/
> (M.2 SSD also exist with a SATA interface directly exposed but they have
> a different keying on the connector to prevent the mismatch which is
> possible with mSATA vs mPCIe).
Ahh, I see. I was thinking about SATA mostly as physical interface, not
as a PCIe-based controller...
Yes, you're correct - in this case PCIe will have to be enabled and
working, for sure, and the device's specific driver (could be a generic
SATA?) should also be enabled.
@ansaris - I'm not an expert in PCIe, but you can check whether your
board generates a proper PCIe reference clock.
Regards,
Nikolay
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-21 18:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 16:26 i.MX6 - PCIe not detecting some devices in Linux 3.14.28 ansaris
2015-05-21 16:41 ` Nikolay Dimitrov
2015-05-21 16:57 ` ansaris
2015-05-21 17:08 ` Nikolay Dimitrov
2015-05-21 17:29 ` Eric Bénard
2015-05-21 18:11 ` Nikolay Dimitrov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.