From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 28 16:58:55 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3E8B33AA; Sun, 28 Sep 2014 16:58:55 +0000 (UTC) Received: from mail-ob0-x236.google.com (mail-ob0-x236.google.com [IPv6:2607:f8b0:4003:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE8EDBD6; Sun, 28 Sep 2014 16:58:54 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id wo20so12040901obc.41 for ; Sun, 28 Sep 2014 09:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kcrj/Xy9yspD6DDojEZ2azOdTrCs/izFtpixSBvH/kI=; b=c/abJIpUpLQrxBNe69qLgCkhuR/2jSLb9CD2vSRPaaNDryN+otRq3qVChKrZRzHATS qn1WT9FUmowcOlHaWXZ23zTzOVYRhbw+XFRaEf6y1UgTDjb222NEdSFfOknXWytFYMLp XaY53kL2Q0+rrCLwsk7atfOiL+iP3aCK/e0rEG74GWJGL3LY99sEQS4+bhEtUOQ1PKHa Rjd5Y0zzM+I8jeSPbtOF6th6o9AXWGNv/RVMgN6QgHSkgrI+Y0tb3HNq1USgfO3CDcbL 7YWoswNqTJqcmSiiXROaiPFrGvt46Q8sYyEulqjobiqUv7kMApvYusRs93TpUNXa0cX2 ALoQ== MIME-Version: 1.0 X-Received: by 10.182.191.39 with SMTP id gv7mr34383538obc.14.1411923534203; Sun, 28 Sep 2014 09:58:54 -0700 (PDT) Received: by 10.202.188.84 with HTTP; Sun, 28 Sep 2014 09:58:54 -0700 (PDT) In-Reply-To: References: <5408938E.5020005@yandex.ru> Date: Sun, 28 Sep 2014 09:58:54 -0700 Message-ID: Subject: Re: IOAT driver for FreeBSD From: Jim Harris To: Vijay Singh Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-hackers@freebsd.org" , "Andrey V. Elsukov" , hiren panchasara X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2014 16:58:55 -0000 On Fri, Sep 26, 2014 at 10:10 AM, Vijay Singh wrote: > Jim, since the device IDs were changed, were there any changes to the > descriptors for the DMA part? > > Hi Vijay, No changes. The descriptor formats are the same. -Jim > =vijay > > On Thu, Sep 25, 2014 at 4:41 PM, Jim Harris wrote: > >> >> >> On Tue, Sep 23, 2014 at 5:38 PM, hiren panchasara >> wrote: >> >>> + Jim >>> >>> On Thu, Sep 4, 2014 at 9:30 AM, Andrey V. Elsukov >>> wrote: >>> > On 03.09.2014 20:59, Vijay Singh wrote: >>> >> Hi All, I found some discussion in the past about this. Is there a >>> version >>> >> of such a driver that I can test, and hopefully help get committed? >>> > >>> > There was some work in >>> > >>> http://svnweb.freebsd.org/base/user/jimharris/ioat/sys/dev/ioat/ >>> >>> Hi Jim, >>> >>> Whats the status of this user branch? >>> >>> cheers, >>> Hiren >>> >> >> This user branch is a couple of years old, but should not be too >> difficult to bring forward to HEAD. It only includes E5 v1 (Sandy Bridge >> Xeon) device IDs so would need to be updated to include E5 v2 (Ivy Bridge) >> and v3 (Haswell) device IDs. >> >> Note this driver only does DMA operations currently and is not plumbed >> for other opcodes (XOR/P+Q, CRC, etc.) But the general framework is there >> to add code for the other opcodes. >> >> E5 v2 and v3 device IDs are pasted below. >> >> -Jim >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB0 0x0e20 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB1 0x0e21 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB2 0x0e22 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB3 0x0e23 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB4 0x0e24 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB5 0x0e25 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB6 0x0e26 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB7 0x0e27 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB8 0x0e2e >> >> #define PCI_DEVICE_ID_INTEL_IOAT_IVB9 0x0e2f >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW0 0x2f20 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW1 0x2f21 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW2 0x2f22 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW3 0x2f23 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW4 0x2f24 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW5 0x2f25 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW6 0x2f26 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW7 0x2f27 >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW8 0x2f2e >> >> #define PCI_DEVICE_ID_INTEL_IOAT_HSW9 0x2f2f >> >> >