From owner-freebsd-acpi@FreeBSD.ORG Sat Dec 1 09:02:59 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70BE61D8; Sat, 1 Dec 2012 09:02:59 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from mail.made4.biz (unknown [IPv6:2001:41d0:1:7018::1:3]) by mx1.freebsd.org (Postfix) with ESMTP id 066E88FC0C; Sat, 1 Dec 2012 09:02:59 +0000 (UTC) Received: from [2a01:e35:8b20:ae00:290:f5ff:fe9d:b78c] (helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1TeiyP-000D8L-Jv; Sat, 01 Dec 2012 10:02:58 +0100 Message-ID: <50B9C7B6.1040306@FreeBSD.org> Date: Sat, 01 Dec 2012 10:02:46 +0100 From: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Andriy Gapon Subject: Re: [rfc] bind curthread to target cpu for _CST change notification References: <50AE3C66.2050207@FreeBSD.org> <1353872249.20189.3.camel@powernoodle> <50B77F4B.8070701@FreeBSD.org> <50B8951D.1000609@FreeBSD.org> In-Reply-To: <50B8951D.1000609@FreeBSD.org> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFECCC3B61247D10FDDE0689F" Cc: freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2012 09:02:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFECCC3B61247D10FDDE0689F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 30.11.2012 12:14, Andriy Gapon wrote: > Here is my WIP: > http://people.freebsd.org/~avg/acpi_cpu_notify.2.diff Hi Andriy! I tried your last patch and it fixed a page fault I had since r243404 (I couldn't investigate the problem before this week-end). This page fault corresponds to the point #2 of your patch ("avoid race acpi_cpu_cx_cst and acpi_cpu_idle"). In my case, acpi_cpu_cx_cst is triggered every 10 seconds (I don't know if it's expected). This frees cx_ptr->p_lvlx each time (new in r243404), and concurrently, CPU_GET_REG(cx_next->p_lvlx, 1) causes the page fault in acpi_cpu_idle().= By the way, should _CST appear in a dump from acpidump(8)? Thanks a lot! --=20 Jean-S=E9bastien P=E9dron --------------enigFECCC3B61247D10FDDE0689F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEUEARECAAYFAlC5x8AACgkQa+xGJsFYOlMw0QCUCPSRmdb7WGxW3WKjU3OhduJp CACg2sq4hCa6OKsyIE/D1+wHPvkxF80= =Sazz -----END PGP SIGNATURE----- --------------enigFECCC3B61247D10FDDE0689F--