linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Marking a physical page as uncacheable
@ 2000-07-19 17:57 Timur Tabi
  2000-07-20 14:36 ` Mark Mokryn
  0 siblings, 1 reply; 7+ messages in thread
From: Timur Tabi @ 2000-07-19 17:57 UTC (permalink / raw)
  To: Linux MM mailing list

How can I make a kernel-allocated page of memory uncacheable?  The ioremap()
function lets me specify a bitflag, so I know it's possible without using MTRR's.



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-19 17:57 Marking a physical page as uncacheable Timur Tabi
@ 2000-07-20 14:36 ` Mark Mokryn
  2000-07-20 15:26   ` Timur Tabi
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Mokryn @ 2000-07-20 14:36 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Linux MM mailing list

Try ioremap_nocache()

-Mark

Timur Tabi wrote:
> 
> How can I make a kernel-allocated page of memory uncacheable?  The ioremap()
> function lets me specify a bitflag, so I know it's possible without using MTRR's.
> 
> --
> Timur Tabi - ttabi@interactivesi.com
> Interactive Silicon - http://www.interactivesi.com
> 
> When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux.eu.org/Linux-MM/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-20 14:36 ` Mark Mokryn
@ 2000-07-20 15:26   ` Timur Tabi
  2000-07-20 16:16     ` Manfred Spraul
  0 siblings, 1 reply; 7+ messages in thread
From: Timur Tabi @ 2000-07-20 15:26 UTC (permalink / raw)
  To: Linux MM mailing list

** Reply to message from Mark Mokryn <mark@sangate.com> on Thu, 20 Jul 2000
17:36:39 +0300


> Try ioremap_nocache()

That's just a front-end to __ioremap().  I'm trying to make REAL RAM as
uncacheable, not PCI memory.  ioremap() does not work on real RAM, only high
addresses outside of physical memory.



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-20 16:16     ` Manfred Spraul
@ 2000-07-20 16:16       ` Timur Tabi
  2000-07-20 19:47       ` Timur Tabi
  1 sibling, 0 replies; 7+ messages in thread
From: Timur Tabi @ 2000-07-20 16:16 UTC (permalink / raw)
  To: Linux MM mailing list

** Reply to message from Manfred Spraul <manfred@colorfullife.com> on Thu, 20
Jul 2000 18:16:56 +0200


> You could use ClearPageReserved() + ioremap(), but ioremap() is limited
> to the first 4 GB.

The 4GB limit is okay for now.

What does ClearPageReserved do?  Does it make the kernel think that the page is
part of high memory?  



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-20 15:26   ` Timur Tabi
@ 2000-07-20 16:16     ` Manfred Spraul
  2000-07-20 16:16       ` Timur Tabi
  2000-07-20 19:47       ` Timur Tabi
  0 siblings, 2 replies; 7+ messages in thread
From: Manfred Spraul @ 2000-07-20 16:16 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Linux MM mailing list

Timur Tabi wrote:
> 
> ** Reply to message from Mark Mokryn <mark@sangate.com> on Thu, 20 Jul 2000
> 17:36:39 +0300
> 
> > Try ioremap_nocache()
> 
> That's just a front-end to __ioremap().  I'm trying to make REAL RAM as
> uncacheable, not PCI memory.  ioremap() does not work on real RAM, only high
> addresses outside of physical memory.
> 

You could use ClearPageReserved() + ioremap(), but ioremap() is limited
to the first 4 GB.

--
	Manfred
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-20 16:16     ` Manfred Spraul
  2000-07-20 16:16       ` Timur Tabi
@ 2000-07-20 19:47       ` Timur Tabi
  2000-07-21 13:51         ` Jeff Garzik
  1 sibling, 1 reply; 7+ messages in thread
From: Timur Tabi @ 2000-07-20 19:47 UTC (permalink / raw)
  To: Linux MM mailing list

** Reply to message from Manfred Spraul <manfred@colorfullife.com> on Thu, 20
Jul 2000 18:16:56 +0200


> You could use ClearPageReserved() + ioremap(), but ioremap() is limited
> to the first 4 GB.

Is there an ioUNremap()?  I need to perform tests on the memory region with the
cache disabled.  If the tests don't reveal what I'm looking for, then I need to
unallocate the block.  



--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Marking a physical page as uncacheable
  2000-07-20 19:47       ` Timur Tabi
@ 2000-07-21 13:51         ` Jeff Garzik
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2000-07-21 13:51 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Linux MM mailing list

On Thu, 20 Jul 2000, Timur Tabi wrote:
> ** Reply to message from Manfred Spraul <manfred@colorfullife.com> on Thu, 20
> Jul 2000 18:16:56 +0200
> > You could use ClearPageReserved() + ioremap(), but ioremap() is limited
> > to the first 4 GB.
> 
> Is there an ioUNremap()?  I need to perform tests on the memory region with the

It's called iounmap.  Please take a look at drivers which use the
functions are you interested in...  Also look at the docs :)
Documentation/IO-mapping.txt would be particularly helpful in this
instance.

	Jeff




--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-07-21 13:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-19 17:57 Marking a physical page as uncacheable Timur Tabi
2000-07-20 14:36 ` Mark Mokryn
2000-07-20 15:26   ` Timur Tabi
2000-07-20 16:16     ` Manfred Spraul
2000-07-20 16:16       ` Timur Tabi
2000-07-20 19:47       ` Timur Tabi
2000-07-21 13:51         ` Jeff Garzik

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