From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 09 Jan 2008 13:20:58 +0000 (GMT) Received: from rv-out-0910.google.com ([209.85.198.189]:54689 "EHLO rv-out-0910.google.com") by ftp.linux-mips.org with ESMTP id S20027159AbYAINUt convert rfc822-to-8bit (ORCPT ); Wed, 9 Jan 2008 13:20:49 +0000 Received: by rv-out-0910.google.com with SMTP id l15so207089rvb.24 for ; Wed, 09 Jan 2008 05:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:in-reply-to:x-mimeole:message-id; bh=V+JzzzEek+/DjBHUQE3kvJRBoXnwXf5JiYv/bjZH1WE=; b=UX7kgTBnF7JLvMHpDW7JyojlfFAP6yxC2s1cVUEkJ2sey7XsXfXxjsPnFRBWZ8s8eoH6ZHDBbQZ9VkeNN+jDWQtK/z4Cr+WpGAjmZKyo40gcn5yJCmpvGIEyDT8WDd0S8fLC5R/32yjb/mjt7CX8XqT5kJ5ZJA09u8jBcOgGF4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:in-reply-to:x-mimeole:message-id; b=PZsX1HAuQZceRSm2NCEj3I8O4v1WV/ox3OZKXGQbyk3E4Ckye9PJ8IiZdqUh6mlpvYghWCCymUbHpYh/5ZmeVaoFlWCxhvaejAqfDRtmMh1u7eBcz/RUCt04Zj4UTptdWNzbrUV5xzeiMCFpskjCMHzNl5vdXX98pEdmCWjGLBU= Received: by 10.140.136.1 with SMTP id j1mr382261rvd.233.1199884840544; Wed, 09 Jan 2008 05:20:40 -0800 (PST) Received: from WWW8E1E968C4DF ( [124.78.166.39]) by mx.google.com with ESMTPS id g6sm2073119rvb.25.2008.01.09.05.20.37 (version=SSLv3 cipher=RC4-MD5); Wed, 09 Jan 2008 05:20:40 -0800 (PST) From: "lovecentry" To: "'Ralf Baechle'" , "'Thomas Bogendoerfer'" Cc: Subject: =?gb2312?B?tPC4tDoga3NlZzEgdW5jYWNoZSBhY2Nlc3MgaXNzdWU=?= Date: Wed, 9 Jan 2008 21:20:11 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AchSKI7rL0sXndvHR1mocjxvBlInKgAmcRGQ In-Reply-To: <20080108185903.GC30643@linux-mips.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Message-ID: <4784ca28.06538c0a.5e01.10f5@mx.google.com> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 17961 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: lovecentry@gmail.com Precedence: bulk X-list: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rv-out-0910.google.com ([209.85.198.189]:54689 "EHLO rv-out-0910.google.com") by ftp.linux-mips.org with ESMTP id S20027159AbYAINUt convert rfc822-to-8bit (ORCPT ); Wed, 9 Jan 2008 13:20:49 +0000 Received: by rv-out-0910.google.com with SMTP id l15so207089rvb.24 for ; Wed, 09 Jan 2008 05:20:40 -0800 (PST) From: "lovecentry" Subject: =?gb2312?B?tPC4tDoga3NlZzEgdW5jYWNoZSBhY2Nlc3MgaXNzdWU=?= Date: Wed, 9 Jan 2008 21:20:11 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8BIT In-Reply-To: <20080108185903.GC30643@linux-mips.org> Message-ID: <4784ca28.06538c0a.5e01.10f5@mx.google.com> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: 'Ralf Baechle' , 'Thomas Bogendoerfer' Cc: linux-mips@linux-mips.org Message-ID: <20080109132011.VNniBqf_aWqh1EpLcH2V-OEMK6PQh4tyh97NSJCi6YM@z> 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