[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090513184349.GJ15360@parisc-linux.org>
Date: Wed, 13 May 2009 12:43:49 -0600
From: Matthew Wilcox <matthew@....cx>
To: Hidetoshi Seto <seto.hidetoshi@...fujitsu.com>
Cc: Jesse Barnes <jbarnes@...tuousgeek.org>,
"David S. Miller" <davem@...emloft.net>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PCI MSI: Yet another fix for MSI-X with NIU cards, v2
On Wed, May 13, 2009 at 02:06:30PM +0900, Hidetoshi Seto wrote:
> entry->mask_base = base;
> - entry->masked = readl(base + j * PCI_MSIX_ENTRY_SIZE +
> - PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET);
> - msix_mask_irq(entry, 1);
> + entry->masked = 1;
>
Why do you add the setting of entry->masked here?
>
> + /*
> + * The states of Reserved bits[31:01] of Vector Control for MSI-X
> + * Table Entries must be 0. However, for potential future use,
> + * software must preserve the value of these reserved bits.
> + * Refer PCI spec 3.0, 6.8.2.9.
> + *
> + * Note that there are some device that refuses access to MSI-X
> + * Table Entries before MSI-X is enabled. Therefore we do it here.
> + */
I think you need to refer to PCIe 2.1 (or an ECN incorporated into it).
Some of these bits are now used.
> + list_for_each_entry(entry, &dev->msi_list, list) {
> + int vector = entry->msi_attrib.entry_nr;
> + entry->masked = readl(base + vector * PCI_MSIX_ENTRY_SIZE +
> + PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET);
> + /* Make sure it is masked */
> + msix_mask_irq(entry, 1);
> + }
> +
> return 0;
This looks to be the same as the replacement patch I sent earlier.
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists