From: ebiederm@xmission.com (Eric W. Biederman)
To: michael@ellerman.id.au
Cc: linux-pci@atrey.karlin.mff.cuni.cz,
Greg Kroah-Hartman <greg@kroah.com>,
"David S. Miller" <davem@davemloft.net>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
daniel.e.wolstenholme@intel.com
Subject: Re: [PATCH 13/21] MSI: Do MSI masking in the arch code
Date: Thu, 29 Mar 2007 07:31:09 -0600 [thread overview]
Message-ID: <m18xdgkwgy.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <1175158720.16660.69.camel@concordia.ozlabs.ibm.com> (Michael Ellerman's message of "Thu, 29 Mar 2007 18:58:40 +1000")
Michael Ellerman <michael@ellerman.id.au> writes:
>
> The main motivation was to have the arch in control of as much direct
> register writing as possible. Even though our HV does allow us to write
> to config space, it's not obviously safe for Linux to be flipping bits
> and also calling the HV to configure things. What's worse, I don't have
> hardware that supports the mask bits, so I can't test it.
I agree that there are limits here, on what we can feed into a hypervisor
and not confuse it. Mostly my thinking is to assume someone has been
scribbling with the msi capability before we got there and to place
everything in a know good state and not assume that device reset has
already done the work for us. Since we aren't the pci device reset
we can choose the defaults that make sense for us.
Worse case we can just put the capability in the state that pci device
reset would have put it in.
> I also thought this would save me from having custom MSI irq_chips for
> the powerpc backends. But I think I need them now anyway, so I guess
> that's not a concern.
Well we could still do the basic setup in arch_setup_msi_irq so I don't think
it has ever been an irq_chips style operations.
> So I guess we'll drop this one, although I might try and tidy up the
> implementation of "mask all MSIs" in msi_capability_init() as another
> patch.
I have no problem with that. The msix version of this still needs
to be written as well.
Eric
prev parent reply other threads:[~2007-03-29 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070322105342.B8317DDF6A@ozlabs.org>
2007-03-28 6:39 ` Eric W. Biederman
2007-03-29 8:58 ` Michael Ellerman
2007-03-29 13:31 ` Eric W. Biederman [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=m18xdgkwgy.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=daniel.e.wolstenholme@intel.com \
--cc=davem@davemloft.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=michael@ellerman.id.au \
/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
all inboxes | Powered by JetHome®