Message ID | 1392811475-17744-1-git-send-email-mohit.kumar@st.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
On Wed, Feb 19, 2014 at 05:34:35PM +0530, Mohit Kumar wrote: > The Synopsys PCIe core provides one pair of 32-bit BARs (BAR 0 and BAR 1). > The BARs can be configured as follows: > > - One 64-bit BAR: BARs 0 and 1 are combined to form a single 64-bit BAR. > - Two 32-bit BARs: BARs 0 and 1 are two independent 32-bit BARs > > This patch corrects 64-bit, non-prefetchable memory BAR configuration > implemented in dw driver. > > Signed-off-by: Mohit Kumar <mohit.kumar@st.com> > Cc: Pratyush Anand <pratyush.anand@st.com> > Cc: Jingoo Han <jg1.han@samsung.com> > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: spear-devel@list.st.com > Cc: linux-pci@vger.kernel.org Applied to pci/host-designware for v3.15, thanks! I update the summary to the following; let me know if it's not accurate: PCI: designware: Fix RC BAR to be single 64-bit non-prefetchable memory BAR > --- > drivers/pci/host/pcie-designware.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c > index 17ce88f..6d23d8c 100644 > --- a/drivers/pci/host/pcie-designware.c > +++ b/drivers/pci/host/pcie-designware.c > @@ -800,7 +800,7 @@ void dw_pcie_setup_rc(struct pcie_port *pp) > > /* setup RC BARs */ > dw_pcie_writel_rc(pp, 0x00000004, PCI_BASE_ADDRESS_0); > - dw_pcie_writel_rc(pp, 0x00000004, PCI_BASE_ADDRESS_1); > + dw_pcie_writel_rc(pp, 0x00000000, PCI_BASE_ADDRESS_1); > > /* setup interrupt pins */ > dw_pcie_readl_rc(pp, PCI_INTERRUPT_LINE, &val); > -- > 1.7.0.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Bjorn, > -----Original Message----- > From: Bjorn Helgaas [mailto:bhelgaas@google.com] > Sent: Thursday, February 20, 2014 3:24 AM > To: Mohit KUMAR DCG > Cc: jg1.han@samsung.com; Pratyush ANAND; Arnd Bergmann; spear-devel; > linux-pci@vger.kernel.org > Subject: Re: [PATCH 1/1] Designware:RC BARs setup related fix > > On Wed, Feb 19, 2014 at 05:34:35PM +0530, Mohit Kumar wrote: > > The Synopsys PCIe core provides one pair of 32-bit BARs (BAR 0 and BAR > 1). > > The BARs can be configured as follows: > > > > - One 64-bit BAR: BARs 0 and 1 are combined to form a single 64-bit BAR. > > - Two 32-bit BARs: BARs 0 and 1 are two independent 32-bit BARs > > > > This patch corrects 64-bit, non-prefetchable memory BAR configuration > > implemented in dw driver. > > > > Signed-off-by: Mohit Kumar <mohit.kumar@st.com> > > Cc: Pratyush Anand <pratyush.anand@st.com> > > Cc: Jingoo Han <jg1.han@samsung.com> > > Cc: Arnd Bergmann <arnd@arndb.de> > > Cc: spear-devel@list.st.com > > Cc: linux-pci@vger.kernel.org > > Applied to pci/host-designware for v3.15, thanks! - thanks > > I update the summary to the following; let me know if it's not accurate: > > PCI: designware: Fix RC BAR to be single 64-bit non-prefetchable memory > BAR - yes, it looks better Thanks, Mohit -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
+cc stable@vger.kerne.org > -----Original Message----- > From: Mohit KUMAR [mailto:mohit.kumar@st.com] > Sent: Thursday, February 20, 2014 9:43 AM > To: Bjorn Helgaas > Cc: jg1.han@samsung.com; Pratyush ANAND; Arnd Bergmann; spear-devel; > linux-pci@vger.kernel.org > Subject: RE: [PATCH 1/1] Designware:RC BARs setup related fix > > Hello Bjorn, > > > -----Original Message----- > > From: Bjorn Helgaas [mailto:bhelgaas@google.com] > > Sent: Thursday, February 20, 2014 3:24 AM > > To: Mohit KUMAR DCG > > Cc: jg1.han@samsung.com; Pratyush ANAND; Arnd Bergmann; spear- > devel; > > linux-pci@vger.kernel.org > > Subject: Re: [PATCH 1/1] Designware:RC BARs setup related fix > > > > On Wed, Feb 19, 2014 at 05:34:35PM +0530, Mohit Kumar wrote: > > > The Synopsys PCIe core provides one pair of 32-bit BARs (BAR 0 and > > > BAR > > 1). > > > The BARs can be configured as follows: > > > > > > - One 64-bit BAR: BARs 0 and 1 are combined to form a single 64-bit BAR. > > > - Two 32-bit BARs: BARs 0 and 1 are two independent 32-bit BARs > > > > > > This patch corrects 64-bit, non-prefetchable memory BAR > > > configuration implemented in dw driver. > > > > > > Signed-off-by: Mohit Kumar <mohit.kumar@st.com> > > > Cc: Pratyush Anand <pratyush.anand@st.com> > > > Cc: Jingoo Han <jg1.han@samsung.com> > > > Cc: Arnd Bergmann <arnd@arndb.de> > > > Cc: spear-devel@list.st.com > > > Cc: linux-pci@vger.kernel.org > > > > Applied to pci/host-designware for v3.15, thanks! > > - thanks > > > > > I update the summary to the following; let me know if it's not accurate: > > > > PCI: designware: Fix RC BAR to be single 64-bit non-prefetchable > > memory BAR > > - yes, it looks better > > Thanks, > Mohit -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Feb 19, 2014 at 11:45 PM, Mohit KUMAR DCG <Mohit.KUMAR@st.com> wrote: > +cc stable@vger.kerne.org I assume you meant that you want this patch to go to the stable kernels? I added the appropriate tag to the patch: Cc: stable@vger.kernel.org # v3.12+ This won't apply cleanly to v3.11 because there were unrelated changes to these lines. If you want it in v3.11, please send the appropriate patch to stable@vger.kernel.org. Bjorn >> -----Original Message----- >> From: Mohit KUMAR [mailto:mohit.kumar@st.com] >> Sent: Thursday, February 20, 2014 9:43 AM >> To: Bjorn Helgaas >> Cc: jg1.han@samsung.com; Pratyush ANAND; Arnd Bergmann; spear-devel; >> linux-pci@vger.kernel.org >> Subject: RE: [PATCH 1/1] Designware:RC BARs setup related fix >> >> Hello Bjorn, >> >> > -----Original Message----- >> > From: Bjorn Helgaas [mailto:bhelgaas@google.com] >> > Sent: Thursday, February 20, 2014 3:24 AM >> > To: Mohit KUMAR DCG >> > Cc: jg1.han@samsung.com; Pratyush ANAND; Arnd Bergmann; spear- >> devel; >> > linux-pci@vger.kernel.org >> > Subject: Re: [PATCH 1/1] Designware:RC BARs setup related fix >> > >> > On Wed, Feb 19, 2014 at 05:34:35PM +0530, Mohit Kumar wrote: >> > > The Synopsys PCIe core provides one pair of 32-bit BARs (BAR 0 and >> > > BAR >> > 1). >> > > The BARs can be configured as follows: >> > > >> > > - One 64-bit BAR: BARs 0 and 1 are combined to form a single 64-bit BAR. >> > > - Two 32-bit BARs: BARs 0 and 1 are two independent 32-bit BARs >> > > >> > > This patch corrects 64-bit, non-prefetchable memory BAR >> > > configuration implemented in dw driver. >> > > >> > > Signed-off-by: Mohit Kumar <mohit.kumar@st.com> >> > > Cc: Pratyush Anand <pratyush.anand@st.com> >> > > Cc: Jingoo Han <jg1.han@samsung.com> >> > > Cc: Arnd Bergmann <arnd@arndb.de> >> > > Cc: spear-devel@list.st.com >> > > Cc: linux-pci@vger.kernel.org >> > >> > Applied to pci/host-designware for v3.15, thanks! >> >> - thanks >> >> > >> > I update the summary to the following; let me know if it's not accurate: >> > >> > PCI: designware: Fix RC BAR to be single 64-bit non-prefetchable >> > memory BAR >> >> - yes, it looks better >> >> Thanks, >> Mohit -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 17ce88f..6d23d8c 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -800,7 +800,7 @@ void dw_pcie_setup_rc(struct pcie_port *pp) /* setup RC BARs */ dw_pcie_writel_rc(pp, 0x00000004, PCI_BASE_ADDRESS_0); - dw_pcie_writel_rc(pp, 0x00000004, PCI_BASE_ADDRESS_1); + dw_pcie_writel_rc(pp, 0x00000000, PCI_BASE_ADDRESS_1); /* setup interrupt pins */ dw_pcie_readl_rc(pp, PCI_INTERRUPT_LINE, &val);
The Synopsys PCIe core provides one pair of 32-bit BARs (BAR 0 and BAR 1). The BARs can be configured as follows: - One 64-bit BAR: BARs 0 and 1 are combined to form a single 64-bit BAR. - Two 32-bit BARs: BARs 0 and 1 are two independent 32-bit BARs This patch corrects 64-bit, non-prefetchable memory BAR configuration implemented in dw driver. Signed-off-by: Mohit Kumar <mohit.kumar@st.com> Cc: Pratyush Anand <pratyush.anand@st.com> Cc: Jingoo Han <jg1.han@samsung.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: spear-devel@list.st.com Cc: linux-pci@vger.kernel.org --- drivers/pci/host/pcie-designware.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)