From: Greg KH <greg@kroah.com>
To: "Bloch, Jack" <Jack.Bloch@icn.siemens.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux hot swap support
Date: Wed, 18 Sep 2002 14:47:41 -0700 [thread overview]
Message-ID: <20020918214741.GI10970@kroah.com> (raw)
In-Reply-To: <180577A42806D61189D30008C7E632E8793A6B@boca213a.boca.ssc.siemens.com>
On Wed, Sep 18, 2002 at 05:37:50PM -0400, Bloch, Jack wrote:
> At the moment, I only support removal. The way it works is as follows.
>
> Upon system start up my device driver detects all of the boards which are
> present (I support up to six). For each board it allocates the necessary I/O
> lists memory needed for operation. All addresses are then mapped to user
> space with a mmap interface. Now, all HW is accessible from user space. For
> each device, an ISR is installed. As soon as the ejector handle for a
> particular device is opened, the board (which is a Motorola 68060 based
> board) issues an interrupt to me. I will shut this board down and
> de-allocate any of the previously reserved resources. What is not so easy is
> to perform the insert. I thought about allocating memory becessary for a
> maximum configuration, but I would still need to get the insertion event.
> But anyway since our device (even though it has multiple boards internally)
> is seen as a monolithic device from the main controlling host, the loss of a
> single board causes it to be taken out of service.
Hm, you might want to take a look at the cPCI patches from Scott Murray,
he has a solution for the resource and insertion problem that will
probably work for you. You can find the patches on the pcihpd-discuss
mailing list, and I think they were also posted to lkml in the past too.
He's working on cleaning them up a bit for inclusion in the main kernel
tree.
Hope this helps,
greg k-h
next prev parent reply other threads:[~2002-09-18 21:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-18 21:37 Linux hot swap support Bloch, Jack
2002-09-18 21:47 ` Greg KH [this message]
2002-09-19 0:05 ` Scott Murray
-- strict thread matches above, loose matches on Subject: below --
2002-09-19 12:19 Bloch, Jack
2002-09-18 21:51 Bloch, Jack
2002-09-18 22:12 ` Greg KH
2002-09-18 21:09 Bloch, Jack
2002-09-18 21:30 ` Greg KH
2002-09-18 20:59 Bloch, Jack
2002-09-18 21:05 ` Greg KH
[not found] <180577A42806D61189D30008C7E632E8793A64@boca213a.boca.ssc.siemens.com>
2002-09-18 20:37 ` Greg KH
2002-09-17 19:28 Bloch, Jack
2002-09-17 21:15 ` Alan Cox
2002-09-18 6:50 ` Greg KH
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=20020918214741.GI10970@kroah.com \
--to=greg@kroah.com \
--cc=Jack.Bloch@icn.siemens.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