From owner-freebsd-drivers@FreeBSD.ORG Mon Apr 6 21:21:18 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5821ABD9 for ; Mon, 6 Apr 2015 21:21:18 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F3A581F for ; Mon, 6 Apr 2015 21:21:18 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A1EE6B945; Mon, 6 Apr 2015 17:21:16 -0400 (EDT) From: John Baldwin To: freebsd-drivers@freebsd.org Subject: Re: general question on interrupts handling Date: Mon, 06 Apr 2015 17:07:14 -0400 Message-ID: <1512772.cb4krpaZ39@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 06 Apr 2015 17:21:16 -0400 (EDT) Cc: =?ISO-8859-1?Q?Mat=EDas?= Perret Cantoni X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2015 21:21:18 -0000 On Thursday, March 12, 2015 06:52:25 PM Mat=EDas Perret Cantoni wrote: > Hi! >=20 > I'm writing my first interrupt handling routine of a newbus driver an= d I'm > not sure what things should I take care of in my ISR and what things = the > system will take care. >=20 > I'm working on a Xilinx Zynq-7000 platform. I'm generating a Shared > Peripheral Interrupt from the FPGA. >=20 > For example... > ... do I have to disable interrupts upon entering my ISR and enable t= hem > again before returning, o FreeBSD does it for me? > ... do I have to clear the GIC interrupt status of my interrupt or th= e > systems does it automatically when my routine returns? >=20 > Please excuse me if this is too general or silly. If you can point m= e any > documentation or sources to read, It'd be great. For a regular interrupt handler that runs in an thread context, the sys= tem will generally mask your device's interrupt until the interrupt thread = is scheduled and runs your handler. After your handler returns the interr= upt will be unmasked. For a filter interrupt handler that does not run in an interrupt thread= context, no masking is done and you generally need to mask the interrup= t yourself using a device-specific register if you cannot fully handle th= e interrupt in the filter routine. --=20 John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Tue Apr 7 22:18:18 2015 Return-Path: Delivered-To: freebsd-drivers@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 A979C803 for ; Tue, 7 Apr 2015 22:18:18 +0000 (UTC) Received: from SMTP.CITRIX.COM (smtp.citrix.com [66.165.176.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mail.citrix.com", Issuer "Cybertrust Public SureServer SV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F24935F for ; Tue, 7 Apr 2015 22:18:18 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.11,540,1422921600"; d="scan'208,217";a="251066635" From: Steve Jacobson To: "freebsd-drivers@freebsd.org" Subject: Looking for ixl driver firmware update utility Thread-Topic: Looking for ixl driver firmware update utility Thread-Index: AdBxf8rmhB+n7pvwRGGj4bq62qFMyA== Date: Tue, 7 Apr 2015 22:18:14 +0000 Message-ID: <670296C6BC111D438EBDD9AE87B50E53160A464E@SJCPEX01CL03.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 22:18:18 -0000 Hello, I need to develop or obtain a NIC firmware update utility for the Fortville= (XL710, ixl, i40e) 10G/40G NICs. Intel has such a utility, but it is Linu= x only, and available as a binary only. I tried running the binary on FreeBSD 8.4 using Linux emulation; however th= e binary is 64 bit, and therefore not supported by Linux emulation. Word on the street is that one FreeBSD shop was able to develop a firmware = update utility based on Intel documentation. Can anyone comment? Is anyon= e willing to provide information, even source code? Also, is there a more focused mailing list for Fortville on FreeBSD questio= ns? We are a FreeBSD shop, using 64 bit FreeBSD 8.4 in our embedded product. Thank you, SteveJ