From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933113AbbFJKCQ (ORCPT ); Wed, 10 Jun 2015 06:02:16 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:48608 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754199AbbFJKCI convert rfc822-to-8bit (ORCPT ); Wed, 10 Jun 2015 06:02:08 -0400 From: Vineet Gupta To: Peter Zijlstra CC: "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "arnd@arndb.de" , "arc-linux-dev@synopsys.com" Subject: Re: [PATCH 22/28] ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock Thread-Topic: [PATCH 22/28] ARCv2: STAR 9000837815 workaround hardware exclusive transactions livelock Thread-Index: AQHQorDWerNvsfxHKEqoN22LZmnuHQ== Date: Wed, 10 Jun 2015 10:01:01 +0000 Message-ID: References: <1433850508-26317-1-git-send-email-vgupta@synopsys.com> <1433850508-26317-23-git-send-email-vgupta@synopsys.com> <20150609123548.GZ3644@twins.programming.kicks-ass.net> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.197.3] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 09 June 2015 06:05 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:18:22PM +0530, Vineet Gupta wrote: This really really wants a Changelog describing the actual hardware fail and why this workaround is sufficient. OK - I need some more time to rehash the exact details with our hardware folks. But AFAIKR, this was hardware livelock in llock/scond when 2 cores were doing r-m-w to two different words in the same cache line - adding prefetchw (prefetch with a write intent) would get the line in exclusive state and break the livelock. The test itself was one from EEMBC Multibench but I'll have to look it up. Wasn't there something similar in ARM world too - they have some sort of snoop-delayed exclusive handling in hardware to mitigate something similar although as Will later remarked it involved llock/scond with vanilla ld/st to same line/word ? http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/254142.html Thx, -Vineet