Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068Ab0GVEAT (ORCPT ); Thu, 22 Jul 2010 00:00:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57783 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760Ab0GVEAQ (ORCPT ); Thu, 22 Jul 2010 00:00:16 -0400 Message-ID: <4C47C234.7040400@zytor.com> Date: Wed, 21 Jul 2010 20:59:48 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: Hidetoshi Seto CC: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, James Smart , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Brian Gerst Subject: Re: [PATCH] BISECTED x86: avoid qword access in memcpy_*io References: <4C464BA0.20609@jp.fujitsu.com> <4C465FF0.1030407@zytor.com> <4C479D7F.2070204@jp.fujitsu.com> In-Reply-To: <4C479D7F.2070204@jp.fujitsu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 26 On 07/21/2010 06:23 PM, Hidetoshi Seto wrote: > > It seems that lpfc already implemented lpfc_memcpy_{to,from}_slim() > as such memcpy_*io32, but limited use of it to on big endian platforms > only. Now lpfc can move to use it always, right? > What it probably should do is instead of open-coding this stuff use __iowrite32_copy and we probably should have a version without double underscores which byteswaps on bigendian. Personally I would not object to seeing a patch renaming __iowrite32_copy() to memcpy_toio32()... especially since it doesn't have the "memory or I/O space" property of iowrite and friends. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/