From: ebiederm@xmission.com (Eric W. Biederman)
To: "Sébastien Dugué" <sebastien.dugue@bull.net>
Cc: Andrew Morton <akpm@osdl.org>,
"acurrid@nvidia.com" <acurrid@nvidia.com>,
"pchen@nvidia.com" <pchen@nvidia.com>,
"prakash@punnoor.de" <prakash@punnoor.de>,
"mchan@broadcom.com" <mchan@broadcom.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] quirk: Enable MSI Mapping on HT1000
Date: Tue, 27 Nov 2007 05:59:04 -0700 [thread overview]
Message-ID: <m1bq9flu93.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20071127134014.7a8ac56d@bull.net> (=?iso-8859-1?Q?S=E9bastie?= =?iso-8859-1?Q?n_Dugu=E9's?= message of "Tue, 27 Nov 2007 13:40:14 +0100")
Sébastien Dugué <sebastien.dugue@bull.net> writes:
> From: Sebastien Dugue <sebastien.dugue@bull.net>
>
> Add a quirk to enable the MSI mapping capability on HyperTransport
> bridges.
>
> Wire Broadcom's HT1000 to use the quirk.
>
> This patch applies cleanly on 2.6.24-rc3-mm1 and was tested on 2.6.24-rc3
> (sorry, but 2.6.24-rc3-mm1 would not boot on my box).
>
> I also have been running 2.6.21-rt10 with that patch for quite some
> time now.
>
> Sebastien.
Looks like a sane starting point, and if we know the chipset can
do it preferable to disabling msi on that chipset.
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
>
> Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Cc: Andy Currid <acurrid@nvidia.com>
> Cc: Peer Chen <pchen@nvidia.com>
> Cc: Prakash Punnoor <prakash@punnoor.de>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Michael Chan <mchan@broadcom.com>
>
> ---
> drivers/pci/quirks.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> Index: linux-2.6.24-rc3-mm1/drivers/pci/quirks.c
> ===================================================================
> --- linux-2.6.24-rc3-mm1.orig/drivers/pci/quirks.c
> +++ linux-2.6.24-rc3-mm1/drivers/pci/quirks.c
> @@ -1681,6 +1681,33 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SE
> PCI_DEVICE_ID_SERVERWORKS_HT1000_PXB,
> quirk_msi_ht_cap);
>
> +
> +/*
> + * Force enable MSI mapping capability on HT bridges
> + */
> +static void __devinit quirk_msi_ht_cap_enable(struct pci_dev *dev)
> +{
> + int pos, ttl = 48;
> +
> + pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING);
> + while (pos && ttl--) {
> + u8 flags;
> +
> + if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, &flags) == 0) {
> + printk(KERN_INFO "PCI: Enabling HT MSI Mapping on %s\n",
> + pci_name(dev));
> +
> + pci_write_config_byte(dev, pos + HT_MSI_FLAGS,
> + flags | HT_MSI_FLAGS_ENABLE);
> + }
> + pos = pci_find_next_ht_capability(dev, pos,
> + HT_CAPTYPE_MSI_MAPPING);
> + }
> +}
> +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SERVERWORKS,
> + PCI_DEVICE_ID_SERVERWORKS_HT1000_PXB,
> + quirk_msi_ht_cap_enable);
> +
> /* The nVidia CK804 chipset may have 2 HT MSI mappings.
> * MSI are supported if the MSI capability set in any of these mappings.
> */
parent reply other threads:[~2007-11-27 13:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20071127134014.7a8ac56d@bull.net>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1bq9flu93.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=acurrid@nvidia.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchan@broadcom.com \
--cc=pchen@nvidia.com \
--cc=prakash@punnoor.de \
--cc=sebastien.dugue@bull.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome