Return-Path: Received: by vger.rutgers.edu via listexpand id ; Tue, 11 Apr 2000 10:42:22 -0400 Received: by vger.rutgers.edu id ; Tue, 11 Apr 2000 10:42:03 -0400 Received: from colorfullife.com ([216.156.138.34]:3756 "EHLO colorfullife.com") by vger.rutgers.edu with ESMTP id ; Tue, 11 Apr 2000 10:41:42 -0400 Message-ID: <38F339A2.FB3F1699@colorfullife.com> Date: Tue, 11 Apr 2000 16:41:38 +0200 From: Manfred Spraul X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en, de MIME-Version: 1.0 To: "Stephen C. Tweedie" Cc: "David S. Miller" , alan@lxorguk.ukuu.org.uk, kanoj@google.engr.sgi.com, linux-kernel@vger.rutgers.edu, linux-mm@kvack.org, torvalds@transmeta.com Subject: Re: zap_page_range(): TLB flush race References: <200004082331.QAA78522@google.engr.sgi.com> <20000410232149.M17648@redhat.com> <200004102312.QAA05115@pizda.ninka.net> <20000411101418.E2740@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-kernel@vger.rutgers.edu Content-Length: 917 Lines: 37 "Stephen C. Tweedie" wrote: > > > OK, I'm sure there are optimisation issues, but I was worried about > correctness problems from what Alan said. > They are correctness problems: [I'm only reading the asm source, I might be wrong] * s390 has hardware support for tlb flush ipis. * it doesn't support hardware contexts (address space numbers, region id,...) * They need the old pte value and the virtual address for their flush ipi. --> set_pte() flush_tlb_page() doesn't work. Obviously their work-around flush_tlb_page() set_pte() is wrong as well, and it breaks all other architectures :-/ They need an atomic set_and_flush_pte() macro. OTHO on i386 a tlb flush during set_pte() would cause a dramatic slowdown. -- Manfred - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/