lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 03 Feb 2009 09:51:20 +0900
From:	Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>
To:	Krishna Kothapalli <krishna_sunitha@...mail.com>
CC:	ebiederm@...ssion.com, linux-pci@...r.kernel.org,
	jbarnes@...tuousgeek.org, achiang@...com, djwong@...ibm.com,
	xyzzy@...akeasy.org, linux-kernel@...r.kernel.org
Subject: Re: Q: state of pci express hotplug

Krishna Kothapalli wrote:
> 
>> I'd like to know details of the bugs. Could you please show the
>> details of the bugs?
> 
> Not sure if this is a bug or error on my part:
> 
> a) Cold plug of the PCI express card looks ok ( the devices show up is the sysfs ). 
> b)
> However hotplug of the same device does not work (it won't show up in
> the sysfs and uevents are not sent to udev ). Same issue when ACPI is removed from the kernel build and
> modprobe pciehp pciehp_force=1
> 
> Posted some details in (can send in more details if needed) :
> http://article.gmane.org/gmane.linux.kernel.pci/2865
> http://article.gmane.org/gmane.linux.kernel.pci/2868
> 

In the beginning, I'd like to know which hotplug controller driver
manages your hotplug slots. Could you tell me which hotplug controller
drivers add the directories under /sys/bus/pci/slots, with the following
steps?

  (1) Build all your hotplug drivers as kernel modules.
  (2) Modprobe hotplug drivers one by one, and check which drivers add
      directories under /sys/bus/pci/slots. Before trying the next driver,
      please rmmod the previous driver, because there are hotplug slots
      that can be managed by the several drivers. Note that you don't need
      to try fakephp this time. 

Here is an example. My machine has four hotplug slots and those can be
handled by acpiphp or pciehp. I tried acpiphp, pciehp and shpchp on that
machine.

# ls /sys/bus/pci/slots/
# /sbin/modprobe acpiphp
# ls /sys/bus/pci/slots/
1  2  3  4
# /sbin/rmmod acpiphp
# ls /sys/bus/pci/slots/
# /sbin/modprobe pciehp
# ls /sys/bus/pci/slots/
1  2  3  4
# /sbin/rmmod pciehp
# ls /sys/bus/pci/slots/
# /sbin/modprobe shpchp
# ls /sys/bus/pci/slots/

Thanks,
Kenji Kaneshige

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