public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Matt Fleming <matt@console-pimps.org>
To: linux-sh@vger.kernel.org
Subject: Re: User mode address error problems on 7763
Date: Fri, 11 Sep 2009 18:35:59 +0000	[thread overview]
Message-ID: <20090911183557.GA21695@console-pimps.org> (raw)
In-Reply-To: <6e6aa1a80909111106l6dbcfccag4e9e7a3abb922688@mail.gmail.com>

On Fri, Sep 11, 2009 at 01:06:31PM -0500, Dale Larson wrote:
> I've been porting linux (2.6.30.2) to our 7763 based platform and the
> kernel seems to be running fine but when user mode programs run I
> randomly get errors like this:
> 
> [    8.419557] VFS: Mounted root (nfs filesystem) on device 0:9.
> [    8.431863] Freeing unused kernel memory: 80k freed
> init started: BusyBox v1.14.3 (2009-09-04 15:19:48 CDT)
> [    8.682286] Fixing up unaligned userspace access in "mount" pid\x152
> pc=0x295583d0 ins=0x60b2
> [    8.699336] Sending SIGBUS to "mount" due to unaligned access (PC
> a0042955 PR 295583da)
> Populating /dev using udev: done
> 
> Another example:
> 
> Starting dropbear sshd: OK
> [  484.428550] Fixing up unaligned userspace access in "touch" pid\x188
> pc=0x295583d0 ins=0x60b2
> [  492.438796] Sending SIGBUS to "touch" due to unaligned access (PC
> a0042955 PR 295583da)
> 
> The SIGBUS kills the process. I've tried various versions of linux
> form kernel.org: 2.6.28, 2.6.29, 2.6.30 and all have the same
> behaviour.
> 
> Using JTAG I see that I'm having both data alignment and PC alignment
> problems. If I turn off the I&D caching this problem doesn't happen.
> 

This is most likely to be the cache aliasing bug I'm hunting. What are
the dimensions of your cache? Can you tried building a kernel from the
sh/cachetlb branch at,

git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git

and see if the issue persists? Paul has made some changes recently that
might work around this problem.

  reply	other threads:[~2009-09-11 18:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11 18:06 User mode address error problems on 7763 Dale Larson
2009-09-11 18:35 ` Matt Fleming [this message]
2009-09-11 19:16 ` Dale Larson
2009-09-14 13:02 ` Dale Larson
2009-09-14 13:10 ` Paul Mundt
2009-09-14 13:14 ` Matt Fleming
2009-09-14 13:54 ` Dale Larson
2009-09-15  8:39 ` Matt Fleming
2009-09-15 11:54 ` Dale Larson
2009-09-15 11:57 ` Paul Mundt
2009-09-15 12:20 ` Dale Larson
2009-09-15 12:36 ` Paul Mundt
2009-09-15 12:55 ` Dale Larson
2009-09-15 13:07 ` Paul Mundt
2009-09-15 13:16 ` Dale Larson
2009-09-15 13:23 ` Dale Larson
2009-09-15 13:29 ` Dale Larson
2009-09-15 13:39 ` Paul Mundt
2009-09-15 13:49 ` Valentin R Sitsikov
2009-09-15 14:43 ` Dale Larson
2009-09-15 23:42 ` Paul Mundt
2009-09-16 12:45 ` Dale Larson
2009-09-16 19:22 ` Dale Larson

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=20090911183557.GA21695@console-pimps.org \
    --to=matt@console-pimps.org \
    --cc=linux-sh@vger.kernel.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