Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753586AbaARHZz (ORCPT ); Sat, 18 Jan 2014 02:25:55 -0500 Received: from mail-pb0-f54.google.com ([209.85.160.54]:53466 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbaARHZw (ORCPT ); Sat, 18 Jan 2014 02:25:52 -0500 MIME-Version: 1.0 Date: Sat, 18 Jan 2014 12:55:51 +0530 Message-ID: Subject: BUG: spinlock lockup From: naveen yadav To: Russell King - ARM Linux , Catalin Marinas , linux-kernel@vger.kernel.org, will.deacon@arm.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear All, We are using 3.8.x kernel on ARM, We are facing soft lockup issue. Following are the logs. BUG: spinlock lockup suspected on CPU#0, process1/525 lock: 0xd8ac9a64, .magic: dead4ead, .owner: /-1, .owner_cpu: -1 1 . Looks like lock is available as owner is -1, why arch_spin_trylock is getting failed ? 2. There is a patch : ARM: spinlock: retry trylock operation if strex fails on free lock http://permalink.gmane.org/gmane.linux.ports.arm.kernel/240913 In this patch, A loop has been added around strexeq %2, %0, [%3]". {Comment "retry the trylock operation if the lock appears to be free but the strex reported failure"} but arch_spin_trylock is called by __spin_lock_debug and its already getting called in loops. So what purpose is resolves? static void __spin_lock_debug(raw_spinlock_t *lock) { u64 i; u64 loops = loops_per_jiffy * HZ; for (i = 0; i < loops; i++) { if (arch_spin_trylock(&lock->raw_lock)) return; __delay(1); } /* lockup suspected: */ spin_dump(lock, "lockup suspected"); } 3. Is this patch useful to us, How can we reproduce this scenario ? Scenario : Lock is available but arch_spin_trylock is returning as failure Thanks -- 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/