public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-pci@vger.kernel.org, jbarnes@virtuousgeek.org,
	Alex Chiang <achiang@hp.com>,
	djwong@us.ibm.com, Trent Piepho <xyzzy@speakeasy.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Q: state of pci express hotplug
Date: Mon, 02 Feb 2009 11:19:11 +0900	[thread overview]
Message-ID: <4986581F.7060704@jp.fujitsu.com> (raw)
In-Reply-To: <m1fxj06js8.fsf@fess.ebiederm.org>

Eric W. Biederman wrote:
> Trying to use the current pciehp code, on real hardware in an 
> interesting topology (more later) I'm not finding it very satisfactory
> at all.  I am up to at least three show stopper bugs and the code
> is not doing what I really need it to do, so I am looking at a significant
> rewrite patch effort to make this code usable.
>

I'd like to know details of the bugs. Could you please show the
details of the bugs?

> Am I unique in thinking there is a lot that needs to be done?
> Is there current work in progress to make the pci hotplug work better?
> 

In my personal opinion, there are at least the following items need to
be done for pciehp.

o Possible bugs
  -Current pcie_isr function (interrupt service routine of pciehp) has
   a possibility to get into endless loop in the case that bits in Slot
   Status register is set again immediately after cleared. According to
   the past discussion in the pcihpd-discuss ML, this can happen on the
   power fault detected bit on some platforms.

  -Current pciehp disables software notification of adapter presence
   changed event and MRL changed event when slot is turned off. Because
   of this, there is no way to detect those events on empty slots in the
   current pciehp implementation.

o Missing Features
  -Current pciehp doesn't support Data Link Layer State Changed event
   software notification.
  -No event notification mechanism to userland.
  -When hot-removal request is initiated through the Attention Button
   press, there is no chance to prepare hot-removal (unmount for example).
  -Userland utilities.

o Cleanups
  -slot list is not needed because there is only one slot under the
   switch downstream port.
  -hpc_ops is redundant.
  -some fields in the struct controller, struct slot are redundant.

o Misc
  -I don't think power fault management routines are well tested.
  -I don't think EMI management routines are well tested.

Thanks,
Kenji Kaneshige



  parent reply	other threads:[~2009-02-02  2:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-31  7:01 Q: state of pci express hotplug Eric W. Biederman
2009-01-31 18:13 ` Rafael J. Wysocki
2009-02-02  2:19 ` Kenji Kaneshige [this message]
2009-02-02 17:15   ` Krishna Kothapalli
2009-02-03  0:51     ` Kenji Kaneshige
2009-02-03 20:48       ` Krishna Kothapalli
2009-02-04  2:32         ` Krishna Kothapalli
2009-02-04  5:51           ` Kenji Kaneshige
2009-02-04 18:17             ` Krishna Kothapalli
2009-02-04 19:40               ` Mark Lord
2009-02-04 23:49               ` Alex Chiang
2009-02-05  0:02               ` Kenji Kaneshige
2009-02-05  1:53                 ` Krishna Kothapalli
2009-02-05  6:42                   ` Kenji Kaneshige
2009-02-06 20:37                     ` Krishna Kothapalli
2009-02-02 17:01 ` Alex Chiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4986581F.7060704@jp.fujitsu.com \
    --to=kaneshige.kenji@jp.fujitsu.com \
    --cc=achiang@hp.com \
    --cc=djwong@us.ibm.com \
    --cc=ebiederm@xmission.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=xyzzy@speakeasy.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox