All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Chen Baozi <baozich@gmail.com>
Cc: Keir Fraser <keir@xen.org>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 3/4] xen: set the right flags when enabling interrupts for 8250
Date: Thu, 25 Jul 2013 13:33:28 +0100	[thread overview]
Message-ID: <51F11B18.80407@linaro.org> (raw)
In-Reply-To: <89ED3C27-8D2C-4E2E-86F8-83255D3B618F@gmail.com>

On 07/25/2013 12:31 PM, Chen Baozi wrote:
> 
> On Jul 25, 2013, at 7:17 PM, Julien Grall <julien.grall@linaro.org> wrote:
> 
>> On 07/25/2013 10:14 AM, Chen Baozi wrote:
>>
>>> Besides this test, I noticed that we set a timer to poll UART after enabling
>>> the interrupt. And the timer initialization codes are platform specific, which
>>> should be implemented in xen/arch/arm/platforms/omap5.c for example. However,
>>> I haven't done this yet. (I used to plan to turn to this work after UART porting
>>> has been done.) Is it a possible factor that may cause my issues?
>>
>> Xen uses the arch timers to handle the time. On some platform (for
>> instance the Arndale), it's not enabled by default.
>>
>> If the omap5 boot with the arch timers enabled, you don't need to
>> implement the init_time callback.
>>
>> Do you know if Xen receives timer interrupts?
> 
> Any way that I could confirm this?
> 
> There is a line of boot message:
> 
> "Using generic timer at 0 KHz."
> 

It seems the arch timer is not configured/enabled. Do you know if U-boot
enables it?

It's not clear to me, how you need to implement init_time. Do you have a
datasheet with the board? If yes, is there a section for the section timer?

Perhaps the good start is linux/arch/arm/mach-omap2/timer.c.

-- 
Julien

  reply	other threads:[~2013-07-25 12:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 12:57 [PATCH 0/4] Support 8250 compatible UART for OMAP5432 Chen Baozi
2013-07-19 12:57 ` [PATCH 1/4] xen: extract register definitions from ns16550 into a separated header Chen Baozi
2013-07-19 15:35   ` Julien Grall
2013-07-19 15:37     ` Chen Baozi
2013-07-19 15:43       ` Julien Grall
2013-07-19 12:57 ` [PATCH 2/4] xen/arm: add OMAP5432 UART support for early_printk Chen Baozi
2013-07-19 15:49   ` Julien Grall
2013-07-19 12:57 ` [PATCH 3/4] xen: set the right flags when enabling interrupts for 8250 Chen Baozi
2013-07-19 14:15   ` Ian Campbell
2013-07-19 15:18     ` Chen Baozi
2013-07-22 12:59       ` Chen Baozi
2013-07-23 11:47         ` Chen Baozi
2013-07-24 10:04           ` Chen Baozi
2013-07-25  9:14             ` Chen Baozi
2013-07-25 11:17               ` Julien Grall
2013-07-25 11:31                 ` Chen Baozi
2013-07-25 12:33                   ` Julien Grall [this message]
2013-07-26  1:14                     ` Chen Baozi
2013-07-26  3:31                       ` Chen Baozi
2013-07-26  9:30                         ` Chen Baozi
2013-07-26 10:42                         ` Julien Grall
2013-07-26 11:01                           ` Chen Baozi
2013-07-26 12:01                             ` Julien Grall
2013-07-26 12:32                               ` Chen Baozi
2013-07-19 12:57 ` [PATCH 4/4] xen/arm: enable ns16550 uart driver for OMAP5432 Chen Baozi
2013-07-19 17:06   ` Julien Grall
2013-07-22 13:06     ` 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=51F11B18.80407@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=baozich@gmail.com \
    --cc=keir@xen.org \
    --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.