From: David Daney <ddaney@caviumnetworks.com>
To: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: "Yang,Wei" <Wei.Yang@windriver.com>, <david.daney@cavium.com>,
<ralf@linux-mips.org>, <linux-mips@linux-mips.org>
Subject: Re: [PATCH V2] mips/octeon_3xxx: Fix a warning on octeon_3xxx
Date: Wed, 19 Mar 2014 11:34:43 -0700 [thread overview]
Message-ID: <5329E343.60309@caviumnetworks.com> (raw)
In-Reply-To: <20140319162008.GA4368@alberich>
On 03/19/2014 09:20 AM, Andreas Herrmann wrote:
> On Wed, Mar 19, 2014 at 05:51:41PM +0800, Yang,Wei wrote:
>> ping.
>
> I think, that the proper solution to avoid this warning is
> to fix the DTS information.
>
Just for the record: The DTS is reflecting the actual routing of the
signals within the SoC. So I would argue that we shouldn't change it
for these two reasons:
1) It accurately reflects reality.
2) There are deployed bootloaders that supply this to the kernel that
are difficult to change.
> The warning started to trigger since commit
> 3da5278727a895d49a601f67fd49dffa0b80f9a5 (of/irq: Rework of_irq_count())
> was introduced.
>
> This changed of_irq_count() like this:
>
> - while (of_irq_to_resource(dev, nr, NULL))
> + while (of_irq_parse_one(dev, nr, &irq) == 0)
>
> Since then the code maps IRQs listed in the gpio-controller device
> node to its interrupt-parent, I think.
>
> Before this patch those interrupts weren't mapped at this point.
>
> I think both patches are fine to avoid the warning. With the new
> version kind of a redundant mapping of GPIO interrupts happens (which
> will be overridden for an GPIO IRQ as soon as it is really used).
> This makes me think that the warning makes sense and the DTS needs to
> be fixed. (We should not use octeon_irq_ciu_xlat/octeon_irq_ciu_map
> for GPIO lines.)
>
> I might be wrong but maybe specifying an interrupt-parent for the
> gpio-controller (and thus listing the GPIO IRQs in the gpio-controller
> device node) was not a good choice.
>
Andreas has a slightly modified version of the V2 patch that we tested,
and it seems to work. I think we should go with that instead of the V2
patch.
David Daney
>
>>
WARNING: multiple messages have this Message-ID (diff)
From: David Daney <ddaney@caviumnetworks.com>
To: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: "Yang,Wei" <Wei.Yang@windriver.com>,
david.daney@cavium.com, ralf@linux-mips.org,
linux-mips@linux-mips.org
Subject: Re: [PATCH V2] mips/octeon_3xxx: Fix a warning on octeon_3xxx
Date: Wed, 19 Mar 2014 11:34:43 -0700 [thread overview]
Message-ID: <5329E343.60309@caviumnetworks.com> (raw)
Message-ID: <20140319183443.oERwEg5LB59T8loyvDBtt2WRNA1IFB9p9sqfPACYz5g@z> (raw)
In-Reply-To: <20140319162008.GA4368@alberich>
On 03/19/2014 09:20 AM, Andreas Herrmann wrote:
> On Wed, Mar 19, 2014 at 05:51:41PM +0800, Yang,Wei wrote:
>> ping.
>
> I think, that the proper solution to avoid this warning is
> to fix the DTS information.
>
Just for the record: The DTS is reflecting the actual routing of the
signals within the SoC. So I would argue that we shouldn't change it
for these two reasons:
1) It accurately reflects reality.
2) There are deployed bootloaders that supply this to the kernel that
are difficult to change.
> The warning started to trigger since commit
> 3da5278727a895d49a601f67fd49dffa0b80f9a5 (of/irq: Rework of_irq_count())
> was introduced.
>
> This changed of_irq_count() like this:
>
> - while (of_irq_to_resource(dev, nr, NULL))
> + while (of_irq_parse_one(dev, nr, &irq) == 0)
>
> Since then the code maps IRQs listed in the gpio-controller device
> node to its interrupt-parent, I think.
>
> Before this patch those interrupts weren't mapped at this point.
>
> I think both patches are fine to avoid the warning. With the new
> version kind of a redundant mapping of GPIO interrupts happens (which
> will be overridden for an GPIO IRQ as soon as it is really used).
> This makes me think that the warning makes sense and the DTS needs to
> be fixed. (We should not use octeon_irq_ciu_xlat/octeon_irq_ciu_map
> for GPIO lines.)
>
> I might be wrong but maybe specifying an interrupt-parent for the
> gpio-controller (and thus listing the GPIO IRQs in the gpio-controller
> device node) was not a good choice.
>
Andreas has a slightly modified version of the V2 patch that we tested,
and it seems to work. I think we should go with that instead of the V2
patch.
David Daney
>
>>
next prev parent reply other threads:[~2014-03-19 18:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 4:48 [PATCH V2] mips/octeon_3xxx: Fix a warning on octeon_3xxx Wei.Yang
2014-03-18 4:48 ` Wei.Yang
2014-03-19 9:51 ` Yang,Wei
2014-03-19 9:51 ` Yang,Wei
2014-03-19 16:20 ` Andreas Herrmann
2014-03-19 16:20 ` Andreas Herrmann
2014-03-19 18:34 ` David Daney [this message]
2014-03-19 18:34 ` David Daney
2014-03-19 22:03 ` [PATCH] MIPS: octeon: Fix warning in of_device_alloc on cn3xxx Andreas Herrmann
2014-03-19 22:03 ` Andreas Herrmann
2014-03-19 22:12 ` David Daney
2014-03-19 22:12 ` David Daney
2014-03-19 23:11 ` Aaro Koskinen
2014-03-20 0:53 ` Yang,Wei
2014-03-20 0:53 ` Yang,Wei
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=5329E343.60309@caviumnetworks.com \
--to=ddaney@caviumnetworks.com \
--cc=Wei.Yang@windriver.com \
--cc=andreas.herrmann@caviumnetworks.com \
--cc=david.daney@cavium.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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