From: "Jayachandran C." <jayachandranc@netlogicmicro.com>
To: "Sergei Shtylyov" <sshtylyov@mvista.com>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org,
"Ganesan Ramalingam" <ganesanr@broadcom.com>
Subject: Re: [PATCH 02/12] MIPS: Netlogic: MSI enable fix for XLS
Date: Mon, 30 Apr 2012 14:59:57 +0530 [thread overview]
Message-ID: <20120430092956.GA22875@jayachandranc.netlogicmicro.com> (raw)
In-Reply-To: <4F9D8E12.9090006@mvista.com>
On Sun, Apr 29, 2012 at 10:53:06PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 28-04-2012 17:12, Jayachandran C wrote:
>
> >From: Ganesan Ramalingam<ganesanr@broadcom.com>
>
> >MSI interrupts do not work on XLS after commit a776c49, because
>
> Please also specify that commit's summary in parens.
>
> >the change disables MSI interrupts on the XLS PCIe bridges at boot-up.
>
> >Fix this by enabling MSI interrupts on the bridge in the
> >arch_setup_msi_irq() function. Earlier, this was done from firmware
> >and we did not need to change the configuration in linux.
>
> >Signed-off-by: Ganesan Ramalingam<ganesanr@broadcom.com>
> >Signed-off-by: Jayachandran C<jayachandranc@netlogicmicro.com>
> >---
> > arch/mips/pci/pci-xlr.c | 30 +++++++++++++++++++++++++-----
> > 1 file changed, 25 insertions(+), 5 deletions(-)
> >
> >diff --git a/arch/mips/pci/pci-xlr.c b/arch/mips/pci/pci-xlr.c
> >index 50ff4dc..003e053 100644
> >--- a/arch/mips/pci/pci-xlr.c
> >+++ b/arch/mips/pci/pci-xlr.c
> [...]
> >@@ -168,17 +169,17 @@ static int get_irq_vector(const struct pci_dev *dev)
> > if (dev->bus->self == NULL)
> > return 0;
> >
> >- switch (dev->bus->self->devfn) {
> >- case 0x0:
> >+ switch (PCI_SLOT(dev->bus->self->devfn)) {
> >+ case 0:
> > return PIC_PCIE_LINK0_IRQ;
> >- case 0x8:
> >+ case 1:
> > return PIC_PCIE_LINK1_IRQ;
> >- case 0x10:
> >+ case 2:
> > if (nlm_chip_is_xls_b())
> > return PIC_PCIE_XLSB0_LINK2_IRQ;
> > else
> > return PIC_PCIE_LINK2_IRQ;
> >- case 0x18:
> >+ case 3:
> > if (nlm_chip_is_xls_b())
> > return PIC_PCIE_XLSB0_LINK3_IRQ;
> > else
>
> This seems like un unrelated change...
This is just a slightly better way of writing the same logic, it does
not fix any issue.
We should have added this to the commit description, but I'm not sure
if it requires a separate patch.
JC.
next prev parent reply other threads:[~2012-04-30 9:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 13:12 [PATCH 00/12] Netlogic XLR/XLS/XLP updates Jayachandran C
2012-04-28 13:12 ` [PATCH 01/12] MIPS: Netlogic: Fix PCIX irq on XLR chips Jayachandran C
2012-04-28 13:12 ` [PATCH 02/12] MIPS: Netlogic: MSI enable fix for XLS Jayachandran C
2012-04-29 18:53 ` Sergei Shtylyov
2012-04-30 9:29 ` Jayachandran C. [this message]
2012-04-28 13:12 ` [PATCH 03/12] MIPS: Netlogic: Remove unused pcibios_fixups Jayachandran C
2012-04-28 13:12 ` [PATCH 04/12] MIPS: Netlogic: Fix TLB size of boot CPU Jayachandran C
2012-04-28 13:12 ` [PATCH 05/12] MIPS: Netlogic: Update comments in smpboot.S Jayachandran C
2012-04-28 13:12 ` [PATCH 06/12] MIPS: Netlogic: SMP wakeup code update Jayachandran C
2012-04-28 13:12 ` [PATCH 07/12] MIPS: Netlogic: Remove NETLOGIC_ prefix Jayachandran C
2012-04-28 13:12 ` [PATCH 08/12] MIPS: Netlogic: Platform changes for XLS USB Jayachandran C
2012-04-28 13:12 ` [PATCH 09/12] MIPS: Netlogic: Platform NAND/NOR flash support Jayachandran C
2012-04-28 13:12 ` [PATCH 10/12] MIPS: Netlogic: Platform changes for XLR/XLS I2C Jayachandran C
2012-04-28 13:12 ` [PATCH 11/12] MIPS: Netlogic: XLP PCIe controller support Jayachandran C
2012-04-30 7:15 ` [PATCH 11/12 UPDATED] " Jayachandran C
2012-04-28 13:12 ` [PATCH 12/12] MIPS: Netlogic: USB support for XLP Jayachandran C
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=20120430092956.GA22875@jayachandranc.netlogicmicro.com \
--to=jayachandranc@netlogicmicro.com \
--cc=ganesanr@broadcom.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=sshtylyov@mvista.com \
/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