From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id B5714DDEE0 for ; Wed, 7 Feb 2007 22:43:30 +1100 (EST) Subject: Re: [linux-pm] [RFC 07/10] powermac: support G5 CPU hotplug From: Johannes Berg To: Pavel Machek In-Reply-To: <20070206124212.GD8662@elf.ucw.cz> References: <20070205183026.989209000@sipsolutions.net> <20070205185837.640324000@sipsolutions.net> <20070206124212.GD8662@elf.ucw.cz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BLAwoKzWWNcGrT6bQg4H" Date: Wed, 07 Feb 2007 12:40:20 +0100 Message-Id: <1170848420.6798.8.camel@johannes.berg> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, linux-pm@lists.osdl.org, Torrance List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-BLAwoKzWWNcGrT6bQg4H Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, > > + /* it seems to be possible that we died from within > > + * an interrupt ... reset the in-irq counts */ > > + task_thread_info(paca[cpu].__current)->preempt_count &=3D > > + ~(SOFTIRQ_MASK|HARDIRQ_MASK); > > + > > cpu_idle(); > > return 0; >=20 > This is quite a nasty hack. Are you sure? >=20 > I've seen similar weirdness on pc, and it was caused by > swsusp-copying-code using FPU and incrementing preempt_count... I know. I'm not really happy with it. But I can't figure out where the hardirq count can be incremented. The preempt count is fine (well, in my latest patchset, this one forgot one spot), but the hard irq count is not. Which is really strange because we only use that for actual in-irq stuff... johannes --=-BLAwoKzWWNcGrT6bQg4H Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iD8DBQBFybqk/ETPhpq3jKURAoFIAJ0QTsyDYZVgekoVv/KMfhRK+jtucgCeP4o8 3clkydQcW+EXvzM44cYL3Io= =4jVh -----END PGP SIGNATURE----- --=-BLAwoKzWWNcGrT6bQg4H--