From owner-freebsd-drivers@freebsd.org Mon Apr 11 15:58:41 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 118A4B0CE05 for ; Mon, 11 Apr 2016 15:58:41 +0000 (UTC) (envelope-from menyy@mellanox.com) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0059.outbound.protection.outlook.com [157.55.234.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 877451A0E; Mon, 11 Apr 2016 15:58:40 +0000 (UTC) (envelope-from menyy@mellanox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ErAFPPXv6DPGnyngWSZmblK1eOJxGhqpQn74zwZXZnE=; b=BMFPOAb3SWyZnWiYprSasAHLWqUNFqWIvJEOtYc8huX2cDH3MgHxh3CO+8vpnpIgp2ZFqZrRGwk4rSo42UbszravqYYlcEoDr581h7iq58qRZTMhJfMt3Hm95bb/zgcBePU8BdYuIm+XSIUFHvlSsyDOrHGv/y1lWdxe5bVwhVo= Received: from DB5PR05MB1765.eurprd05.prod.outlook.com (10.165.7.23) by DB5PR05MB1112.eurprd05.prod.outlook.com (10.161.244.143) with Microsoft SMTP Server (TLS) id 15.1.447.15; Mon, 11 Apr 2016 14:24:41 +0000 Received: from DB5PR05MB1765.eurprd05.prod.outlook.com ([10.165.7.23]) by DB5PR05MB1765.eurprd05.prod.outlook.com ([10.165.7.23]) with mapi id 15.01.0453.029; Mon, 11 Apr 2016 14:24:41 +0000 From: Meny Yossefi To: "info@freebsdfoundation.org" , "freebsd-drivers@freebsd.org" CC: Hans Petter Selasky , "hselasky@freebsd.org" , Oren Duer , Max Gurtovoy , "trasz@FreeBSD.org" , Oded Shanoon Subject: NVMe over fabrics support in FreeBSD Thread-Topic: NVMe over fabrics support in FreeBSD Thread-Index: AdGT/ZBXWuYyo8OPRT+1AnlYTZ7Aaw== Date: Mon, 11 Apr 2016 14:24:41 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsdfoundation.org; dkim=none (message not signed) header.d=none; freebsdfoundation.org; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [193.47.165.251] x-ms-office365-filtering-correlation-id: c6ce8eaa-6255-4c15-21e5-08d362150585 x-microsoft-exchange-diagnostics: 1; DB5PR05MB1112; 5:8yp8UGakJJHPHVpJhlolwFBOGfjEwtTqPHvCt8VqQVjjeSo1O0wFGW068B4rd1bIKZ7bxo9NRq6bUUDCsb8X2Z5lAHdqGyK7JkVG2RxTahGgFsIbDTwwDqhfrQkZ8+oISMvioAPB1VjS/Qiw6SUDkw==; 24:wL5gHHngkeOSIDrrM0AGJ5IjGBORQHyxPUhhh1ENWTNZ9p3kfc6aRxXI/tePsMel57URvstKPQ+kxeaBn93HhRphZBTVHZniTi5P7cBphEo= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR05MB1112; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:DB5PR05MB1112; BCL:0; PCL:0; RULEID:; SRVR:DB5PR05MB1112; x-forefront-prvs: 09090B6B69 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(87936001)(5004730100002)(10400500002)(74316001)(66066001)(19625215002)(33656002)(11100500001)(54356999)(50986999)(122556002)(9686002)(1096002)(790700001)(102836003)(6116002)(3846002)(2501003)(86362001)(4001430100002)(1220700001)(1250700002)(19300405004)(3660700001)(76576001)(19580395003)(107886002)(2906002)(3280700002)(586003)(4326007)(81166005)(2900100001)(92566002)(15975445007)(77096005)(5008740100001)(5003600100002)(189998001)(229853001)(16236675004)(5002640100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR05MB1112; H:DB5PR05MB1765.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2016 14:24:41.3943 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR05MB1112 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 15:58:41 -0000 Hi, As you may be aware, in the last year or so a group of companies (Mellanox = included) are defining the NVMe-over-fabric spec, and also developing the L= inux drivers implementation (both initiator and target). The spec is about to be finalized (next Q), and with that the code develope= d will become open source and available, under the GPL license. What are FreeBSD plans to support NVMe-over-fabrics? Is there a parallel effort happening or planned to happen as soon as the sp= ec becomes available? Is there a plan/facility to allow the GPL Linux code ported to FreeBSD? Best regards, Meny Yossefi | SW Manager | FreeBSD Team Mellanox Technologies Ltd Work: +972-74-7129121, Cell: +972-52-8379557 From owner-freebsd-drivers@freebsd.org Mon Apr 11 18:01:49 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 832B1B0C829 for ; Mon, 11 Apr 2016 18:01:49 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 196531569; Mon, 11 Apr 2016 18:01:49 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id a140so23244215wma.0; Mon, 11 Apr 2016 11:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=NzeJwEB2OlmdJZ/zvHmmM4FebUkzRI09X4MngFIsCY4=; b=hOW2WdDIyhJuVbHvlLqNMC9pV0EshiiLv/x8EKMvh5iGJ+dHrsN/ppCGOhQ804wDpB nvx4QbuTAEzEP5x8Ua/l5l+RMSuzLwjdNlLng2hdmAAp7MC9dnI1gz23csxwxA33Z6/W gf1KmfmKCgEEJkiyU9lbj5ZD7y9pqHjq78fzmdvxFwQPrM/NFTyVdXzo2wuPH/toVM0w Z+GeCn5GD3cURc6jWMiYAPcoSvFEeAxxvtP7Gi0x9bcJ7Q5viT9kTqv+G4c8nr5QPbtp 0aE7yVws7X5+ApcdIndpn+Z2QbqXeIKMN1o+OL8yqsImsrNm6x92P2TmKh5hgbfqbO3U vwxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=NzeJwEB2OlmdJZ/zvHmmM4FebUkzRI09X4MngFIsCY4=; b=F/8/cIyjRBzMHLpMHVKenU5KW/ELNPcKj71zhrC67Z6m0WHAc+PCu3EtOXGEis9M9W qdKHXO4ZOLvsZaRHOVsnZLZ4ZW8hsHfc7dMkvgvefCOIF9bLWf2AePYwbkZN6QRUKKH+ Kxfk0Vj8KySE/DTBPfNMRg304t7XI4WxnLezOKigAt5dO/2BqT1oC5gGd/UF2XV8j0co ukL3UE3r1OKtz/YgXMvE582lYJN1p0q25R8n/jBXKH8gizhhvbThogLsWiHC27ZdTb2C /nXxXPYIHP5TmKxEqtEAXH6+VMz89zZyWXzkcGNzKZWFWGD9fA72V9Yt9HbSmNAtpr+0 dPZw== X-Gm-Message-State: AD7BkJIQie1y6NrYHLZu5xc/qFom0qezSjaUXJ6XFps3x322/Lw4yrBGGR1CAn06nHWDgzThL788n2lKBWBuOQ== MIME-Version: 1.0 X-Received: by 10.194.134.227 with SMTP id pn3mr27162472wjb.129.1460397707730; Mon, 11 Apr 2016 11:01:47 -0700 (PDT) Sender: jim.harris@gmail.com Received: by 10.194.116.232 with HTTP; Mon, 11 Apr 2016 11:01:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Apr 2016 11:01:47 -0700 X-Google-Sender-Auth: Mi94cQLAt8MJ0VGYsLw07wGYc6w Message-ID: Subject: Re: NVMe over fabrics support in FreeBSD From: Jim Harris To: Meny Yossefi Cc: "info@freebsdfoundation.org" , "freebsd-drivers@freebsd.org" , "hselasky@freebsd.org" , Oded Shanoon , Hans Petter Selasky , Oren Duer , Max Gurtovoy , "trasz@FreeBSD.org" , Warner Losh X-Mailman-Approved-At: Mon, 11 Apr 2016 18:52:00 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 18:01:49 -0000 On Mon, Apr 11, 2016 at 7:24 AM, Meny Yossefi wrote: > Hi, > > As you may be aware, in the last year or so a group of companies (Mellanox > included) are defining the NVMe-over-fabric spec, and also developing the > Linux drivers implementation (both initiator and target). > Hi Meny, The spec is about to be finalized (next Q), and with that the code > developed will become open source and available, under the GPL license. > > What are FreeBSD plans to support NVMe-over-fabrics? > I am not aware of anyone working on NVMe-over-fabrics initiator support. I've copied Warner Losh (imp@) who has also been doing some work on nvme(4) in case he is aware of something going on here. For NVMe-over-fabrics target support, we at Intel are working on an SPDK userspace NVMe-over-fabrics target that should work on FreeBSD. I am not aware of any in-tree FreeBSD NVMe-over-fabrics target work going on however. > Is there a parallel effort happening or planned to happen as soon as the > spec becomes available? > Is there a plan/facility to allow the GPL Linux code ported to FreeBSD? > Not really. I think we would need the Linux code relicensed to BSD (or dual GPL/BSD) to allow porting to FreeBSD. Best regards, -Jim > > Best regards, > > Meny Yossefi | SW Manager | FreeBSD Team > Mellanox Technologies Ltd > Work: +972-74-7129121, Cell: +972-52-8379557 > > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > From owner-freebsd-drivers@freebsd.org Mon Apr 11 20:01:20 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E105B0C896 for ; Mon, 11 Apr 2016 20:01:20 +0000 (UTC) (envelope-from navdeep@chelsio.com) Received: from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68942127D; Mon, 11 Apr 2016 20:01:20 +0000 (UTC) (envelope-from navdeep@chelsio.com) Received: from nice.asicdesigners.com (nice.asicdesigners.com [10.192.160.7]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id u3BK1Epc018287; Mon, 11 Apr 2016 13:01:19 -0700 Received: from [10.192.166.0] (10.192.166.0) by nice.asicdesigners.com (10.192.160.7) with Microsoft SMTP Server id 14.3.123.3; Mon, 11 Apr 2016 13:01:13 -0700 Subject: Re: NVMe over fabrics support in FreeBSD To: Jim Harris , Meny Yossefi References: CC: "hselasky@freebsd.org" , "info@freebsdfoundation.org" , Oded Shanoon , Hans Petter Selasky , "freebsd-drivers@freebsd.org" , Oren Duer , Warner Losh , Max Gurtovoy , "trasz@FreeBSD.org" From: Navdeep Parhar Message-ID: <570C0289.6070707@chelsio.com> Date: Mon, 11 Apr 2016 13:01:13 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.192.166.0] X-Mailman-Approved-At: Mon, 11 Apr 2016 20:18:12 +0000 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 20:01:20 -0000 On 04/11/2016 11:01, Jim Harris wrote: > On Mon, Apr 11, 2016 at 7:24 AM, Meny Yossefi wrote: > >> Hi, >> >> As you may be aware, in the last year or so a group of companies (Mellanox >> included) are defining the NVMe-over-fabric spec, and also developing the >> Linux drivers implementation (both initiator and target). >> > > Hi Meny, > > The spec is about to be finalized (next Q), and with that the code >> developed will become open source and available, under the GPL license. >> >> What are FreeBSD plans to support NVMe-over-fabrics? >> > > I am not aware of anyone working on NVMe-over-fabrics initiator support. > I've copied Warner Losh (imp@) who has also been doing some work on nvme(4) > in case he is aware of something going on here. > > For NVMe-over-fabrics target support, we at Intel are working on an SPDK > userspace NVMe-over-fabrics target that should work on FreeBSD. I am not > aware of any in-tree FreeBSD NVMe-over-fabrics target work going on however. > > >> Is there a parallel effort happening or planned to happen as soon as the >> spec becomes available? >> Is there a plan/facility to allow the GPL Linux code ported to FreeBSD? >> > > Not really. I think we would need the Linux code relicensed to BSD (or > dual GPL/BSD) to allow porting to FreeBSD. +1. We (Chelsio) have a working NVMe over fabrics implementation as well and would be interested in getting it to run on FreeBSD. Regards, Navdeep From owner-freebsd-drivers@freebsd.org Tue Apr 12 04:36:18 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10678B0D681 for ; Tue, 12 Apr 2016 04:36:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2B2F1E55 for ; Tue, 12 Apr 2016 04:36:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-ig0-x22f.google.com with SMTP id kb1so98904941igb.0 for ; Mon, 11 Apr 2016 21:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=rntfLGCIB6Y2qIfBIjNzDhCCzCN9wtoUuPRCAJcraQs=; b=qvu1Mh787/Zjkb2nEHQ667sfGHiHf6T4hDhz99TdtUWKyuZFu6ACAxwNdxFBtA+Yyf oUd9PKeqs/NiFoi43QLwdp/GtRlluupdjjEFjR6EuoVPxJY0ofmTHtlZYLYqPXYZzzlf eRq6+U8yjNNWrxM6uc6hvLFXWKZV7bNbeh5ixNDsB/R3QwOJuuDRT0c2E7ly9GkLqw30 OXa79spNaRVdPRo22rjIA9qIezMOosU4LFlZ+Jwy/quQzP0nmgziD3mRq/01rTIAIWDz 8F7Iwia/w0wdsVM78IwJ5OFFhOJxvZmylm+ojhhQXvG75xo+DSKZZFDhn04d0OduX8G+ SPQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=rntfLGCIB6Y2qIfBIjNzDhCCzCN9wtoUuPRCAJcraQs=; b=TPjw9EmbKdTUmjeOhPiCd5PFl2Fn/8SCExRNMWUYLYiIdb4A+GqrdzzVEbUIHLLu0s Z7xDsE403hlnditEub79/zBR+5em1Tazn5ZMpEKXiarMe21trQtc7moDXZy+ye9Mqneg BlsoeJGSfAFb+59/jV27Hx2cDS/hv5tkZa+9w5em61Kt3CkWdKOL522kIAC/azFbSJzb 3ZBirlfqfHZ2hS/J6JJpDndvt3vt5Dvdswqon9oNvttUvdOEl5ppHgDP0ng98aLhqCtC pOUMtdzjEJ2jLD+/8qRuWJSjIkuMG4FaRR4RCwq99QMbheb23q19IdQ/bm4NZSwv2FpJ hOVw== X-Gm-Message-State: AOPr4FWAxr/8zGLg9W/Zk1weho4vYXu8oXhMHIgfnaTgLOR2nDm4w/8yV/q2WnfsWR4KwjsUf5y9OUZPWAR56w== MIME-Version: 1.0 X-Received: by 10.50.226.179 with SMTP id rt19mr1575462igc.36.1460435777227; Mon, 11 Apr 2016 21:36:17 -0700 (PDT) Sender: wlosh@bsdimp.com Received: by 10.36.194.3 with HTTP; Mon, 11 Apr 2016 21:36:17 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: <570C0289.6070707@chelsio.com> References: <570C0289.6070707@chelsio.com> Date: Mon, 11 Apr 2016 22:36:17 -0600 X-Google-Sender-Auth: kOr8rqXdPFsh6wablKFBYLSupjU Message-ID: Subject: Re: NVMe over fabrics support in FreeBSD From: Warner Losh To: Navdeep Parhar Cc: Jim Harris , Meny Yossefi , "hselasky@freebsd.org" , "info@freebsdfoundation.org" , Oded Shanoon , Hans Petter Selasky , "freebsd-drivers@freebsd.org" , Oren Duer , Warner Losh , Max Gurtovoy , "trasz@FreeBSD.org" X-Mailman-Approved-At: Tue, 12 Apr 2016 12:17:33 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 04:36:18 -0000 On Mon, Apr 11, 2016 at 2:01 PM, Navdeep Parhar wrote: > On 04/11/2016 11:01, Jim Harris wrote: > > On Mon, Apr 11, 2016 at 7:24 AM, Meny Yossefi > wrote: > > > >> Hi, > >> > >> As you may be aware, in the last year or so a group of companies > (Mellanox > >> included) are defining the NVMe-over-fabric spec, and also developing > the > >> Linux drivers implementation (both initiator and target). > >> > > > > Hi Meny, > > > > The spec is about to be finalized (next Q), and with that the code > >> developed will become open source and available, under the GPL license. > >> > >> What are FreeBSD plans to support NVMe-over-fabrics? > >> > > > > I am not aware of anyone working on NVMe-over-fabrics initiator support. > > I've copied Warner Losh (imp@) who has also been doing some work on > nvme(4) > > in case he is aware of something going on here. > > > > For NVMe-over-fabrics target support, we at Intel are working on an SPDK > > userspace NVMe-over-fabrics target that should work on FreeBSD. I am not > > aware of any in-tree FreeBSD NVMe-over-fabrics target work going on > however. > > > > > >> Is there a parallel effort happening or planned to happen as soon as the > >> spec becomes available? > >> Is there a plan/facility to allow the GPL Linux code ported to FreeBSD? > >> > > > > Not really. I think we would need the Linux code relicensed to BSD (or > > dual GPL/BSD) to allow porting to FreeBSD. > > +1. We (Chelsio) have a working NVMe over fabrics implementation as > well and would be interested in getting it to run on FreeBSD. > While I've done a CAM front end to replace nvd, I've done nothing with fabrics. However, it seems like a good fit to CAM... Warner From owner-freebsd-drivers@freebsd.org Tue Apr 12 13:13:40 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0BD8B0DE17 for ; Tue, 12 Apr 2016 13:13:40 +0000 (UTC) (envelope-from prateekrootkey@gmail.com) Received: from mail-vk0-x22d.google.com (mail-vk0-x22d.google.com [IPv6:2607:f8b0:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E88912B6 for ; Tue, 12 Apr 2016 13:13:40 +0000 (UTC) (envelope-from prateekrootkey@gmail.com) Received: by mail-vk0-x22d.google.com with SMTP id k1so23515876vkb.0 for ; Tue, 12 Apr 2016 06:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=d8BI9oOw6ovxqWuV7KpqF0lPeXQ4itkoMEePkt3xnt8=; b=lu7JOtJRqQstObTq/OgQG3XkRcOOuqZH17ZyKMtz07o6yhwgRToVOkZTZuizwuvxdU CbmDrZVHc6OMPmug9IOXsKXPHkX2UlyPTc5S6m3nRxAZK2sibEk1ltYylvd0d0yuFSN4 OLGNXp/LtdUDD+DrYbM7k3Hi4J/ivr7HUtj5OZlTKoyqBxqYbpfXcuI4UfBQpyUuoEo7 UHpUzvTQNvrQBumGL3Z2OOUFb6zVU4u25KsSJBXIMv9kdaus7U6SbhT4WbIINrNa3F+G IgfYloCXA0g5VJy3X+qP7FT/vMTvm6txi+5B6GiV3S7quOwuXO9aU/v8nVKdx8cCZ/rD KsLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=d8BI9oOw6ovxqWuV7KpqF0lPeXQ4itkoMEePkt3xnt8=; b=jQpZRUF8XS58VVJHCl8UntZlJz2JnoZ47OKCYXkC5D1765DTbYhCxS5iaeu2Z3XBVc YZ5f93ynKupoykG/HaWFqPVJapXAElzOPmpBRk3261i5j5GEp1oSb8ZohOyWNCpwHPBV 6Dr/NBNv5Dry7KPS21WH6ErtsgZAzfE3z5spyxW/Ux+j7RWtWk7oVry8JEaQ+mKUb7x+ uWanECM0vQnv5fepyfwB5yAb7HU91SbxhoIkR2tCYhMZrDbuM/+arNvVBjNa4d3++4DU x0Gv7g0XD/bInpkAG2+GCSA1wlmJcQtLW1Zet35tIQ6WEK9wf1zh1HuaJqF8eciB9+bW 17LA== X-Gm-Message-State: AOPr4FW/+h2krAzbb23YIjQBsMbiMkYbPBlbkHi1kAMqoAXuR21IGYGR3cR2greJSN6Hry+YE8fA3C8ScYEWcw== MIME-Version: 1.0 X-Received: by 10.31.149.87 with SMTP id x84mr1559862vkd.157.1460466819461; Tue, 12 Apr 2016 06:13:39 -0700 (PDT) Received: by 10.159.53.2 with HTTP; Tue, 12 Apr 2016 06:13:39 -0700 (PDT) Date: Tue, 12 Apr 2016 18:43:39 +0530 Message-ID: Subject: mps reinitialization triggered system panic From: prateek sethi To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 13:13:40 -0000 I am using LSI SAS2308 HBA card with freebsd 9.2. My system got panic during mps reinitialization process. I tried to debug the core and found that driver was failed to allocate iocfacts, triggered this panic. I also got "*Doorbell failed to activate*" message in the core file. Please help me to find the answers of some questions like:- 1. What can be the reasons for Doorbell activation failure? 2. How I can fix this issue? 3. If it is a H/w issue, how it can be fixed after reboot? 4. *Why a driver failure should panic a system?* I think panic is not a good option to get recover from some error. There should be some another way to handle this failure. I am a beginner for the drivers and if I am predicting or asking something wrong please correct me. Regards Prateek From owner-freebsd-drivers@freebsd.org Thu Apr 14 23:40:12 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F321ADA64E for ; Thu, 14 Apr 2016 23:40:12 +0000 (UTC) (envelope-from Lakshmi.Reguna@caviumnetworks.com) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0063.outbound.protection.outlook.com [207.46.100.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE4641679 for ; Thu, 14 Apr 2016 23:40:11 +0000 (UTC) (envelope-from Lakshmi.Reguna@caviumnetworks.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZtuL3TE4lu5kPHOp1MPa74LtVSlkbOenOBCe3wd0nmo=; b=dNGiMePr8Mso03yQQX1+aDrI1/3YWPv/0r9lLXG/utb1Xfl0Aljx1krtu0kb36QVEAlej2oeKAtvM2SECs0961hluPCWqnkexJcDgWZvvpLqlicCmCM+XbvrObzfUaycxHU500b39eW9XMvfwBUZ96tRB7dOLHBYekBbpAIWmfY= Received: from BL2PR07MB2369.namprd07.prod.outlook.com (10.167.101.23) by BL2PR07MB2369.namprd07.prod.outlook.com (10.167.101.23) with Microsoft SMTP Server (TLS) id 15.1.453.26; Thu, 14 Apr 2016 23:40:02 +0000 Received: from BL2PR07MB2369.namprd07.prod.outlook.com ([10.167.101.23]) by BL2PR07MB2369.namprd07.prod.outlook.com ([10.167.101.23]) with mapi id 15.01.0453.030; Thu, 14 Apr 2016 23:40:02 +0000 From: "Reguna, Lakshmi" To: "freebsd-drivers@freebsd.org" Subject: Porting FreeBSD driver from 8.4 to 10.3 - PCI_ENABLE_MSI definition missing Thread-Topic: Porting FreeBSD driver from 8.4 to 10.3 - PCI_ENABLE_MSI definition missing Thread-Index: AdGWpvY6Tuea8Mi4QaORbnuBxyoTNg== Date: Thu, 14 Apr 2016 23:40:02 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Lakshmi.Reguna@caviumnetworks.com; x-originating-ip: [64.2.3.194] x-ms-office365-filtering-correlation-id: aeda5a22-d466-4cfe-2068-08d364be19da x-microsoft-exchange-diagnostics: 1; BL2PR07MB2369; 5:vlE+IWKY5ICoyKXCUaoN9pe8XzGiaF+F7wF4YNiBMxq8JL3f7lSZxfJX9sKKz/vG2lqyCDzJMfxirhPWSmr1/Fa7Mj7SH1/2xAWFuw1s0ckvoRg3/1py098YElg/kpzHm2+Rtz3/WP6F9sOzVGrpOw==; 24:3unfOGVlMj5LzhKLAXkJA/4tWMYG22Fk2RK5No5OLvpAfhOWQlYKbgmS31enkE06C1LcR6MGNTT4XvD+Q6989KkpYnZE+iyJjOZZBIlQXpY= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR07MB2369; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BL2PR07MB2369; BCL:0; PCL:0; RULEID:; SRVR:BL2PR07MB2369; x-forefront-prvs: 0912297777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(10400500002)(86362001)(122556002)(87936001)(1220700001)(92566002)(450100001)(74316001)(6116002)(102836003)(99286002)(5002640100001)(110136002)(2900100001)(790700001)(2906002)(3846002)(19625215002)(66066001)(189998001)(586003)(107886002)(1096002)(3660700001)(5003600100002)(81166005)(77096005)(15975445007)(19300405004)(164054004)(50986999)(3280700002)(5630700001)(76576001)(16236675004)(5004730100002)(54356999)(33656002)(229853001)(11100500001)(2501003)(2351001)(5008740100001)(19580395003)(9686002)(5640700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR07MB2369; H:BL2PR07MB2369.namprd07.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; received-spf: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2016 23:40:02.2004 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2369 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 23:40:12 -0000 Hi, I am attempting to port a freebsd driver from 8.4 to 10.3. I ran into the f= ollowing compilation error. I am not able to find any file which declares P= CI_ENABLE_MSI, PCI_ENABLE_MSIX, PCI_DISABLE_MSI etc. The actual definitio= n of PCI_ENABLE_MSI seems to point to pci_enable_msi_method in pci.c. Any = thoughts on what might be missing ? DEVMETHOD(pci_enable_msi, pci_enable_msi_method), Build Error: @/dev/pci/pcivar.h:459:5: error: implicit declaration of function 'PCI_ENAB= LE_MSI' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_ENABLE_MSI(device_get_parent(dev), dev, address, data); @/dev/pci/pcivar.h:465:5: error: implicit declaration of function 'PCI_ENAB= LE_MSIX' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_ENABLE_MSIX(device_get_parent(dev), dev, index, address, data); @/dev/pci/pcivar.h:471:5: error: implicit declaration of function 'PCI_DISA= BLE_MSI' is invalid in C99 [-Werror,-Wimplicit-function-declaration] PCI_DISABLE_MSI(device_get_parent(dev), dev); ^ @/dev/pci/pcivar.h:501:13: error: implicit declaration of function 'PCI_MSI= X_PBA_BAR' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_MSIX_PBA_BAR(device_get_parent(dev), dev)); ^ @/dev/pci/pcivar.h:507:13: error: implicit declaration of function 'PCI_MSI= X_TABLE_BAR' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_MSIX_TABLE_BAR(device_get_parent(dev), dev)); @/dev/pci/pcivar.h:520:13: error: implicit declaration of function 'PCI_CHI= LD_ADDED' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return (PCI_CHILD_ADDED(device_get_parent(dev), dev)); Thanks, Lakshmi Reguna Lead Technical Marketing Engineer Cavium Inc. 2315 N First St San Jose CA 95131 408-943-4652 (o)