Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757232AbYFZBOm (ORCPT ); Wed, 25 Jun 2008 21:14:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751768AbYFZBOc (ORCPT ); Wed, 25 Jun 2008 21:14:32 -0400 Received: from terminus.zytor.com ([198.137.202.10]:41182 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbYFZBOc (ORCPT ); Wed, 25 Jun 2008 21:14:32 -0400 Message-ID: <4862ECAB.1040402@zytor.com> Date: Wed, 25 Jun 2008 18:11:07 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Arjan van de Ven CC: Agner Fog , linux-kernel@vger.kernel.org Subject: Re: ABI change for device drivers using future AVX instruction set References: <48626514.2040905@agner.org> <20080625092224.736c2541@infradead.org> In-Reply-To: <20080625092224.736c2541@infradead.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 22 Arjan van de Ven wrote: > > Let me repeat this loud and clear: > > It is not allowed to use floating point, SSE of AVX in device drivers. > > (there are few places that very carefully do this anyway, the raid5 > code being the most obvious one, but we should not add more) > Sadly, AVX repeats the mistakes of SSE1, and doesn't implement proper wide support for integer operations. It has the basic bitwide stuff, which makes it usable for RAID-5, but it doesn't extend MMX (which SSE2 eventually got around to), so it's not usable for RAID-6. I'd hoped to find a VPERM-style instruction, like SSE5 has :( -hpa -- 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/