All of lore.kernel.org
 help / color / mirror / Atom feed
* kseg1 uncache access issue
@ 2008-01-08 16:35 ` lovecentry
  0 siblings, 0 replies; 6+ messages in thread
From: lovecentry @ 2008-01-08 16:35 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

Hi

As we know in mips achitecture if current pc falls into kseg1 segment, any
memory reference will bypass cache and fetch directly from dram. But for
some prcoessor such like mips R10K it has off chip L2 cache. I haven't found
any available path which can access dram directly. All memory reference need
pass through L2 cache. Does it mean any memory reference in kseg1 will be
fetch from L2 cache rather than dram for such system? How does such system
design when system software need access kseg1 region? Further more, Kseg2 is
used to do memory map for those peripheral so Is there has a particular
circuit that routes those access to the appropriate destination.

Any suggestion is highly appreciate!!!

 

Tony


[-- Attachment #2: Type: text/html, Size: 3026 bytes --]

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

* kseg1 uncache access issue
@ 2008-01-08 16:35 ` lovecentry
  0 siblings, 0 replies; 6+ messages in thread
From: lovecentry @ 2008-01-08 16:35 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

Hi

As we know in mips achitecture if current pc falls into kseg1 segment, any
memory reference will bypass cache and fetch directly from dram. But for
some prcoessor such like mips R10K it has off chip L2 cache. I haven't found
any available path which can access dram directly. All memory reference need
pass through L2 cache. Does it mean any memory reference in kseg1 will be
fetch from L2 cache rather than dram for such system? How does such system
design when system software need access kseg1 region? Further more, Kseg2 is
used to do memory map for those peripheral so Is there has a particular
circuit that routes those access to the appropriate destination.

Any suggestion is highly appreciate!!!

 

Tony


