From: "Konstantin Boyanov" <kkboyanov@gmail•com>
To: "Ajit Prem" <Ajit.Prem@motorola•com>, linuxppc-embedded@ozlabs•org
Subject: Re: VME driver problem on MVME6100
Date: Thu, 25 May 2006 21:00:40 +0200 [thread overview]
Message-ID: <929bf310605251200s66106eaer@mail.gmail.com> (raw)
In-Reply-To: <007501c6801c$3b86fde0$0400a8c0@DLAPTOP>
[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]
Hi again,
The problem persist even with the new driver for 2.6 ... :(
It is obvious that the driver cannot allocate memory for the window... It
fails that thing called __ioremap(), whatever it might be used for:
[mvme6100]# vme_setoutboundwin -h
vme_setoutboundwin
Usage: vme_setoutboundwin <options>
-w <window> window(where 0<=window<=6)
-m <mode> address mode (where 0=A16,1=A24,2=A32,3=A64,4=CRCSR)
-p <protocol> protocol (where
1=SCT,2=BLT,4=MBLT,8=2eVME,0x10=2eSST)
-a <VME addr> VME address
-d <data width> data width (8, 16, 32, 64)
-s <window size> window size (where 0 < window_size <=
0x400000)
-v Be more verbose
-h Give this (short) help
[mvme6100]# vme_setoutboundwin -w0 -m0 -p8 -a0x8800 -d16 -s400000 -v
window = 0, mode = 0 protocol 0x8 vme_addr = 0x8800 data width = 16
__ioremap(): phys addr 01000000 is RAM lr d100be34
vmedrv: No memory for outbound window
ioctl VME_IOCTL_SET_OUTBOUND failed.: Cannot allocate memory
While searching on the web for information about __ioremap I found this:
/*
* Remap an arbitrary physical address space into the kernel virtual
* address space. Needed when the kernel wants to access high addresses
* directly.
*
* NOTE! We need to allow non-page-aligned mappings too: we will obviously
* have to convert them into an offset in a page-aligned mapping, but the
* caller shouldn't need to know that small detail.
*/
And another thing - people should not be using __ioremap() unless they
have a _good_ _reason_ in their driver. They should be using ioremap()
instead. __ioremap() is an architecture implementation detail which
has no interface stability guarantees _at all_.
How's that? So it seems that the kernel can't translate the accesses to the
VME bus propperly. Any ideas how to fix that?
Actually I cant figure out why configuring a single outbound window is so
damn tough to achieve.e maybe I'm missing some crutial settings. I tried to
set up the window attribute register, and the outbound translation offset
register in the hope to fit in the needed size for the window, but again
failed. I'm trying to get frustrated about that...
Best regards,
Konstantin
[-- Attachment #2: Type: text/html, Size: 3220 bytes --]
next parent reply other threads:[~2006-05-25 19:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <929bf310605250923i1924c12bj@mail.gmail.com>
[not found] ` <007501c6801c$3b86fde0$0400a8c0@DLAPTOP>
2006-05-25 19:00 ` Konstantin Boyanov [this message]
2006-05-25 23:33 ` VME driver problem on MVME6100 Konstantin Boyanov
2006-05-24 17:05 Konstantin Boyanov
2006-05-24 19:44 ` Xavier Grave
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=929bf310605251200s66106eaer@mail.gmail.com \
--to=kkboyanov@gmail$(echo .)com \
--cc=Ajit.Prem@motorola$(echo .)com \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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