* [Xenomai] bcm2835 ipipe question
@ 2018-02-11 1:57 Greg Gallagher
2018-02-11 9:44 ` Philippe Gerum
0 siblings, 1 reply; 3+ messages in thread
From: Greg Gallagher @ 2018-02-11 1:57 UTC (permalink / raw)
To: Xenomai@xenomai.org
I'm getting the raspberry pi zero images ready and I see the following
in the dmesg:
[ 0.000000] WARNING: CPU: 0 PID: 0 at
/home/ggallagher/devel/emb_linux/ipipe-arm/kernel/irq/chip.c:57
irq_set_chip+0x7c/0xac
[ 0.000000] irqchip ARMCTRL-level is not pipeline-safe!
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.4-ipipe+ #2
[ 0.000000] Hardware name: BCM2835
[ 0.000000] I-pipe domain: Linux
it looks like cobalt isn't running either, I'm trying to find the best
way to debug this or if this is a bug?
Any help is appreciated
Greg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] bcm2835 ipipe question
2018-02-11 1:57 [Xenomai] bcm2835 ipipe question Greg Gallagher
@ 2018-02-11 9:44 ` Philippe Gerum
2018-02-12 1:12 ` Greg Gallagher
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2018-02-11 9:44 UTC (permalink / raw)
To: Greg Gallagher, Xenomai@xenomai.org
On 02/11/2018 02:57 AM, Greg Gallagher wrote:
> I'm getting the raspberry pi zero images ready and I see the following
> in the dmesg:
>
> [ 0.000000] WARNING: CPU: 0 PID: 0 at
> /home/ggallagher/devel/emb_linux/ipipe-arm/kernel/irq/chip.c:57
> irq_set_chip+0x7c/0xac
> [ 0.000000] irqchip ARMCTRL-level is not pipeline-safe!
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.4-ipipe+ #2
> [ 0.000000] Hardware name: BCM2835
> [ 0.000000] I-pipe domain: Linux
>
> it looks like cobalt isn't running either, I'm trying to find the best
> way to debug this or if this is a bug?
This is a heads up I have recently added telling us about an active IC
driver which has not been fixed up for interrupt pipelining yet, which
would certainly cause breakage with CONFIG_IPIPE on.
In that case, that would be:
drivers/irqchip/irq-bcm2835.c: .name = "ARMCTRL-level",
Looking at the code, it has been fixed up properly, but it is missing
the new flag introduced for tagging such condition, i.e.:
diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c
index bf8c9d4dc00d..ea2c31b58073 100644
--- a/drivers/irqchip/irq-bcm2835.c
+++ b/drivers/irqchip/irq-bcm2835.c
@@ -115,6 +115,7 @@ static struct irq_chip armctrl_chip = {
.irq_hold = armctrl_mask_irq,
.irq_release = armctrl_unmask_irq,
#endif
+ .flags = IRQCHIP_PIPELINE_SAFE,
};
--
Philippe.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Xenomai] bcm2835 ipipe question
2018-02-11 9:44 ` Philippe Gerum
@ 2018-02-12 1:12 ` Greg Gallagher
0 siblings, 0 replies; 3+ messages in thread
From: Greg Gallagher @ 2018-02-12 1:12 UTC (permalink / raw)
To: Philippe Gerum; +Cc: Xenomai@xenomai.org
Thanks Philippe, that worked. Working through a couple more issues
and the bcm2835 and bcm2836 images should be ready to share.
-Greg
On Sun, Feb 11, 2018 at 4:44 AM, Philippe Gerum <rpm@xenomai.org> wrote:
> On 02/11/2018 02:57 AM, Greg Gallagher wrote:
>> I'm getting the raspberry pi zero images ready and I see the following
>> in the dmesg:
>>
>> [ 0.000000] WARNING: CPU: 0 PID: 0 at
>> /home/ggallagher/devel/emb_linux/ipipe-arm/kernel/irq/chip.c:57
>> irq_set_chip+0x7c/0xac
>> [ 0.000000] irqchip ARMCTRL-level is not pipeline-safe!
>> [ 0.000000] Modules linked in:
>> [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.4-ipipe+ #2
>> [ 0.000000] Hardware name: BCM2835
>> [ 0.000000] I-pipe domain: Linux
>>
>> it looks like cobalt isn't running either, I'm trying to find the best
>> way to debug this or if this is a bug?
>
> This is a heads up I have recently added telling us about an active IC
> driver which has not been fixed up for interrupt pipelining yet, which
> would certainly cause breakage with CONFIG_IPIPE on.
>
> In that case, that would be:
> drivers/irqchip/irq-bcm2835.c: .name = "ARMCTRL-level",
>
> Looking at the code, it has been fixed up properly, but it is missing
> the new flag introduced for tagging such condition, i.e.:
>
> diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c
> index bf8c9d4dc00d..ea2c31b58073 100644
> --- a/drivers/irqchip/irq-bcm2835.c
> +++ b/drivers/irqchip/irq-bcm2835.c
> @@ -115,6 +115,7 @@ static struct irq_chip armctrl_chip = {
> .irq_hold = armctrl_mask_irq,
> .irq_release = armctrl_unmask_irq,
> #endif
> + .flags = IRQCHIP_PIPELINE_SAFE,
> };
>
> --
> Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-12 1:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-11 1:57 [Xenomai] bcm2835 ipipe question Greg Gallagher
2018-02-11 9:44 ` Philippe Gerum
2018-02-12 1:12 ` Greg Gallagher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.