* [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN
@ 2017-07-17 13:12 laurentiu.tudor
2017-07-18 10:55 ` Michael Ellerman
2017-07-27 12:37 ` [v2] " Michael Ellerman
0 siblings, 2 replies; 4+ messages in thread
From: laurentiu.tudor @ 2017-07-17 13:12 UTC (permalink / raw)
To: oss, mpe, linuxppc-dev; +Cc: Laurentiu Tudor
From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN
Kconfig by enabling the asm-generic msi.h in Kbuild. Without
this, there's a compilation error [1] because powerpc, as most
arches, doesn't provide an asm/msi.h.
[1] In file included from ./include/linux/kvm_host.h:20:0,
from ./arch/powerpc/include/asm/kvm_ppc.h:30,
from arch/powerpc/kernel/dbell.c:20:
./include/linux/msi.h:195:21: fatal error: asm/msi.h: No such file or directory
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
---
v2:
- compilation error happens when GENERIC_MSI_IRQ_DOMAIN is enabled and not
GENERIC_MSI_IRQ, so fix commit msg and title
previous version: https://patchwork.ozlabs.org/patch/782735/
arch/powerpc/include/asm/Kbuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild
index 5c4fbc8..2542ea1 100644
--- a/arch/powerpc/include/asm/Kbuild
+++ b/arch/powerpc/include/asm/Kbuild
@@ -8,3 +8,4 @@ generic-y += mcs_spinlock.h
generic-y += preempt.h
generic-y += rwsem.h
generic-y += vtime.h
+generic-y += msi.h
--
2.9.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN
2017-07-17 13:12 [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN laurentiu.tudor
@ 2017-07-18 10:55 ` Michael Ellerman
2017-07-18 11:06 ` Laurentiu Tudor
2017-07-27 12:37 ` [v2] " Michael Ellerman
1 sibling, 1 reply; 4+ messages in thread
From: Michael Ellerman @ 2017-07-18 10:55 UTC (permalink / raw)
To: laurentiu.tudor, oss, linuxppc-dev; +Cc: Laurentiu Tudor
laurentiu.tudor@nxp.com writes:
> From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
>
> This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN
> Kconfig by enabling the asm-generic msi.h in Kbuild. Without
> this, there's a compilation error [1] because powerpc, as most
> arches, doesn't provide an asm/msi.h.
>
> [1] In file included from ./include/linux/kvm_host.h:20:0,
> from ./arch/powerpc/include/asm/kvm_ppc.h:30,
> from arch/powerpc/kernel/dbell.c:20:
> ./include/linux/msi.h:195:21: fatal error: asm/msi.h: No such file or directory
>
> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
> ---
> v2:
> - compilation error happens when GENERIC_MSI_IRQ_DOMAIN is enabled and not
> GENERIC_MSI_IRQ, so fix commit msg and title
It looks like the only way powerpc can enable GENERIC_MSI_IRQ_DOMAIN is
by enabling FSL_MC_BUS ?
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN
2017-07-18 10:55 ` Michael Ellerman
@ 2017-07-18 11:06 ` Laurentiu Tudor
0 siblings, 0 replies; 4+ messages in thread
From: Laurentiu Tudor @ 2017-07-18 11:06 UTC (permalink / raw)
To: Michael Ellerman, oss@buserror.net, linuxppc-dev@lists.ozlabs.org
Hi Michael,
On 07/18/2017 01:55 PM, Michael Ellerman wrote:
> laurentiu.tudor@nxp.com writes:
>
>> From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
>>
>> This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN
>> Kconfig by enabling the asm-generic msi.h in Kbuild. Without
>> this, there's a compilation error [1] because powerpc, as most
>> arches, doesn't provide an asm/msi.h.
>>
>> [1] In file included from ./include/linux/kvm_host.h:20:0,
>> from ./arch/powerpc/include/asm/kvm_ppc.h:30,
>> from arch/powerpc/kernel/dbell.c:20:
>> ./include/linux/msi.h:195:21: fatal error: asm/msi.h: No such file or di=
rectory
>>
>> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
>> ---
>> v2:
>> - compilation error happens when GENERIC_MSI_IRQ_DOMAIN is enabled and=
not
>> GENERIC_MSI_IRQ, so fix commit msg and title
>
> It looks like the only way powerpc can enable GENERIC_MSI_IRQ_DOMAIN is
> by enabling FSL_MC_BUS ?
>
Yes, i think so. I'm currently working on making FSL_MC_BUS compile=20
multi-arch [1] and that's how i hit this compilation error on ppc.
[1] https://lkml.org/lkml/2017/7/17/415
---
Best Regards, Laurentiu=
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN
2017-07-17 13:12 [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN laurentiu.tudor
2017-07-18 10:55 ` Michael Ellerman
@ 2017-07-27 12:37 ` Michael Ellerman
1 sibling, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-07-27 12:37 UTC (permalink / raw)
To: laurentiu.tudor, oss, linuxppc-dev; +Cc: Laurentiu Tudor
On Mon, 2017-07-17 at 13:12:43 UTC, laurentiu.tudor@nxp.com wrote:
> From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
>
> This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN
> Kconfig by enabling the asm-generic msi.h in Kbuild. Without
> this, there's a compilation error [1] because powerpc, as most
> arches, doesn't provide an asm/msi.h.
>
> [1] In file included from ./include/linux/kvm_host.h:20:0,
> from ./arch/powerpc/include/asm/kvm_ppc.h:30,
> from arch/powerpc/kernel/dbell.c:20:
> ./include/linux/msi.h:195:21: fatal error: asm/msi.h: No such file or directory
>
> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8f36479d0eda3c078ee4e1ec79ea9a
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-27 12:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 13:12 [PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN laurentiu.tudor
2017-07-18 10:55 ` Michael Ellerman
2017-07-18 11:06 ` Laurentiu Tudor
2017-07-27 12:37 ` [v2] " Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).