From patchwork Sun May 3 07:13:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 21610 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n437EDTU022161 for ; Sun, 3 May 2009 07:14:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751711AbZECHOM (ORCPT ); Sun, 3 May 2009 03:14:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751693AbZECHOM (ORCPT ); Sun, 3 May 2009 03:14:12 -0400 Received: from mx2.redhat.com ([66.187.237.31]:56144 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbZECHOL (ORCPT ); Sun, 3 May 2009 03:14:11 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n437E9Ib013963; Sun, 3 May 2009 03:14:09 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n437E9KC007373; Sun, 3 May 2009 03:14:09 -0400 Received: from redhat.com (vpn-10-31.str.redhat.com [10.32.10.31]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n437E6rt028223; Sun, 3 May 2009 03:14:07 -0400 Date: Sun, 3 May 2009 10:13:09 +0300 From: "Michael S. Tsirkin" To: linux-pci@vger.kernel.org Cc: mj@ucw.cz Subject: [PATCH] Make MSI-X table size match the spec Message-ID: <20090503071309.GA9685@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org MSI-X table size is 11 bits, not 10. See also PCI_MSIX_FLAGS_QSIZE in linux/pci_regs.h. Make PCI_MSIX_TABSIZE match that. Signed-off-by: Michael S. Tsirkin --- It seems that PCI_MSIX_TABSIZE is out of sync with PCI spec (and with linux/pci_regs.h). Here's an attempt to fix that - makes sense? lib/header.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/header.h b/lib/header.h index ad8bce6..ec34f44 100644 --- a/lib/header.h +++ b/lib/header.h @@ -862,7 +862,7 @@ /* MSI-X */ #define PCI_MSIX_ENABLE 0x8000 #define PCI_MSIX_MASK 0x4000 -#define PCI_MSIX_TABSIZE 0x03ff +#define PCI_MSIX_TABSIZE 0x07ff #define PCI_MSIX_TABLE 4 #define PCI_MSIX_PBA 8 #define PCI_MSIX_BIR 0x7