From: Stephen Warren <swarren@wwwdotorg.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-kernel@vger.kernel.org,
Rob Herring <rob.herring@calxeda.com>,
Grant Likely <grant.likely@secretlab.ca>,
Stephen Warren <swarren@nvidia.com>
Subject: Re: [PATCH 7/7] gpio/tegra: convert to use linear irqdomain
Date: Tue, 16 Oct 2012 16:33:18 -0600 [thread overview]
Message-ID: <507DE0AE.7090701@wwwdotorg.org> (raw)
In-Reply-To: <1350415413-3723-1-git-send-email-linus.walleij@linaro.org>
On 10/16/2012 01:23 PM, Linus Walleij wrote:
> The MXS driver tries to do the work of irq_domain_add_linear()
> by reserving a bunch of descriptors somewhere and keeping track
> of the base offset, then calling irq_domain_add_legacy(). Let's
> stop doing that and simply use the linear IRQ domain.
This /looks/ fine, but appears to break users of GPIOs from this module,
and causes a backtrace when cat /sys/kernel/debug/gpio:
> root@localhost:/sys/kernel/debug# cat gpio
> [ 79.141308] Unable to handle kernel paging request at virtual address 5a5a5aaa
> [ 79.148701] pgd = eea70000
> [ 79.151401] [5a5a5aaa] *pgd=00000000
> [ 79.154979] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
> [ 79.160277] Modules linked in:
> [ 79.163329] CPU: 1 Not tainted (3.7.0-rc1-next-20121016-00016-g0f3bc78 #17)
> [ 79.170639] PC is at gpiolib_seq_show+0x3c/0x1b0
> [ 79.175245] LR is at gpiolib_seq_show+0x30/0x1b0
> [ 79.179851] pc : [<c01fde7c>] lr : [<c01fde70>] psr: 20000013
> [ 79.179851] sp : ee54fee0 ip : 00000039 fp : 00008000
> [ 79.191303] r10: 000002e9 r9 : ee8140dc r8 : ee54ff28
> [ 79.196513] r7 : ee8a9c40 r6 : ee8140dc r5 : ee54ff80 r4 : ee8a9c40
> [ 79.203024] r3 : 5a5a5a5a r2 : ee40e2e9 r1 : 00001000 r0 : 00000000
> [ 79.209535] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
> [ 79.216653] Control: 10c5387d Table: aea7004a DAC: 00000015
> [ 79.222383] Process cat (pid: 417, stack limit = 0xee54e238)
> [ 79.228029] Stack: (0xee54fee0 to 0xee550000)
> [ 79.232376] fee0: 5a5ab4b3 c05ca22c c00e6ac4 ee8a9c40 ee54ff80 ee48aef0 00000000 ee54ff28
> [ 79.240536] ff00: ee8140dc 000002e9 00008000 c00e6b34 00000000 00019000 ee8a9c68 00000000
> [ 79.248696] ff20: 00000000 00000000 00000001 00000000 00000000 00000000 00000000 ee48aef0
> [ 79.256857] ff40: 00008000 00019000 ee54ff80 ee54ff80 00008000 00019000 00000000 c00c8b10
> [ 79.265017] ff60: 00000000 00000000 00000000 00000000 ee48aef0 00000000 ee54ff80 c00c8be8
> [ 79.273176] ff80: 00000000 00000000 00008000 00019000 00000003 00000003 c000f044 ee54e000
> [ 79.281338] ffa0: 00000000 c000eec0 00008000 00019000 00000003 00019000 00008000 00019000
> [ 79.289497] ffc0: 00008000 00019000 00000003 00000003 00000000 00000000 b6fe5000 00000000
> [ 79.297658] ffe0: 00000000 beb645b4 0000b40d b6f621cc 40000010 00000003 00000000 00000000
> [ 79.305845] [<c01fde7c>] (gpiolib_seq_show+0x3c/0x1b0) from [<c00e6b34>] (seq_read+0x32c/0x4a0)
> [ 79.314533] [<c00e6b34>] (seq_read+0x32c/0x4a0) from [<c00c8b10>] (vfs_read+0xb0/0x144)
> [ 79.322523] [<c00c8b10>] (vfs_read+0xb0/0x144) from [<c00c8be8>] (sys_read+0x44/0x70)
> [ 79.330352] [<c00c8be8>] (sys_read+0x44/0x70) from [<c000eec0>] (ret_fast_syscall+0x0/0x30)
> [ 79.338688] Code: ebfba211 e5963004 e3530000 0a00000a (e5932050)
> [ 79.344790] ---[ end trace 6fb7238d59ff2ea0 ]---
Do you have any quick ideas? If not, I'll go investigate.
I wonder if this has anything to do with drivers/pinctrl/pinctrl-tegra.c
hard-coding the GPIO base in tegra_pinctrl_gpio_range.
I've had fixing those in my mental TODO list for a while, but you got
around to it first!
next prev parent reply other threads:[~2012-10-16 22:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 19:23 [PATCH 7/7] gpio/tegra: convert to use linear irqdomain Linus Walleij
2012-10-16 22:33 ` Stephen Warren [this message]
2012-10-17 18:32 ` Stephen Warren
2012-10-19 10:17 ` Linus Walleij
2012-10-18 6:29 ` Shawn Guo
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=507DE0AE.7090701@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=grant.likely@secretlab.ca \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rob.herring@calxeda.com \
--cc=swarren@nvidia.com \
/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