Re: [BISECTED] pata_jmicron: no drives found on post 2.6.25 kernels

From: Luca Tettamanti
Date: Wed May 21 2008 - 15:45:38 EST


On Wed, May 21, 2008 at 10:58 AM, Shaohua Li <shaohua.li@xxxxxxxxx> wrote:
> On Tue, 2008-05-20 at 19:09 +0300, Plamen Petrov wrote:
>> Shaohua Li ÐÐÐÐÑÐ:
>>
>> > On Tue, 2008-05-20 at 01:37 +0300, Plamen Petrov wrote:
>> >> Hello, folks!
>> >>
>> >> After 2.6.26 merge window opened, the optical drives in my
>> >> computer, hanging off a JMicron controler were not detected
>> >> by linux any more.
>> >>
>> >> Luca Tettamanti reported similar troubles:
>> >> http://marc.info/?l=linux-kernel&m=120958791323911&w=2
>> >>
>> >> Its been 20 days, so I decided to bisect.
>> >> git bisect revealed that commit
>> >> 7d715a6c1ae5785d00fb9a876b5abdfc43abc44b
>> >> is the one causing pata_jmicron to fail to detect drives,
>> >> connected to the JMicron controler on my motherboard.
>> >> At least in my case, anyway...
>> >> Changing kernel config to CONFIG_PCIEASPM=n makes the drives
>> >> attached to the JMicron SATA/PATA controller usable again.
>> > When you enable this option, did you change any ASPM policy? By default,
>> > we are using the BIOS setting, so it shouldn't change any thing.
>> >
>>
>> No, I did not change any ASPM policy, mainly because I do not how.
>>
>> > Also can you please send me the 'lspci -vvvxxxx' output with/without the
>> > ASPM enabled?
>> >
> Can you please try below patch?

I confirm that the patch fixes the issue when CONFIG_ASPM is enabled.

> The Slot 03:00.* of JMicron controller has two functions, but one is
> PCIE endpoint the other isn't PCIE device, very strange.

Right, that's what I'm seeing here (motherboard is an ASUS P5B-E). I'm
attaching the output of lspci.

thanks,
Luca

Attachment: aspm
Description: Binary data

Attachment: noaspm
Description: Binary data