public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yinghai Lu <yinghai@kernel.org>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Robert Hancock <hancockrwd@gmail.com>,
	Jesse Barnes <jbarnes@virtuousgeek.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	david@lang.hm, Matthew Wilcox <matthew@wil.cx>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-scsi@vger.kernel.org, DL-MPTFusionLinux@lsi.com,
	linux-pci@vger.kernel.org
Subject: Re: [PATCH] pci: enable MSI on 8132
Date: Sat, 21 Feb 2009 02:23:31 -0800	[thread overview]
Message-ID: <499FD623.1010105@kernel.org> (raw)
In-Reply-To: <m1r61sf9oo.fsf@fess.ebiederm.org>

Eric W. Biederman wrote:
> Yinghai Lu <yinghai@kernel.org> writes:
> 
>> On Fri, Feb 20, 2009 at 11:50 PM, Eric W. Biederman
>> <ebiederm@xmission.com> wrote:
>>> Robert Hancock <hancockrwd@gmail.com> writes:
>>>> Is there a reason why we can't just enable the HT MSI mapping for any bridge
>>>> device that has that PCI capability and is underneath an HT bridge?
>>> The code should be under CONFIG_X86 because the rules for enabling HT MSI
>> mappings
>>> are different for other architectures.  But otherwise I can't think of a
>> reason.
>>
>> move to arch/x86/pci/fixup.c?
>>
>> it seems some other arch do support HT ... powerpc, mips?
> 
> The difference is that there is a magic address on x86 that all MSI
> cycles are sent to.  I think it is 0xfffe0000.  In an msi to HT
> mapping capability it is necessary to program in the address to listen
> for msi packets.  That is very much an arch dependent thing.
> 
>>>> Essentially
>>>> the code for nv_msi_ht_cap_quirk could potentially be applied to all bridges
>> as
>>>> it is currently for NVIDIA and ALi bridges..
>>> Sounds like it would save a fair amount of grief.
>> it seems there is some difference.
>> 8132 is some kind of HT tunnel, and the bridge is acctually pci-x bridge.
>>
>> mcp55 and ck804: is HT end device with several pcie bridges.
> 
> Not really they are all hypertransport to pci bridges (of some flavor).
> But any hypertransport device is allowed to have a mapping capability.
> In which case they can implement normal MSI interrupts instead of the
> weird hypertransport ones.
for mcp55
00:00.0 is HT device
00:0b.0 00:0c.0, 00:0d.0, 00:0e.0, 00:0f.0 are pcie bridge.
current quirks will check 00:00.0 HT MSI is set, it will not set that in those bridges any more.

> 
>> also 8131 has problem with HT MSI?
> 
> The 8131 does not implement the msi to hypertransport mapping
> capability so it can not support MSI interrupts.
it seems there is one quirks to disable MSI for 8131.
/* Disable MSI on chipsets that are known to not support it */
static void __devinit quirk_disable_msi(struct pci_dev *dev)
{
        if (dev->subordinate) {
                dev_warn(&dev->dev, "MSI quirk detected; "
                        "subordinate MSI disabled\n");
                dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MSI;
        }
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_msi);


> 
> 
> In general on x86, if a device has a MSI to hypertransport mapping
> capability then we can enable it and mark that devices and all
> downstream devices as supporting MSI.

looks some aggressive.

YH

  reply	other threads:[~2009-02-21 10:24 UTC|newest]

