From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 26 17:10:42 2014 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB307C3; Fri, 26 Sep 2014 17:10:42 +0000 (UTC) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (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 670E3926; Fri, 26 Sep 2014 17:10:42 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id u20so10049227oif.29 for ; Fri, 26 Sep 2014 10:10:41 -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=RtJwlHdBw8KvAzYxITp4dm+0yBabEnruZjzR35yIiW8=; b=xAq4LcMKiSpbHOflGYK0JAq7jFA5h1BEwOK348wX1Zr0yeT7Znq0WtEsrI2MOwkIv7 jAhWnSFnMrrpkAjN1tSXaUEwyjqvbr803Z7GwJI1wSsp5ArGfodsCIF+/CcfbGjKw9D4 EiVb9fng/W3f/q33Q+UUXcihLA6+mcGCvF1UvsO6AuoFVJlS2DHpgTucFCXRGzL+iY6H ZgtiFuw+QaV+qJLeB4urlkBJf/0n4LxjM3JMUdiJg9cfurW/Vi4+zZjGWpdL+QnfhMeg HGPGTEXScX+Zvw/XrTEwmML3x+aWGDTlhQg14nMYw/6rW+0pkyyQMUUvrUsZp4st8lqT wnJA== MIME-Version: 1.0 X-Received: by 10.182.105.167 with SMTP id gn7mr22377860obb.7.1411751441500; Fri, 26 Sep 2014 10:10:41 -0700 (PDT) Received: by 10.182.250.234 with HTTP; Fri, 26 Sep 2014 10:10:41 -0700 (PDT) In-Reply-To: References: <5408938E.5020005@yandex.ru> Date: Fri, 26 Sep 2014 10:10:41 -0700 Message-ID: Subject: Re: IOAT driver for FreeBSD From: Vijay Singh To: Jim Harris 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: Fri, 26 Sep 2014 17:10:42 -0000 Jim, since the device IDs were changed, were there any changes to the descriptors for the DMA part? =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 > >