Re: 3.8.0-rc4+ - Oops on removing WinTV-HVR-1400 expresscard TV Tuner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Clayton wrote:
> 
> 
> On 01/27/13 12:18, Yijing Wang wrote:
>> 于 2013-01-27 19:19, Chris Clayton 写道:
>>> Hi Yijing
>>>
>>> On 01/27/13 02:45, Yijing Wang wrote:
>>>> 于 2013-01-27 4:54, Chris Clayton 写道:
>>>>> Hi Martin,
>>>>>
>>>>> On 01/24/13 19:21, Martin Mokrejs wrote:
>>>>>> Hi Chris,
>>>>>>      try to include in kernel only acpiphp and omit pciehp. Don't use modules but include
>>>>>> them statically. And try, in addition, check whether "pcie_aspm=off" in grub.conf helped.
>>>>>>
>>>>>
>>>>> Thanks for the tip. I had the pciehp driver installed, but it was a module and not loaded. I didn't have acpiphp enabled at all. Building them both in statically, appears to have papered over the cracks of the oops :-)
>>>>
>>>> Not loaded pciehp driver? Remove the device from this slot without poweroff ?
>>>>
>>>
>>> That's correct. When I first encountered the oops, I did not have the pciehp driver loaded and removing the device from the slot whilst the laptop was powered on resulted in the oops.
>>
>> Hmm, that's unsafe and dangerous, because device now may be running.
>> There are two ways to trigger pci hot-add or hot-remove in linux, after loaded pciehp or acpiphp module
>> (the two modules only one can loaded into system at the same time). You can trigger hot-add/hot-remove by
>> sysfs interface under /sys/bus/pci/slots/[slot-name]/power or attention button on hardware (if your laptop supports that).
>>
> 
> OK, thanks for the advice.
> 
>>>>>
>>>>>>      The best would if you subscribe to linux-pci, and read my recent threads
>>>>>> about similar issues I had with express cards with Dell Vostro 3550. Further, there is
>>>>>> a lot of changes to PCI hotplug done by Yingahi Liu and Rafael Wysockij, just browse the
>>>>>> archives of linux-pci and see the pacthes and the discussion.
>>>>>
>>>>> Those discussions are way above my level of knowledge. I guess all this work will be merged into mainline in due course, so I'll watch for them in 3.9 or later. Unless, of course, there is a tree I could clone and help test the changes with my laptop and expresscard.
>>>>>
>>>>> Hotplug isn't working at all on my Fujitsu laptop, so I can only get the card recognised by rebooting with the card inserted (or by writing 1 to/sys/bus/pci/rescan). There seem to be a few reports on this in the kernel bugzilla, so I'll look through them and see what's being done.
>>>>
>>>> Hi Chris,
>>>>      What about use #modprobe pciehp pciehp_debug=1 pciehp_poll_mode=1 pciehp_poll_time=1 ?
>>>>
>>>> Can you resend the dmesg log and "lspci -vvv" info after hotplug device from your Fujitsu laptop with above module parameters?
>>>>
>>>
>>> I wasn't sure whether or not the pciehp driver should be loaded on its own or with the acpiphp driver also loaded. So I built them both as modules and planned to try both, pciehp only and acpiphp only. However, I've found that acpiphp will not load (regardless of whether or not pciehp is already loaded). What I get is:
>>>
>>> [chris:~]$ sudo modprobe acpiphp debug=1
>>> modprobe: ERROR: could not insert 'acpiphp': No such device

Are you sure you had pciehp already loaded?

>>>
>>
>> Currently, If your hardware support pciehp native hotplug, acpiphp driver will be rejected when loading it in system
>> (you can force loading it by add boot parameter pcie_aspm=off as Martin said).
>>
> 
> OK, thanks again for the advice. I've disabled the acpiphp driver.

Pitty. For me only with acpiphp works detection of express card in the slot. With pciehp
the PresDet is not updated properly upon removal/insertion and sometimes, probably as a result
of the previous, PresDet on the SltSta: line of lspci is not correct. So I moved away from pciehp.
I have a SandyBridge based laptop so I was hoping with your i5-based laptop you have also great
chance to get rid of pciehp issues.

Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux