From: "Wiedemeier, Jeff" <Jeff.Wiedemeier@hp.com>
To: "David S. Miller" <davem@redhat.com>
Cc: jgarzik@pobox.com, ink@jurassic.park.msu.ru, willy@debian.org,
linux-kernel@vger.kernel.org,
Jeff Wiedemeier <Jeff.Wiedemeier@hp.com>
Subject: Re: [patch 2.5] tg3.c: pci_{save,restore}_extended_state
Date: Fri, 24 Jan 2003 16:33:41 -0500 [thread overview]
Message-ID: <20030124163341.A4366@dsnt25.mro.cpqcorp.net> (raw)
In-Reply-To: <20030124.125121.78932406.davem@redhat.com>; from davem@redhat.com on Fri, Jan 24, 2003 at 12:51:21PM -0800
On Fri, Jan 24, 2003 at 12:51:21PM -0800, David S. Miller wrote:
> From: "Wiedemeier, Jeff" <Jeff.Wiedemeier@hp.com>
> Date: Fri, 24 Jan 2003 15:46:35 -0500
>
> On Fri, Jan 24, 2003 at 03:34:02PM -0500, Jeff Garzik wrote:
> > AFAICS, this is a per-driver decision, and needs to be done at the
> > driver level, in the tg3 driver source.
>
> The last sentence in the quote above indicates that it is not intended
> (by the PCI spec) to be a per-driver decision, but rather a system
> decision. The messages used are also a per-bus system resource and how
> an MSI goes from the PCI bus to the rest of the system (i.e. the CPU(s))
> is implementation dependent.
>
> Yes, this is understood.
>
> But the tg3 hw designers have decided to do something which makes this
> not possible.
True.
> So, for tg3's case, it has to become a driver specific decision
> whether to support MSI or not.
But right now, the driver does not have enough information to make it a
driver specific decision. INT_LINE may not be enough to determine the
vector to claim for LSIs and "Message Data" may not be enough to
determine the vector to claim for MSIs. What is there is the irq field
in struct pci_dev.
The intent I had in making sure that MSGINT_MODE was set to match
PCI_MSI_FLAGS_ENABLE and making sure the capability was saved and
restored was to come as close as possible to the spec.
If it needs to be made a driver decision, there needs to be some way to
communicate the correct vector information for whichever option the
driver is using (if there already is and I missed it, please let me
know). Otherwise, it seems that trying to match spec behavior given the
hardware design or disabling MSI at config time for these devices (such
as through quirks) are the options.
/jeff
next prev parent reply other threads:[~2003-01-24 21:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-24 18:27 Ivan Kokshaysky
2003-01-24 19:31 ` Jeff Garzik
2003-01-24 19:34 ` David S. Miller
2003-01-24 20:00 ` Wiedemeier, Jeff
2003-01-24 19:53 ` David S. Miller
2003-01-24 20:04 ` Wiedemeier, Jeff
2003-01-24 20:05 ` Jeff Garzik
2003-01-24 20:24 ` Wiedemeier, Jeff
2003-01-24 20:34 ` Jeff Garzik
2003-01-24 20:46 ` Wiedemeier, Jeff
2003-01-24 20:51 ` David S. Miller
2003-01-24 21:33 ` Wiedemeier, Jeff [this message]
2003-01-24 21:34 ` David S. Miller
2003-01-24 22:41 ` Ivan Kokshaysky
2003-01-24 22:32 ` David S. Miller
2003-01-24 22:51 ` Jeff Garzik
2003-01-25 0:33 ` Wiedemeier, Jeff
2003-01-25 1:42 ` David S. Miller
2003-01-24 22:56 ` Jeff Garzik
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=20030124163341.A4366@dsnt25.mro.cpqcorp.net \
--to=jeff.wiedemeier@hp.com \
--cc=davem@redhat.com \
--cc=ink@jurassic.park.msu.ru \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@debian.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
all inboxes | Powered by JetHome®