From: Ian Campbell <Ian.Campbell@citrix.com>
To: Chen Baozi <baozich@gmail.com>
Cc: xen-devel@lists.xen.org
Subject: Re: Problems after enabling rcv/xmit interrupts of ns16550 on OMAP5
Date: Wed, 17 Jul 2013 09:21:08 +0100 [thread overview]
Message-ID: <1374049268.4663.59.camel@kazak.uk.xensource.com> (raw)
In-Reply-To: <E67C8F48-7079-4F95-A95A-4BD475FD583C@gmail.com>
On Wed, 2013-07-17 at 16:02 +0800, Chen Baozi wrote:
> On Jul 12, 2013, at 3:41 PM, Chen Baozi <baozich@gmail.com> wrote:
>
> > This means you have neither registered the irq nor enabled the interrupts. If I turned both of these two blocks into:
> >
> > if ( uart->dt_irq.irq > )
> > {
> > ...
> > }
> >
> > There is the same phenomenon that I described in previous email. And If I comment either of these two blocks in my patch, my implementation works.
> >
> > Any ideas?
Sorry for not replying to this, the answer was going to be "no, but I'll
see if I can reproduce" -- but I never got a chance.
> I inserted some codes in ns16550_setup_postirq to see what would cause
> the stuck. It seems that it will stuck while restoring CPSR or "cpsie
> i". But I'm not sure that these two cases are the only factors that
> will lead the phenomenons.
Does it get stuck or does it just immediately take another interrupt?
(Could indicate a level vs. edge misconfiguration perhaps?)
Is "restoring CPSR" this from arm32/entry.S:
ENTRY(return_to_hypervisor)
cpsid i
ldr lr, [sp, #UREGS_lr]
ldr r11, [sp, #UREGS_pc]
msr ELR_hyp, r11
ldr r11, [sp, #UREGS_cpsr]
msr SPSR_hyp, r11
pop {r0-r12}
add sp, #(UREGS_SP_usr - UREGS_sp); /* SP, LR, SPSR, PC */
eret
or elsewhere? If it is this one does changing SPSR_hyp into SPSR_cxsf change anything?
The "cpsie i" is from the call to local_irq_enable in gic_interrupt() or
somewhere else?
Ian.
next prev parent reply other threads:[~2013-07-17 8:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-11 10:53 Problems after enabling rcv/xmit interrupts of ns16550 on OMAP5 Chen Baozi
2013-07-11 11:21 ` Ian Campbell
2013-07-11 11:37 ` Chen Baozi
2013-07-11 12:44 ` Chen Baozi
2013-07-11 12:46 ` Ian Campbell
2013-07-11 12:54 ` Chen Baozi
2013-07-12 7:41 ` Chen Baozi
2013-07-17 8:02 ` Chen Baozi
2013-07-17 8:21 ` Ian Campbell [this message]
2013-07-17 9:01 ` Chen Baozi
2013-07-17 9:21 ` Ian Campbell
2013-07-17 13:53 ` Chen Baozi
2013-07-17 15:26 ` Ian Campbell
2013-07-17 16:05 ` Chen Baozi
2013-07-18 11:53 ` Ian Campbell
2013-07-18 12:44 ` Chen Baozi
2013-07-19 8:25 ` Chen Baozi
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=1374049268.4663.59.camel@kazak.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=baozich@gmail.com \
--cc=xen-devel@lists.xen.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.