login
Header Space

 
 

Re: [PATCH 0/6] MSI portability cleanups

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: Benjamin Herrenschmidt <benh@...>, David Miller <davem@...>, <jeff@...>, <greg@...>, <tony.luck@...>, <grundler@...>, <mingo@...>, <linux-kernel@...>, <kyle@...>, <linuxppc-dev@...>, <brice@...>, <shaohua.li@...>, <linux-pci@...>
Date: Monday, January 29, 2007 - 6:11 am

On Mon, 2007-01-29 at 02:03 -0700, Eric W. Biederman wrote:
g
f
e
e
s
y

You can read config space, but it's not clear to me if the HV is allowed
to filter it and hide things. It's also possible that the device
supports MSI, but for some reason the HV doesn't allow it on that device
etc. so you really have to ask the HV if it's enabled. So pci_find_cap()
shouldn't crash or anything, but it may lie to you.


It would be good to have a common data structure if possible. My
thinking was that most of the information is per pci_dev, so that's
where I put it. I realise the Intel code stores some info that's
per-irq, but most of it is per-device. I hadn't got anywhere near coding
it, but my vague idea was to add a arch_data (or whatever) pointer to my
msi_info struct, which would allow backends to stash stuff.

I think the pci_intx() calls can be in the core.

Munging dev->irq could be in the core, assuming it's left in some known
location by the code. On the other hand we might want to decide it's a
bad idea altogether.

One thing I did like about my code, is that pci_enable_msi() and
pci_enable_msix() are just small wrappers around generic_enable_msi() -
which does all the work, and is the same regardless of whether it's an
MSI or MSI-X. Although that's facilitated by the type arg which you
don't like.

cheers

--=20
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Sun Jan 28, 3:40 pm)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Sun Jan 28, 4:23 pm)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Sun Jan 28, 5:34 pm)
Re: [PATCH 0/6] MSI portability cleanups, Jeff Garzik, (Sun Jan 28, 4:47 pm)
Re: [PATCH 0/6] MSI portability cleanups, David Miller, (Sun Jan 28, 7:42 pm)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Sun Jan 28, 6:11 pm)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Sun Jan 28, 5:20 pm)
Re: [PATCH 0/6] MSI portability cleanups, David Miller, (Sun Jan 28, 7:44 pm)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Sun Jan 28, 6:09 pm)
Re: [PATCH 0/6] MSI portability cleanups, Greg KH, (Thu Feb 1, 12:29 am)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Sun Jan 28, 7:26 pm)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Sun Jan 28, 9:33 pm)
Re: [PATCH 0/6] MSI portability cleanups, David Miller, (Sun Jan 28, 7:37 pm)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Mon Jan 29, 1:18 am)
Re: [PATCH 0/6] MSI portability cleanups, David Miller, (Mon Jan 29, 1:25 am)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Mon Jan 29, 2:05 am)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Mon Jan 29, 5:03 am)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Mon Jan 29, 4:22 pm)
Re: [PATCH 0/6] MSI portability cleanups, Paul Mackerras, (Mon Jan 29, 7:05 pm)
Re: [PATCH 0/6] MSI portability cleanups, Segher Boessenkool, (Tue Jan 30, 3:32 pm)
Re: [PATCH 0/6] MSI portability cleanups, Michael Ellerman, (Mon Jan 29, 6:11 am)
Re: [PATCH 0/6] MSI portability cleanups, Paul Mackerras, (Mon Jan 29, 7:29 pm)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Mon Jan 29, 7:40 pm)
Re: [PATCH 0/6] MSI portability cleanups, Benjamin Herrenschmidt, (Mon Jan 29, 4:32 pm)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Mon Jan 29, 4:28 am)
Re: [PATCH 0/6] MSI portability cleanups, Eric W. Biederman, (Mon Jan 29, 1:58 am)
Re: [PATCH 0/6] MSI portability cleanups, Ingo Molnar, (Sun Jan 28, 5:26 pm)
[PATCH 1/6] msi: Kill msi_lookup_irq, Eric W. Biederman, (Sun Jan 28, 3:42 pm)
Re: [PATCH 1/6] msi: Kill msi_lookup_irq, Paul Mackerras, (Sun Jan 28, 6:01 pm)
Re: [PATCH 1/6] msi: Kill msi_lookup_irq, Eric W. Biederman, (Sun Jan 28, 6:18 pm)
[PATCH 2/6] msi: Remove msi_lock., Eric W. Biederman, (Sun Jan 28, 3:44 pm)
[PATCH 3/6] msi: Fix msi_remove_pci_irq_vectors., Eric W. Biederman, (Sun Jan 28, 3:45 pm)
[PATCH 4/6] msi: Remove attach_msi_entry., Eric W. Biederman, (Sun Jan 28, 3:47 pm)
[PATCH 5/6] msi: Kill the msi_desc array., Eric W. Biederman, (Sun Jan 28, 3:52 pm)
[PATCH 6/6] msi: Make MSI useable more architectures, Eric W. Biederman, (Sun Jan 28, 3:56 pm)
speck-geostationary