All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Read TSC results in bus error (ARM iMX25)
Date: Wed, 28 Oct 2009 15:45:04 +0100	[thread overview]
Message-ID: <4AE858F0.4010600@domain.hid> (raw)
In-Reply-To: <b88603c30910280734i7a823063s75b420720fdf3707@domain.hid>

Henri Roosen wrote:
> Hi,
> 
> I'm trying to bringup Xenomai 2.4.9.1 on a freescale iMX25 board and
> linux kernel 2.6.28. Until now all was straightforward by following
> the ArmPorting page on the Xenomai website and because the iMX25 is
> very similar to the already supported iMX3. The kernel boots and the
> xenomai timer is running.
> 
> However the testsuite apps (latency) are not working because the
> rt_timer_tsc() call results in a Bus error: 'Unhandled fault: external
> abort on non-linefetch (0x008) at 0x4001f024)'.
> 
> I verified at the xeno_arm_features_check() call the physical address
> of the GPT1 counter register is correct (0x53f90024 which matches the
> datasheet). The mmap call succeeds and the virtual address is at
> 0x4001f024. However, when de-referencing that pointer in the
> __xn_rdtsc() call the bus error occurs.
> 
> Anyone have an idea what I am missing?

Ok. I have already heard about that, and have not yet had time to
investigate it. However, I have seen in the kernel configuration which
restricts the access to /dev/mem, would you have such an option enabled?

Could you send me your .config ?

-- 
                                          Gilles



  reply	other threads:[~2009-10-28 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 14:34 [Xenomai-help] Read TSC results in bus error (ARM iMX25) Henri Roosen
2009-10-28 14:45 ` Gilles Chanteperdrix [this message]
     [not found]   ` <b88603c30910280753uea312e1p3d5f62012814d355@domain.hid>
     [not found]     ` <4AE860FB.4090903@domain.hid>
2009-10-28 15:25       ` Henri Roosen
2009-10-28 15:28         ` Gilles Chanteperdrix
2009-10-28 16:17           ` Henri Roosen
2009-10-28 16:42             ` Gilles Chanteperdrix
2009-10-28 17:34               ` Henri Roosen

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=4AE858F0.4010600@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=henriroosen@domain.hid \
    --cc=xenomai@xenomai.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.