From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10299 invoked from network); 23 Mar 1999 07:08:34 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 23 Mar 1999 07:08:33 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id BAA28042 for ; Tue, 23 Mar 1999 01:55:54 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id XAA00941; Mon, 22 Mar 1999 23:05:59 -0800 Message-ID: <19990322230559.A768@twiddle.net> Date: Mon, 22 Mar 1999 23:05:59 -0800 From: Richard Henderson To: axp-list@redhat.com Cc: jay.estabrook@digital.com Subject: ev6 tlb consistency References: <278EEF4F1348D211940600A0C95BCF7F1F01AC@yellow-fin.alpha-processor.com> <36F5D151.58FA7D47@paralleldata.com> <19990322012259.A22287@twiddle.net> <36F67A84.945C68B@paralleldata.com> <19990322184337.A31958@twiddle.net> <36F71F3F.8C7583D4@paralleldata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <36F71F3F.8C7583D4@paralleldata.com>; from Wes Bauske on Mon, Mar 22, 1999 at 10:57:35PM -0600 On Mon, Mar 22, 1999 at 10:57:35PM -0600, Wes Bauske wrote: > > On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > > > Actually, I'd like to get egcs1.1.2 to just build on > > > the XP1000. I'm seeing a timing dependent bug in the > > > build process that can lock the system up. Basically, > > > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > > > outright lockups. > > > > Jay mentioned (and I loosely concur) the possibility of > > TLB muckups on EV6. One way to test this is to build a > > generic kernel and in arch/alpha/kernel/machvec.h modify > > > > #define DO_EV6_MMU \ > > max_asn: EV6_MAX_ASN, \ > > mmu_context_mask: 0xfffffffffful, \ > > - mv_get_mmu_context: ev5_get_mmu_context, \ > > - mv_flush_tlb_current: ev5_flush_tlb_current, \ > > - mv_flush_tlb_other: ev5_flush_tlb_other, \ > > - mv_flush_tlb_current_page: ev5_flush_tlb_current_page > > + mv_get_mmu_context: ev4_get_mmu_context, \ > > + mv_flush_tlb_current: ev4_flush_tlb_current, \ > > + mv_flush_tlb_other: ev4_flush_tlb_other, \ > > + mv_flush_tlb_current_page: ev4_flush_tlb_current_page > > > > Worth a shot anyway... > > > > Good shot. I successfully built egcs1.1.2 with this > patch to 2.2.3. I'll do some more tests to see if it > continues to behave. > > Does that tell you what might be going wrong?? It means that there are invalid TLB entries live when things go south. EV4 has an architecture conformance bug that makes ASNs useless so we are forced to flush the whole TLB when context switching. EV5 gets ASNs correct, so that isn't necessary. Moreover, when we change a process' vm mappings, we can just make the process use a new ASN, which cuts the number of flushes we must do by 128. EV6... I dunno. My HRM appears to be oh so usefully back at the office. r~ PS: One other thing you could try is to go back to using the ev5 tlb flush routines, but only use EV5_MAX_ASN.