From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Michal Simek <monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
Cc: microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
John Williams
<john.williams-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org>,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH] irq_domain/microblaze: Convert microblaze to use irq_domains
Date: Mon, 30 Jan 2012 06:30:17 -0700 [thread overview]
Message-ID: <20120130133017.GE28397@ponder.secretlab.ca> (raw)
In-Reply-To: <4F268222.5030403-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
On Mon, Jan 30, 2012 at 12:42:26PM +0100, Michal Simek wrote:
> Hi Grant,
>
> Grant Likely wrote:
> >***totally untested. Don't apply yet***
> >
> >Michal, I leave it to you to test this patch. I've turned on SPARSE_IRQ, but
> >you may decide that isn't valuable. I've compile tested it, but that's
> >about it (in fact, I had to hack head.S to get it to build because I don't have
> >an up-to-date compiler for microblaze. It fails on an unknown opcode 'lwr')
> >
>
> I have looked at it and I there is problem with virq allocation in irq_create_mapping
> which calles irq_alloc_desc(0) and then __irq_alloc_descs(-1, 0, 1, node, THIS_MODULE)
> where bitmap_find_next_zero_area returns 0 (start = 0) which is passed to alloc_descs
> which just return it.
> It doesn't matter if SPARSE_IRQ is enabled or not.
> Error log is below.
>
> Can you give me hint how to fix it and what expected values are?
irq0 is getting allocated when it shouldn't be. The fix is to change the
calls in irqdomain.c from irq_alloc_desc(0) to irq_alloc_desc_from(1, 0).
I've got the fix in my tree and I'm pushing it out to the following branch
in a few minutes:
git://git.secretlab.ca/git/linux-2.6 irqdomain/next
g.
next prev parent reply other threads:[~2012-01-30 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 21:28 [PATCH] irq_domain/microblaze: Convert microblaze to use irq_domains Grant Likely
[not found] ` <1327613292-20580-1-git-send-email-grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
2012-01-27 7:51 ` Michal Simek
2012-01-30 11:42 ` Michal Simek
[not found] ` <4F268222.5030403-pSz03upnqPeHXe+LvDLADg@public.gmane.org>
2012-01-30 13:30 ` Grant Likely [this message]
[not found] ` <20120130133017.GE28397-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2012-01-31 10:53 ` Michal Simek
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=20120130133017.GE28397@ponder.secretlab.ca \
--to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=john.williams-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org \
--cc=microblaze-uclinux-rVRm/Wmeqae7NGdpmJTKYQ@public.gmane.org \
--cc=monstr-pSz03upnqPeHXe+LvDLADg@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).