From: Gerard Roudier <groudier@club-internet.fr>
Subject: Re: MMIO for new NCR810 driver?
Date: Fri, 12 Jul 1996 22:32:33 +0000 (GMT) [thread overview]
Message-ID: <9a62a62d08705f5bf7b5b25e09787d24.axp-list@archive.invalid> (raw)
In-Reply-To: <199607120948.LAA11973@ceres.tat.physik.uni-tuebingen.de>
Hello Harald,
On Fri, 12 Jul 1996, Harald Koenig wrote:
> > I just look into io.h.
> > I did not understand a lot all that stuff.
> > Address ffffbc0..... seems weird (to an ignorant as I am about Alpha).
> > Are you sure that __reab() is expecting addresses that have been remapped
> > by vremap() ?
>
> no, these strange addresses are almost correct; this is the PAGE_OFFSET
> (asm-alpha/page.h) or IDENT_ADDR (asm-alpha/io.h) and part of the address
> for PCI/ISA bus mapping. from the Xserver sources I only know that the
> ISA/PCI bus is mapped to BUS_BASE / APECS_DENSE_MEM = 0xfffffc0300000000UL,
> so this really should be 0xfffffc0300000000 + 0x44000000 = 0xfffffc0344000000
> AFAIK.
I have understand something like that too. I think that this address
calculation allows to acces the video memory directly, without calling
some readx() function. However, it seems that our virtual address
0xfffffe0000042000 has been processed by __readb() or __readw().
The result is something that donnot look like a valid address.
With i386 architecture we need to remap high physical addresses
corresponding to bus addresses in the kernel virtual space in order to be
able to do memory mapped IO from the kernel.
My opinion is that Alpha architecture does not need such recipe and that
the readx() functions are not expecting addresses with IDENT_ADDR offset.
> or for kernel symbols:
> gdb /linux/vmlinux
> (gdb) x/i init
> 0xfffffc0000310f98 <init>: 27bb0016 ldah gp, 1441792(t12)
>
> > Perhaps we should use directly the bus base address (44000000).
> > It is just an idea. I do not reply to the list because I am very probably
> > wrong.
>
> I've tried this too (one never knows;) but it really didn't work
Well.
IMHO, mmio seems to be unnecessary under Alpha. io functions are
implemented with memory instructions and readb() and readw() is too
large and may decrease performances against inx() (x=b,w,l) functions.
I just try to find some code in the kernel tree which try to use readb()
or readl() from bus addresses > 16 MB (our is 68 MB) and I did not found
anything.
Have readb() or readw() ever worked for addresses > 16MB?
>
> > Have you some pointer to documentations about Alpha architecture?
> > At the moment I am quite ignorant of that. I have to learn something
> > about Alpha machines. I am very interested in such hardware.
>
> I'd guess this should be all mentioned in
>
> Alpha AXP Architecture Reference Manual
> Second Edition
> Digital Press/Butterworth-Heinemann
> DEC order #: EY-T132E-DP
> ISBN 1-55558-145-5
> Library of Congress: QA76.9.A73A46
Thanks, I will try to find this Manual.
> but I don't have it (yet?). so far I'm trying to avoid such problems
> or find some AXP guru (they are all on this list ;-)
Seems they are very busy.
> who knows/tells me.
> for the Xserver so far I only needed the bus base address, everything
> else is in user space and seems to work nicely...
>
> you can find some information in linux/include/asm-alpha/apecs.h (for my XL)
> and linux/include/asm-alpha/lca.h (for UDB/Multia) which define
>
> /linux/include/asm-alpha/apecs.h:#define APECS_DENSE_MEM (IDENT_ADDR + 0x300000000UL)
> /linux/include/asm-alpha/lca.h:#define LCA_DENSE_MEM (IDENT_ADDR + 0x300000000UL)
readb() and readw() are implemented through sparce space (APECS_SPARSE_MEM).
> > > ncr_attach: unit=0 chip=810 base=44000000, io_port=b400, irq=11
> > > ncr53c810-0: using memory mapped IO at virtual address 0xfffffe0000042000
> > > Unable to handle kernel paging request at virtual address ffffbc0200840080
>
> I don't understand why the kernel paging request address is much lower than
> the virt. MMIO address and even lower than PAGE_OFFSET or APECS_DENSE_MEM
Look into apecs.h / readb() and you will understand what happened to your
virtual remapped address just before the fault.
>
> Harald
Gerard.
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next parent reply other threads:[~1996-07-12 22:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199607120948.LAA11973@ceres.tat.physik.uni-tuebingen.de>
1996-07-12 22:32 ` Gerard Roudier [this message]
[not found] <Pine.LNX.3.91.960713100009.10237E-100000@linux.cs.Helsinki.FI>
1996-07-13 11:50 ` MMIO for new NCR810 driver? Gerard Roudier
[not found] <Pine.LNX.3.91.960712212833.116B-100000@gerard>
1996-07-13 7:09 ` Linus Torvalds
1996-07-12 20:47 David Mosberger-Tang
[not found] <Pine.LNX.3.91.960711230857.6399C-100000@gerard>
1996-07-12 9:35 ` Harald Koenig
-- strict thread matches above, loose matches on Subject: below --
1996-07-11 19:13 Harald Koenig
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox