Re: [PATCH 0/6] MSI portability cleanups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Monday, January 29, 2007 - 2:03 am

Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:


This is the most straight forward and handles machines with really
weird msi setups, so I lean in this direction.

The question is there anything at all we can do generically?

I can't see a case where ppc_md would not wind up with the hooks
that decide if it is a hypervisor or not.  Even if we came up
with a better set of functions you need to hook.


Ok. I think I get the point of check.  I believe I need to look at your
code a little more and see what you are doing to see if there is anything
generic worth doing, that we can always do outside of architecture code
no matter how much of the job the Hypervisor wants to do for us.

I'd hate to hit a different Hypervisor that did something close but
not quite the same and have the code fail then.  So definitely
avoiding touching pci config space at all in the calls seems to make a
lot of sense.  This includes avoiding pci_find_capability right?

Off the top of my head the only things we can do generically are
some data structure things and flags like dev->msi_enabled or
dev->msix_enabled.

Anyway have a nice night and more in the morning.


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