Thread overview: 100+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-17 22:24 mpt fusion broken sometime since 2.6.24 david
2009-02-17 21:44 ` david
2009-02-17 23:00   ` Matthew Wilcox
2009-02-17 23:07     ` david
2009-02-17 23:11       ` Matthew Wilcox
2009-02-17 23:20         ` Yinghai Lu
2009-02-17 23:21         ` david
2009-02-17 23:11       ` Yinghai Lu
2009-02-17 23:20         ` david
2009-02-17 23:22           ` Yinghai Lu
2009-02-17 23:37             ` david
2009-02-18  2:01               ` Yinghai Lu
2009-02-18  2:03                 ` david
2009-02-18  2:14                   ` Yinghai Lu
2009-02-18  2:32                     ` david
2009-02-18  2:28                   ` Yinghai Lu
2009-02-18  2:34                     ` david
2009-02-18  2:40                       ` david
2009-02-18  2:49                         ` Yinghai Lu
2009-02-18  3:26                           ` david
2009-02-18  3:28                             ` Yinghai Lu
2009-02-18  3:35                               ` david
2009-02-18  3:45                                 ` david
2009-02-18  3:47                                 ` Yinghai Lu
2009-02-18  4:14                                   ` david
2009-02-18  4:36                                     ` Yinghai Lu
2009-02-18  5:06                                     ` Yinghai Lu
2009-02-18  5:10                                       ` Yinghai Lu
2009-02-18  4:40                             ` [PATCH] pci: enable MSI on 8132 Yinghai Lu
2009-02-18 12:21                               ` Matthew Wilcox
2009-02-18 12:27                                 ` david
2009-02-18 18:04                                   ` Andrew Morton
2009-02-18 18:18                                     ` david
2009-02-18 18:32                                       ` Greg KH
2009-02-18 18:38                                     ` James Bottomley
2009-02-18 18:40                                       ` david
2009-02-18 19:08                                       ` Yinghai Lu
2009-02-18 19:14                                         ` James Bottomley
2009-02-18 19:25                                           ` Yinghai Lu
2009-02-18 20:12                                           ` Jeff Garzik
2009-02-18 20:18                                             ` James Bottomley
2009-02-18 19:15                                       ` Andrew Morton
2009-02-18 19:29                                         ` Yinghai Lu
2009-02-18 19:33                                         ` James Bottomley
2009-02-19  4:21                                       ` Prakash, Sathya
2009-02-18 19:00                               ` Jesse Barnes
2009-02-19  3:39                               ` Robert Hancock
2009-02-21  7:50                                 ` Eric W. Biederman
2009-02-21  8:31                                   ` Yinghai Lu
2009-02-21  8:58                                     ` Eric W. Biederman
2009-02-21 10:23                                       ` Yinghai Lu [this message]
2009-02-21 18:59                                         ` Robert Hancock
2009-02-22 12:08                                           ` Prakash Punnoor
2009-02-22 12:54                                             ` Eric W. Biederman
2009-02-22 15:17                                               ` Prakash Punnoor
2009-02-22 21:45                                                 ` Yinghai Lu
2009-02-22 22:07                                                   ` Yinghai Lu
2009-02-23  6:18                                                 ` Yinghai Lu
2009-02-23 18:21                                                   ` Prakash Punnoor
2009-02-23 18:50                                                     ` Yinghai Lu
2009-02-23 19:01                                                       ` Prakash Punnoor
2009-02-23 19:51                                                   ` [PATCH] pci: don't enable too many HT MSI mapping Yinghai Lu
2009-02-24 17:37                                                     ` Jesse Barnes
2009-02-27  6:52                                                       ` Prakash Punnoor
2009-02-27 20:59                                                         ` Yinghai Lu
2009-02-28  8:25                                                           ` Prakash Punnoor
2009-02-28 20:57                                                             ` Yinghai Lu
2009-02-28 22:43                                                               ` Yinghai Lu
2009-03-01  7:50                                                                 ` Prakash Punnoor
2009-03-01  7:58                                                                   ` Prakash Punnoor
2009-03-01  8:12                                                                     ` Yinghai Lu
2009-03-01  8:29                                                                       ` Prakash Punnoor
2009-03-04  7:15                                                                         ` Prakash Punnoor
2009-03-04  8:21                                                                           ` Yinghai Lu
2009-03-05 17:01                                                                           ` Matthew Wilcox
2009-03-05 17:15                                                                           ` Matthew Wilcox
2009-03-05 23:26                                                                             ` Yinghai Lu
2009-03-05 23:45                                                                             ` Prakash Punnoor
2009-03-06  1:10                                                                               ` Matthew Wilcox
2009-03-06  4:15                                                                                 ` Yinghai Lu
2009-03-06  9:10                                                                                   ` Prakash Punnoor
2009-03-21  2:29                                                                                   ` [PATCH] pci: don't enable too much HT MSI mapping -v5 -resend Yinghai Lu
2009-03-26 23:10                                                                                     ` Jesse Barnes
2009-03-28 12:34                                                                                       ` Prakash Punnoor
2009-03-28 13:31                                                                                         ` Prakash Punnoor
2009-03-28 20:18                                                                                           ` Yinghai Lu
2009-03-28 22:11                                                                                             ` Prakash Punnoor
2009-03-28 20:52                                                                                           ` Yinghai Lu
2009-03-28 22:16                                                                                             ` Prakash Punnoor
2009-03-28 23:15                                                                                               ` Yinghai Lu
2009-03-29  1:33                                                                                               ` Yinghai Lu
2009-03-29  9:15                                                                                                 ` Prakash Punnoor
2009-03-29  9:32                                                                                                   ` Yinghai Lu
2009-03-29 12:50                                                                                                     ` Prakash Punnoor
2009-03-29 19:27                                                                                                       ` Yinghai Lu
2009-03-29 19:30                                                                                               ` [PATCH] pci: don't enable too much HT MSI mapping -v6 Yinghai Lu
2009-03-30 19:17                                                                                                 ` Jesse Barnes
2009-02-22 23:42                                               ` [PATCH] pci: enable MSI on 8132 Matthew Wilcox
2009-02-22  3:42                                       ` Grant Grundler
2009-02-18  3:12                         ` mpt fusion broken sometime since 2.6.24 david

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=499FD623.1010105@kernel.org \
    --to=yinghai@kernel.org \
    --cc=DL-MPTFusionLinux@lsi.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@lang.hm \
    --cc=ebiederm@xmission.com \
    --cc=hancockrwd@gmail.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matthew@wil.cx \
    /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