mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: linux-kernel@vger.kernel.org
Cc: john_flowers@agilent.com
Subject: Re: PROBLEM:  fakephp hangs terminal in 2.6.22 (and 2.6.21), does not Hot Plug
Date: Tue, 08 Jan 2008 13:40:30 +0000	[thread overview]
Message-ID: <47837D4E.70106@mev.co.uk> (raw)
In-Reply-To: <477D2710.1020103@mev.co.uk>

On 03/01/08 18:18, Ian Abbott wrote:
> On 02/11/07 21:16, john_flowers@agilent.com wrote:
>> The "Fake" PCI Hot Plug module fakephp does not complete the slot 
>> shutdown and will hang a terminal.
>>
>>
>> I am attempting to use the fakephp module to shutdown and restart a 
>> PCI Express FPGA board when the FPGA is reloaded. Using 2.6.22 
>> (Ubuntu 7.10) or 2.6.21 (Fedora Core 7) I cannot get this 
>> functionality to work. Sending a '1' to the power file causes no 
>> change or debug output in dmesg and sending a '0' causes the terminal 
>> to hang. Please CC me as I am not subscribed to the mailing list.
> 
> I encountered the same problem today with a 2.6.24-rc6-git9 x86_64 SMP
> kernel when testing the hotplug sections of a driver I wrote.  The
> terminal locks up when echoing a '0' to a PCI slot's "power" file.  I
> added a few dbg calls in the fs_remove_slot function in
> pci_hotplug_core.c and it seems that the call to sysfs_remove_file to
> remove the "power" file that is being written to does not return.
> Perhaps the code is locking the same mutex twice in this situation?

Just a bit more maybe-helpful info....

1. The problem appeared in 2.6.21.  2.6.20 works.

2. When the process writing 0 to the 'power' file is hung, running 'ls
/sys/bus/pci/slots/<slotname>' shows an empty directory, i.e. the unlink
of the 'power' file is at least partially complete but the <slotname>
directory remains.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

      reply	other threads:[~2008-01-08 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02 21:16 john_flowers
2008-01-03 18:18 ` Ian Abbott
2008-01-08 13:40   ` Ian Abbott [this message]

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=47837D4E.70106@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=john_flowers@agilent.com \
    --cc=linux-kernel@vger.kernel.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

Powered by JetHome