Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Andrew Sharp <andy.sharp@onstor.com>
To: linux-mips@linux-mips.org
Subject: paging problem with ide-cs driver
Date: Tue, 9 Oct 2007 13:26:57 -0700	[thread overview]
Message-ID: <20071009132657.64ec9158@ripper.onstor.net> (raw)


I'm having a problem with paging through the ide-cs driver.  As best
I can tell right now, the kernel thinks the data is present and valid
when it actually isn't.  This is lmo 2.6.22.3, on a sibyte 1125H, but
I had the same problem with 2.6.20.something on an R9k based machine.

I can make a filesystem (ext3) on the CF card, mount it, read and write
to it.  But I can't chroot to it, can't set LD_LIBRARY_PATH to it,
can't use it as the root filesystem.

The chroot failure is the most telling.  When I try to chroot to it, I
get various segfault, bus error, illegal instruction, etc.  But if I
continue to try it, after 10-12 tries, it succeeds.  This tells me
that the data eventually arrives, it's just that the kernel tries to
use a page before the data is valid.

Before I dive into this, does any of this ring a bell for anyone?
I'm using the ide-cs driver, TI yenta cardbus adapter driver, and sibyte
everything else.

I can provide kernel output if anyone is interested in that.  But there
isn't any kernel output when the failure occurs, the thread just dies
with one of the various mentioned errors.

coolcat:~# cat /etc/fstab
proc /proc proc defaults 0 0
10.0.0.42:/var/nfsroot/cougar / nfs defaults 0 0
tmpfs /tmp tmpfs defaults,size=12m 0 0
coolcat:~# chroot /mnt
Illegal instruction
coolcat:~# chroot /mnt
Illegal instruction
coolcat:~# chroot /mnt
Segmentation fault
coolcat:~# chroot /mnt
Segmentation fault
coolcat:~# chroot /mnt
Illegal instruction
coolcat:~# chroot /mnt
Illegal instruction
coolcat:~# chroot /mnt
Illegal instruction
coolcat:~# chroot /mnt
Segmentation fault
coolcat:~# chroot /mnt
Segmentation fault
coolcat:~# chroot /mnt
coolcat:/# 
coolcat:/# cat /etc/fstab
Segmentation fault
coolcat:/# cat /etc/fstab
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults 0 0
tmpfs /tmp tmpfs defaults,size=12m 0 0
coolcat:/# exit

             reply	other threads:[~2007-10-09 20:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 20:26 Andrew Sharp [this message]
2007-10-09 21:05 ` paging problem with ide-cs driver Alan Cox
2007-10-09 21:41   ` Andrew Sharp
2007-10-10 11:25   ` Ralf Baechle

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=20071009132657.64ec9158@ripper.onstor.net \
    --to=andy.sharp@onstor.com \
    --cc=linux-mips@linux-mips.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