Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Dec 2008 23:37:10 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-acpi@freebsd.org, peter@freebsd.org, freebsd-amd64@freebsd.org, Nate Lawson <nate@root.org>
Subject:   Re: Semi-working patch for amd64 suspend/resume
Message-ID:  <4935AA86.7090405@FreeBSD.org>
In-Reply-To: <200812021559.05492.jhb@freebsd.org>
References:  <1224616985.00027652.1224606603@10.7.7.3> <49358A3F.7020701@root.org> <49358BED.3030903@FreeBSD.org> <200812021559.05492.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> Oh, it's getting a new counter on each resume.  That is a bug.  Ah, I think 
> the AP's are using lapic_setup(1) when they should be using lapic_setup(0) 
> during a resume.

Thanks. With this LAPIC works better:
--- mp_machdep.c.prev2  2008-12-02 23:33:10.000000000 +0200
+++ mp_machdep.c        2008-12-02 23:26:23.000000000 +0200
@@ -1127,7 +1127,7 @@ cpususpend_handler(void)
                 atomic_set_int(&stopped_cpus, cpumask);
         } else {
                 /* Set up local APIC again. */
-               lapic_setup(1);
+               lapic_setup(0);
         }

         while (!(started_cpus & cpumask))

But statistic problem is still here:
# ps ax
   PID  TT  STAT      TIME COMMAND
  1429  ??  Ss   282031:03,98 icewm

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4935AA86.7090405>