Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* REPOST: Strange hangs
@ 1998-05-17 23:04 Jay.Estabrook
  0 siblings, 0 replies; only message in thread
From: Jay.Estabrook @ 1998-05-17 23:04 UTC (permalink / raw)
  To: Nils Faerber; +Cc: axp-list


------- Forwarded Message

To: Nils Faerber <Nils.Faerber@unix-ag.org>
From: jestabro@amt.tay1.dec.com
Subject: Re: RH5 strange 'hangs' :( 
In-reply-to: Your message of Sat, 09 May 1998 03:19:55 +0200.
	<199805090119.DAA03284@harley.unix-ag.uni-siegen.de> 
Mime-Version: 1.0
Content-Type: text/plain
Date: Sat, 09 May 1998 00:11:55 +0500
Sender: jestabro@alpha1.estabrook.org


>>> Nils Faerber said:
> 
> So I thought it might be a good idea to write a little driver for Linux to
> display some stats using those LEDs ;) So I read the axppci33-memory.txt and
> found that they are located at address 3880.0000. And I thought fine! That
> is easy, do a phys_to_virt() and just write to that address using a little
> kernel module. But nothings happens!

That sounds like it ought to work; what does your code look like?

Perhaps something like this:

	unsigned long addr = phys_to_virt(0x38800000UL); /* create address */
	*(unsigned int *)addr = 0x000000aa; /* low byte is AA */
	mb(); /* this should force the write buffers to flush to memory */

Let me know if this works...

- --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.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
- -------------------------------------------------------------------------------



------- End of Forwarded Message



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-18  0:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-17 23:04 REPOST: Strange hangs Jay.Estabrook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox