From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261835AbVGFSEF (ORCPT ); Wed, 6 Jul 2005 14:04:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262110AbVGFSBK (ORCPT ); Wed, 6 Jul 2005 14:01:10 -0400 Received: from fsmlabs.com ([168.103.115.128]:62899 "EHLO fsmlabs.com") by vger.kernel.org with ESMTP id S262145AbVGFNXh (ORCPT ); Wed, 6 Jul 2005 09:23:37 -0400 Date: Wed, 6 Jul 2005 07:27:37 -0600 (MDT) From: Zwane Mwaikambo To: Nigel Cunningham cc: Nigel Cunningham , Linux Kernel Mailing List Subject: Re: [PATCH] [7/48] Suspend2 2.1.9.8 for 2.6.12: 352-disable-pdflush-during-suspend.patch In-Reply-To: <1120621388.4860.3.camel@localhost> Message-ID: References: <11206164401583@foobar.com> <1120621388.4860.3.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jul 2005, Nigel Cunningham wrote: > On Wed, 2005-07-06 at 13:34, Zwane Mwaikambo wrote: > > On Wed, 6 Jul 2005, Nigel Cunningham wrote: > > > > > diff -ruNp 353-disable-highmem-tlb-flush-for-copyback.patch-old/mm/highmem.c 353-disable-highmem-tlb-flush-for-copyback.patch-new/mm/highmem.c > > > --- 353-disable-highmem-tlb-flush-for-copyback.patch-old/mm/highmem.c 2005-06-20 11:47:32.000000000 +1000 > > > +++ 353-disable-highmem-tlb-flush-for-copyback.patch-new/mm/highmem.c 2005-07-04 23:14:20.000000000 +1000 > > > @@ -26,6 +26,7 @@ > > > #include > > > #include > > > #include > > > +#include > > > #include > > > > > > static mempool_t *page_pool, *isa_page_pool; > > > @@ -95,7 +96,10 @@ static void flush_all_zero_pkmaps(void) > > > > > > set_page_address(page, NULL); > > > } > > > - flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP)); > > > + if (test_suspend_state(SUSPEND_FREEZE_SMP)) > > > + __flush_tlb(); > > > + else > > > + flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP)); > > > } > > > > > > static inline unsigned long map_new_virtual(struct page *page) > > > > What state are the other processors in when you hit this path? > > Looping in arch specific code, waiting for an atomic_t to tell them it's > time to restore state and carry on. They're there the whole time CPU0 is > restoring the image and highmem. Oh ok, so they wouldn't have TLB entries for the above. Thanks, Zwane