From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932193Ab2ASPKy (ORCPT ); Thu, 19 Jan 2012 10:10:54 -0500 Received: from nat28.tlf.novell.com ([130.57.49.28]:45354 "EHLO nat28.tlf.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091Ab2ASPKw convert rfc822-to-8bit (ORCPT ); Thu, 19 Jan 2012 10:10:52 -0500 Message-Id: <4F1840CA020000780006DB79@nat28.tlf.novell.com> X-Mailer: Novell GroupWise Internet Agent 12.0.0 Date: Thu, 19 Jan 2012 15:11:54 +0000 From: "Jan Beulich" To: "H. Peter Anvin" Cc: , "eric.dumazet@gmail.com" , , , Subject: Re: [PATCH 2/2] ix86: atomic64 assembly improvements References: <4F16E41B020000780006D7A5@nat28.tlf.novell.com> <4F16F505.8040809@zytor.com> <4F170679020000780006D85B@nat28.tlf.novell.com> <4F1705A8.301@zytor.com> <4F17EDE9020000780006D97A@nat28.tlf.novell.com> <4F182C55.7040305@zytor.com> <4F183BCA020000780006DB68@nat28.tlf.novell.com> <4F182FCB.2090300@zytor.com> In-Reply-To: <4F182FCB.2090300@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 19.01.12 at 15:59, "H. Peter Anvin" wrote: > On 01/19/2012 06:50 AM, Jan Beulich wrote: >>> >>> It doesn't have anything to do with caches on or off. >> >> How does it not? If any part of the bus topology is only 32 bits wide, >> a 64-bit read or write simply can't be executed atomically without >> asserting LOCK#. >> > > Furthermore, if you're going down that rathole then we can't even trust > MOV (nor, for that matter, can you trust LOCK in a lot of No - (general register) MOV is at most 32 bits wide. > circumstances.) In short, you need to be extremely careful about what > you do to uncached memory *at all* (and you need to know exactly what is > behind this bus) but pessimizing these kinds of construct for that > reason is wrong in the extreme. Okay, despite not being fully convinced I'll undo the folding of set and xchg then, and re-submit. Jan