Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Re: [Fwd: Bus arbitration on Alpha]
Date: Mon, 29 Sep 1997 00:31:41 +0500	[thread overview]
Message-ID: <199709290431.AAA14148@alpha1.estabrook.org> (raw)
In-Reply-To: <34294893.DAF1EE6@cyclades.com>

Hi, sorry about the delay in answering you; are you still in need of help?

>>> Ivan Passos said:
> 
> I am porting the Cyclades-Z multiport card driver to the Linux/Alpha 
> and I'm having several problems with that, due to the card mapping 
> (it's a memory-mapped card ...). Also, this card is an intelligent 
> card with an MIPS3000-compatible RISC processor.

By "memory-mapped", you mean the card has local memory which is seen
via PCI bus memory space? These are not memory-mapped registers, are they,
as opposed to just "memory"?

> The only thing I'm currently trying to do (in regards to transmission) 
> is read the tx_get, the tx_put and the tx_bufsize from the dual port 
> memory and doing some calculation (to check the available space in 
> the transmission buffer). If I comment out this line, the machine does 
> not halt. If I uncomment it, the machine locks completely. This is a 
> pretty basic operation and I don't understand why it is locking the
> machine. 

Well, it's seems that you're not accessing the local memory on that card
correctly, I'd guess. It could be either the addresses you use are not the
necessary ones for touching PCI memory space, or are not aligned correctly.

You can read the PCI config space base registers of the board, and get the
assigned memory addresses, right? Is this the base address you use in any
attempt to access that local memory?

You should be able use the kernel's readb/writeb/etc routines to access that
memory, I'd think, just by providing those routines with the PCI address
you wish to access; they'll do the magic that's necessary for accessing
that local memory.

> if there is any detail about bus arbitration in the Alpha that I don't 
> know, it would explain the machine lockups).

This is probably not your problem.

An example of use of readb/writeb/etc may be found in:

	drivers/scsi/ncr53c8xx.c

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2              enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407                decnet: tallis::jestabro
-------------------------------------------------------------------------------

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-09-28 19:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <34294893.DAF1EE6@cyclades.com>
1997-09-28 19:31 ` jestabro [this message]
     [not found] <01BCC8F7.B0231DE0@pengwin.qantel.com>
1997-09-24 22:17 ` [Fwd: Bus arbitration on Alpha] James R. Shipman
1997-09-24 21:39 Kelvin Lunsford
  -- strict thread matches above, loose matches on Subject: below --
1997-09-24 17:06 Ivan Passos
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