From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755354Ab3KAQc0 (ORCPT ); Fri, 1 Nov 2013 12:32:26 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:45463 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752383Ab3KAQcY (ORCPT ); Fri, 1 Nov 2013 12:32:24 -0400 In-Reply-To: References: <20131028132634.GO19466@laptop.lan> <20131028163418.GD4126@linux.vnet.ibm.com> <20131028201735.GA15629@redhat.com> <20131030092725.GL4126@linux.vnet.ibm.com> <20131031043258.GQ4126@linux.vnet.ibm.com> <20131031152543.GC4067@linux.vnet.ibm.com> Subject: RE: perf events ring buffer memory barrier on powerpc X-KeepSent: 57D6EF77:CD2E45CE-42257C16:005AA6D8; type=4; name=$KeepSent To: "David Laight" Cc: "Anton Blanchard" , "Frederic Weisbecker" , "LKML" , "Linux PPC dev" , "Mathieu Desnoyers" , "Michael Neuling" , "Oleg Nesterov" , paulmck@linux.vnet.ibm.com, "Peter Zijlstra" X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: Victor Kaplansky Date: Fri, 1 Nov 2013 18:30:56 +0200 X-MIMETrack: Serialize by Router on D06ML319/06/M/IBM(Release 8.5.3FP5|July 31, 2013) at 01/11/2013 18:30:49 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13110116-3548-0000-0000-000007047170 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "David Laight" wrote on 11/01/2013 06:25:29 PM: > gcc will do unexpected memory accesses for bit fields that are > adjacent to volatile data. > In particular it may generate 64bit sized (and aligned) RMW cycles > when accessing bit fields. > And yes, this has caused real problems. Thanks, I am aware about this bug/feature in gcc. -- Victor