From owner-freebsd-drivers@FreeBSD.ORG Mon Feb 13 17:15:43 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E17E5106566B for ; Mon, 13 Feb 2012 17:15:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B9B9C8FC15 for ; Mon, 13 Feb 2012 17:15:43 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 729EF46B0A; Mon, 13 Feb 2012 12:15:43 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 089DAB922; Mon, 13 Feb 2012 12:15:43 -0500 (EST) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Mon, 13 Feb 2012 11:56:25 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202131156.25554.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 13 Feb 2012 12:15:43 -0500 (EST) Cc: Bret Ketchum Subject: Re: MSI-X support X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 17:15:44 -0000 On Friday, February 10, 2012 8:17:49 am Bret Ketchum wrote: > I've an HBA which supports MSI-X but uses the same BAR for its memory > mapped registers, the MSI-X table and PBA. They're just at different > offsets, similar to a QLogic 8Gb ISP2532. I've perused the source and it > looks like 8.1 doesn't support this flavor of MSI-X configuration out of > the box. Posting here to see if I'm just blind. 8.1 should support this just fine. All MSI-X requires is that the driver have allocated and activated the relevant BAR before calling pci_alloc_msix(). This makes the PCI bus code simpler for exactly the case you mention since the bus doesn't have to deal with trying to allocate the same BAR twice, etc. -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Thu Feb 16 18:53:00 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D7A0106564A; Thu, 16 Feb 2012 18:53:00 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe006.messaging.microsoft.com [216.32.181.186]) by mx1.freebsd.org (Postfix) with ESMTP id D2B2D8FC13; Thu, 16 Feb 2012 18:52:59 +0000 (UTC) Received: from mail77-ch1-R.bigfish.com (10.43.68.236) by CH1EHSOBE010.bigfish.com (10.43.70.60) with Microsoft SMTP Server id 14.1.225.23; Thu, 16 Feb 2012 18:22:56 +0000 Received: from mail77-ch1 (localhost [127.0.0.1]) by mail77-ch1-R.bigfish.com (Postfix) with ESMTP id 815A1420435; Thu, 16 Feb 2012 18:22:56 +0000 (UTC) X-SpamScore: -6 X-BigFish: VPS-6(zz14ffOzz1202hzzz2ei2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:198.70.193.64; KIP:(null); UIP:(null); IPV:NLI; H:avexcashub1.qlogic.com; RD:avexcashub2.qlogic.com; EFVD:NLI Received-SPF: neutral (mail77-ch1: 198.70.193.64 is neither permitted nor denied by domain of qlogic.com) client-ip=198.70.193.64; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail77-ch1 (localhost.localdomain [127.0.0.1]) by mail77-ch1 (MessageSwitch) id 1329416573663323_30680; Thu, 16 Feb 2012 18:22:53 +0000 (UTC) Received: from CH1EHSMHS022.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.225]) by mail77-ch1.bigfish.com (Postfix) with ESMTP id 9C62C2C004D; Thu, 16 Feb 2012 18:22:53 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.64) by CH1EHSMHS022.bigfish.com (10.43.70.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 16 Feb 2012 18:22:52 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub2.qlogic.org ([::1]) with mapi; Thu, 16 Feb 2012 10:22:52 -0800 From: David Somayajulu To: "freebsd-current@freebsd.org" , "freebsd-drivers@freebsd.org" Date: Thu, 16 Feb 2012 10:22:51 -0800 Thread-Topic: Question on TSO/LSO Transmit Frames Thread-Index: Aczs1/uBFJtVbnzqQdqqt37K0ZitDQ== Message-ID: <75E1A2A7D185F841A975979B0906BBA67C79BD85F7@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Cc: Subject: Question on TSO/LSO Transmit Frames X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 18:53:00 -0000 Hi All, Is it safe to assume that when a driver receives an Ethernet frame to trans= mit with CSUM_TSO bit set in m_head->m_pkthdr.csum_flags ; where m_head is the first (struct mbuf) in t= he mbuf chain that the [Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der] are all present in one physically contiguous segment ? In other words is Size of ([Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der]) <=3D m_head->m_len When ((m_head->m_pkthdr.csum_flags & CSUM_TSO) !=3D 0) Thanks David S. This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message.