From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id A324D1A000D for ; Sat, 21 Jun 2014 09:16:25 +1000 (EST) Message-ID: <1403306175.4587.68.camel@pasglop> Subject: Re: [PATCH] vfio: Fix endianness handling for emulated BARs From: Benjamin Herrenschmidt To: Alexey Kardashevskiy Date: Sat, 21 Jun 2014 09:16:15 +1000 In-Reply-To: <53A441D3.8010602@ozlabs.ru> References: <1403091391-31780-1-git-send-email-aik@ozlabs.ru> <1403116512.3707.175.camel@ul30vt.home> <53A233E9.6030006@ozlabs.ru> <53A241F6.9010307@ozlabs.ru> <53A25D74.5000804@ozlabs.ru> <1403234514.3707.278.camel@ul30vt.home> <53A441D3.8010602@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: kvm@vger.kernel.org, Nikunj A Dadhania , linux-kernel@vger.kernel.org, Alexander Graf , Alex Williamson , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2014-06-21 at 00:14 +1000, Alexey Kardashevskiy wrote: > We can still use __raw_writel&co, would that be ok? No unless you understand precisely what kind of memory barriers each platform require for these. Cheers, Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH] vfio: Fix endianness handling for emulated BARs Date: Sat, 21 Jun 2014 09:16:15 +1000 Message-ID: <1403306175.4587.68.camel@pasglop> References: <1403091391-31780-1-git-send-email-aik@ozlabs.ru> <1403116512.3707.175.camel@ul30vt.home> <53A233E9.6030006@ozlabs.ru> <53A241F6.9010307@ozlabs.ru> <53A25D74.5000804@ozlabs.ru> <1403234514.3707.278.camel@ul30vt.home> <53A441D3.8010602@ozlabs.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: kvm@vger.kernel.org, Nikunj A Dadhania , linux-kernel@vger.kernel.org, Alexander Graf , Alex Williamson , linuxppc-dev@lists.ozlabs.org To: Alexey Kardashevskiy Return-path: In-Reply-To: <53A441D3.8010602@ozlabs.ru> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" List-Id: kvm.vger.kernel.org T24gU2F0LCAyMDE0LTA2LTIxIGF0IDAwOjE0ICsxMDAwLCBBbGV4ZXkgS2FyZGFzaGV2c2tpeSB3 cm90ZToKCj4gV2UgY2FuIHN0aWxsIHVzZSBfX3Jhd193cml0ZWwmY28sIHdvdWxkIHRoYXQgYmUg b2s/CgpObyB1bmxlc3MgeW91IHVuZGVyc3RhbmQgcHJlY2lzZWx5IHdoYXQga2luZCBvZiBtZW1v cnkgYmFycmllcnMgZWFjaApwbGF0Zm9ybSByZXF1aXJlIGZvciB0aGVzZS4KCkNoZWVycywKQmVu LgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCkxpbnV4 cHBjLWRldiBtYWlsaW5nIGxpc3QKTGludXhwcGMtZGV2QGxpc3RzLm96bGFicy5vcmcKaHR0cHM6 Ly9saXN0cy5vemxhYnMub3JnL2xpc3RpbmZvL2xpbnV4cHBjLWRldg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965170AbaFTXQz (ORCPT ); Fri, 20 Jun 2014 19:16:55 -0400 Received: from gate.crashing.org ([63.228.1.57]:59778 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756783AbaFTXQf (ORCPT ); Fri, 20 Jun 2014 19:16:35 -0400 Message-ID: <1403306175.4587.68.camel@pasglop> Subject: Re: [PATCH] vfio: Fix endianness handling for emulated BARs From: Benjamin Herrenschmidt To: Alexey Kardashevskiy Cc: Alex Williamson , linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Graf , Nikunj A Dadhania Date: Sat, 21 Jun 2014 09:16:15 +1000 In-Reply-To: <53A441D3.8010602@ozlabs.ru> References: <1403091391-31780-1-git-send-email-aik@ozlabs.ru> <1403116512.3707.175.camel@ul30vt.home> <53A233E9.6030006@ozlabs.ru> <53A241F6.9010307@ozlabs.ru> <53A25D74.5000804@ozlabs.ru> <1403234514.3707.278.camel@ul30vt.home> <53A441D3.8010602@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.2 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 On Sat, 2014-06-21 at 00:14 +1000, Alexey Kardashevskiy wrote: > We can still use __raw_writel&co, would that be ok? No unless you understand precisely what kind of memory barriers each platform require for these. Cheers, Ben.