[-- Attachment #2: Type: text/html, Size: 3026 bytes --]

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

* Re: kseg1 uncache access issue
  2008-01-08 16:35 ` lovecentry
  (?)
@ 2008-01-08 17:02 ` Thomas Bogendoerfer
  2008-01-08 18:59   ` Ralf Baechle
  -1 siblings, 1 reply; 6+ messages in thread
From: Thomas Bogendoerfer @ 2008-01-08 17:02 UTC (permalink / raw)
  To: lovecentry; +Cc: linux-mips

On Wed, Jan 09, 2008 at 12:35:06AM +0800, lovecentry wrote:
> As we know in mips achitecture if current pc falls into kseg1 segment, any
> memory reference will bypass cache and fetch directly from dram. But for
> some prcoessor such like mips R10K it has off chip L2 cache. I haven't found

why do you think so ? R10k L2 cache controller is inside CPU and any
access with uncached attribute will go directly to memory. The only
systems, where this might be different are systems with caches unknown
to the cpu. But even those usually obey that uncached accesses are
going directly to memory.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                                [ RFC1925, 2.3 ]

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

* Re: kseg1 uncache access issue
  2008-01-08 17:02 ` Thomas Bogendoerfer
@ 2008-01-08 18:59   ` Ralf Baechle
  2008-01-09 13:20       ` lovecentry
  0 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2008-01-08 18:59 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: lovecentry, linux-mips

On Tue, Jan 08, 2008 at 06:02:06PM +0100, Thomas Bogendoerfer wrote:

> On Wed, Jan 09, 2008 at 12:35:06AM +0800, lovecentry wrote:
> > As we know in mips achitecture if current pc falls into kseg1 segment, any
> > memory reference will bypass cache and fetch directly from dram. But for
> > some prcoessor such like mips R10K it has off chip L2 cache. I haven't found
> 
> why do you think so ? R10k L2 cache controller is inside CPU and any
> access with uncached attribute will go directly to memory. The only
> systems, where this might be different are systems with caches unknown
> to the cpu. But even those usually obey that uncached accesses are
> going directly to memory.

It should also be mentioned that some R10000 machines do odd stuff with
uncached addresses.

IP27 class machines reuse the entire physical address space several times
to map different things.  The selection of the four uncached address
spaces id done by the uncached attribute which is specified either in
the TLB or or as as bit 59..60 of a virtual address in XKPHYS.

The memory controller of the Indigo 2 R10000 needs to be switched to a
special slower mode to allow uncached accesses first.

  Ralf

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

* 答复: kseg1 uncache access issue
@ 2008-01-09 13:20       ` lovecentry
  0 siblings, 0 replies; 6+ messages in thread
From: lovecentry @ 2008-01-09 13:20 UTC (permalink / raw)
  To: 'Ralf Baechle', 'Thomas Bogendoerfer'; +Cc: linux-mips

Hi gents
	Thanks for your reply. Now I try to implement MIPS R10000
microprcoessor simulation with C language, so many issues still puzzle me
although I have read MIPS R10000 Microprocessor paper introduced by Yeager
1996 more than ten times since last year. 
	As Thomas said, R10K will access directly to dram for those uncached
load/store operations. Which path in the MIPS R10k makes it available? Is
system interface does that stuff? I found it has uncached buffer.
Another issue arises, as system brings up the PC will be assigned to
0xbfc00000 and it need to fetch instructions from dram directly rather than
dram then put first four instructions into decode/remap unit, but from the
MIPS R10000 diagram decode/remap unit only get instructions from ICACHE. How
MIPS R10000 handle this case?

Tony

-----邮件原件-----
发件人: Ralf Baechle [mailto:ralf@linux-mips.org] 
发送时间: 2008年1月9日 2:59
收件人: Thomas Bogendoerfer
抄送: lovecentry; linux-mips@linux-mips.org
主题: Re: kseg1 uncache access issue

On Tue, Jan 08, 2008 at 06:02:06PM +0100, Thomas Bogendoerfer wrote:

> On Wed, Jan 09, 2008 at 12:35:06AM +0800, lovecentry wrote:
> > As we know in mips achitecture if current pc falls into kseg1 segment,
any
> > memory reference will bypass cache and fetch directly from dram. But for
> > some prcoessor such like mips R10K it has off chip L2 cache. I haven't
found
> 
> why do you think so ? R10k L2 cache controller is inside CPU and any
> access with uncached attribute will go directly to memory. The only
> systems, where this might be different are systems with caches unknown
> to the cpu. But even those usually obey that uncached accesses are
> going directly to memory.

It should also be mentioned that some R10000 machines do odd stuff with
uncached addresses.

IP27 class machines reuse the entire physical address space several times
to map different things.  The selection of the four uncached address
spaces id done by the uncached attribute which is specified either in
the TLB or or as as bit 59..60 of a virtual address in XKPHYS.

The memory controller of the Indigo 2 R10000 needs to be switched to a
special slower mode to allow uncached accesses first.

  Ralf

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

* 答复: kseg1 uncache access issue
@ 2008-01-09 13:20       ` lovecentry
  0 siblings, 0 replies; 6+ messages in thread
From: lovecentry @ 2008-01-09 13:20 UTC (permalink / raw)
  To: 'Ralf Baechle', 'Thomas Bogendoerfer'; +Cc: linux-mips

Hi gents
	Thanks for your reply. Now I try to implement MIPS R10000
microprcoessor simulation with C language, so many issues still puzzle me
although I have read MIPS R10000 Microprocessor paper introduced by Yeager
1996 more than ten times since last year. 
	As Thomas said, R10K will access directly to dram for those uncached
load/store operations. Which path in the MIPS R10k makes it available? Is
system interface does that stuff? I found it has uncached buffer.
Another issue arises, as system brings up the PC will be assigned to
0xbfc00000 and it need to fetch instructions from dram directly rather than
dram then put first four instructions into decode/remap unit, but from the
MIPS R10000 diagram decode/remap unit only get instructions from ICACHE. How
MIPS R10000 handle this case?

Tony

-----邮件原件-----
发件人: Ralf Baechle [mailto:ralf@linux-mips.org] 
发送时间: 2008年1月9日 2:59
收件人: Thomas Bogendoerfer
抄送: lovecentry; linux-mips@linux-mips.org
主题: Re: kseg1 uncache access issue

On Tue, Jan 08, 2008 at 06:02:06PM +0100, Thomas Bogendoerfer wrote:

> On Wed, Jan 09, 2008 at 12:35:06AM +0800, lovecentry wrote:
> > As we know in mips achitecture if current pc falls into kseg1 segment,
any
> > memory reference will bypass cache and fetch directly from dram. But for
> > some prcoessor such like mips R10K it has off chip L2 cache. I haven't
found
> 
> why do you think so ? R10k L2 cache controller is inside CPU and any
> access with uncached attribute will go directly to memory. The only
> systems, where this might be different are systems with caches unknown
> to the cpu. But even those usually obey that uncached accesses are
> going directly to memory.

It should also be mentioned that some R10000 machines do odd stuff with
uncached addresses.

IP27 class machines reuse the entire physical address space several times
to map different things.  The selection of the four uncached address
spaces id done by the uncached attribute which is specified either in
the TLB or or as as bit 59..60 of a virtual address in XKPHYS.

The memory controller of the Indigo 2 R10000 needs to be switched to a
special slower mode to allow uncached accesses first.

  Ralf

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

end of thread, other threads:[~2008-01-09 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 16:35 kseg1 uncache access issue lovecentry
2008-01-08 16:35 ` lovecentry
2008-01-08 17:02 ` Thomas Bogendoerfer
2008-01-08 18:59   ` Ralf Baechle
2008-01-09 13:20     ` 答复: " lovecentry
2008-01-09 13:20       ` lovecentry

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.