Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756244AbbGGAWr (ORCPT ); Mon, 6 Jul 2015 20:22:47 -0400 Received: from ozlabs.org ([103.22.144.67]:55675 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754324AbbGGAWj (ORCPT ); Mon, 6 Jul 2015 20:22:39 -0400 Message-ID: <1436228558.3341.1.camel@ellerman.id.au> Subject: Re: [PATCH v2] powerpc/powernv: Fix race in updating core_idle_state From: Michael Ellerman To: "Shreyas B. Prabhu" Cc: Paul Mackerras , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Tue, 07 Jul 2015 10:22:38 +1000 In-Reply-To: <1436213363-18419-1-git-send-email-shreyas@linux.vnet.ibm.com> References: <1436213363-18419-1-git-send-email-shreyas@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 31 On Tue, 2015-07-07 at 01:39 +0530, Shreyas B. Prabhu wrote: > core_idle_state is maintained for each core. It uses 0-7 bits to track > whether a thread in the core has entered fastsleep or winkle. 8th bit is > used as a lock bit. ... > This patch fixes the above race by looping on the lock bit even while > entering the idle states. > > Signed-off-by: Shreyas B. Prabhu > Fixes: 7b54e9f213f76 'powernv/powerpc: Add winkle support for offline > cpus' The sha is wrong, it should be 77b54e9f213f. Also please don't wrap the description. I recommend creating an alias or script that does: $ git log --pretty=fixes -n 1 $commit | xclip I've fixed it up, no need to resend. cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/