From: Daniel Hellstrom <daniel@gaisler.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller
Date: Mon, 11 Apr 2011 15:30:21 +0000 [thread overview]
Message-ID: <4DA31E8D.40904@gaisler.com> (raw)
In-Reply-To: <1300290864-20678-1-git-send-email-daniel@gaisler.com>
Daniel Hellstrom wrote:
> David Miller wrote:
>
>> From: Daniel Hellstrom <daniel@gaisler.com>
>> Date: Thu, 31 Mar 2011 17:13:35 +0200
>>
>>
>>
>>> This is sad, as we have designed all LEON architecture to be Plug&Play
>>> as far as possible, and it will be software that limits it in the
>>> end.
>>>
>>
>>
>> Never is this the case.
>>
>> For any future device you can provide properly formed firmware
>> device tree nodes, with all IRQ entries included.
>>
>>
> That is the problem, some cores need tweeking in bootloader or
> SPARC/LEON low IRQ layers. One can think of it as the LEON has a
> read-only OpenBoot device tree in hardware, but only provides the
> first IRQ.
>
>> Stop fighting this, you made a mistake in the past, and the set of
>> broken device nodes that need fixing will not expand if you start
>> creating them properly starting now.
>>
>> You made a mistake, add handlers to cope with that mistake, and
>> take this opportunity to fix things so that future LEON device
>> nodes found in firmware are properly formed and contain multiple
>> IRQ entries when necessary.
>>
>>
> You are correct. The hardware should be redesigned to contain the full
> information, and in the meantime we must fix this in software. I will
> try fixing this in the bootloader at first and see how things goes.
I have updated my genirq patches by relying on the bootloader to create
correct IRQ numbers. And I have added a PCI layer to LEON which also
depends on the GENIRQ layer.
Dave, how do you prefer that I continue my work, should I wait for Sam
to complete his work, or should I post the patches even though you can't
apply them?
Daniel
next prev parent reply other threads:[~2011-04-11 15:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 15:54 [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller Daniel Hellstrom
2011-03-30 9:23 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ David Miller
2011-03-30 10:00 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller Daniel Hellstrom
2011-03-30 10:34 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ David Miller
2011-03-30 12:41 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller Daniel Hellstrom
2011-03-30 22:41 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ David Miller
2011-03-31 15:13 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller Daniel Hellstrom
2011-03-31 23:57 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ David Miller
2011-04-01 8:17 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ Controller Daniel Hellstrom
2011-04-11 15:30 ` Daniel Hellstrom [this message]
2011-04-11 19:59 ` [PATCH] sparc32,leon: need VIRQ:IRQ 1:1, don't mask/ack IRQ David Miller
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=4DA31E8D.40904@gaisler.com \
--to=daniel@gaisler.com \
--cc=sparclinux@vger.kernel.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 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.